DD Solvers
DD Solvers
The source code of the solver and governing equations solved are described in this section. The source
code of the solver is located in
$FOAM_SOLVERS/heatTransfer/buoyantBoussinesqSimpleFoam
The main source code of the solver is buoyantBoussinesqSimpleFoam.C. It contains several default .H
files included in it.
buoyantBoussinesqSimpleFoam.C
#include "fvCFD.H" This is the standard header file for Finite volume method in OpenFOAM. It in-turn
includes a lot of header files of the classes that are used in the finite volume solvers.
#include "singlePhaseTransportModel.H" This class is for transport model based on the viscosity for
single phase incompressible flows.
#include "turbulentTransportModel.H" This is the abstract base class for incompressible turbulence
models.
#include "radiationModel.H" This Class is for modelling the radiation heat transfer.
#include "fvOptions.H" This is the Class for fvOptions in OpenFOAM such as run time selectable physics
and more.
#include "simpleControl.H" SIMPLE control class to supply convergence information/checks for the
SIMPLE loop.
#include "createTime.H" Checks the runTime according to controlDict and initiates time variables.
The next part of the code includes the solver loop which calculates the fields. The runTime field is set
and the equations for velocity(UEqn), pressure(PEqn) and energy(TEqn) are loaded and solved.
The createFields.H file located in the directory creates the thermo-physical and transport properties as
fields that will be used by solver.
Thermo-physical properties include Temperature (T), velocity (U) and pressure (prgh).
The link between the turbulence model, the transport model and the viscosity model can be explained
as follows.