specieThermo.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 #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
00154
00155
00156
00157
00158
00159 inline scalar cv(const scalar T) const;
00160
00161
00162 inline scalar gamma(const scalar T) const;
00163
00164
00165 inline scalar e(const scalar T) const;
00166
00167
00168 inline scalar es(const scalar T) const;
00169
00170
00171 inline scalar g(const scalar T) const;
00172
00173
00174 inline scalar a(const scalar T) const;
00175
00176
00177
00178
00179
00180 inline scalar Cp(const scalar T) const;
00181
00182
00183 inline scalar Cv(const scalar T) const;
00184
00185
00186 inline scalar H(const scalar T) const;
00187
00188
00189 inline scalar Hs(const scalar T) const;
00190
00191
00192 inline scalar Hc() const;
00193
00194
00195 inline scalar S(const scalar T) const;
00196
00197
00198 inline scalar E(const scalar T) const;
00199
00200
00201 inline scalar G(const scalar T) const;
00202
00203
00204 inline scalar A(const scalar T) const;
00205
00206
00207
00208
00209
00210
00211 inline scalar K(const scalar T) const;
00212
00213
00214
00215
00216 inline scalar Kp(const scalar T) const;
00217
00218
00219
00220
00221
00222 inline scalar Kc(const scalar T) const;
00223
00224
00225
00226
00227 inline scalar Kx(const scalar T, const scalar p) const;
00228
00229
00230
00231
00232 inline scalar Kn
00233 (
00234 const scalar T,
00235 const scalar p,
00236 const scalar n
00237 ) const;
00238
00239
00240
00241
00242
00243 inline scalar TH(const scalar H, const scalar T0) const;
00244
00245
00246 inline scalar TE(const scalar E, const scalar T0) const;
00247
00248
00249
00250
00251 inline void operator+=(const specieThermo&);
00252 inline void operator-=(const specieThermo&);
00253
00254 inline void operator*=(const scalar);
00255
00256
00257
00258
00259 friend specieThermo operator+ <thermo>
00260 (
00261 const specieThermo&,
00262 const specieThermo&
00263 );
00264
00265 friend specieThermo operator- <thermo>
00266 (
00267 const specieThermo&,
00268 const specieThermo&
00269 );
00270
00271 friend specieThermo operator* <thermo>
00272 (
00273 const scalar s,
00274 const specieThermo&
00275 );
00276
00277 friend specieThermo operator== <thermo>
00278 (
00279 const specieThermo&,
00280 const specieThermo&
00281 );
00282
00283
00284
00285
00286 friend Ostream& operator<< <thermo>
00287 (
00288 Ostream&,
00289 const specieThermo&
00290 );
00291 };
00292
00293
00294
00295
00296 }
00297
00298
00299
00300 #include "specieThermoI.H"
00301
00302 #ifdef NoRepository
00303 # include "specieThermo.C"
00304 #endif
00305
00306
00307
00308 #endif
00309
00310
Copyright © 2000-2009 OpenCFD Ltd