Get Started with OpenFoam v1906

OpenFOAM (for "Open-source Field Operation And Manipulation") is a C++ toolbox for the development of customized numerical solvers, and pre-/post-processing utilities for the solution of continuum mechanics problems, including computational fluid dynamics (CFD).

1. Download OpenFOAM v1906 from below links:


$ wget https://sourceforge.net/projects/openfoam/files/v1906/OpenFOAM-v1906.tgz
$ wget https://sourceforge.net/projects/openfoam/files/v1906/ThirdParty-v1906.tgz


2. Extract the files and edit OpenFOAM-v1906/etc/bashrc to suit your configuration.  See OpenFoam v1906 /etc/bashrc file for details.


3. Make sure to set WM_LABEL_SIZE=32 & WM_PRECISION_OPTION=DP


4. Source the OpenFOAM environment by executing, e.g. for bash shells:

% source ~/OpenFOAM/OpenFOAM-v1812/etc/bashrc


5. Build OpenFOAM

% cd $WM_PROJECT_DIR && ./Allwmake


6. Try sample test cases under OpenFOAM-v1812/tutorials/incompressible/simpleFoam.


7. Copy one of the cases and decompose the data before running OpenFOAM.

% cd <input dir>
% mpirun --hostfile hostfile simpleFoam -parallel


For the ISC19 Student competition, we will provide an input data, which will include default mesh so no need to run blockMesh.
We will measure the time as difference in time for last iteration and first iteration run time, and check the residuals.