basicXiSubG.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::XiGModels::basicSubGrid
26 
27 Description
28 
29  Basic sub-grid obstacle flame-wrinkling generation rate coefficient model.
30  Details supplied by J Puttock 2/7/06.
31 
32  \f$ G_{sub} \f$ denotes the generation coefficient and it is given by
33 
34  \f[
35  G_{sub} = k_{1} /frac{\vert \dwea{\vec{U}} \vert}{L_{obs}}
36  \frac{/Xi_{{sub}_{eq}}-1}{/Xi_{sub}}
37  \f]
38 
39  and the removal:
40 
41  \f[
42  - k_{1} /frac{\vert \dwea{\vec{U}} \vert}{L_{sub}}
43  \frac{\Xi_{sub}-1}{\Xi_{sub}}
44  \f]
45 
46  Finally, \f$ G_{sub} \f$ is added to generation rate \f$ G_{in} \f$
47  due to the turbulence.
48 
49 SourceFiles
50  basicSubGrid.C
51 
52 \*---------------------------------------------------------------------------*/
53 
54 #ifndef basicXiSubG_H
55 #define basicXiSubG_H
56 
57 #include "XiGModel.H"
58 
59 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
60 
61 namespace Foam
62 {
63 namespace XiGModels
64 {
65 
66 /*---------------------------------------------------------------------------*\
67  Class basicSubGrid Declaration
68 \*---------------------------------------------------------------------------*/
69 
70 class basicSubGrid
71 :
72  public XiGModel
73 {
74  // Private Data
75 
76  //- Sub-grid generation rate coefficient
77  scalar k1;
78 
79  //- Xi generation rate model due to turbulence
80  autoPtr<XiGModel> XiGModel_;
81 
82 
83 public:
84 
85  //- Runtime type information
86  TypeName("basicSubGridG");
87 
88 
89  // Constructors
90 
91  //- Construct from components
93  (
94  const dictionary& XiGProperties,
97  const volScalarField& Su
98  );
99 
100  //- Disallow default bitwise copy construction
101  basicSubGrid(const basicSubGrid&);
102 
103 
104  //- Destructor
105  virtual ~basicSubGrid();
106 
107 
108  // Member Functions
109 
110  //- Return the flame-wrinkling generation rate
111  virtual tmp<volScalarField> G() const;
112 
113  //- Return the flame diffusivity
114  virtual tmp<volScalarField> Db() const;
115 
116  //- Update properties from given dictionary
117  virtual bool read(const dictionary& XiGProperties);
118 
119 
120  // Member Operators
121 
122  //- Disallow default bitwise assignment
123  void operator=(const basicSubGrid&) = delete;
124 };
125 
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 } // End namespace XiGModels
130 } // End namespace Foam
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 #endif
135 
136 // ************************************************************************* //
Basic sub-grid obstacle flame-wrinkling generation rate coefficient model. Details supplied by J Putt...
Definition: basicXiSubG.H:69
fluidReactionThermo & thermo
Definition: createFields.H:28
TypeName("basicSubGridG")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
virtual tmp< volScalarField > G() const
Return the flame-wrinkling generation rate.
virtual bool read(const dictionary &XiGProperties)
Update properties from given dictionary.
virtual tmp< volScalarField > Db() const
Return the flame diffusivity.
Base-class for all Xi generation models used by the b-Xi combustion model. See Technical Report SH/RE...
Definition: XiGModel.H:54
void operator=(const basicSubGrid &)=delete
Disallow default bitwise assignment.
basicSubGrid(const dictionary &XiGProperties, const psiuReactionThermo &thermo, const compressible::RASModel &turbulence, const volScalarField &Su)
Construct from components.
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 ~basicSubGrid()
Destructor.
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.