DAFoam
v3.0.6
Discrete Adjoint with OpenFOAM
dafoam
src
adjoint
models
SpalartAllmarasFv3
makeSpalartAllmarasFv3Incompressible.C
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
3
DAFoam : Discrete Adjoint with OpenFOAM
4
Version : v3
5
6
This file is modified from OpenFOAM's source code
7
src/TurbulenceModels/incompressible/turbulentTransportModels/turbulentTransportModels.H
8
9
OpenFOAM: The Open Source CFD Toolbox
10
11
Copyright (C): 2011-2016 OpenFOAM Foundation
12
13
OpenFOAM License:
14
15
OpenFOAM is free software: you can redistribute it and/or modify it
16
under the terms of the GNU General Public License as published by
17
the Free Software Foundation, either version 3 of the License, or
18
(at your option) any later version.
19
20
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
21
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23
for more details.
24
25
You should have received a copy of the GNU General Public License
26
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
27
28
\*---------------------------------------------------------------------------*/
29
30
#include "IncompressibleTurbulenceModel.H"
31
#include "transportModel.H"
32
#include "addToRunTimeSelectionTable.H"
33
#include "makeTurbulenceModel.H"
34
35
#include "RASModel.H"
36
#include "LESModel.H"
37
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
38
#define createBaseTurbulenceModel(Alpha, Rho, baseModel, BaseModel, Transport) \
39
\
40
namespace Foam \
41
{ \
42
typedef BaseModel<Transport> Transport##BaseModel; \
43
typedef RASModel<Transport##BaseModel> RAS##Transport##BaseModel; \
44
typedef LESModel<Transport##BaseModel> LES##Transport##BaseModel; \
45
}
46
createBaseTurbulenceModel
(
47
geometricOneField,
48
geometricOneField,
49
incompressibleTurbulenceModel,
50
IncompressibleTurbulenceModel,
51
transportModel);
52
#define makeRASModel(Type) \
53
makeTemplatedTurbulenceModel(transportModelIncompressibleTurbulenceModel, RAS, Type)
54
#define makeLESModel(Type) \
55
makeTemplatedTurbulenceModel(transportModelIncompressibleTurbulenceModel, LES, Type)
56
57
#include "
SpalartAllmarasFv3.H
"
58
makeRASModel
(SpalartAllmarasFv3);
59
60
// ************************************************************************* //
SpalartAllmarasFv3.H
createBaseTurbulenceModel
#define createBaseTurbulenceModel(Alpha, Rho, baseModel, BaseModel, Transport)
Definition:
makeSpalartAllmarasFv3Incompressible.C:38
makeRASModel
#define makeRASModel(Type)
Definition:
makeSpalartAllmarasFv3Incompressible.C:52
Generated by
1.8.17