XiModel.C
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-2017 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
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\*---------------------------------------------------------------------------*/
27
28#include "XiModel.H"
29
30// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31
32namespace Foam
33{
34 defineTypeNameAndDebug(XiModel, 0);
35 defineRunTimeSelectionTable(XiModel, dictionary);
36}
37
38
39// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
40
42(
43 const dictionary& XiProperties,
44 const psiuReactionThermo& thermo,
45 const compressible::RASModel& turbulence,
46 const volScalarField& Su,
47 const volScalarField& rho,
48 const volScalarField& b,
49 const surfaceScalarField& phi
50)
51:
52 XiModelCoeffs_
53 (
54 XiProperties.subDict
55 (
56 XiProperties.get<word>("XiModel") + "Coeffs"
57 )
58 ),
59 thermo_(thermo),
60 turbulence_(turbulence),
61 Su_(Su),
62 rho_(rho),
63 b_(b),
64 phi_(phi),
65 Xi_
66 (
67 IOobject
68 (
69 "Xi",
70 b.time().timeName(),
71 b.db(),
72 IOobject::MUST_READ,
73 IOobject::AUTO_WRITE
74 ),
75 b.mesh()
76 )
77{}
78
79
80// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
81
83{}
84
85
86// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
87
88bool Foam::XiModel::read(const dictionary& XiProperties)
89{
90 XiModelCoeffs_ = XiProperties.optionalSubDict(type() + "Coeffs");
91
92 return true;
93}
94
95
96// ************************************************************************* //
surfaceScalarField & phi
virtual bool read()
Re-read model coefficients if they have changed.
Base-class for all Xi models used by the b-Xi combustion model. See Technical Report SH/RE/01R for de...
Definition: XiModel.H:111
virtual ~XiModel()
Destructor.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition: className.H:121
dynamicFvMesh & mesh
compressible::turbulenceModel & turbulence
zeroField Su
Definition: alphaSuSp.H:1
word timeName
Definition: getTimeIndex.H:3
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
Namespace for OpenFOAM.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Definition: MSwindows.C:598
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
volScalarField & b
Definition: createFields.H:27