There are two variants of OpenFOAM, one from openfoam.org and one from openfoam.com. Currently, we only have the openfoam.org version installed.
Load the software into your command line path
module load openfoam.org
Note that other versions may be available. Run module avail
to see what versions you can use.
OpenFOAM is installed as a software container, which means you’ll need to run it a little differently than other software packages. After loading the software into your path as instructed above, you should precede any OpenFOAM commands with openfoam
. For example, to run the blockMesh
command, you’d run
openfoam blockMesh
Additionally, if you want to run OpenFOAM interactively, you can run the openfoam
command to start the OpenFOAM container, and then run your OpenFOAM commands at the subsequent prompt. E.g.
[username@bisonnet-hpc ~]$ srun -N 1 -n 4 -p short --pty /bin/bash
[username@bn-hpc-10 ~]$ module load openfoam.org
[username@bn-hpc-10 ~]$ openfoam
OpenFOAM:~$ blockMesh