reactingParcelInjectionData.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-2015 OpenFOAM Foundation
9  Copyright (C) 2019 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::reactingParcelInjectionData
29 
30 Description
31  Container class to provide injection data for reacting parcels
32 
33 SourceFiles
34  reactingParcelInjectionData.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef reactingParcelInjectionData_H
39 #define reactingParcelInjectionData_H
40 
42 #include "scalarList.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 // Forward declaration of classes
50 class reactingParcelInjectionData;
51 
52 // Forward declaration of friend functions
53 
54 Ostream& operator<<
55 (
56  Ostream&,
57  const reactingParcelInjectionData&
58 );
59 
60 Istream& operator>>
61 (
62  Istream&,
63  reactingParcelInjectionData&
64 );
65 
66 /*---------------------------------------------------------------------------*\
67  Class reactingParcelInjectionData Declaration
68 \*---------------------------------------------------------------------------*/
69 
71 :
73 {
74 protected:
75 
76  // Parcel properties
77 
78  //- List of mass fractions
79  scalarList Y_;
80 
81 
82 public:
83 
84  //- Runtime type information
85  TypeName("reactingParcelInjectionData");
86 
87  // Constructors
88 
89  //- Null constructor
91 
92  //- Construct from dictionary
94 
95  //- Construct from Istream
97 
98 
99  //- Destructor
101 
102 
103  // Access
104 
105  //- Return const access to the list of mass fractions
106  inline const scalarList& Y() const;
107 
108 
109  // Edit
110 
111  //- Return access to the mass fractions
112  inline scalarList& Y();
113 
114 
115  // I-O
116 
117  //- Ostream operator
118  friend Ostream& operator<<
119  (
120  Ostream& os,
122  );
123 
124  //- Istream operator
125  friend Istream& operator>>
126  (
127  Istream& is,
129  );
130 };
131 
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 } // End namespace Foam
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
140 
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 
143 #endif
144 
145 // ************************************************************************* //
scalarList.H
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:61
Foam::reactingParcelInjectionData
Container class to provide injection data for reacting parcels.
Definition: reactingParcelInjectionData.H:69
Foam::reactingParcelInjectionData::Y
const scalarList & Y() const
Return const access to the list of mass fractions.
Definition: reactingParcelInjectionDataI.H:32
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::reactingParcelInjectionData::TypeName
TypeName("reactingParcelInjectionData")
Runtime type information.
reactingParcelInjectionDataI.H
os
OBJstream os(runTime.globalPath()/outputName)
Foam::reactingParcelInjectionData::~reactingParcelInjectionData
virtual ~reactingParcelInjectionData()
Destructor.
Definition: reactingParcelInjectionData.C:57
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::reactingParcelInjectionData::Y_
scalarList Y_
List of mass fractions.
Definition: reactingParcelInjectionData.H:78
Foam::List< scalar >
Foam::reactingParcelInjectionData::reactingParcelInjectionData
reactingParcelInjectionData()
Null constructor.
Definition: reactingParcelInjectionData.C:39
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Foam::thermoParcelInjectionData
Container class to provide injection data for thermodynamic parcels.
Definition: thermoParcelInjectionData.H:68
thermoParcelInjectionData.H
Foam::data
Database for solution data, solver performance and other reduced data.
Definition: data.H:55