Loading...
Searching...
No Matches
pyrolysisChemistryModelI.H
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) 2013-2016 OpenFOAM Foundation
9 Copyright (C) 2023 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27\*---------------------------------------------------------------------------*/
28
29#include "volFields.H"
30
31
32// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
33
34template<class CompType, class SolidThermo, class GasThermo>
38 return RRg_;
39}
40
41
42template<class CompType, class SolidThermo, class GasThermo>
43inline const Foam::PtrList<GasThermo>&
45gasThermo() const
47 return gasThermo_;
48}
49
50
51template<class CompType, class SolidThermo, class GasThermo>
52inline const Foam::speciesTable&
54gasTable() const
56 return pyrolisisGases_;
57}
58
59
60template<class CompType, class SolidThermo, class GasThermo>
61inline Foam::label
63nSpecie() const
65 return nSpecie_;
66}
67
68
69template<class CompType, class SolidThermo, class GasThermo>
72(
73 const label i
74) const
76 return RRg_[i];
77}
78
79
80template<class CompType, class SolidThermo, class GasThermo>
83RRg() const
84{
86 (
87 "RRg",
89 this->mesh(),
91 );
92 auto& RRg = tRRg.ref();
93
94 if (this->chemistry_)
95 {
96 for (label i=0; i < nGases_; i++)
97 {
98 RRg += RRg_[i];
99 }
100 }
101
102 return tRRg;
103}
104
105
106// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static tmp< DimensionedField< Type, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &iField)
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions, copy of internal field....
@ NO_REGISTER
Do not request registration (bool: false).
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition PtrList.H:67
PtrList< GasThermo > gasThermo_
Thermodynamic data of gases.
label nSpecie_
Number of components being solved by ODE.
label nGases_
Number of gas species.
const PtrList< GasThermo > & gasThermo() const
Thermodynamic data of gases.
PtrList< volScalarField::Internal > & RRg()
Write access to source terms for gases.
speciesTable pyrolisisGases_
List of gas species present in reaction system.
label nSpecie() const
The number of solids.
PtrList< volScalarField::Internal > RRg_
List of reaction rate per gas [kg/m3/s].
const speciesTable & gasTable() const
Gases table.
A class for managing temporary objects.
Definition tmp.H:75
dynamicFvMesh & mesh
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
hashedWordList speciesTable
A table of species as a hashedWordList.
static constexpr const zero Zero
Global zero (0).
Definition zero.H:127
const dimensionSet dimVolume(pow3(dimLength))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)