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 -------------------------------------------------------------------------------
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::thermoParcelInjectionData
29 
30 Description
31  Container class to provide injection data for thermodynamic parcels
32 
33 SourceFiles
34  thermoParcelInjectionData.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef thermoParcelInjectionData_H
39 #define thermoParcelInjectionData_H
40 
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 // Forward declaration of classes
49 class thermoParcelInjectionData;
50 
51 // Forward declaration of friend functions
52 
53 Ostream& operator<<
54 (
55  Ostream&,
56  const thermoParcelInjectionData&
57 );
58 
59 Istream& operator>>
60 (
61  Istream&,
62  thermoParcelInjectionData&
63 );
64 
65 /*---------------------------------------------------------------------------*\
66  Class thermoParcelInjectionData Declaration
67 \*---------------------------------------------------------------------------*/
68 
70 :
72 {
73 protected:
74 
75  // Parcel properties
76 
77  //- Temperature [K]
78  scalar T_;
79 
80  //- Specific heat capacity [J/kg/K]
81  scalar Cp_;
82 
83 
84 public:
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
102  virtual ~thermoParcelInjectionData();
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 // ************************************************************************* //
thermoParcelInjectionDataI.H
Foam::thermoParcelInjectionData::Cp_
scalar Cp_
Specific heat capacity [J/kg/K].
Definition: thermoParcelInjectionData.H:80
Foam::thermoParcelInjectionData::thermoParcelInjectionData
thermoParcelInjectionData()
Null constructor.
Definition: thermoParcelInjectionData.C:39
Foam::thermoParcelInjectionData::Cp
scalar Cp() const
Return const access to the specific heat capacity.
Definition: thermoParcelInjectionDataI.H:38
Foam::thermoParcelInjectionData::~thermoParcelInjectionData
virtual ~thermoParcelInjectionData()
Destructor.
Definition: thermoParcelInjectionData.C:59
Foam::kinematicParcelInjectionData
Container class to provide injection data for kinematic parcels.
Definition: kinematicParcelInjectionData.H:70
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:61
Foam::thermoParcelInjectionData::TypeName
TypeName("thermoParcelInjectionData")
Runtime type information.
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
os
OBJstream os(runTime.globalPath()/outputName)
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
kinematicParcelInjectionData.H
Foam::thermoParcelInjectionData::T_
scalar T_
Temperature [K].
Definition: thermoParcelInjectionData.H:77
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
Foam::data
Database for solution data, solver performance and other reduced data.
Definition: data.H:55
Foam::thermoParcelInjectionData::T
scalar T() const
Return const access to the temperature.
Definition: thermoParcelInjectionDataI.H:32