1 Short description
A python utility for running SLURM jobs with pyFoam commands as the run program.
sfoam.py is called from the command line very much like the srun command.
sfoam.py -n 16 --main pyFoamPlotRunner.py --machine_file machinesPy --name case1_SimpleFoam --solver simpleFoam
sfoam.py -n 16 --main pyFoamRunner.py--name case1_SimpleFoam
The --machine_file can be ommited, and then the script looks for the machine file created by salloc and creates a machine file in the syntax the pyFoam running utilities (pyFoamRunner.py, pyFoamPlotRunner.py) use to direct it to the nodes salloc allocated for this run. Also, the default solver is simpleFoam. Using sfoam.py for running pyFoamRunner.py (for example) allows everybody else using the cluster to see the run as part of the SLURM system.
Get the most recent version here: https://github.com/hananel/sfoam