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-------------------------------------------------------------------------------
10License
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 "volFields.H"
29
30
31// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
32
33template<class CompType, class SolidThermo, class GasThermo>
36{
37 return RRg_;
38}
39
40
41template<class CompType, class SolidThermo, class GasThermo>
42inline const Foam::PtrList<GasThermo>&
44gasThermo() const
45{
46 return gasThermo_;
47}
48
49
50template<class CompType, class SolidThermo, class GasThermo>
51inline const Foam::speciesTable&
53gasTable() const
54{
55 return pyrolisisGases_;
56}
57
58
59template<class CompType, class SolidThermo, class GasThermo>
60inline Foam::label
62nSpecie() const
63{
64 return nSpecie_;
65}
66
67
68template<class CompType, class SolidThermo, class GasThermo>
71(
72 const label i
73) const
74{
75 return RRg_[i];
76}
77
78
79template<class CompType, class SolidThermo, class GasThermo>
82RRg() const
83{
85 (
87 (
89 (
90 "RRg",
91 this->time().timeName(),
92 this->mesh(),
93 IOobject::NO_READ,
94 IOobject::NO_WRITE
95 ),
96 this->mesh(),
98 )
99 );
100
101 if (this->chemistry_)
102 {
103 volScalarField::Internal& RRg = tRRg.ref();
104 for (label i=0; i < nGases_; i++)
105 {
106 RRg += RRg_[i];
107 }
108 }
109
110 return tRRg;
111}
112
113
114// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:170
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition: PtrList.H:73
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
const PtrList< GasThermo > & gasThermo() const
Thermodynamic data of gases.
PtrList< volScalarField::Internal > & RRg()
Write access to source terms for gases.
label nSpecie() const
The number of solids.
const speciesTable & gasTable() const
Gases table.
A class for managing temporary objects.
Definition: tmp.H:65
T & ref() const
Definition: tmpI.H:227
dynamicFvMesh & mesh
word timeName
Definition: getTimeIndex.H:3
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:53
const dimensionSet dimVolume(pow3(dimLength))
Definition: dimensionSets.H:60
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:51