PyFoam.Execution.FoamThread module
Thread wrappers for OpenFOAM
- class PyFoam.Execution.FoamThread.FoamThread(cmdline, runner)[source]
Bases:
ThreadThread running an OpenFOAM command
The output of the command can be accessed in a thread-safe manner, line by line
Designed to be used by the BasicRunner-class
- __init__(cmdline, runner)[source]
:param cmdline:cmdline - Command line of the OpenFOAM command :param runner: the Runner-object that started this thread
- __module__ = 'PyFoam.Execution.FoamThread'
- PyFoam.Execution.FoamThread.checkForStopFile(thrd)[source]
Checks for the file ‘stop’ in the directory of the FoamRun. If it exists it is removed and the run is stopped gracefully
If a file ‘write’ is found then the next timestep is written
File ‘stopWrite’ stops the run at the next write
‘kill’ stops without writing