thirdBodyEfficiencies.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 | Copyright (C) 2011 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 Class
25  Foam::thirdBodyEfficiencies
26 
27 Description
28  Third body efficiencies
29 
30 SourceFiles
31  thirdBodyEfficienciesI.H
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef thirdBodyEfficiencies_H
36 #define thirdBodyEfficiencies_H
37 
38 #include "scalarList.H"
39 #include "speciesTable.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 // Forward declaration of friend functions and operators
47 
48 class thirdBodyEfficiencies;
49 Ostream& operator<<(Ostream&, const thirdBodyEfficiencies&);
50 
51 
52 /*---------------------------------------------------------------------------*\
53  Class thirdBodyEfficiencies Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 :
58  public scalarList
59 {
60  // Private data
61 
62  const speciesTable& species_;
63 
64 
65 public:
66 
67  // Constructors
68 
69  //- Construct from components
71  (
72  const speciesTable& species,
73  const scalarList& efficiencies
74  );
75 
76  //- Construct from Istream
78  (
79  const speciesTable& species,
80  Istream& is
81  );
82 
83  //- Construct from dictionary
85  (
86  const speciesTable& species,
87  const dictionary& dict
88  );
89 
90 
91  // Member functions
92 
93  //- Calculate and return M, the concentration of the third-bodies
94  inline scalar M(const scalarList& c) const;
95 
96  //- Write to stream
97  inline void write(Ostream& os) const;
98 
99 
100 
101  // Ostream Operator
102 
104 };
105 
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 } // End namespace Foam
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 #include "thirdBodyEfficienciesI.H"
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************************************************************* //
Foam::thirdBodyEfficiencies::write
void write(Ostream &os) const
Write to stream.
Definition: thirdBodyEfficienciesI.H:152
thirdBodyEfficienciesI.H
speciesTable.H
Foam::thirdBodyEfficiencies::M
scalar M(const scalarList &c) const
Calculate and return M, the concentration of the third-bodies.
Definition: thirdBodyEfficienciesI.H:140
scalarList.H
Foam::thirdBodyEfficiencies
Third body efficiencies.
Definition: thirdBodyEfficiencies.H:55
Foam::thirdBodyEfficiencies::species_
const speciesTable & species_
Definition: thirdBodyEfficiencies.H:61
Foam::hashedWordList
A wordList with hashed indices for faster lookup by name.
Definition: hashedWordList.H:57
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:57
Foam::thirdBodyEfficiencies::operator<<
friend Ostream & operator<<(Ostream &, const thirdBodyEfficiencies &)
Foam::operator<<
Ostream & operator<<(Ostream &, const edgeMesh &)
Definition: edgeMeshIO.C:130
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59
Foam::constant::universal::c
const dimensionedScalar c
Speed of light in a vacuum.
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53
Foam::thirdBodyEfficiencies::thirdBodyEfficiencies
thirdBodyEfficiencies(const speciesTable &species, const scalarList &efficiencies)
Construct from components.
Definition: thirdBodyEfficienciesI.H:31