thermoParcelInjectionData.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 Class
25  Foam::thermoParcelInjectionData
26 
27 Description
28  Container class to provide injection data for thermodynamic parcels
29 
30 SourceFiles
31  thermoParcelInjectionData.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef thermoParcelInjectionData_H
36 #define thermoParcelInjectionData_H
37 
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 // Forward declaration of classes
46 class thermoParcelInjectionData;
47 
48 // Forward declaration of friend functions
49 
50 Ostream& operator<<
51 (
52  Ostream&,
53  const thermoParcelInjectionData&
54 );
55 
56 Istream& operator>>
57 (
58  Istream&,
59  thermoParcelInjectionData&
60 );
61 
62 /*---------------------------------------------------------------------------*\
63  Class thermoParcelInjectionData Declaration
64 \*---------------------------------------------------------------------------*/
65 
67 :
69 {
70 protected:
71 
72  // Parcel properties
73 
74  //- Temperature [K]
75  scalar T_;
76 
77  //- Specific heat capacity [J/kg/K]
78  scalar Cp_;
79 
80 
81 public:
82 
83  //- Runtime type information
84  TypeName("thermoParcelInjectionData");
85 
86  // Constructors
87 
88  //- Null constructor
90 
91  //- Construct from dictionary
93 
94  //- Construct from Istream
95  thermoParcelInjectionData(Istream& is);
96 
97 
98  //-Destructor
100 
101 
102  // Access
103 
104  //- Return const access to the temperature
105  inline scalar T() const;
106 
107  //- Return const access to the specific heat capacity
108  inline scalar Cp() const;
109 
110 
111  // Edit
112 
113  //- Return access to the temperature
114  inline scalar& T();
115 
116  //- Return access to the specific heat capacity
117  inline scalar& Cp();
118 
119 
120  // I-O
121 
122  //- Ostream operator
123  friend Ostream& operator<<
124  (
125  Ostream& os,
127  );
128 
129  //- Istream operator
130  friend Istream& operator>>
131  (
132  Istream& is,
134  );
135 };
136 
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 } // End namespace Foam
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
145 
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 
148 #endif
149 
150 // ************************************************************************* //
Container class to provide injection data for thermodynamic parcels.
dictionary dict
scalar Cp() const
Return const access to the specific heat capacity.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
scalar T() const
Return const access to the temperature.
scalar Cp_
Specific heat capacity [J/kg/K].
virtual ~thermoParcelInjectionData()
Destructor.
Container class to provide injection data for momentum parcels.
Database for solution and other reduced data.
Definition: data.H:51
TypeName("thermoParcelInjectionData")
Runtime type information.
Namespace for OpenFOAM.