1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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/>.
25 Foam::XiGModel::basicSubGrid
30 Basic sub-grid obstacle flame-wrinking generation rate coefficient model.
31 Details supplied by J Puttock 2/7/06.
33 \f$ G_{sub} \f$ denotes the generation coefficient and it is given by
36 G_{sub} = k_{1} /frac{\vert \dwea{\vec{U}} \vert}{L_{obs}}
37 \frac{/Xi_{{sub}_{eq}}-1}{/Xi_{sub}}
42 \f[ - k_{1} /frac{\vert \dwea{\vec{U}} \vert}{L_{sub}}
43 \frac{\Xi_{sub}-1}{\Xi_{sub}} \f]
45 Finally, \f$ G_{sub} \f$ is added to generation rate \f$ G_{in} \f$
46 due to the turbulence.
52 \*---------------------------------------------------------------------------*/
54 #ifndef basicSubGrid_H
55 #define basicSubGrid_H
59 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
66 /*---------------------------------------------------------------------------*\
67 Class basicSubGrid Declaration
68 \*---------------------------------------------------------------------------*/
76 //- Sub-grid generation rate coefficient
79 //- Xi generation rate model due to turbulence
80 autoPtr<XiGModel> XiGModel_;
83 // Private Member Functions
85 //- Disallow copy construct
86 basicSubGrid(const basicSubGrid&);
88 //- Disallow default bitwise assignment
89 void operator=(const basicSubGrid&);
94 //- Runtime type information
95 TypeName("basicSubGridG");
100 //- Construct from components
103 const dictionary& XiGProperties,
104 const hhuCombustionThermo& thermo,
105 const compressible::RASModel& turbulence,
106 const volScalarField& Su
111 virtual ~basicSubGrid();
116 //- Return the flame-wrinking generation rate
117 virtual tmp<volScalarField> G() const;
119 //- Return the flame diffusivity
120 virtual tmp<volScalarField> Db() const;
122 //- Update properties from given dictionary
123 virtual bool read(const dictionary& XiGProperties);
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 } // End namespace XiGModels
130 } // End namespace Foam
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 // ************************************************************************* //