Package PyFoam :: Package LogAnalysis :: Module UtilityAnalyzer :: Class UtilityAnalyzer
[hide private]
[frames] | no frames]

Class UtilityAnalyzer

source code

                     object --+    
                              |    
FoamLogAnalyzer.FoamLogAnalyzer --+
                                  |
                                 UtilityAnalyzer

Analyzer for non-solver Utilities

Regular expressions can be added and the data generated by them can be accessed

Instance Methods [hide private]
 
__init__(self, progress=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
addExpression(self, name, expr, idNr=None)
Add a RegExp
source code
 
getData(self, name, time=None, ID=None)
Get data
source code
 
getIDs(self, name)
Get a list with the available IDs
source code
 
getTimes(self, name, ID=None)
Get a list with the available times for a specific ID
source code

Inherited from FoamLogAnalyzer.FoamLogAnalyzer: addAnalyzer, addTimeListener, addTrigger, analyze, analyzeLine, checkTriggers, getAnalyzer, getDirectory, getTime, goOn, hasAnalyzer, listAnalyzers, setDirectory, setTime, tearDown

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, progress=False)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • progress - Print time progress on console?
Overrides: object.__init__

addExpression(self, name, expr, idNr=None)

source code 

Add a RegExp

Parameters:
  • name - name of the RegExp
  • expr - the RegExp
  • idNr - number of the pattern group that identifies data-sets

getData(self, name, time=None, ID=None)

source code 

Get data

Parameters:
  • name - name of the RegExp
  • time - time from which the data set it to be read
  • ID - identification of the data set
Returns:
tuple with the data