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

__init__(progress=False)[source]
Parameters

progress – Print time progress on console?

__module__ = 'PyFoam.LogAnalysis.UtilityAnalyzer'
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