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