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)
  addExpression(self, name, expr, idNr=None)
Add a RegExp
  getData(self, name, time=None, ID=None)
Get data
  getIDs(self, name)
Get a list with the available IDs
  getTimes(self, name, ID=None)
Get a list with the available times for a specific ID

Inherited from FoamLogAnalyzer.FoamLogAnalyzer: addAnalyzer, addTimeListener, analyze, analyzeLine, getAnalyzer, getDirectory, getTime, goOn, 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 
Parameters:
  • progress - Print time progress on console?
Overrides: FoamLogAnalyzer.FoamLogAnalyzer.__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

getIDs(self, name)

source code 
Get a list with the available IDs

getTimes(self, name, ID=None)

source code 
Get a list with the available times for a specific ID