instabilityXiEq.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::XiEqModels::instability
28 
29 Description
30  This is the equilibrium level of the flame wrinkling generated by
31  instability. It is a constant (default 2.5). It is used in
32  \link XiModel.H \endlink.
33 
34 SourceFiles
35  instability.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef instability_H
40 #define instability_H
41 
42 #include "XiEqModel.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 namespace XiEqModels
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class instability Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 class instability
56 :
57  public XiEqModel
58 {
59  // Private data
60 
61  //- Equilibrium Xi due to instability only
62  scalar XiEqIn;
63 
64  //- Equilibrium Xi model due to all other effects
65  autoPtr<XiEqModel> XiEqModel_;
66 
67 
68  // Private Member Functions
69 
70  //- No copy construct
71  instability(const instability&) = delete;
72 
73  //- No copy assignment
74  void operator=(const instability&) = delete;
75 
76 
77 public:
78 
79  //- Runtime type information
80  TypeName("instability");
81 
82 
83  // Constructors
84 
85  //- Construct from components
87  (
88  const dictionary& XiEqProperties,
91  const volScalarField& Su
92  );
93 
94 
95  //- Destructor
96  virtual ~instability();
97 
98 
99  // Member Functions
100 
101  //- Return the flame-wrinkling XiEq
102  virtual tmp<volScalarField> XiEq() const;
103 
104  //- Update properties from given dictionary
105  virtual bool read(const dictionary& XiEqProperties);
106 
107 };
108 
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 } // End namespace XiEqModels
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************************************************************* //
Foam::XiEqModel
Base-class for all XiEq models used by the b-XiEq combustion model. The available models are : basicX...
Definition: XiEqModel.H:59
Foam::XiEqModels::instability::read
virtual bool read(const dictionary &XiEqProperties)
Update properties from given dictionary.
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::XiEqModels::instability
This is the equilibrium level of the flame wrinkling generated by instability. It is a constant (defa...
Definition: instabilityXiEq.H:54
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::psiuReactionThermo
Foam::psiuReactionThermo.
Definition: psiuReactionThermo.H:55
XiEqModel.H
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Foam::XiEqModels::instability::TypeName
TypeName("instability")
Runtime type information.
Su
zeroField Su
Definition: alphaSuSp.H:1
Foam::XiEqModels::instability::~instability
virtual ~instability()
Destructor.
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
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::compressible::RASModel
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
Definition: turbulentFluidThermoModel.H:66
Foam::XiEqModels::instability::XiEq
virtual tmp< volScalarField > XiEq() const
Return the flame-wrinkling XiEq.
Foam::GeometricField< scalar, fvPatchField, volMesh >