StandardChemistryModelI.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) 2011-2017 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"
30
31// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
32
33template<class ReactionThermo, class ThermoType>
34inline Foam::label
36{
37 // nEqns = number of species + temperature + pressure
38 return nSpecie_ + 2;
39}
40
41
42template<class ReactionThermo, class ThermoType>
45{
46 return RR_;
47}
48
49
50template<class ReactionThermo, class ThermoType>
53{
54 return reactions_;
55}
56
57
58template<class ReactionThermo, class ThermoType>
59inline const Foam::PtrList<ThermoType>&
61{
62 return specieThermo_;
63}
64
65
66template<class ReactionThermo, class ThermoType>
67inline Foam::label
69{
70 return nSpecie_;
71}
72
73
74template<class ReactionThermo, class ThermoType>
75inline Foam::label
77{
78 return nReaction_;
79}
80
81
82template<class ReactionThermo, class ThermoType>
83inline Foam::scalar
85{
86 return Treact_;
87}
88
89
90template<class ReactionThermo, class ThermoType>
91inline Foam::scalar&
93{
94 return Treact_;
95}
96
97
98template<class ReactionThermo, class ThermoType>
101(
102 const label i
103) const
104{
105 return RR_[i];
106}
107
108template<class ReactionThermo, class ThermoType>
111(
112 const label i
113)
114{
115 return RR_[i];
116}
117
118
119// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition: PtrList.H:73
const PtrList< ThermoType > & specieThermo() const
Thermodynamic data of the species.
PtrList< volScalarField::Internal > & RR()
Write access to chemical source terms.
virtual label nReaction() const
The number of reactions.
scalar Treact() const
Temperature below which the reaction rates are assumed 0.
virtual label nEqns() const
Number of ODE's to solve.
virtual label nSpecie() const
The number of species.
const PtrList< Reaction< ThermoType > > & reactions() const
The reactions.