basicChemistryModel.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-2018 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
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 "basicChemistryModel.H"
29 #include "fvMesh.H"
30 #include "Time.H"
31 
32 /* * * * * * * * * * * * * * * private static data * * * * * * * * * * * * * */
33 
34 namespace Foam
35 {
36  defineTypeNameAndDebug(basicChemistryModel, 0);
37 }
38 
39 // * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * //
40 
42 {}
43 
44 
45 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
46 
47 Foam::basicChemistryModel::basicChemistryModel(basicThermo& thermo)
48 :
50  (
51  IOobject
52  (
53  thermo.phasePropertyName("chemistryProperties"),
54  thermo.db().time().constant(),
55  thermo.db(),
56  IOobject::MUST_READ_IF_MODIFIED,
57  IOobject::NO_WRITE
58  )
59  ),
60  mesh_(thermo.p().mesh()),
61  chemistry_(lookup("chemistry")),
62  deltaTChemIni_(get<scalar>("initialChemicalTimeStep")),
63  deltaTChemMax_(lookupOrDefault("maxChemicalTimeStep", GREAT)),
64  deltaTChem_
65  (
66  IOobject
67  (
68  thermo.phasePropertyName("deltaTChem"),
69  mesh().time().constant(),
70  mesh(),
71  IOobject::NO_READ,
72  IOobject::NO_WRITE
73  ),
74  mesh(),
75  dimensionedScalar("deltaTChem0", dimTime, deltaTChemIni_)
76  )
77 {}
78 
79 
80 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
81 
83 {}
84 
85 
86 // ************************************************************************* //
Foam::IOdictionary
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:54
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:104
p
volScalarField & p
Definition: createFieldRefs.H:8
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Foam::basicThermo
Abstract base-class for fluid and solid thermodynamic properties.
Definition: basicThermo.H:63
basicChemistryModel.H
Foam::dimTime
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:54
Foam::radiation::lookup
Lookup type of boundary radiation properties.
Definition: lookup.H:63
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::dimensioned< scalar >
fvMesh.H
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::basicChemistryModel::correct
void correct()
Correct function - updates due to mesh changes.
Definition: basicChemistryModel.C:41
Time.H
Foam::basicChemistryModel::~basicChemistryModel
virtual ~basicChemistryModel()
Destructor.
Definition: basicChemistryModel.C:82
constant
constant condensation/saturation model.
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)