1
2 """
3 Application class that implements pyFoamMeshUtilityRunner
4 """
5
6 from os import listdir,path,system
7
8 from PyFoamApplication import PyFoamApplication
9
10 from PyFoam.Execution.BasicRunner import BasicRunner
11 from PyFoam.RunDictionary.SolutionDirectory import SolutionDirectory
12
13 from CommonLibFunctionTrigger import CommonLibFunctionTrigger
14 from CommonServer import CommonServer
15
16 -class MeshUtilityRunner(PyFoamApplication,
17 CommonServer,
18 CommonLibFunctionTrigger):
20 description="""
21 Runs an OpenFoam utility that manipulates meshes. Needs the usual 3
22 arguments (<solver> <directory> <case>) and passes them on (plus additional arguments).
23
24 Output is sent to stdout and a logfile inside the case directory
25 (PyFoamMeshUtility.logfile)
26
27 Before running it clears all timesteps but the first.
28
29 After the utility ran it moves all the data from the polyMesh-directory
30 of the first time-step to the constant/polyMesh-directory
31
32 ATTENTION: This utility erases quite a lot of data without asking and
33 should therefor be used with care
34 """
35
36 PyFoamApplication.__init__(self,
37 exactNr=False,
38 args=args,
39 description=description)
40
44
79