VoFphaseCompressibleTurbulenceModels.C
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2017 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26\*---------------------------------------------------------------------------*/
27
29#include "fluidThermo.H"
31#include "makeTurbulenceModel.H"
32
33#include "ThermalDiffusivity.H"
34#include "EddyDiffusivity.H"
35
36#include "laminarModel.H"
37#include "RASModel.H"
38#include "LESModel.H"
39
40// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41
43(
44 volScalarField,
45 volScalarField,
46 compressibleTurbulenceModel,
47 PhaseCompressibleTurbulenceModel,
48 ThermalDiffusivity,
49 fluidThermo
50);
51
53(
54 volScalarField,
55 volScalarField,
56 compressibleTurbulenceModel,
57 PhaseCompressibleTurbulenceModel,
58 ThermalDiffusivity,
59 fluidThermo
60);
61
62#define makeLaminarModel(Type) \
63 makeTemplatedLaminarModel \
64 (fluidThermoPhaseCompressibleTurbulenceModel, laminar, Type)
65
66#define makeRASModel(Type) \
67 makeTemplatedTurbulenceModel \
68 (fluidThermoPhaseCompressibleTurbulenceModel, RAS, Type)
69
70#define makeLESModel(Type) \
71 makeTemplatedTurbulenceModel \
72 (fluidThermoPhaseCompressibleTurbulenceModel, LES, Type)
73
74
75// -------------------------------------------------------------------------- //
76// Laminar models
77// -------------------------------------------------------------------------- //
78
79#include "Stokes.H"
80makeLaminarModel(Stokes);
81
82#include "Maxwell.H"
83makeLaminarModel(Maxwell);
84
85
86// -------------------------------------------------------------------------- //
87// RAS models
88// -------------------------------------------------------------------------- //
89
90#include "kEpsilon.H"
91makeRASModel(kEpsilon);
92
93#include "kOmegaSST.H"
94makeRASModel(kOmegaSST);
95
96
97// -------------------------------------------------------------------------- //
98// LES models
99// -------------------------------------------------------------------------- //
100
101#include "Smagorinsky.H"
102makeLESModel(Smagorinsky);
103
104#include "kEqn.H"
105makeLESModel(kEqn);
106
107
108// ************************************************************************* //
Macros for easy insertion into run-time selection tables.
#define makeLaminarModel(Type)
#define makeRASModel(Type)
#define makeLESModel(Type)
#define defineTurbulenceModelTypes( Alpha, Rho, baseModel, BaseModel, TDModel, Transport)
Define turbulence model typedefs, with EddyDiffusivity.
#define makeBaseTurbulenceModel( Alpha, Rho, baseModel, BaseModel, TDModel, Transport)