singleStepCombustionI.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "singleStepCombustion.H"
27 
28 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
29 
30 namespace Foam
31 {
32 namespace combustionModels
33 {
34 
35 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
36 
38 {
39  return mixture_;
40 }
41 
42 
44 {
45  return reaction_;
46 }
47 
48 
50 {
51  return stoicRatio_;
52 }
53 
54 
56 {
57  return s_;
58 }
59 
60 
62 {
63  return qFuel_;
64 }
65 
66 
68 {
69  return specieStoichCoeffs_;
70 }
71 
72 
74 (
75  const label index
76 ) const
77 {
78  return fres_[index];
79 }
80 
81 
83 {
84  return fuelIndex_;
85 }
86 
87 
89 {
90  return specieProd_;
91 }
92 
93 
95 {
96  return Yprod0_;
97 }
98 
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 } // End namespace combustionModels
103 } // End namespace Foam
104 
105 // ************************************************************************* //
Specialisation of basicMixture for a mixture consisting of a number for molecular species.
const scalarList & Yprod0() const
Return the list of products mass concentrations.
dimensionedScalar s_
Stoichiometric oxygen-fuel mass ratio.
tmp< volScalarField > fres(const label index) const
Return the list of components residual.
const reaction & singleReaction() const
Return the single step reaction.
scalarList Yprod0_
Mass concentrations at stoichiometric mixture for fres.
dimensionedScalar stoicRatio_
Stoichiometric air-fuel mass ratio.
reaction reaction_
The single-step reaction.
const dimensionedScalar & stoicRatio() const
Return the stoichiometric air-fuel mass ratio.
const List< scalar > & specieStoichCoeffs() const
Return the stoichiometric coefficient for the reaction.
const dimensionedScalar & qFuel() const
Return the heat of combustion [J/Kg].
const basicSpecieMixture & mixture_
Reference to the mixture.
List< int > specieProd_
List to indicate if specie is produced/consumed.
PtrList< volScalarField > fres_
List of components residual.
const dimensionedScalar & s() const
Return the Stoichiometric oxygen-fuel mass ratio.
const List< int > & specieProd() const
Return the list to indicate if specie is produced/consumed.
label fuelIndex() const
Return the fuel specie index.
scalarList specieStoichCoeffs_
Stoichiometric coefficient for the reaction.
const basicSpecieMixture & mixture() const
Return the mixture.
dimensionedScalar qFuel_
Heat of combustion [J/Kg].
Reaction base-class holding the specie names and coefficients.
Definition: reaction.H:57
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59