0% found this document useful (0 votes)
64 views3 pages

DD Solvers

The document describes a solver source code in OpenFOAM. It contains the main solver file and header files included. It describes governing equations for velocity, pressure and temperature that are solved. Properties like density, viscosity and turbulence models are also discussed.

Uploaded by

tuan viet nguyen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views3 pages

DD Solvers

The document describes a solver source code in OpenFOAM. It contains the main solver file and header files included. It describes governing equations for velocity, pressure and temperature that are solved. Properties like density, viscosity and turbulence models are also discussed.

Uploaded by

tuan viet nguyen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Solver description

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 "postProcess.H" Executes applications FunctionObjects to postprocess the existing results.

#include "setRootCase.H" Checks the folder structure of the case.

#include "createTime.H" Checks the runTime according to controlDict and initiates time variables.

#include "createMesh.H" Creates the mesh for the runTime.

#include "createControl.H" Defines the solution control algorithm.


#include "createFields.H" Creates the fields for the domain, i.e U, p, T, DT, phi.

#include "createFvOptions.H" Defines the FV options.

#include "initContinuityErrs.H" Declares and initializes the continuity errors

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).

Density is expressed using Boussinesq assumption, given as

The governing equation for velocity is solved in UEqn.H

The energy equation is solved in TEqn.H

The governing equation for temperature


Viscosity models
The five models available in OpenFOAM (four viscosity models for non-Newtonian fluids and one for
Newtonian fluids.)

• BirdCarreu • CrossPowerLaw • HerschelBulkley • Newtonian • powerLaw

The link between the turbulence model, the transport model and the viscosity model can be explained
as follows.

Temperature based viscosity model

You might also like