Skip to content

Describe how to run OpenFOAM using a singularity container on a slurm cluster

License

Notifications You must be signed in to change notification settings

jaimesouza/openfoam-singularity

Repository files navigation

OpenFOAM on Singularity

Describe how to run OpenFOAM using a singularity container on a slurm cluster. The procedure below was tested on Ubuntu.

Build the OpenFOAM singularity container

First we need to create a singularity definition file to build a container with OpenFOAM installation.

For example, we can create the openfoam.def file.

The singularity build command will build the singularity container image (openfoam.sif)

singularity build -f openfoam.sif openfoam.def

Run MotorBike example

Now we can run the OpenFOAM motorBike example using the following job scripts:

OpenFOAM uses MPI for parallelism. So, the environment must have some MPI implementation installed. The above scripts have been tested with OpenMPI.

Visualization on Paraview

When the calculation is done, the results can be viewed in paraview, using the following command inside the motorBike folder:

singularity run ../openfoam.sif paraFoam

About

Describe how to run OpenFOAM using a singularity container on a slurm cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages