basicCombustionMixtureI.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) 2014-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 
27 (
28  const word& specieName
29 ) const
30 {
31  return species_.found(specieName);
32 }
33 
34 
36 (
37  const word& specieName
38 )
39 {
40  return Y_[species_[specieName]];
41 }
42 
43 
45 (
46  const word& specieName
47 ) const
48 {
49  return Y_[species_[specieName]];
50 }
51 
52 
53 inline Foam::scalar Foam::basicCombustionMixture::fres
54 (
55  const scalar ft,
56  const scalar stoicRatio
57 ) const
58 {
59  return max(ft - (scalar(1) - ft)/stoicRatio, scalar(0));
60 }
61 
62 
64 (
65  const volScalarField& ft,
66  const dimensionedScalar& stoicRatio
67 ) const
68 {
69  return max(ft - (scalar(1) - ft)/stoicRatio.value(), scalar(0));
70 }
71 
72 
73 // ************************************************************************* //
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
scalar fres(const scalar ft, const scalar stoicRatio) const
volScalarField & Y(const word &specieName)
Return the mass-fraction field for a specie given by name.
A class for handling words, derived from string.
Definition: word.H:59
const Type & value() const
Return const reference to value.
bool contains(const word &specieName) const
Does the mixture include this specie?
A class for managing temporary objects.
Definition: PtrList.H:53