thermoParcelInjectionData.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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::thermoParcelInjectionData
29
30Description
31 Container class to provide injection data for thermodynamic parcels
32
33SourceFiles
34 thermoParcelInjectionData.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef thermoParcelInjectionData_H
39#define thermoParcelInjectionData_H
40
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47
48// Forward declaration of classes
49class thermoParcelInjectionData;
50
51// Forward declaration of friend functions
52
53Ostream& operator<<
54(
55 Ostream&,
56 const thermoParcelInjectionData&
57);
58
59Istream& operator>>
60(
61 Istream&,
62 thermoParcelInjectionData&
63);
64
65/*---------------------------------------------------------------------------*\
66 Class thermoParcelInjectionData Declaration
67\*---------------------------------------------------------------------------*/
70:
72{
73protected:
74
75 // Parcel properties
76
77 //- Temperature [K]
78 scalar T_;
79
80 //- Specific heat capacity [J/kg/K]
81 scalar Cp_;
82
83
84public:
85
86 //- Runtime type information
87 TypeName("thermoParcelInjectionData");
88
89 // Constructors
90
91 //- Null constructor
93
94 //- Construct from dictionary
96
97 //- Construct from Istream
99
100
101 //- Destructor
103
104
105 // Access
106
107 //- Return const access to the temperature
108 inline scalar T() const;
109
110 //- Return const access to the specific heat capacity
111 inline scalar Cp() const;
112
113
114 // Edit
115
116 //- Return access to the temperature
117 inline scalar& T();
118
119 //- Return access to the specific heat capacity
120 inline scalar& Cp();
121
122
123 // I-O
124
125 //- Ostream operator
126 friend Ostream& operator<<
127 (
128 Ostream& os,
130 );
131
132 //- Istream operator
133 friend Istream& operator>>
134 (
135 Istream& is,
137 );
138};
139
140
141// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142
143} // End namespace Foam
144
145// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146
148
149// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150
151#endif
152
153// ************************************************************************* //
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:64
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
Database for solution data, solver performance and other reduced data.
Definition: data.H:58
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Container class to provide injection data for kinematic parcels.
Container class to provide injection data for thermodynamic parcels.
scalar Cp() const
Return const access to the specific heat capacity.
scalar T() const
Return const access to the temperature.
scalar Cp_
Specific heat capacity [J/kg/K].
TypeName("thermoParcelInjectionData")
Runtime type information.
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73