17 description="""
18 Runs a OpenFoam Utility and analyzes the output. Needs a regular
19 expression to look for. The next 3 arguments are the usual OpenFoam
20 argumens (<solver> <directory> <case>) and passes them on (plus
21 additional arguments). Output is sent to stdout and a logfile inside
22 the case directory (PyFoamUtility.logfile). The Directory
23 PyFoamUtility.analyzed contains a file test with the information of
24 the regexp (the pattern groups).
25 """
26
27 PyFoamApplication.__init__(self,args=args,description=description)
28
30 self.parser.add_option("-r",
31 "--regexp",
32 type="string",
33 dest="regexp",
34 help="The regular expression to look for")
35
36 self.parser.add_option("-n",
37 "--name",
38 type="string",
39 dest="name",
40 default="test",
41 help="The name for the resulting file")
42
43 self.parser.add_option("--echo",
44 action="store_true",
45 dest="echo",
46 default=False,
47 help="Echo the result file after the run")
48
49 self.parser.add_option("--silent",
50 action="store_true",
51 dest="silent",
52 default=False,
53 help="Don't print the output of the utility to the console")
54
55 self.parser.add_option("--foamVersion",
56 dest="foamVersion",
57 default=None,
58 help="Change the OpenFOAM-version that is to be used")
59