PyFoam.Execution.UtilityRunner module

Run a non-solver utility

class PyFoam.Execution.UtilityRunner.UtilityRunner(argv=None, silent=False, logname='PyFoamUtility', server=False, restart=False, compressLog=False, noLog=False, logTail=None, remark=None, parameters=None, lam=None, jobId=None, echoCommandLine=None)[source]

Bases: PyFoam.Execution.AnalyzedRunner.AnalyzedRunner

To this runner regular expressions can be added. Each line is checked against each regular expression and saved with the corresponding time.

Each RegEx has a name

For each pattern group in the RegEx one data value is stored

add(name, exp, idNr=None)[source]

adds a regular expression

name - name under whcih the RegExp is known exp - the regular expression idNr - number of the pattern group that is used to make a data set unique

get(name, time=None, ID=None)[source]

get a data set

name - name of the RegExp time - at which time (if unset the last time is used) ID - the unique ID determined by idNr

getIDs(name)[source]

get a list of all the IDs

getTimes(name, ID=None)[source]

get a list of all the times that are available for ID