Skip to main content

1.4.2.4 OpenFOAM

OpenFOAM (Open Field Operation and Manipulation) is an open-source computational fluid dynamics (CFD) software package used for simulating fluid flow and heat transfer phenomena. OpenFOAM provides a range of numerical methods and algorithms for solving fluid dynamics problems, supporting simulations of various flows and heat transfer scenarios, including incompressible flow, multiphase flow, turbulence, and more.

Steps to Start OpenFOAM:

  1. Establish a working directory:

    mkdir ~/openfoam-data
  2. Load the OpenFOAM tool:

    module load openfoam
  3. Submit a job:

    bsub -Is -n 8 -m cpu01 openfoam11

Tutorials and Simple Video Guide:

  1. Copy tutorials to your working directory:

    mkdir $FOAM_RUN
    cd $FOAM_RUN
    cp -r $FOAM_TUTORIALS .
  2. Run the pitzDaily tutorial:

    cd ./tutorials/incompressible/simpleFoam/pitzDaily
    blockMesh
    simpleFoam
    paraFoam

For more detailed information, refer to the following resources: