PyFoam.LogAnalysis.FoamLogAnalyzer module¶
Analyze OpenFOAM logs
-
class
PyFoam.LogAnalysis.FoamLogAnalyzer.
FoamLogAnalyzer
(progress=False)[source]¶ Bases:
object
Base class for all analyzers
Administrates and calls a number of LogLineAnlayzers for each line
-
__dict__
= mappingproxy({'__init__': <function FoamLogAnalyzer.__init__>, 'getAnalyzer': <function FoamLogAnalyzer.getAnalyzer>, '__module__': 'PyFoam.LogAnalysis.FoamLogAnalyzer', 'checkTriggers': <function FoamLogAnalyzer.checkTriggers>, 'hasAnalyzer': <function FoamLogAnalyzer.hasAnalyzer>, 'analyzeLine': <function FoamLogAnalyzer.analyzeLine>, 'setDirectory': <function FoamLogAnalyzer.setDirectory>, '__dict__': <attribute '__dict__' of 'FoamLogAnalyzer' objects>, 'listAnalyzers': <function FoamLogAnalyzer.listAnalyzers>, 'addAnalyzer': <function FoamLogAnalyzer.addAnalyzer>, 'analyze': <function FoamLogAnalyzer.analyze>, '__weakref__': <attribute '__weakref__' of 'FoamLogAnalyzer' objects>, 'collectData': <function FoamLogAnalyzer.collectData>, '__doc__': 'Base class for all analyzers\n\n Administrates and calls a number of LogLineAnlayzers for each\n line', 'addTimeListener': <function FoamLogAnalyzer.addTimeListener>, 'tearDown': <function FoamLogAnalyzer.tearDown>, 'addTrigger': <function FoamLogAnalyzer.addTrigger>, 'getDirectory': <function FoamLogAnalyzer.getDirectory>, 'goOn': <function FoamLogAnalyzer.goOn>, 'getTime': <function FoamLogAnalyzer.getTime>, 'setTime': <function FoamLogAnalyzer.setTime>, 'writeProgress': <function FoamLogAnalyzer.writeProgress>})¶
-
__module__
= 'PyFoam.LogAnalysis.FoamLogAnalyzer'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
addAnalyzer
(name, obj)[source]¶ Adds an analyzer
obj - A LogLineAnalyzer name - the name of the analyzer
-
addTimeListener
(listener)[source]¶ Parameters: listener – An object that is notified when the time changes. Has to implement a timeChanged method
-
addTrigger
(time, func, once=True, until=None)[source]¶ Adds a trigger function that is to be called as soon as the simulation time exceeds a certain value :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
-
collectData
()[source]¶ Collect dictionaries of collected data (current state) from the analyzers :return: the dictionary
-