1
2 """Basic log analyer with boundedness"""
3
4 from StandardLogAnalyzer import StandardLogAnalyzer
5
6 from BoundingLineAnalyzer import GeneralBoundingLineAnalyzer
7 from SimpleLineAnalyzer import GeneralSimpleLineAnalyzer
8
9 from PyFoam.FoamInformation import foamVersionNumber
10
12 """
13 This analyzer also checks for bounded solutions
14 """
15 - def __init__(self,progress=False,doTimelines=False,doFiles=True):
16 """
17 @param progress: Print time progress on console?
18 """
19 StandardLogAnalyzer.__init__(self,progress=progress,doTimelines=doTimelines,doFiles=doFiles)
20
21 self.addAnalyzer("Bounding",GeneralBoundingLineAnalyzer(doTimelines=doTimelines,doFiles=doFiles))
22
23 if foamVersionNumber()<(1,4):
24 courantExpression="^Mean and max Courant Numbers = (.+) (.+)$"
25 else:
26 courantExpression="^Courant Number mean: (.+) max: (.+)$"
27
28 self.addAnalyzer("Courant",GeneralSimpleLineAnalyzer("courant",courantExpression,titles=["mean","max"],doTimelines=doTimelines,doFiles=doFiles))
29
31 """
32 This analyzer also checks for bounded solutions
33 """
36
37
38
39