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