transport.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-2015 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::transport
28 
29 Description
30  Simple transport model for Xi based on Gulders correlation
31  with a linear correction function to give a plausible profile for Xi.
32  See report TR/HGW/10 for details on the Weller two equations model.
33  See \link XiModel.H \endlink for more details on flame wrinkling modelling.
34 
35 SourceFiles
36  transport.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef transport_H
41 #define transport_H
42 
43 #include "XiModel.H"
44 #include "XiEqModel.H"
45 #include "XiGModel.H"
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 namespace XiModels
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class transport Declaration
56 \*---------------------------------------------------------------------------*/
57 
58 class transport
59 :
60  public XiModel
61 {
62  // Private data
63 
64  scalar XiShapeCoef;
65 
66  autoPtr<XiEqModel> XiEqModel_;
67  autoPtr<XiGModel> XiGModel_;
68 
69 
70  // Private Member Functions
71 
72  //- No copy construct
73  transport(const transport&) = delete;
74 
75  //- No copy assignment
76  void operator=(const transport&) = delete;
77 
78 
79 public:
80 
81  //- Runtime type information
82  TypeName("transport");
83 
84 
85  // Constructors
86 
87  //- Construct from components
88  transport
89  (
90  const dictionary& XiProperties,
93  const volScalarField& Su,
94  const volScalarField& rho,
95  const volScalarField& b,
96  const surfaceScalarField& phi
97  );
98 
99 
100  //- Destructor
101  virtual ~transport();
102 
103 
104  // Member Functions
105 
106  //- Return the flame diffusivity
107  virtual tmp<volScalarField> Db() const;
108 
109  //- Add Xi to the multivariateSurfaceInterpolationScheme table
110  virtual void addXi
111  (
113  )
114  {
115  fields.add(Xi_);
116  }
117 
118  //- Correct the flame-wrinkling Xi
119  virtual void correct()
120  {
122  }
123 
124  //- Correct the flame-wrinkling Xi using the given convection scheme
126 
127  //- Update properties from given dictionary
128  virtual bool read(const dictionary& XiProperties);
129 
130  //- Write fields of the XiEq model
131  virtual void writeFields()
132  {
133  XiEqModel_().writeFields();
134  }
135 };
136 
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 } // End namespace XiModels
141 } // End namespace Foam
142 
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 
145 #endif
146 
147 // ************************************************************************* //
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::XiModels::transport::correct
virtual void correct()
Correct the flame-wrinkling Xi.
Definition: transport.H:118
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::XiModel::Xi_
volScalarField Xi_
Flame wrinkling field.
Definition: XiModel.H:127
Foam::XiModels::transport::TypeName
TypeName("transport")
Runtime type information.
rho
rho
Definition: readInitialConditions.H:88
Su
zeroField Su
Definition: alphaSuSp.H:1
NotImplemented
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:517
Foam::constant::physicoChemical::b
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Definition: createFields.H:27
Foam::XiModels::transport::Db
virtual tmp< volScalarField > Db() const
Return the flame diffusivity.
Foam::multivariateSurfaceInterpolationScheme
Abstract base class for multi-variate surface interpolation schemes.
Definition: multivariateSurfaceInterpolationScheme.H:52
mvConvection
tmp< fv::convectionScheme< scalar > > mvConvection(fv::convectionScheme< scalar >::New(mesh, fields, phi, mesh.divScheme("div(phi,Yi_h)")))
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::XiModels::transport::writeFields
virtual void writeFields()
Write fields of the XiEq model.
Definition: transport.H:130
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
Foam::XiModels::transport
Simple transport model for Xi based on Gulders correlation with a linear correction function to give ...
Definition: transport.H:57
Foam::fv::convectionScheme< scalar >
XiModel.H
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::XiModels::transport::read
virtual bool read(const dictionary &XiProperties)
Update properties from given dictionary.
Foam::XiModels::transport::~transport
virtual ~transport()
Destructor.
Foam::GeometricField< scalar, fvPatchField, volMesh >
fields
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Definition: createFields.H:97
Foam::XiModels::transport::addXi
virtual void addXi(multivariateSurfaceInterpolationScheme< scalar >::fieldTable &fields)
Add Xi to the multivariateSurfaceInterpolationScheme table.
Definition: transport.H:110
XiGModel.H