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