konradmalik / openfoam222-docker

This repo contains scripts to install and run OpenFoam 2.2.2 on docker.

Home Page:https://hub.docker.com/r/konradmalik/openfoam222/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

This repo contains scripts to install and run OpenFoam 2.2.2 on docker.

https://hub.docker.com/r/konradmalik/openfoam222/


Languages

Language:Shell 93.2%Language:Dockerfile 6.8%