Package PyFoam :: Package LogAnalysis :: Module TimeLineAnalyzer :: Class TimeLineAnalyzer
[show private | hide private]
[frames | no frames]

Class TimeLineAnalyzer

LogLineAnalyzer --+
                  |
                 TimeLineAnalyzer


Parses the line for the current time and makes it available to the parent analyzer (who makes it available to all of his children). This side-effect is important for all the other line-analyzers that need the time
Method Summary
  __init__(self, progress)
Constructs the analyzer
  doAnalysis(self, line)
Analyze a line
    Inherited from LogLineAnalyzer
  getTime(self)
Return current time
  goOn(self)
If the analyzer thinks the simulation should be stopped (for instance because of convergence) it returns false
  setDirectory(self, oDir)
Set the directory to which output is to be written (if any output is written)
  setParent(self, parent)
Introduces the LineAnalyzer to its supervisor

Class Variable Summary
str timeRegExp = '^Time = (.+)$'

Method Details

__init__(self, progress=False)
(Constructor)

Constructs the analyzer
Parameters:
progress - whether to print the time on the console
Overrides:
PyFoam.LogAnalysis.LogLineAnalyzer.LogLineAnalyzer.__init__

doAnalysis(self, line)

Analyze a line

line - the line to be analyzed

This method carries the main functionality in the sub-classes
Overrides:
PyFoam.LogAnalysis.LogLineAnalyzer.LogLineAnalyzer.doAnalysis (inherited documentation)

Class Variable Details

timeRegExp

Type:
str
Value:
'^Time = (.+)$'                                                        

Generated by Epydoc 2.1 on Mon Feb 6 22:31:21 2006 http://epydoc.sf.net