1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
28 Base-class for all XiEq models used by the b-XiEq combustion model.
29 The available models are :
30 \link basicXiSubXiEq.H \endlink
31 \link Gulder.H \endlink
32 \link instabilityXiEq.H \endlink
33 \link SCOPEBlendXiEq.H \endlink
34 \link SCOPEXiEq.H \endlink
39 \*---------------------------------------------------------------------------*/
44 #include "IOdictionary.H"
45 #include "hhuCombustionThermo.H"
47 #include "runTimeSelectionTables.H"
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 /*---------------------------------------------------------------------------*\
55 Class XiEqModel Declaration
56 \*---------------------------------------------------------------------------*/
65 dictionary XiEqModelCoeffs_;
67 const hhuCombustionThermo& thermo_;
68 const compressible::RASModel& turbulence_;
69 const volScalarField& Su_;
74 // Private Member Functions
76 //- Disallow copy construct
77 XiEqModel(const XiEqModel&);
79 //- Disallow default bitwise assignment
80 void operator=(const XiEqModel&);
85 //- Runtime type information
86 TypeName("XiEqModel");
89 // Declare run-time constructor selection table
91 declareRunTimeSelectionTable
97 const dictionary& XiEqProperties,
98 const hhuCombustionThermo& thermo,
99 const compressible::RASModel& turbulence,
100 const volScalarField& Su
113 //- Return a reference to the selected XiEq model
114 static autoPtr<XiEqModel> New
116 const dictionary& XiEqProperties,
117 const hhuCombustionThermo& thermo,
118 const compressible::RASModel& turbulence,
119 const volScalarField& Su
125 //- Construct from components
128 const dictionary& XiEqProperties,
129 const hhuCombustionThermo& thermo,
130 const compressible::RASModel& turbulence,
131 const volScalarField& Su
137 virtual ~XiEqModel();
142 //- Return the flame-wrinking XiEq
143 virtual tmp<volScalarField> XiEq() const
145 return turbulence_.muEff();
148 //- Update properties from given dictionary
149 virtual bool read(const dictionary& XiEqProperties) = 0;
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 } // End namespace Foam
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
161 // ************************************************************************* //