28 #define TEMPLATE template<class Type, class GeoMesh> 38 template<
class Type,
class GeoMesh, direction r>
39 tmp<DimensionedField<typename powProduct<Type, r>::type, GeoMesh>>
42 const DimensionedField<Type, GeoMesh>& df,
46 template<
class Type,
class GeoMesh, direction r>
47 tmp<DimensionedField<typename powProduct<Type, r>::type, GeoMesh>>
50 const tmp<DimensionedField<Type, GeoMesh>>& tdf,
54 template<
class Type,
class GeoMesh>
55 tmp<DimensionedField<typename outerProduct<Type, Type>::type, GeoMesh>>
56 sqr(
const DimensionedField<Type, GeoMesh>& df);
58 template<
class Type,
class GeoMesh>
59 tmp<DimensionedField<typename outerProduct<Type, Type>::type, GeoMesh>>
60 sqr(
const tmp<DimensionedField<Type, GeoMesh>>& tdf);
62 template<
class Type,
class GeoMesh>
63 tmp<DimensionedField<scalar, GeoMesh>>
magSqr 65 const DimensionedField<Type, GeoMesh>& df
68 template<
class Type,
class GeoMesh>
69 tmp<DimensionedField<scalar, GeoMesh>>
magSqr 71 const tmp<DimensionedField<Type, GeoMesh>>& tdf
74 template<
class Type,
class GeoMesh>
75 tmp<DimensionedField<scalar, GeoMesh>>
mag 77 const DimensionedField<Type, GeoMesh>& df
80 template<
class Type,
class GeoMesh>
81 tmp<DimensionedField<scalar, GeoMesh>>
mag 83 const tmp<DimensionedField<Type, GeoMesh>>& tdf
86 template<
class Type,
class GeoMesh>
90 <
typename DimensionedField<Type, GeoMesh>::cmptType, GeoMesh>
92 cmptAv(
const DimensionedField<Type, GeoMesh>& df);
94 template<
class Type,
class GeoMesh>
98 <
typename DimensionedField<Type, GeoMesh>::cmptType, GeoMesh>
100 cmptAv(
const tmp<DimensionedField<Type, GeoMesh>>& tdf);
103 #define UNARY_REDUCTION_FUNCTION(returnType, func, dfunc) \ 105 template<class Type, class GeoMesh> \ 106 dimensioned<returnType> func \ 108 const DimensionedField<Type, GeoMesh>& df \ 110 template<class Type, class GeoMesh> \ 111 dimensioned<returnType> func \ 113 const tmp<DimensionedField<Type, GeoMesh>>& tdf1 \ 122 #undef UNARY_REDUCTION_FUNCTION 152 #define PRODUCT_OPERATOR(product, op, opFunc) \ 154 template<class Type1, class Type2, class GeoMesh> \ 155 tmp<DimensionedField<typename product<Type1, Type2>::type, GeoMesh>> \ 158 const DimensionedField<Type1, GeoMesh>& df1, \ 159 const DimensionedField<Type2, GeoMesh>& df2 \ 162 template<class Type1, class Type2, class GeoMesh> \ 163 tmp<DimensionedField<typename product<Type1, Type2>::type, GeoMesh>> \ 166 const DimensionedField<Type1, GeoMesh>& df1, \ 167 const tmp<DimensionedField<Type2, GeoMesh>>& tdf2 \ 170 template<class Type1, class Type2, class GeoMesh> \ 171 tmp<DimensionedField<typename product<Type1, Type2>::type, GeoMesh>> \ 174 const tmp<DimensionedField<Type1, GeoMesh>>& tdf1, \ 175 const DimensionedField<Type2, GeoMesh>& df2 \ 178 template<class Type1, class Type2, class GeoMesh> \ 179 tmp<DimensionedField<typename product<Type1, Type2>::type, GeoMesh>> \ 182 const tmp<DimensionedField<Type1, GeoMesh>>& tdf1, \ 183 const tmp<DimensionedField<Type2, GeoMesh>>& tdf2 \ 186 template<class Form, class Type, class GeoMesh> \ 187 tmp<DimensionedField<typename product<Type, Form>::type, GeoMesh>> \ 190 const DimensionedField<Type, GeoMesh>& df1, \ 191 const dimensioned<Form>& dvs \ 194 template<class Form, class Cmpt, direction nCmpt, class Type, class GeoMesh> \ 195 tmp<DimensionedField<typename product<Form, Type>::type, GeoMesh>> \ 198 const DimensionedField<Type, GeoMesh>& df1, \ 199 const VectorSpace<Form,Cmpt,nCmpt>& vs \ 202 template<class Form, class Type, class GeoMesh> \ 203 tmp<DimensionedField<typename product<Type, Form>::type, GeoMesh>> \ 206 const tmp<DimensionedField<Type, GeoMesh>>& tdf1, \ 207 const dimensioned<Form>& dvs \ 210 template<class Form, class Cmpt, direction nCmpt, class Type, class GeoMesh> \ 211 tmp<DimensionedField<typename product<Form, Type>::type, GeoMesh>> \ 214 const tmp<DimensionedField<Type, GeoMesh>>& tdf1, \ 215 const VectorSpace<Form,Cmpt,nCmpt>& vs \ 218 template<class Form, class Type, class GeoMesh> \ 219 tmp<DimensionedField<typename product<Form, Type>::type, GeoMesh>> \ 222 const dimensioned<Form>& dvs, \ 223 const DimensionedField<Type, GeoMesh>& df1 \ 226 template<class Form, class Cmpt, direction nCmpt, class Type, class GeoMesh> \ 227 tmp<DimensionedField<typename product<Form, Type>::type, GeoMesh>> \ 230 const VectorSpace<Form,Cmpt,nCmpt>& vs, \ 231 const DimensionedField<Type, GeoMesh>& df1 \ 234 template<class Form, class Type, class GeoMesh> \ 235 tmp<DimensionedField<typename product<Form, Type>::type, GeoMesh>> \ 238 const dimensioned<Form>& dvs, \ 239 const tmp<DimensionedField<Type, GeoMesh>>& tdf1 \ 242 template<class Form, class Cmpt, direction nCmpt, class Type, class GeoMesh> \ 243 tmp<DimensionedField<typename product<Form, Type>::type, GeoMesh>> \ 246 const VectorSpace<Form,Cmpt,nCmpt>& vs, \ 247 const tmp<DimensionedField<Type, GeoMesh>>& tdf1 \ 258 #undef PRODUCT_OPERATOR
void divide(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
scalar gSumMag(const FieldField< Field, Type > &f)
#define BINARY_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
void multiply(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Type gMin(const FieldField< Field, Type > &f)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh >> cmptAv(const DimensionedField< Type, GeoMesh > &df)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
#define BINARY_TYPE_OPERATOR_SF(ReturnType, Type1, Type2, Op, OpName, OpFunc)
#define BINARY_TYPE_OPERATOR_FS(ReturnType, Type1, Type2, Op, OpName, OpFunc)
#define PRODUCT_OPERATOR(product, op, opFunc)
void cross(FieldField< Field1, typename crossProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
#define BINARY_TYPE_FUNCTION(ReturnType, Type1, Type2, Func)
void dotdot(FieldField< Field1, typename scalarProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
void subtract(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
void outer(FieldField< Field1, typename outerProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
void dot(FieldField< Field1, typename innerProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
#define BINARY_FUNCTION(ReturnType, Type1, Type2, Func)
Type gSum(const FieldField< Field, Type > &f)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Type gMax(const FieldField< Field, Type > &f)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
symmTypeOfRank< typename pTraits< arg1 >::cmptType, arg2 *direction(pTraits< arg1 >::rank) >::type type
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
void negate(FieldField< Field, Type > &res, const FieldField< Field, Type > &f)
Type gAverage(const FieldField< Field, Type > &f)
#define UNARY_REDUCTION_FUNCTION(returnType, func, dfunc)
dimensioned< scalar > mag(const dimensioned< Type > &)
Scalar specific part of the implementation of DimensionedField.
#define UNARY_OPERATOR(ReturnType, Type1, Op, OpFunc, Dfunc)
dimensionSet transform(const dimensionSet &)
dimensioned< scalar > sumMag(const DimensionedField< Type, GeoMesh > &df)