fixed.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-2019 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::XiModels::fixed
26 
27 Description
28  Fixed value model for Xi. See \link XiModel.H \endlink for more details
29  on flame wrinkling modelling.
30 
31 SourceFiles
32  fixed.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef fixed_H
37 #define fixed_H
38 
39 #include "XiModel.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace XiModels
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class fixed Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 class fixed
53 :
54  public XiModel
55 {
56 public:
57 
58  //- Runtime type information
59  TypeName("fixed");
60 
61 
62  // Constructors
63 
64  //- Construct from components
65  fixed
66  (
67  const dictionary& XiProperties,
70  const volScalarField& Su,
71  const volScalarField& rho,
72  const volScalarField& b,
73  const surfaceScalarField& phi
74  );
75 
76  //- Disallow default bitwise copy construction
77  fixed(const fixed&);
78 
79 
80  //- Destructor
81  virtual ~fixed();
82 
83 
84  // Member Functions
85 
86  //- Correct the flame-wrinkling Xi
87  virtual void correct()
88  {}
89 
90  //- Update properties from given dictionary
91  virtual bool read(const dictionary& XiProperties);
92 
93  //- Write fields of the XiEq model
94  virtual void writeFields()
95  {}
96 
97 
98  // Member Operators
99 
100  //- Disallow default bitwise assignment
101  void operator=(const fixed&) = delete;
102 };
103 
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 } // End namespace XiModels
108 } // End namespace Foam
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 #endif
113 
114 // ************************************************************************* //
virtual bool read(const dictionary &XiProperties)
Update properties from given dictionary.
virtual void writeFields()
Write fields of the XiEq model.
Definition: fixed.H:93
void operator=(const fixed &)=delete
Disallow default bitwise assignment.
zeroField Su
Definition: alphaSuSp.H:1
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
Base-class for all Xi models used by the b-Xi combustion model. See Technical Report SH/RE/01R for de...
Definition: XiModel.H:108
rhoReactionThermo & thermo
Definition: createFields.H:28
phi
Definition: pEqn.H:104
const dimensionedScalar & b
Wien displacement law constant: default SI units: [m K].
Definition: createFields.H:27
TypeName("fixed")
Runtime type information.
virtual ~fixed()
Destructor.
fixed(const dictionary &XiProperties, const psiuReactionThermo &thermo, const compressible::RASModel &turbulence, const volScalarField &Su, const volScalarField &rho, const volScalarField &b, const surfaceScalarField &phi)
Construct from components.
Fixed value model for Xi. See XiModel.H for more details on flame wrinkling modelling.
Definition: fixed.H:51
Foam::psiuReactionThermo.
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 void correct()
Correct the flame-wrinkling Xi.
Definition: fixed.H:86
RASModel< momentumTransportModel > RASModel
Typedefs for turbulence, RAS and LES models for compressible flow based on the standard laminar trans...
Namespace for OpenFOAM.