1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::thermoParcelInjectionData
29 Container class to provide injection data for thermodynamic parcels
32 thermoParcelInjectionData.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef thermoParcelInjectionData_H
37 #define thermoParcelInjectionData_H
39 #include "kinematicParcelInjectionData.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 // Forward declaration of classes
47 class thermoParcelInjectionData;
49 // Forward declaration of friend functions
54 const thermoParcelInjectionData&
60 thermoParcelInjectionData&
63 /*---------------------------------------------------------------------------*\
64 Class thermoParcelInjectionData Declaration
65 \*---------------------------------------------------------------------------*/
67 class thermoParcelInjectionData
69 public kinematicParcelInjectionData
78 //- Specific heat capacity [J/kg/K]
84 //- Runtime type information
85 TypeName("thermoParcelInjectionData");
90 thermoParcelInjectionData();
92 //- Construct from dictionary
93 thermoParcelInjectionData(const dictionary& dict);
95 //- Construct from Istream
96 thermoParcelInjectionData(Istream& is);
100 virtual ~thermoParcelInjectionData();
105 //- Return const access to the temperature
106 inline scalar T() const;
108 //- Return const access to the specific heat capacity
109 inline scalar cp() const;
114 //- Return access to the temperature
117 //- Return access to the specific heat capacity
125 friend bool operator==
127 const thermoParcelInjectionData& a,
128 const thermoParcelInjectionData& b
135 "const thermoParcelInjectionData&, "
136 "const thermoParcelInjectionData&"
143 friend bool operator!=
145 const thermoParcelInjectionData& a,
146 const thermoParcelInjectionData& b
153 "const thermoParcelInjectionData&, "
154 "const thermoParcelInjectionData&"
162 friend Ostream& operator<<
165 const thermoParcelInjectionData& data
169 friend Istream& operator>>
172 thermoParcelInjectionData& data
177 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179 } // End namespace Foam
181 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
183 #include "thermoParcelInjectionDataI.H"
185 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
189 // ************************************************************************* //