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);
105 #define UNARY_REDUCTION_FUNCTION(returnType, func, dfunc) \ 107 template<class Type, class GeoMesh> \ 108 dimensioned<returnType> func \ 110 const DimensionedField<Type, GeoMesh>& df \ 112 template<class Type, class GeoMesh> \ 113 dimensioned<returnType> func \ 115 const tmp<DimensionedField<Type, GeoMesh>>& tdf1 \ 124 #undef UNARY_REDUCTION_FUNCTION 154 #define PRODUCT_OPERATOR(product, op, opFunc) \ 156 template<class Type1, class Type2, class GeoMesh> \ 157 tmp<DimensionedField<typename product<Type1, Type2>::type, GeoMesh>> \ 160 const DimensionedField<Type1, GeoMesh>& df1, \ 161 const DimensionedField<Type2, GeoMesh>& df2 \ 164 template<class Type1, class Type2, class GeoMesh> \ 165 tmp<DimensionedField<typename product<Type1, Type2>::type, GeoMesh>> \ 168 const DimensionedField<Type1, GeoMesh>& df1, \ 169 const tmp<DimensionedField<Type2, GeoMesh>>& tdf2 \ 172 template<class Type1, class Type2, class GeoMesh> \ 173 tmp<DimensionedField<typename product<Type1, Type2>::type, GeoMesh>> \ 176 const tmp<DimensionedField<Type1, GeoMesh>>& tdf1, \ 177 const DimensionedField<Type2, GeoMesh>& df2 \ 180 template<class Type1, class Type2, class GeoMesh> \ 181 tmp<DimensionedField<typename product<Type1, Type2>::type, GeoMesh>> \ 184 const tmp<DimensionedField<Type1, GeoMesh>>& tdf1, \ 185 const tmp<DimensionedField<Type2, GeoMesh>>& tdf2 \ 188 template<class Form, class Type, class GeoMesh> \ 189 tmp<DimensionedField<typename product<Type, Form>::type, GeoMesh>> \ 192 const DimensionedField<Type, GeoMesh>& df1, \ 193 const dimensioned<Form>& dvs \ 196 template<class Form, class Cmpt, direction nCmpt, class Type, class GeoMesh> \ 197 tmp<DimensionedField<typename product<Form, Type>::type, GeoMesh>> \ 200 const DimensionedField<Type, GeoMesh>& df1, \ 201 const VectorSpace<Form,Cmpt,nCmpt>& vs \ 204 template<class Form, class Type, class GeoMesh> \ 205 tmp<DimensionedField<typename product<Type, Form>::type, GeoMesh>> \ 208 const tmp<DimensionedField<Type, GeoMesh>>& tdf1, \ 209 const dimensioned<Form>& dvs \ 212 template<class Form, class Cmpt, direction nCmpt, class Type, class GeoMesh> \ 213 tmp<DimensionedField<typename product<Form, Type>::type, GeoMesh>> \ 216 const tmp<DimensionedField<Type, GeoMesh>>& tdf1, \ 217 const VectorSpace<Form,Cmpt,nCmpt>& vs \ 220 template<class Form, class Type, class GeoMesh> \ 221 tmp<DimensionedField<typename product<Form, Type>::type, GeoMesh>> \ 224 const dimensioned<Form>& dvs, \ 225 const DimensionedField<Type, GeoMesh>& df1 \ 228 template<class Form, class Cmpt, direction nCmpt, class Type, class GeoMesh> \ 229 tmp<DimensionedField<typename product<Form, Type>::type, GeoMesh>> \ 232 const VectorSpace<Form,Cmpt,nCmpt>& vs, \ 233 const DimensionedField<Type, GeoMesh>& df1 \ 236 template<class Form, class Type, class GeoMesh> \ 237 tmp<DimensionedField<typename product<Form, Type>::type, GeoMesh>> \ 240 const dimensioned<Form>& dvs, \ 241 const tmp<DimensionedField<Type, GeoMesh>>& tdf1 \ 244 template<class Form, class Cmpt, direction nCmpt, class Type, class GeoMesh> \ 245 tmp<DimensionedField<typename product<Form, Type>::type, GeoMesh>> \ 248 const VectorSpace<Form,Cmpt,nCmpt>& vs, \ 249 const tmp<DimensionedField<Type, GeoMesh>>& tdf1 \ 260 #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)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void multiply(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
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)
dimensionSet cmptMag(const dimensionSet &)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
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)
UNARY_FUNCTION(Type, Type, cmptMag, cmptMag)
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)