02 Lectures OpenFOAM Solver Modification
02 Lectures OpenFOAM Solver Modification
January | 2019
OpenFOAM® resources
http://wiki.openfoam.com/Tutorials
Tutorials at OpenFOAM Wiki
http://www.tfd.chalmers.se/~hani/kurser/OS_CFD/
Chalmers University (Sweden)
http://openfoamwiki.net/index.php/Main_Page
Bernhard F.W. Gschaider (Leoben)
http://holzmann-cfd.de/free-material
Tutorial from Holzmann CFD (Germany)
http://www.openfoam.com
Official OpenFOAM® ESI version
http://openfoam.org
The OpenFOAM® Foundation version
http://sourceforge.net/projects/foam-extend/
foam-extend Community Driven Project
Outline
Introduction
Solver structure
3
Navigate through the OpenFOAM® source tree
Outline
Introduction
Solver structure
Make settings with “files” and “options”
Solver folder
Build settings
Header(s)
Main file
Outline
Introduction
Solver structure
icoFoam.C
EXE = $(FOAM_APPBIN)/icoFoam
icoFoam.C
EXE = $(FOAM_USER_APPBIN)/myIcoFoam
Content of the “options” file
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \
-lfiniteVolume \
-lmeshTools
Outline
Introduction
Solver structure
Solver structure
Solver variables
A walk-through the icoFoam
A walk-through the icoFoam
A walk-through the icoFoam
A walk-through the icoFoam
A walk-through the icoFoam
A walk-through the icoFoam
Outline
Introduction
Solver structure
Solver structure
Solver structure