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