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::XiEqModels::basicSubGrid
28 Basic sub-grid obstacle flame-wrinking enhancement factor model.
29 Details supplied by J Puttock 2/7/06.
31 <b> Sub-grid flame area generation </b>
33 \f$ n = N - \hat{\dwea{\vec{U}}}.n_{s}.\hat{\dwea{\vec{U}}} \f$
34 \f$ n_{r} = \sqrt{n} \f$
38 \f$ \hat{\dwea{\vec{U}}} = \dwea{\vec{U}} / \vert \dwea{\vec{U}}
41 \f$ b = \hat{\dwea{\vec{U}}}.B.\hat{\dwea{\vec{U}}} / n_{r} \f$
45 \f$ B \f$ is the file "B".
47 \f$ N \f$ is the file "N".
49 \f$ n_{s} \f$ is the file "ns".
51 The flame area enhancement factor \f$ \Xi_{sub} \f$ is expected to
56 1 + max(2.2 \sqrt{b}, min(0.34 \frac{\vert \dwea{\vec{U}}
57 \vert}{{\vec{U}}^{'}}, 1.6)) \times min(\frac{n}{4}, 1)
64 \*---------------------------------------------------------------------------*/
66 #ifndef basicSubGrid_H
67 #define basicSubGrid_H
69 #include "XiEqModel.H"
71 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
78 /*---------------------------------------------------------------------------*\
79 Class basicSubGrid Declaration
80 \*---------------------------------------------------------------------------*/
89 volSymmTensorField B_;
91 //- Equilibrium Xi model due to turbulence
92 autoPtr<XiEqModel> XiEqModel_;
95 // Private Member Functions
97 //- Disallow copy construct
98 basicSubGrid(const basicSubGrid&);
100 //- Disallow default bitwise assignment
101 void operator=(const basicSubGrid&);
106 //- Runtime type information
107 TypeName("basicSubGrid");
112 //- Construct from components
115 const dictionary& XiEqProperties,
116 const hhuCombustionThermo& thermo,
117 const compressible::RASModel& turbulence,
118 const volScalarField& Su
123 virtual ~basicSubGrid();
128 //- Return the flame-wrinking XiEq
129 virtual tmp<volScalarField> XiEq() const;
131 //- Update properties from given dictionary
132 virtual bool read(const dictionary& XiEqProperties);
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 } // End namespace XiEqModels
139 } // End namespace Foam
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 // ************************************************************************* //