PyFoam.LogAnalysis.UtilityAnalyzer module

Analyze OpenFOAM utility

class PyFoam.LogAnalysis.UtilityAnalyzer.UtilityAnalyzer(progress=False)[source]

Bases: PyFoam.LogAnalysis.FoamLogAnalyzer.FoamLogAnalyzer

Analyzer for non-solver Utilities

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

addExpression(name, expr, idNr=None)[source]

Add a RegExp

Parameters:
  • name – name of the RegExp
  • expr – the RegExp
  • idNr – number of the pattern group that identifies data-sets
getData(name, time=None, ID=None)[source]

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(name)[source]

Get a list with the available IDs

getTimes(name, ID=None)[source]

Get a list with the available times for a specific ID