PyFoam.Execution.AnalyzedCommon module¶
Common stuff for classes that use analyzers
-
class
PyFoam.Execution.AnalyzedCommon.
AnalyzedCommon
(filenames, analyzer, doPickling=True)[source]¶ Bases:
object
This class collects information and methods that are needed for handling analyzers
-
__dict__
= dict_proxy({'__module__': 'PyFoam.Execution.AnalyzedCommon', 'createPlots': <function createPlots>, 'addCustomExpressions': <function addCustomExpressions>, 'tearDown': <function tearDown>, 'setDataSet': <function setDataSet>, 'getDirname': <function getDirname>, 'addAnalyzer': <function addAnalyzer>, 'hasAnalyzer': <function hasAnalyzer>, '__dict__': <attribute '__dict__' of 'AnalyzedCommon' objects>, '__weakref__': <attribute '__weakref__' of 'AnalyzedCommon' objects>, '__init__': <function __init__>, 'reset': <function reset>, 'picklePlots': <function picklePlots>, 'addTrigger': <function addTrigger>, 'lineHandle': <function lineHandle>, 'execNameFound': <function execNameFound>, 'getAnalyzer': <function getAnalyzer>, 'addPlots': <function addPlots>, 'getTime': <function getTime>, 'listAnalyzers': <function listAnalyzers>, '__doc__': 'This class collects information and methods that are needed for\n handling analyzers'})¶
-
__init__
(filenames, analyzer, doPickling=True)[source]¶ Parameters: - filename – name of the file that is being analyzed
- analyzer – the analyzer itself
- doPickling – write the pickled plot data
-
__module__
= 'PyFoam.Execution.AnalyzedCommon'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
addAnalyzer
(name, analyzer)[source]¶ Parameters: - name – name of the LineAnalyzer to add
- analyzer – the analyzer to add
-
addCustomExpressions
(customRegexp, persist=None, start=None, end=None, raiseit=False, writeFiles=False, splitThres=2048, gnuplotTerminal=None, plottingImplementation='dummy')[source]¶
-
addTrigger
(time, func, once=True, until=None)[source]¶ Adds a timed trigger to the Analyzer :param time: the time at which the function should be triggered :param func: the trigger function :param once: Should this function be called once or at every time-step :param until: The time until which the trigger should be called
-
createPlots
(persist=None, raiseit=False, splitThres=2048, plotLinear=True, plotCont=True, plotBound=True, plotIterations=True, plotCourant=True, plotExecution=True, plotDeltaT=True, start=None, end=None, writeFiles=False, customRegexp=None, gnuplotTerminal=None, plottingImplementation='dummy')[source]¶
-