-
55
pages
-
English
-
Documents
Description
POLITECNICO DI MILANO CHALMERSOpenFOAM programming tutorialTommaso LucchiniDepartment of EnergyPolitecnico di MilanoTommaso Lucchini/ OpenFOAM programming tutorialPOLITECNICO DI MILANO CHALMERSOutline• Overview of the OpenFOAM structure• A look at icoFoam• Customizing an application• Implementing a transport equation in a new application• Customizing a boundary condition• General informationTommaso Lucchini/ OpenFOAM programming tutorialPOLITECNICO DI MILANO CHALMERSStructure of OpenFOAMThe OpenFOAM code is structures as follows (typefoam and thenls).• applications: source files of all the executables:◮ solvers◮ utilities◮ bin◮ test• bin: basic executable scripts.• doc: pdf and Doxygen documentation.◮ Doxygen◮ Guides-a4• lib: compiled libraries.• src: source library files.• test: library test source files.• tutorials: tutorial cases.• wmake: compiler settings.Tommaso Lucchini/ OpenFOAM programming tutorialPOLITECNICO DI MILANO CHALMERSStructure of OpenFOAMNavigating the source code• Some useful commands to navigate inside the OpenFOAM sources:◮ app =$WM_PROJECT_DIR/applications◮ sol =$WM_PROJECT_DIR/applications/solvers◮ util =$WM_PROJECT_DIR/applications/utilities◮ src =$WM_PROJECT_DIR/src• Environment variables:◮ $FOAM_APP = $WM_PROJECT_DIR/applications◮ $FOAM_SOLVERS = $WM_PROJECT_DIR/applications/solvers◮ $FOAM_UTILITIES = $WM_PROJECT_DIR/applications/utilities◮ $FOAM_SRC = $WM_PROJECT_DIR/src• OpenFOAM source code serves ...
-
Publié par
-
Langue
English