phaseCompressibleTurbulenceModels.C 4.29 KB
Newer Older
1 2 3 4
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
OpenFOAM bot's avatar
OpenFOAM bot committed
5
    \\  /    A nd           | www.openfoam.com
6
     \\/     M anipulation  |
OpenFOAM bot's avatar
OpenFOAM bot committed
7
-------------------------------------------------------------------------------
OpenFOAM bot's avatar
OpenFOAM bot committed
8
    Copyright (C) 2014-2016 OpenFOAM Foundation
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
-------------------------------------------------------------------------------
License
    This file is part of OpenFOAM.

    OpenFOAM is free software: you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    for more details.

    You should have received a copy of the GNU General Public License
    along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.

\*---------------------------------------------------------------------------*/

28
#include "PhaseCompressibleTurbulenceModel.H"
29
#include "phaseModel.H"
30
#include "twoPhaseSystem.H"
31
#include "addToRunTimeSelectionTable.H"
32
#include "makeTurbulenceModel.H"
33

34 35 36
#include "ThermalDiffusivity.H"
#include "EddyDiffusivity.H"

37
#include "laminarModel.H"
38
#include "RASModel.H"
39
#include "LESModel.H"
40

41 42
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

43
defineTurbulenceModelTypes
44 45 46 47 48 49 50 51 52
(
    volScalarField,
    volScalarField,
    compressibleTurbulenceModel,
    PhaseCompressibleTurbulenceModel,
    ThermalDiffusivity,
    phaseModel
);

53 54 55
makeBaseTurbulenceModel
(
    volScalarField,
56 57 58
    volScalarField,
    compressibleTurbulenceModel,
    PhaseCompressibleTurbulenceModel,
59
    ThermalDiffusivity,
60 61
    phaseModel
);
62

63 64 65 66
#define makeLaminarModel(Type)                                                 \
    makeTemplatedLaminarModel                                                  \
    (phaseModelPhaseCompressibleTurbulenceModel, laminar, Type)

67 68
#define makeRASModel(Type)                                                     \
    makeTemplatedTurbulenceModel                                               \
69
    (phaseModelPhaseCompressibleTurbulenceModel, RAS, Type)
70

71 72
#define makeLESModel(Type)                                                     \
    makeTemplatedTurbulenceModel                                               \
73
    (phaseModelPhaseCompressibleTurbulenceModel, LES, Type)
74

75 76 77 78 79

// -------------------------------------------------------------------------- //
// Laminar models
// -------------------------------------------------------------------------- //

80 81 82
#include "Stokes.H"
makeLaminarModel(Stokes);

83 84 85 86 87

// -------------------------------------------------------------------------- //
// RAS models
// -------------------------------------------------------------------------- //

88 89
#include "kEpsilon.H"
makeRASModel(kEpsilon);
90

Henry's avatar
Henry committed
91 92 93 94 95 96
#include "kOmegaSST.H"
makeRASModel(kOmegaSST);

#include "kOmegaSSTSato.H"
makeRASModel(kOmegaSSTSato);

Henry's avatar
Henry committed
97 98 99
#include "mixtureKEpsilon.H"
makeRASModel(mixtureKEpsilon);

100 101
#include "LaheyKEpsilon.H"
makeRASModel(LaheyKEpsilon);
102

103 104
#include "continuousGasKEpsilon.H"
makeRASModel(continuousGasKEpsilon);
105

106 107 108 109 110

// -------------------------------------------------------------------------- //
// LES models
// -------------------------------------------------------------------------- //

111 112
#include "Smagorinsky.H"
makeLESModel(Smagorinsky);
113

114 115
#include "kEqn.H"
makeLESModel(kEqn);
116

117 118
#include "SmagorinskyZhang.H"
makeLESModel(SmagorinskyZhang);
119

120 121
#include "NicenoKEqn.H"
makeLESModel(NicenoKEqn);
122

123 124
#include "continuousGasKEqn.H"
makeLESModel(continuousGasKEqn);
125

126 127 128 129 130

// -------------------------------------------------------------------------- //
// Additional models
// -------------------------------------------------------------------------- //

131
#include "kineticTheoryModel.H"
132
makeTurbulenceModel
133
(phaseModelPhaseCompressibleTurbulenceModel, RAS, kineticTheoryModel);
134

135
#include "phasePressureModel.H"
136
makeTurbulenceModel
137
(phaseModelPhaseCompressibleTurbulenceModel, RAS, phasePressureModel);
138

139

140
// ************************************************************************* //