Skip to content

konradmalik/openfoam222-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenFoam 2.2.2 in docker

Please note that this repo reuses publicly available scripts and the following instruction created by OpenCFD. Scripts and the instruction were modified according to my needs and to run OpenFoam 2.2.2.

This instruction assumes that you have a working docker on your system.

How-to

Note that you may need to mark the install and start scripts as executable.

1. Run the installOpenFOAM222 script.

This will download an image from my repo and setup a container.

2. To run OpenFoam run the "startOpenFOAM222" script.

3. "Getting started" instruction from OpenFOAM website.

Use it to check if everything is working well.

Getting Started

Create a project directory within the $HOME/OpenFOAM directory named -2.2.2 (e.g. chris-2.2.2 for user chris and OpenFOAM version 2.2.2) and create a directory named run within it, e.g. by typing:

mkdir -p $FOAM_RUN

Copy across the backward facing step example, generate the mesh with blockMesh and run the steady flow, incompressible solver simpleFoam

cd $FOAM_RUN
cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily .
cd pitzDaily
blockMesh
simpleFoam
paraFoam

Releases

No releases published

Packages

No packages published