makekOmegaFieldInversionOmegaCompressible.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/compressible/turbulentFluidThermoModels/turbulentFluidThermoModels.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 "CompressibleTurbulenceModel.H"
31 #include "compressibleTransportModel.H"
32 #include "fluidThermo.H"
33 #include "addToRunTimeSelectionTable.H"
34 #include "makeTurbulenceModel.H"
35 
36 #include "ThermalDiffusivity.H"
37 #include "EddyDiffusivity.H"
38 
39 #include "RASModel.H"
40 #include "LESModel.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 #define createBaseTurbulenceModel( \
44  Alpha, Rho, baseModel, BaseModel, TDModel, Transport) \
45  \
46  namespace Foam \
47  { \
48  typedef TDModel<BaseModel<Transport>> \
49  Transport##BaseModel; \
50  typedef RASModel<EddyDiffusivity<Transport##BaseModel>> \
51  RAS##Transport##BaseModel; \
52  typedef LESModel<EddyDiffusivity<Transport##BaseModel>> \
53  LES##Transport##BaseModel; \
54  }
55 
57  geometricOneField,
58  volScalarField,
59  compressibleTurbulenceModel,
60  CompressibleTurbulenceModel,
61  ThermalDiffusivity,
62  fluidThermo);
63 
64 #define makeRASModel(Type) \
65  makeTemplatedTurbulenceModel(fluidThermoCompressibleTurbulenceModel, RAS, Type)
66 
67 #define makeLESModel(Type) \
68  makeTemplatedTurbulenceModel(fluidThermoCompressibleTurbulenceModel, LES, Type)
69 
71 makeRASModel(kOmegaFieldInversionOmega);
72 
73 // ************************************************************************* //
kOmegaFieldInversionOmega.H
makeRASModel
#define makeRASModel(Type)
Definition: makekOmegaFieldInversionOmegaCompressible.C:64
createBaseTurbulenceModel
#define createBaseTurbulenceModel( Alpha, Rho, baseModel, BaseModel, TDModel, Transport)
Definition: makekOmegaFieldInversionOmegaCompressible.C:43