PyFoam.Execution.BasicRunner module¶
Run a OpenFOAM command
-
class
PyFoam.Execution.BasicRunner.
BasicRunner
(argv=None, silent=False, logname=None, compressLog=False, lam=None, server=False, restart=False, noLog=False, logTail=None, remark=None, jobId=None, parameters=None, writeState=True, echoCommandLine=None)[source]¶ Bases:
object
Base class for the running of commands
When the command is run the output is copied to a LogFile and (optionally) standard-out
The argument list assumes for the first three elements the OpenFOAM-convention:
<cmd> <dir> <case>
The directory name for outputs is therefor created from <dir> and <case>
Provides some handle-methods that are to be overloaded for additional functionality
-
addEndTrigger
(f)[source]¶ Parameters: f – A function that is to be executed at the end of the simulation
-
getSolutionDirectory
(archive=None)[source]¶ Returns: The directory of the case Return type: PyFoam.RunDictionary.SolutionDirectory Parameters: archive – Name of the directory for archiving results
-