If no further execution scripts are provided, you will always have to run blockMesh, for the mesh creation, and afterwards your solver of choice, icoFoam in our case. Simple blockMesh/mySolverFoam tutorials For a common case such as lid-driven cavity flow (you can find it in $FOAM_RUN/tutorials/incompressible/icoFoam/cavity/), the directory contains system, constant, and 0. Thses 3 ways are briefly descrided as follow, see this article for further detail.
#OPENFOAM DOXYGEN FULL#
It also contains wmake, a special make command which understand the OpenFOAM file structure. Wmake: Compiler settings are included in this directory incluiding optimisation flags. Platforms: Contains the binaries of the applications (bin) and dynamic libraries. turbulenceModels Contains many libraries for turbulence models.īin: The bin directory contains shell scripts, such as paraFoam,foamNew, foamLog.ĭoc: The doc directory contains the documentation of OpenFOAM, such as Programmers Guide, User Guide, and Doxygen generated documentation in html format etc.Įtc: Theetcdirectory contains environment set-up files, global controlDict, and default thermoData.OpenFOAM This core library includes the definitions of the containers used for the operations, the field definitions, the declaration of the mesh and of all the mesh features such as zones and sets.
In cfdTools/general/include/ you also find the very important file fvCFD.H, which is included in most applications. finiteVolume This library provides all the classes needed for the finiteVolume discretization, such as the fvMesh class, finiteVolume discretization operators (divergence, laplacian, gradient, and fvc/fvm), and boundary conditions ( fields/fvPatchFields).
#OPENFOAM DOXYGEN CODE#
Src: The src directory contains several subdirectories which include the the source code for all the libraries. Tutorials: Contains tutorials that demonstrate thr usage of all solvers and most of the utilities. Note: there is also an Allwmake script, which will compile all the contents of solvers and utilities. Utilities Contains source code to perform pre- and post-processing tasks involving data manipulations and algebraic manipulations.tests Contains source code that test and show example of the usage of some OpenFOAM libraries.solvers Contains source code for the distributed solvers.Here is a short description of the directories under applications. applications: The directory contains the source files of all the executables which is created using the C++ libraries.All the directories are introduced as follow: You can also find other files in this directory, but most importantly one is Allwmake which compiles all of OpenFOAM by calling other Allwmake scripts. This show you the folders in the $WM_PROJECT_DIR(installation dirctory). Let's start from the installation dirctory, you can use the Linux command "tree" to examine the source code directory organization.