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 namespace Foam
00028 {
00029
00030
00031
00032 template<class Type>
00033 inline void component
00034 (
00035 pointPatchField<typename Field<Type>::cmptType>& sf,
00036 const pointPatchField<Type>& f,
00037 const direction d
00038 )
00039 {}
00040
00041
00042 template<class Type>
00043 inline void T
00044 (
00045 pointPatchField<Type>& f1,
00046 const pointPatchField<Type>& f2
00047 )
00048 {}
00049
00050
00051 template<class Type, int r>
00052 inline void pow
00053 (
00054 Field<typename powProduct<Type, r>::type>& f,
00055 const pointPatchField<Type>& vf
00056 )
00057 {}
00058
00059
00060 template<class Type>
00061 inline void sqr
00062 (
00063 Field<typename outerProduct<Type, Type>::type>& f,
00064 const pointPatchField<Type>& vf
00065 )
00066 {}
00067
00068
00069 template<class Type>
00070 inline void magSqr
00071 (
00072 pointPatchField<scalar>& sf,
00073 const pointPatchField<Type>& f
00074 )
00075 {}
00076
00077
00078 template<class Type>
00079 inline void mag
00080 (
00081 pointPatchField<scalar>& sf,
00082 const pointPatchField<Type>& f
00083 )
00084 {}
00085
00086
00087 template<class Type>
00088 inline void cmptAv
00089 (
00090 pointPatchField<typename Field<Type>::cmptType>& cf,
00091 const pointPatchField<Type>& f
00092 )
00093 {}
00094
00095
00096 template<class Type>
00097 inline void cmptMag
00098 (
00099 pointPatchField<Type>& cf,
00100 const pointPatchField<Type>& f
00101 )
00102 {}
00103
00104
00105 #define BINARY_FUNCTION(func) \
00106 \
00107 template<class Type> \
00108 inline void func \
00109 ( \
00110 pointPatchField<Type>& f, \
00111 const pointPatchField<Type>& f1, \
00112 const pointPatchField<Type>& f2 \
00113 ) \
00114 {} \
00115 \
00116 template<class Type> \
00117 inline void func \
00118 ( \
00119 pointPatchField<Type>& f, \
00120 const pointPatchField<Type>& f1, \
00121 const Type& s \
00122 ) \
00123 {}
00124
00125 BINARY_FUNCTION(max)
00126 BINARY_FUNCTION(min)
00127 BINARY_FUNCTION(cmptMultiply)
00128 BINARY_FUNCTION(cmptDivide)
00129
00130 #undef BINARY_FUNCTION
00131
00132
00133
00134
00135 #define UNARY_OPERATOR(op, opFunc) \
00136 \
00137 template<class Type> \
00138 inline void opFunc \
00139 ( \
00140 pointPatchField<Type>& f, \
00141 const pointPatchField<Type>& f1 \
00142 ) \
00143 {}
00144
00145 UNARY_OPERATOR(-, negate)
00146
00147 #undef UNARY_OPERATOR
00148
00149
00150 #define BINARY_OPERATOR_FF(Type1, Type2, op, opFunc) \
00151 \
00152 template<class Type> \
00153 inline void opFunc \
00154 ( \
00155 pointPatchField<Type>& f, \
00156 const pointPatchField<Type1>& f1, \
00157 const pointPatchField<Type2>& f2 \
00158 ) \
00159 {}
00160
00161 #define BINARY_OPERATOR_R(Type1, Type2, op, opFunc) \
00162 BINARY_OPERATOR_FF(Type1, Type2, op, opFunc)
00163
00164 BINARY_OPERATOR_R(Type, Type, +, add)
00165 BINARY_OPERATOR_R(Type, Type, -, subtract)
00166 BINARY_OPERATOR_FF(scalar, Type, *, multiply)
00167 BINARY_OPERATOR_FF(Type, scalar, /, divide)
00168
00169 #undef BINARY_OPERATOR_R
00170 #undef BINARY_OPERATOR_FF
00171 #undef BINARY_OPERATOR_FTR
00172 #undef BINARY_OPERATOR_TF
00173 #undef BINARY_OPERATOR_TTR
00174 #undef BINARY_OPERATOR_FT
00175 #undef BINARY_OPERATOR_TRF
00176 #undef BINARY_OPERATOR_TRT
00177
00178
00179 #define BINARY_TYPE_OPERATOR_TF(TYPE, op, opFunc) \
00180 \
00181 template<class Type> \
00182 inline void opFunc \
00183 ( \
00184 pointPatchField<Type>& f, \
00185 const TYPE& s, \
00186 const pointPatchField<Type>& f1 \
00187 ) \
00188 {}
00189
00190
00191 #define BINARY_TYPE_OPERATOR_FT(TYPE, op, opFunc) \
00192 \
00193 template<class Type> \
00194 inline void opFunc \
00195 ( \
00196 pointPatchField<Type>& f, \
00197 const pointPatchField<Type>& f1, \
00198 const TYPE& s \
00199 ) \
00200 {}
00201
00202
00203 #define BINARY_TYPE_OPERATOR(TYPE, op, opFunc) \
00204 BINARY_TYPE_OPERATOR_TF(TYPE, op, opFunc) \
00205 BINARY_TYPE_OPERATOR_FT(TYPE, op, opFunc)
00206
00207 BINARY_TYPE_OPERATOR(Type, +, add)
00208 BINARY_TYPE_OPERATOR(Type, -, subtract)
00209
00210 BINARY_TYPE_OPERATOR(scalar, *, multiply)
00211 BINARY_TYPE_OPERATOR_FT(scalar, /, divide)
00212
00213 #undef BINARY_TYPE_OPERATOR
00214 #undef BINARY_TYPE_OPERATOR_TF
00215 #undef BINARY_TYPE_OPERATOR_FT
00216
00217
00218 #define PRODUCT_OPERATOR(product, op, opFunc) \
00219 \
00220 template \
00221 < \
00222 class Type1, \
00223 class Type2 \
00224 > \
00225 inline void opFunc \
00226 ( \
00227 pointPatchField \
00228 <typename product<Type1, Type2>::type>& f, \
00229 const pointPatchField<Type1>& f1, \
00230 const pointPatchField<Type2>& f2 \
00231 ) \
00232 {} \
00233 \
00234 template \
00235 < \
00236 class Type, \
00237 class Form, \
00238 class Cmpt, \
00239 int nCmpt \
00240 > \
00241 inline void opFunc \
00242 ( \
00243 pointPatchField \
00244 <typename product<Type, Form>::type>& f, \
00245 const pointPatchField<Type>& f1, \
00246 const VectorSpace<Form,Cmpt,nCmpt>& vs \
00247 ) \
00248 {} \
00249 \
00250 template \
00251 < \
00252 class Form, \
00253 class Cmpt, \
00254 int nCmpt, \
00255 class Type \
00256 > \
00257 inline void opFunc \
00258 ( \
00259 pointPatchField \
00260 <typename product<Form, Type>::type>& f, \
00261 const VectorSpace<Form,Cmpt,nCmpt>& vs, \
00262 const pointPatchField<Type>& f1 \
00263 ) \
00264 {}
00265
00266 PRODUCT_OPERATOR(outerProduct, *, outer)
00267 PRODUCT_OPERATOR(crossProduct, ^, cross)
00268 PRODUCT_OPERATOR(innerProduct, &, dot)
00269 PRODUCT_OPERATOR(scalarProduct, &&, dotdot)
00270
00271 #undef PRODUCT_OPERATOR
00272
00273
00274 inline void hdual
00275 (
00276 pointPatchField<vector>&,
00277 const pointPatchField<tensor>&
00278 )
00279 {}
00280
00281 inline void hdual
00282 (
00283 pointPatchField<tensor>&,
00284 const pointPatchField<vector>&
00285 )
00286 {}
00287
00288 inline void diag
00289 (
00290 pointPatchField<vector>&,
00291 const pointPatchField<tensor>&
00292 )
00293 {}
00294
00295 inline void tr
00296 (
00297 pointPatchField<scalar>&,
00298 const pointPatchField<tensor>&
00299 )
00300 {}
00301
00302 inline void dev
00303 (
00304 pointPatchField<tensor>&,
00305 const pointPatchField<tensor>&
00306 )
00307 {}
00308
00309 inline void dev2
00310 (
00311 pointPatchField<tensor>&,
00312 const pointPatchField<tensor>&
00313 )
00314 {}
00315
00316 inline void det
00317 (
00318 pointPatchField<scalar>&,
00319 const pointPatchField<tensor>&
00320 )
00321 {}
00322
00323 inline void inv
00324 (
00325 pointPatchField<tensor>&,
00326 const pointPatchField<tensor>&
00327 )
00328 {}
00329
00330 inline void symm
00331 (
00332 pointPatchField<tensor>&,
00333 const pointPatchField<tensor>&
00334 )
00335 {}
00336
00337 inline void twoSymm
00338 (
00339 pointPatchField<tensor>&,
00340 const pointPatchField<tensor>&
00341 )
00342 {}
00343
00344 inline void skew
00345 (
00346 pointPatchField<tensor>&,
00347 const pointPatchField<tensor>&
00348 )
00349 {}
00350
00351 inline void eigenValues
00352 (
00353 pointPatchField<vector>&,
00354 const pointPatchField<tensor>&
00355 )
00356 {}
00357
00358 inline void eigenVectors
00359 (
00360 pointPatchField<tensor>&,
00361 const pointPatchField<tensor>&
00362 )
00363 {}
00364
00365
00366
00367
00368 }
00369
00370