hPolynomialThermo.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef hPolynomialThermo_H
00041 #define hPolynomialThermo_H
00042
00043 #include "scalar.H"
00044 #include "Polynomial.H"
00045
00046
00047
00048 namespace Foam
00049 {
00050
00051
00052
00053 template<class EquationOfState, int PolySize>
00054 class hPolynomialThermo;
00055
00056 template<class EquationOfState, int PolySize>
00057 inline hPolynomialThermo<EquationOfState, PolySize> operator+
00058 (
00059 const hPolynomialThermo<EquationOfState, PolySize>&,
00060 const hPolynomialThermo<EquationOfState, PolySize>&
00061 );
00062
00063 template<class EquationOfState, int PolySize>
00064 inline hPolynomialThermo<EquationOfState, PolySize> operator-
00065 (
00066 const hPolynomialThermo<EquationOfState, PolySize>&,
00067 const hPolynomialThermo<EquationOfState, PolySize>&
00068 );
00069
00070 template<class EquationOfState, int PolySize>
00071 inline hPolynomialThermo<EquationOfState, PolySize> operator*
00072 (
00073 const scalar,
00074 const hPolynomialThermo<EquationOfState, PolySize>&
00075 );
00076
00077 template<class EquationOfState, int PolySize>
00078 inline hPolynomialThermo<EquationOfState, PolySize> operator==
00079 (
00080 const hPolynomialThermo<EquationOfState, PolySize>&,
00081 const hPolynomialThermo<EquationOfState, PolySize>&
00082 );
00083
00084 template<class EquationOfState, int PolySize>
00085 Ostream& operator<<
00086 (
00087 Ostream&,
00088 const hPolynomialThermo<EquationOfState, PolySize>&
00089 );
00090
00091
00092
00093
00094
00095
00096 template<class EquationOfState, int PolySize>
00097 class hPolynomialThermo
00098 :
00099 public EquationOfState
00100 {
00101
00102
00103
00104 scalar Hf_;
00105
00106
00107 scalar Sf_;
00108
00109
00110 Polynomial<PolySize> cpPolynomial_;
00111
00112
00113 typename Polynomial<PolySize>::intPolyType dhPolynomial_;
00114
00115
00116 Polynomial<PolySize> sPolynomial_;
00117
00118
00119
00120
00121
00122 inline hPolynomialThermo
00123 (
00124 const EquationOfState& pt,
00125 const scalar Hf,
00126 const scalar Sf,
00127 const Polynomial<PolySize>& cpPoly,
00128 const typename Polynomial<PolySize>::intPolyType& hPoly,
00129 const Polynomial<PolySize>& sPoly
00130 );
00131
00132
00133 public:
00134
00135
00136
00137
00138 hPolynomialThermo(Istream& is);
00139
00140
00141 inline hPolynomialThermo(const word&, const hPolynomialThermo&);
00142
00143
00144
00145
00146
00147 inline scalar cp(const scalar T) const;
00148
00149
00150 inline scalar h(const scalar T) const;
00151
00152
00153 inline scalar hs(const scalar T) const;
00154
00155
00156 inline scalar hc() const;
00157
00158
00159 inline scalar s(const scalar T) const;
00160
00161
00162
00163
00164 inline void operator+=(const hPolynomialThermo&);
00165 inline void operator-=(const hPolynomialThermo&);
00166
00167
00168
00169
00170 friend hPolynomialThermo operator+ <EquationOfState, PolySize>
00171 (
00172 const hPolynomialThermo&,
00173 const hPolynomialThermo&
00174 );
00175
00176 friend hPolynomialThermo operator- <EquationOfState, PolySize>
00177 (
00178 const hPolynomialThermo&,
00179 const hPolynomialThermo&
00180 );
00181
00182 friend hPolynomialThermo operator* <EquationOfState, PolySize>
00183 (
00184 const scalar,
00185 const hPolynomialThermo&
00186 );
00187
00188 friend hPolynomialThermo operator== <EquationOfState, PolySize>
00189 (
00190 const hPolynomialThermo&,
00191 const hPolynomialThermo&
00192 );
00193
00194
00195
00196
00197 friend Ostream& operator<< <EquationOfState, PolySize>
00198 (
00199 Ostream&,
00200 const hPolynomialThermo&
00201 );
00202 };
00203
00204
00205
00206
00207 }
00208
00209
00210
00211 #include "hPolynomialThermoI.H"
00212
00213 #ifdef NoRepository
00214 # include "hPolynomialThermo.C"
00215 #endif
00216
00217
00218
00219 #endif
00220
00221
Copyright © 2000-2009 OpenCFD Ltd