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-2022 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 namespace Foam
31 {
32  template<>
34  {
35  "fast",
36  "exact"
37  };
38 }
39 
40 
41 const Foam::NamedEnum
42 <
44  2
46 
47 
48 namespace Foam
49 {
52 }
53 
54 
55 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
56 
58 (
60 )
61 :
63  (
64  IOobject
65  (
66  thermo.phasePropertyName("chemistryProperties"),
67  thermo.mesh().time().constant(),
68  thermo.mesh(),
69  IOobject::MUST_READ_IF_MODIFIED,
70  IOobject::NO_WRITE
71  )
72  ),
73  mesh_(thermo.mesh()),
74  thermo_(thermo),
75  chemistry_(lookup("chemistry")),
76  deltaTChemIni_(lookup<scalar>("initialChemicalTimeStep")),
77  deltaTChemMax_(lookupOrDefault("maxChemicalTimeStep", great)),
78  deltaTChem_
79  (
80  IOobject
81  (
82  thermo.phasePropertyName("deltaTChem"),
83  mesh().time().constant(),
84  mesh(),
85  IOobject::NO_READ,
86  IOobject::NO_WRITE
87  ),
88  mesh(),
89  dimensionedScalar(dimTime, deltaTChemIni_)
90  )
91 {}
92 
93 
94 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
95 
97 {}
98 
99 
100 // ************************************************************************* //
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:54
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.
Namespace for OpenFOAM.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
const dimensionSet dimTime
defineTypeNameAndDebug(combustionModel, 0)
fluidMulticomponentThermo & thermo
Definition: createFields.H:31