OpenFOAM


OpenFOAM is installed and available for use on EPYC cluster

<HTML> </br> </HTMLInstallation folder:

/opt/share/modules/openfoam/openfoam

Step 0: Load openmpi module

module load openmpi/gcc/4.1.0

Step 1: Source openfoam

source /opt/share/modules/openfoam/openfoam/etc/bashrc

Step 2 (Run tutorial):

The OpenFOAM GitLab repository can be found at this link. Please note, you may have to register for a user account to be able to clone this repository.

cd <openfoam-repo>/tutorials/incompressible/pimpleFoam/LES/decayIsoTurb
./Allrun

(Alternatively) Run in parallel using mpirun:

Edit the Allrun script to comment out the last line:

# runParallel pimpleFoam

And run the following command:

mpirun -np <n_procs> pimpleFoam -parallel

Also can be run in parallel across nodes:

mpirun --mca --hostfile ~/machines -np 8 pimpleFoam -parallel

with contents of machine file:

epyc01
epyc02
epyc03
epyc04
epyc05
epyc06
epyc07
epyc08