Skip to content

Latest commit

 

History

History
85 lines (62 loc) · 2.26 KB

README.md

File metadata and controls

85 lines (62 loc) · 2.26 KB

Docker images of OpenFOAM

CI OpenFOAM Docker image Docker Pulls

Docker images of both major distributions of OpenFOAM.

Mutliple versions available.amd64 and arm64 architectures are supported.

Usage

With docker run

Assuming you have Docker installed, the following command will run the image and mount the current directory so that you can access the files in it.

docker run --rm -it -v $PWD:/root -w /root microfluidica/openfoam:tagname

Replace tagname with the desired tag as listed below (or leave the tag empty to get the latest tag).

With OpenFOAM's openfoam-docker launch script

openfoam-docker -image=microfluidica/openfoam:tagname

With Apptainer/Singularity

apptainer run docker://microfluidica/openfoam:tagname

As a base image

Use these images as a base image for your own OpenFOAM-based projects by creating a Dockerfile like the following:

FROM microfluidica/openfoam:tagname

COPY . /usr/local/src/myproject

RUN /usr/local/src/myproject/Allwmake -j -prefix=group \
 && /usr/local/src/myproject/Allwclean

Available tags

openfoam.com

  • latest, com, 2406
  • slim, com-slim, 2406-slim
  • 2312
  • 2312-slim
  • 2306
  • 2306-slim
  • 2212
  • 2212-slim
  • 2206
  • 2206-slim
  • 2112
  • 2112-slim
  • 2106
  • 2106-slim
  • 2012 (amd64 only)
  • 2012-slim (amd64 only)
  • 2006
  • 2006-slim
  • 1912 (amd64 only)
  • 1912-slim (amd64 only)

The slim images don't include the source code, development tools (e.g. a compiler), or tutorial cases.

openfoam.org

  • org, 12
  • 11
  • 10 (amd64 only)
  • 9 (amd64 only)
  • 8 (amd64 only)
  • 7 (amd64 only)
  • 6 (amd64 only)
  • 5 (amd64 only)