chemistryModel.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-2026 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 "chemistryModel.H"
27 
28 /* * * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * */
29 
30 namespace Foam
31 {
34 }
35 
36 
37 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
38 
40 (
42 )
43 :
45  (
46  IOobject
47  (
48  thermo.phasePropertyName("chemistryProperties"),
49  thermo.mesh().time().constant(),
50  thermo.mesh(),
51  IOobject::MUST_READ_IF_MODIFIED,
52  IOobject::NO_WRITE
53  )
54  ),
55  mesh_(thermo.mesh()),
56  thermo_(thermo),
57  chemistry_(lookupOrDefault("chemistry", true)),
58  deltaTChemIni_(lookup<scalar>("initialChemicalTimeStep")),
59  deltaTChemMax_(lookupOrDefault("maxChemicalTimeStep", great)),
60  deltaTChem_
61  (
62  IOobject
63  (
64  thermo.phasePropertyName("deltaTChem"),
65  mesh().time().constant(),
66  mesh(),
67  IOobject::NO_READ,
68  IOobject::NO_WRITE
69  ),
70  mesh(),
71  dimensionedScalar(dimTime, deltaTChemIni_)
72  )
73 {}
74 
75 
76 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
77 
79 {}
80 
81 
82 // ************************************************************************* //
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
Base class for chemistry models.
chemistryModel(const fluidMulticomponentThermo &thermo)
Construct from thermo.
virtual ~chemistryModel()
Destructor.
Base-class for multi-component fluid thermodynamic properties.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const dimensionSet time
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
Definition: units.C:346
Namespace for OpenFOAM.
const dimensionSet & dimTime
Definition: dimensions.C:142
defineRunTimeSelectionTable(fvConstraint, dictionary)
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)
fluidMulticomponentThermo & thermo
Definition: createFields.H:15