eConstThermo.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 #ifndef eConstThermo_H
00039 #define eConstThermo_H
00040
00041 #include "specieThermo.H"
00042
00043
00044
00045 namespace Foam
00046 {
00047
00048
00049
00050 template<class equationOfState> class eConstThermo;
00051
00052 template<class equationOfState>
00053 inline eConstThermo<equationOfState> operator+
00054 (
00055 const eConstThermo<equationOfState>&,
00056 const eConstThermo<equationOfState>&
00057 );
00058
00059 template<class equationOfState>
00060 inline eConstThermo<equationOfState> operator-
00061 (
00062 const eConstThermo<equationOfState>&,
00063 const eConstThermo<equationOfState>&
00064 );
00065
00066 template<class equationOfState>
00067 inline eConstThermo<equationOfState> operator*
00068 (
00069 const scalar,
00070 const eConstThermo<equationOfState>&
00071 );
00072
00073 template<class equationOfState>
00074 inline eConstThermo<equationOfState> operator==
00075 (
00076 const eConstThermo<equationOfState>&,
00077 const eConstThermo<equationOfState>&
00078 );
00079
00080 template<class equationOfState>
00081 Ostream& operator<<
00082 (
00083 Ostream&,
00084 const eConstThermo<equationOfState>&
00085 );
00086
00087
00088
00089
00090
00091
00092 template<class equationOfState>
00093 class eConstThermo
00094 :
00095 public equationOfState
00096 {
00097
00098
00099 scalar Cv_;
00100 scalar Hf_;
00101
00102
00103
00104
00105
00106 inline eConstThermo
00107 (
00108 const equationOfState& st,
00109 const scalar cv,
00110 const scalar hf
00111 );
00112
00113
00114 public:
00115
00116
00117
00118
00119 eConstThermo(Istream&);
00120
00121
00122 inline eConstThermo(const word&, const eConstThermo&);
00123
00124
00125 inline autoPtr<eConstThermo> clone() const;
00126
00127
00128 inline static autoPtr<eConstThermo> New(Istream& is);
00129
00130
00131
00132
00133
00134
00135
00136 inline scalar cp(const scalar T) const;
00137
00138
00139 inline scalar h(const scalar T) const;
00140
00141
00142 inline scalar hs(const scalar T) const;
00143
00144
00145 inline scalar hc() const;
00146
00147
00148 inline scalar s(const scalar T) const;
00149
00150
00151
00152
00153 inline void operator+=(const eConstThermo&);
00154 inline void operator-=(const eConstThermo&);
00155
00156
00157
00158
00159 friend eConstThermo operator+ <equationOfState>
00160 (
00161 const eConstThermo&,
00162 const eConstThermo&
00163 );
00164
00165 friend eConstThermo operator- <equationOfState>
00166 (
00167 const eConstThermo&,
00168 const eConstThermo&
00169 );
00170
00171 friend eConstThermo operator* <equationOfState>
00172 (
00173 const scalar,
00174 const eConstThermo&
00175 );
00176
00177 friend eConstThermo operator== <equationOfState>
00178 (
00179 const eConstThermo&,
00180 const eConstThermo&
00181 );
00182
00183
00184
00185
00186 friend Ostream& operator<< <equationOfState>
00187 (
00188 Ostream&,
00189 const eConstThermo&
00190 );
00191 };
00192
00193
00194
00195
00196 }
00197
00198
00199
00200 #include "eConstThermoI.H"
00201
00202 #ifdef NoRepository
00203 # include "eConstThermo.C"
00204 #endif
00205
00206
00207
00208 #endif
00209
00210
Copyright © 2000-2009 OpenCFD Ltd