Contrib sfoam

From OpenFOAMWiki

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 is called from the command line very much like the srun command. -n 16 --main --machine_file machinesPy --name case1_SimpleFoam --solver simpleFoam -n 16 --main 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 (, use to direct it to the nodes salloc allocated for this run. Also, the default solver is simpleFoam. Using for running (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:

4 History

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