All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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-2019 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 #include "fvMesh.H"
28 #include "Time.H"
29 
30 /* * * * * * * * * * * * * * * private static data * * * * * * * * * * * * * */
31 
32 namespace Foam
33 {
34  defineTypeNameAndDebug(basicChemistryModel, 0);
35 }
36 
37 // * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * //
38 
40 {}
41 
42 
43 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
44 
46 :
48  (
49  IOobject
50  (
51  thermo.phasePropertyName("chemistryProperties"),
52  thermo.db().time().constant(),
53  thermo.db(),
54  IOobject::MUST_READ_IF_MODIFIED,
55  IOobject::NO_WRITE
56  )
57  ),
58  mesh_(thermo.T().mesh()),
59  chemistry_(lookup("chemistry")),
60  deltaTChemIni_(lookup<scalar>("initialChemicalTimeStep")),
61  deltaTChemMax_(lookupOrDefault("maxChemicalTimeStep", great)),
62  deltaTChem_
63  (
64  IOobject
65  (
66  thermo.phasePropertyName("deltaTChem"),
67  mesh().time().constant(),
68  mesh(),
69  IOobject::NO_READ,
70  IOobject::NO_WRITE
71  ),
72  mesh(),
73  dimensionedScalar(dimTime, deltaTChemIni_)
74  )
75 {}
76 
77 
78 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
79 
81 {}
82 
83 
84 // ************************************************************************* //
Abstract base-class for fluid and solid thermodynamic properties.
Definition: basicThermo.H:52
void correct()
Correct function - updates due to mesh changes.
rhoReactionThermo & thermo
Definition: createFields.H:28
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:52
virtual ~basicChemistryModel()
Destructor.
basicChemistryModel(const basicThermo &thermo)
Construct from thermo.
stressControl lookup("compactNormalStress") >> compactNormalStress
dynamicFvMesh & mesh
defineTypeNameAndDebug(combustionModel, 0)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:92
Namespace for OpenFOAM.