Skip to content

Unofficial OpenFOAM docker images for CfdOF with a choice of OpenFOAM Foundation 10 and OpenCFD/ESI v2306

License

Notifications You must be signed in to change notification settings

kktse/cfdof-openfoam-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unofficial OpenFOAM Docker Images for CfdOF

Unofficial OpenFOAM Docker Images for CfdOF. This lets you to run newer versions of OpenFOAM with CfdOF via Docker. The dockerfile pulls the latest Foundation and OpenCFD/ESI versions of OpenFOAM from Docker Hub, installs gmsh, cfmesh and hisa, and configures a bashrc script to work with CfdOF.

At the time of writing, CfdOF 1.25.13 supports OpenFOAM Foundation 9 to 10, and OpenCFD/ESI v2006 to v2306.

Using pre-built images

Images are built against dockerfile and uploaded to GitHub Container Registry (GHCR). Two image tags are provided.

  • OpenFOAM Foundation 10 - ghcr.io/kktse/cfdof-openfoam:foundation
  • OpenCFD/ESI v2306 - ghcr.io/kktse/cfdof-openfoam:opencfd

To use the pre-built images with CfdOF pull the desired image from GHCR.

$ docker pull ghcr.io/kktse/cfdof-openfoam:foundation
# or
$ docker pull ghcr.io/kktse/cfdof-openfoam:opencfd

WARNING: It is not recommended to pull the Docker image directly from FreeCAD and CfdOF, as it may not download all the necessary image layers.

In FreeCAD, navigate to the CfdOF preferences page by navigating to Edit > Preferences > CfdOf. In the Software dependencies > Docker Container section, toggle Use docker to true, and specify the "Download from URL" path to the desired image name. For example, to use the OpenFOAM Foundation 10 image, set the "Download from URL" field to ghcr.io/kktse/cfdof-openfoam:foundation. Proceed as usual to install the Docker container runtime per the CfdOF instructions.

Building locally

To build the image manually, run the following command.

$ DOCKER_BUILDKIT=1 docker build --build-arg="TARGET=foundation" -f dockerfile .
# or
$ docker build --build-arg="TARGET=foundation" -f dockerfile .

The OpenFOAM distribution can be selected with the TARGET argument. Two options are available: foundation and opencfd. These correspond to the following base images:

In FreeCAD, navigate to the CfdOF preferences page by navigating to Edit > Preferences > CfdOf. In the Software dependencies > Docker Container section, toggle Use docker to true, and specify the "Download from URL" path to the image ID of the built image. Click on "Install Docker Container" and ignore the error message, "Error response from daemon: pull access denied". Proceed as usual to install the Docker container runtime per the CfdOF instructions.

Reverting to the default CfdOF Docker image

The default image URL used by CfdOF is docker.io/mmcker/cfdof-openfoam.

In FreeCAD, navigate to the CfdOF preferences page by navigating to Edit > Preferences > CfdOf. In the Software dependencies > Docker Container section, toggle Use docker to true, and specify the "Download from URL" path as docker.io/mmcker/cfdof-openfoam.

Installation sources

Foundation images are based on openfoam/openfoam10-paraview56:10. gmsh is installed from the Ubuntu Focal 20.04 LTS repositories, which at the time of writing is version 4.4.1

OpenCFD/ESI images are based on opencfd/openfoam-default:2306. gmsh is installed from the Ubuntu Jammy 22.04 LTS repositories, which at the time of writing is version 4.8.4

cfmesh is compiled from source from cfMesh-CfdOF.

hisa is compiled from source from HiSA.

About

Unofficial OpenFOAM docker images for CfdOF with a choice of OpenFOAM Foundation 10 and OpenCFD/ESI v2306

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages