basicChemistryModel.C
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-2025 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 \*---------------------------------------------------------------------------*/
25 
26 #include "basicChemistryModel.H"
27 
28 /* * * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * */
29 
30 const Foam::NamedEnum
31 <
33  2
35 {
36  "fast",
37  "exact"
38 };
39 
40 namespace Foam
41 {
44 }
45 
46 
47 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
48 
50 (
52 )
53 :
55  (
56  IOobject
57  (
58  thermo.phasePropertyName("chemistryProperties"),
59  thermo.mesh().time().constant(),
60  thermo.mesh(),
61  IOobject::MUST_READ_IF_MODIFIED,
62  IOobject::NO_WRITE
63  )
64  ),
65  mesh_(thermo.mesh()),
66  thermo_(thermo),
67  chemistry_(lookup("chemistry")),
68  deltaTChemIni_(lookup<scalar>("initialChemicalTimeStep")),
69  deltaTChemMax_(lookupOrDefault("maxChemicalTimeStep", great)),
70  deltaTChem_
71  (
72  IOobject
73  (
74  thermo.phasePropertyName("deltaTChem"),
75  mesh().time().constant(),
76  mesh(),
77  IOobject::NO_READ,
78  IOobject::NO_WRITE
79  ),
80  mesh(),
81  dimensionedScalar(dimTime, deltaTChemIni_)
82  )
83 {}
84 
85 
86 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
87 
89 {}
90 
91 
92 // ************************************************************************* //
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:57
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:99
Initialise the NamedEnum HashTable from the static list of names.
Definition: NamedEnum.H:55
Base class for chemistry models.
virtual ~basicChemistryModel()
Destructor.
basicChemistryModel(const fluidMulticomponentThermo &thermo)
Construct from thermo.
jacobianType
Enumeration for the type of Jacobian to be calculated by the.
static const NamedEnum< jacobianType, 2 > jacobianTypeNames_
Jacobian type names.
Base-class for multi-component fluid thermodynamic properties.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Namespace for OpenFOAM.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
const dimensionSet dimTime
defineTypeNameAndDebug(combustionModel, 0)
fluidMulticomponentThermo & thermo
Definition: createFields.H:31