Contrib sfoam

From OpenFOAMWiki
Revision as of 10:49, 14 October 2012 by Hananlevy (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Valid versions: OF Version 21.png

1 Short description

A python utility for running SLURM jobs with pyFoam commands as the run program.

2 Usage

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.

3 Download

Get the most recent version here: https://github.com/hananel/sfoam

4 History

--Hananlevy (talk) 12:49, 14 October 2012 (CEST)