PyFoam.Execution.FoamThread module¶
Thread wrappers for OpenFOAM
-
class
PyFoam.Execution.FoamThread.
FoamThread
(cmdline, runner)[source]¶ Bases:
threading.Thread
Thread 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
-
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