basicXiSubXiEq.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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
19  for more details.
20 
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/>.
23 
24 Class
25  Foam::XiEqModels::basicSubGrid
26 
27 Description
28  Basic sub-grid obstacle flame-wrinkling enhancement factor model.
29  Details supplied by J Puttock 2/7/06.
30 
31  <b> Sub-grid flame area generation </b>
32 
33  \f$ n = N - \hat{\dwea{\vec{U}}}.n_{s}.\hat{\dwea{\vec{U}}} \f$
34  \f$ n_{r} = \sqrt{n} \f$
35 
36  where:
37 
38  \f$ \hat{\dwea{\vec{U}}} = \dwea{\vec{U}} / \vert \dwea{\vec{U}}
39  \vert \f$
40 
41  \f$ b = \hat{\dwea{\vec{U}}}.B.\hat{\dwea{\vec{U}}} / n_{r} \f$
42 
43  where:
44 
45  \f$ B \f$ is the file "B".
46 
47  \f$ N \f$ is the file "N".
48 
49  \f$ n_{s} \f$ is the file "ns".
50 
51  The flame area enhancement factor \f$ \Xi_{sub} \f$ is expected to
52  approach:
53 
54  \f[
55  \Xi_{{sub}_{eq}} =
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)
58  \f]
59 
60 
61 SourceFiles
62  basicSubGrid.C
63 
64 \*---------------------------------------------------------------------------*/
65 
66 #ifndef basicXiSubXiEq_H
67 #define basicXiSubXiEq_H
68 
69 #include "XiEqModel.H"
70 
71 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
72 
73 namespace Foam
74 {
75 namespace XiEqModels
76 {
77 
78 /*---------------------------------------------------------------------------*\
79  Class basicSubGrid Declaration
80 \*---------------------------------------------------------------------------*/
81 
82 class basicSubGrid
83 :
84  public XiEqModel
85 {
86  // Private Data
87 
88  //- tblock
90 
91  //- Equilibrium Xi model due to turbulence
92  autoPtr<XiEqModel> XiEqModel_;
93 
94 
95 public:
96 
97  //- Runtime type information
98  TypeName("basicSubGrid");
99 
100 
101  // Constructors
102 
103  //- Construct from components
105  (
106  const dictionary& XiEqProperties,
107  const psiuReactionThermo& thermo,
109  const volScalarField& Su
110  );
111 
112  //- Disallow default bitwise copy construction
113  basicSubGrid(const basicSubGrid&);
114 
115 
116  //- Destructor
117  virtual ~basicSubGrid();
118 
119 
120  // Member Functions
121 
122  //- Return the flame-wrinkling XiEq
123  virtual tmp<volScalarField> XiEq() const;
124 
125  //- Update properties from given dictionary
126  virtual bool read(const dictionary& XiEqProperties);
127 
128 
129  // Member Operators
130 
131  //- Disallow default bitwise assignment
132  void operator=(const basicSubGrid&) = delete;
133 };
134 
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 } // End namespace XiEqModels
139 } // End namespace Foam
140 
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 
143 #endif
144 
145 // ************************************************************************* //
TypeName("basicSubGrid")
Runtime type information.
fluidReactionThermo & thermo
Definition: createFields.H:28
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
Basic sub-grid obstacle flame-wrinkling enhancement factor model. Details supplied by J Puttock 2/7/0...
Base-class for all XiEq models used by the b-XiEq combustion model. The available models are : basicX...
Definition: XiEqModel.H:57
virtual tmp< volScalarField > XiEq() const
Return the flame-wrinkling XiEq.
void operator=(const basicSubGrid &)=delete
Disallow default bitwise assignment.
virtual ~basicSubGrid()
Destructor.
Base-class for combustion fluid thermodynamic properties based on compressibility.
Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::momentumTransportModel > turbulence(compressible::momentumTransportModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
virtual bool read(const dictionary &XiEqProperties)
Update properties from given dictionary.
basicSubGrid(const dictionary &XiEqProperties, const psiuReactionThermo &thermo, const compressible::RASModel &turbulence, const volScalarField &Su)
Construct from components.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
const tmp< volScalarField::Internal > & Su
Definition: alphaSuSp.H:6
A class for managing temporary objects.
Definition: PtrList.H:53
RASModel< momentumTransportModel > RASModel
Typedefs for turbulence, RAS and LES models for compressible flow based on the standard laminar trans...
Namespace for OpenFOAM.