Targeted for cluster and workstation usage. Runs on Apptainer and AlmaLinux enabling near bare metal performance on HPCs, circumventing tedious compilation on each machine by employing a container.
You need an Apptainer installation.
| OS | Command |
|---|---|
| Spack | spack load apptainer |
| Ubuntu | sudo add-apt-repository -y ppa:apptainer/ppasudo apt update -y && sudo apt install -y software-properties-common apptainer |
| Debian | cd /tmpwget https://github.com/apptainer/apptainer/releases/download/v1.1.8/apptainer_1.1.8_amd64.deb sudo apt install -y ./apptainer_1.1.8_amd64.deb |
| RHEL / Fedora | sudo yum install -y epel-releasesudo yum install -y apptainer |
It is recommended to create a directory in your home directory where you store the container.
mkdir -p ~/containers && cd ~/containers
apptainer pull library://inflowencer/openfoam/openfoam:2212Every example includes a fully automated script for executing the case either locally or with a job manager such as SLURM.
| Example | Description |
|---|---|
| DES of surface-mounted cube | Based on OpenFOAM tutorial case of a surface mounted cube at Re = 40'000 |
| Supersonic free jet | Mach 3 underexpanded jet exiting an elliptical nozzle |
| LES of high-lift airfoil | High-lift airfoil of a wind turbine at Re = 800'000 |
Some clusters prefer the .simg format instead of .sif due to image mounting on nodes. Therefore it is advisable to
convert the container after you have installed it using
apptainer build --sandbox openfoam.simg openfoam.sifand instead use the openfoam.simg container when running on a cluster.
- The
openfoam.deffile includes the build commands for creating the container - Use
make allto