instabilityG.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2012 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::XiGModels::instabilityG
28 
29 Description
30  Flame-surface instabilityG flame-wrinkling generation rate coefficient model
31  used in \link XiModel.H \endlink.
32 
33  See Technical Report SH/RE/01R for details on the PDR modelling.
34 
35 SourceFiles
36  instabilityG.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef instabilityG_H
41 #define instabilityG_H
42 
43 #include "XiGModel.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace XiGModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class instabilityG Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class instabilityG
57 :
58  public XiGModel
59 {
60  // Private data
61 
62  //- Flame instabilityG wrinkling generation rate coefficient
63  dimensionedScalar GIn_;
64 
65  //- InstabilityG length-scale
66  dimensionedScalar lambdaIn_;
67 
68  //- Xi generation rate model due to all other processes
69  autoPtr<XiGModel> XiGModel_;
70 
71 
72  // Private Member Functions
73 
74  //- No copy construct
75  instabilityG(const instabilityG&) = delete;
76 
77  //- No copy assignment
78  void operator=(const instabilityG&) = delete;
79 
80 
81 public:
82 
83  //- Runtime type information
84  TypeName("instabilityG");
85 
86 
87  // Constructors
88 
89  //- Construct from components
91  (
92  const dictionary& XiGProperties,
95  const volScalarField& Su
96  );
97 
98 
99  //- Destructor
100  virtual ~instabilityG();
101 
102 
103  // Member Functions
104 
105  //- Return the flame-wrinkling generation rate
106  virtual tmp<volScalarField> G() const;
107 
108  //- Return the flame diffusivity
109  virtual tmp<volScalarField> Db() const;
110 
111  //- Update properties from given dictionary
112  virtual bool read(const dictionary& XiGProperties);
113 };
114 
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 } // End namespace XiGModels
119 } // End namespace Foam
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #endif
124 
125 // ************************************************************************* //
Foam::XiGModels::instabilityG::Db
virtual tmp< volScalarField > Db() const
Return the flame diffusivity.
turbulence
Info<< "Reading field U\n"<< 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("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\n"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::psiuReactionThermo
Foam::psiuReactionThermo.
Definition: psiuReactionThermo.H:55
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Foam::XiGModels::instabilityG::G
virtual tmp< volScalarField > G() const
Return the flame-wrinkling generation rate.
Foam::XiGModel
Base-class for all Xi generation models used by the b-Xi combustion model. See Technical Report SH/RE...
Definition: XiGModel.H:56
Foam::XiGModels::instabilityG
Flame-surface instabilityG flame-wrinkling generation rate coefficient model used in XiModel....
Definition: instabilityG.H:55
Su
zeroField Su
Definition: alphaSuSp.H:1
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::dimensioned< scalar >
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::XiGModels::instabilityG::read
virtual bool read(const dictionary &XiGProperties)
Update properties from given dictionary.
Foam::compressible::RASModel
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
Definition: turbulentFluidThermoModel.H:66
Foam::XiGModels::instabilityG::~instabilityG
virtual ~instabilityG()
Destructor.
Foam::XiGModels::instabilityG::TypeName
TypeName("instabilityG")
Runtime type information.
Foam::GeometricField< scalar, fvPatchField, volMesh >
XiGModel.H