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