OpenFOAM
An open-source software for computational fluid dynamics (CFD).
OpenFOAM requires an environment module
In order to use OpenFOAM, you must first load the appropriate environment module:
module load gnu openmpi openfoam
OpenFOAM (Open Field Operation and Manipulation) is a powerful, open-source software toolkit for computational fluid dynamics (CFD) and related fields. It offers a range of solvers for simulating fluid flow, heat transfer, turbulence, and chemical reactions.
Using OpenFOAM on RCC Resources#
OpenFOAM is available on the HPC login nodes and can be loaded along with the GNU
and OpenMPI
modules. To use OpenFOAM, you need to load the appropriate modules and set up the environment variables. The following instructions will guide you through the process of loading OpenFOAM on the RCC.
-
Open a terminal window and run the following command to load the OpenFOAM module:
-
To verify that the module has been loaded, run:
You should seeopenfoam/2412
listed among the loaded modules. -
Run the below source command to load the OpenFOAM environment variables:
Example OpenFOAM Job Submission Script#
The following is an example of a Slurm job submission script for running OpenFOAM.
For detailed instructions on job submission, refer to our job submission tutorial.
For more information on how to use OpenFOAM, refer to the official documentation page.