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 from CommonLibFunctionTrigger import CommonLibFunctionTrigger
13
17 description="""
18 Runs an OpenFoam utility that manipulates meshes. Needs the usual 3
19 arguments (<solver> <directory> <case>) and passes them on (plus additional arguments).
20
21 Output is sent to stdout and a logfile inside the case directory
22 (PyFoamMeshUtility.logfile)
23
24 Before running it clears all timesteps but the first.
25
26 After the utility ran it moves all the data from the polyMesh-directory
27 of the first time-step to the constant/polyMesh-directory
28
29 ATTENTION: This utility erases quite a lot of data without asking and
30 should therefor be used with care
31 """
32
33 PyFoamApplication.__init__(self,
34 exactNr=False,
35 args=args,
36 description=description)
37
40
71