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 -------------------------------------------------------------------------------
11 License
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 
34 template<class CompType, class SolidThermo, class GasThermo>
37 {
38  return RRg_;
39 }
40 
41 
42 template<class CompType, class SolidThermo, class GasThermo>
43 inline const Foam::PtrList<GasThermo>&
45 gasThermo() const
46 {
47  return gasThermo_;
48 }
49 
50 
51 template<class CompType, class SolidThermo, class GasThermo>
52 inline const Foam::speciesTable&
54 gasTable() const
55 {
56  return pyrolisisGases_;
57 }
58 
59 
60 template<class CompType, class SolidThermo, class GasThermo>
61 inline Foam::label
63 nSpecie() const
64 {
65  return nSpecie_;
66 }
67 
68 
69 template<class CompType, class SolidThermo, class GasThermo>
72 (
73  const label i
74 ) const
75 {
76  return RRg_[i];
77 }
78 
79 
80 template<class CompType, class SolidThermo, class GasThermo>
83 RRg() const
84 {
86  (
87  "RRg",
88  IOobject::NO_REGISTER,
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 // ************************************************************************* //
const PtrList< GasThermo > & gasThermo() const
Thermodynamic data of gases.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
PtrList< volScalarField::Internal > & RRg()
Write access to source terms for gases.
label nSpecie() const
The number of solids.
const dimensionSet dimVolume(pow3(dimLength))
Definition: dimensionSets.H:58
dynamicFvMesh & mesh
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
Definition: List.H:55
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:49
A class for managing temporary objects.
Definition: HashPtrTable.H:50
const speciesTable & gasTable() const
Gases table.
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:127