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 #ifndef specieThermo_H
00040 #define specieThermo_H
00041
00042
00043
00044 namespace Foam
00045 {
00046
00047
00048
00049 template<class thermo> class specieThermo;
00050
00051 template<class thermo>
00052 inline specieThermo<thermo> operator+
00053 (
00054 const specieThermo<thermo>&,
00055 const specieThermo<thermo>&
00056 );
00057
00058 template<class thermo>
00059 inline specieThermo<thermo> operator-
00060 (
00061 const specieThermo<thermo>&,
00062 const specieThermo<thermo>&
00063 );
00064
00065 template<class thermo>
00066 inline specieThermo<thermo> operator*
00067 (
00068 const scalar,
00069 const specieThermo<thermo>&
00070 );
00071
00072 template<class thermo>
00073 inline specieThermo<thermo> operator==
00074 (
00075 const specieThermo<thermo>&,
00076 const specieThermo<thermo>&
00077 );
00078
00079 template<class thermo>
00080 Ostream& operator<<
00081 (
00082 Ostream&,
00083 const specieThermo<thermo>&
00084 );
00085
00086
00087
00088
00089
00090
00091 template<class thermo>
00092 class specieThermo
00093 :
00094 public thermo
00095 {
00096
00097
00098
00099 static const scalar tol_;
00100
00101
00102 static const int maxIter_;
00103
00104
00105
00106
00107
00108
00109 inline scalar T
00110 (
00111 scalar f,
00112 scalar T0,
00113 scalar (specieThermo::*F)(const scalar) const,
00114 scalar (specieThermo::*dFdT)(const scalar) const
00115 ) const;
00116
00117
00118 public:
00119
00120
00121
00122
00123 inline specieThermo(const thermo& sp);
00124
00125
00126 specieThermo(Istream&);
00127
00128
00129 inline specieThermo(const word& name, const specieThermo&);
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153 inline scalar cv(const scalar T) const;
00154
00155
00156 inline scalar gamma(const scalar T) const;
00157
00158
00159 inline scalar e(const scalar T) const;
00160
00161
00162 inline scalar g(const scalar T) const;
00163
00164
00165 inline scalar a(const scalar T) const;
00166
00167
00168
00169
00170
00171 inline scalar Cp(const scalar T) const;
00172
00173
00174 inline scalar Cv(const scalar T) const;
00175
00176
00177 inline scalar H(const scalar T) const;
00178
00179
00180 inline scalar S(const scalar T) const;
00181
00182
00183 inline scalar E(const scalar T) const;
00184
00185
00186 inline scalar G(const scalar T) const;
00187
00188
00189 inline scalar A(const scalar T) const;
00190
00191
00192
00193
00194
00195
00196 inline scalar K(const scalar T) const;
00197
00198
00199
00200
00201 inline scalar Kp(const scalar T) const;
00202
00203
00204
00205
00206
00207 inline scalar Kc(const scalar T) const;
00208
00209
00210
00211
00212 inline scalar Kx(const scalar T, const scalar p) const;
00213
00214
00215
00216
00217 inline scalar Kn
00218 (
00219 const scalar T,
00220 const scalar p,
00221 const scalar n
00222 ) const;
00223
00224
00225
00226
00227
00228 inline scalar TH(const scalar H, const scalar T0) const;
00229
00230
00231 inline scalar TE(const scalar E, const scalar T0) const;
00232
00233
00234
00235
00236 inline void operator+=(const specieThermo&);
00237 inline void operator-=(const specieThermo&);
00238
00239 inline void operator*=(const scalar);
00240
00241
00242
00243
00244 friend specieThermo operator+ <thermo>
00245 (
00246 const specieThermo&,
00247 const specieThermo&
00248 );
00249
00250 friend specieThermo operator- <thermo>
00251 (
00252 const specieThermo&,
00253 const specieThermo&
00254 );
00255
00256 friend specieThermo operator* <thermo>
00257 (
00258 const scalar s,
00259 const specieThermo&
00260 );
00261
00262 friend specieThermo operator== <thermo>
00263 (
00264 const specieThermo&,
00265 const specieThermo&
00266 );
00267
00268
00269
00270
00271 friend Ostream& operator<< <thermo>
00272 (
00273 Ostream&,
00274 const specieThermo&
00275 );
00276 };
00277
00278
00279
00280
00281 }
00282
00283
00284
00285 #include "specieThermoI.H"
00286
00287 #ifdef NoRepository
00288 # include "specieThermo.C"
00289 #endif
00290
00291
00292
00293 #endif
00294
00295