31 #define TEMPLATE template<template<class> class Field, class Type> 41 template<
template<
class>
class Field,
class Type>
45 const FieldField<Field, Type>&
f,
49 template<
template<
class>
class Field,
class Type>
50 void T(FieldField<Field, Type>& f1,
const FieldField<Field, Type>& f2);
53 template<
template<
class>
class Field,
class Type,
direction r>
57 const FieldField<Field, Type>& vf
60 template<
template<
class>
class Field,
class Type,
direction r>
68 template<
template<
class>
class Field,
class Type,
direction r>
77 template<
template<
class>
class Field,
class Type>
81 const FieldField<Field, Type>& vf
84 template<
template<
class>
class Field,
class Type>
86 sqr(
const FieldField<Field, Type>&
f);
88 template<
template<
class>
class Field,
class Type>
90 sqr(
const tmp<FieldField<Field, Type>>& tf);
93 template<
template<
class>
class Field,
class Type>
97 const FieldField<Field, Type>&
f 100 template<
template<
class>
class Field,
class Type>
102 magSqr(
const FieldField<Field, Type>&
f);
104 template<
template<
class>
class Field,
class Type>
106 magSqr(
const tmp<FieldField<Field, Type>>& tf);
109 template<
template<
class>
class Field,
class Type>
113 const FieldField<Field, Type>&
f 116 template<
template<
class>
class Field,
class Type>
118 mag(
const FieldField<Field, Type>&
f);
120 template<
template<
class>
class Field,
class Type>
122 mag(
const tmp<FieldField<Field, Type>>& tf);
125 template<
template<
class>
class Field,
class Type>
129 const FieldField<Field, Type>&
f 132 template<
template<
class>
class Field,
class Type>
133 tmp<FieldField<Field, typename FieldField<Field, Type>::cmptType>>
cmptMax 135 const FieldField<Field, Type>&
f 138 template<
template<
class>
class Field,
class Type>
139 tmp<FieldField<Field, typename FieldField<Field, Type>::cmptType>>
cmptMax 141 const tmp<FieldField<Field, Type>>& tf
145 template<
template<
class>
class Field,
class Type>
149 const FieldField<Field, Type>&
f 152 template<
template<
class>
class Field,
class Type>
153 tmp<FieldField<Field, typename FieldField<Field, Type>::cmptType>>
cmptMin 155 const FieldField<Field, Type>&
f 158 template<
template<
class>
class Field,
class Type>
159 tmp<FieldField<Field, typename FieldField<Field, Type>::cmptType>>
cmptMin 161 const tmp<FieldField<Field, Type>>& tf
165 template<
template<
class>
class Field,
class Type>
169 const FieldField<Field, Type>&
f 172 template<
template<
class>
class Field,
class Type>
173 tmp<FieldField<Field, typename FieldField<Field, Type>::cmptType>>
cmptAv 175 const FieldField<Field, Type>&
f 178 template<
template<
class>
class Field,
class Type>
179 tmp<FieldField<Field, typename FieldField<Field, Type>::cmptType>>
cmptAv 181 const tmp<FieldField<Field, Type>>& tf
185 template<
template<
class>
class Field,
class Type>
188 FieldField<Field, Type>& cf,
189 const FieldField<Field, Type>&
f 192 template<
template<
class>
class Field,
class Type>
193 tmp<FieldField<Field, Type>>
cmptMag 195 const FieldField<Field, Type>&
f 198 template<
template<
class>
class Field,
class Type>
199 tmp<FieldField<Field, Type>>
cmptMag 201 const tmp<FieldField<Field, Type>>& tf
205 #define TMP_UNARY_FUNCTION(returnType, func) \ 207 template<template<class> class Field, class Type> \ 208 returnType func(const tmp<FieldField<Field, Type>>& tf1); 211 template<
template<
class>
class Field,
class Type>
212 Type
max(
const FieldField<Field, Type>&
f);
217 template<
template<
class>
class Field,
class Type>
218 Type
min(
const FieldField<Field, Type>&
f);
223 template<
template<
class>
class Field,
class Type>
224 Type
sum(
const FieldField<Field, Type>&
f);
229 template<
template<
class>
class Field,
class Type>
235 template<
template<
class>
class Field,
class Type>
236 Type
average(
const FieldField<Field, Type>&
f);
242 template<
template<
class>
class Field,
class Type>
243 MinMax<Type>
minMax(
const FieldField<Field, Type>&
f);
248 template<
template<
class>
class Field,
class Type>
255 #define G_UNARY_FUNCTION(ReturnType, gFunc, func, rFunc) \ 257 template<template<class> class Field, class Type> \ 258 ReturnType gFunc(const FieldField<Field, Type>& f); \ 259 TMP_UNARY_FUNCTION(ReturnType, gFunc) 269 #undef G_UNARY_FUNCTION 272 template<
template<
class>
class Field,
class Type>
273 Type
gAverage(
const FieldField<Field, Type>&
f);
277 #undef TMP_UNARY_FUNCTION 309 #define PRODUCT_OPERATOR(product, op, opFunc) \ 313 template<class> class Field1, \ 314 template<class> class Field2, \ 320 FieldField<Field1, typename product<Type1, Type2>::type>& f, \ 321 const FieldField<Field1, Type1>& f1, \ 322 const FieldField<Field2, Type2>& f2 \ 327 template<class> class Field1, \ 328 template<class> class Field2, \ 332 tmp<FieldField<Field1, typename product<Type1, Type2>::type>> \ 335 const FieldField<Field1, Type1>& f1, \ 336 const FieldField<Field2, Type2>& f2 \ 339 template<template<class> class Field, class Type1, class Type2> \ 340 tmp<FieldField<Field, typename product<Type1, Type2>::type>> \ 343 const FieldField<Field, Type1>& f1, \ 344 const tmp<FieldField<Field, Type2>>& tf2 \ 349 template<class> class Field1, \ 350 template<class> class Field2, \ 354 tmp<FieldField<Field1, typename product<Type1, Type2>::type>> \ 357 const FieldField<Field1, Type1>& f1, \ 358 const tmp<FieldField<Field2, Type2>>& tf2 \ 363 template<class> class Field1, \ 364 template<class> class Field2, \ 368 tmp<FieldField<Field1, typename product<Type1, Type2>::type>> \ 371 const tmp<FieldField<Field1, Type1>>& tf1, \ 372 const FieldField<Field2, Type2>& f2 \ 377 template<class> class Field1, \ 378 template<class> class Field2, \ 382 tmp<FieldField<Field1, typename product<Type1, Type2>::type>> \ 385 const tmp<FieldField<Field1, Type1>>& tf1, \ 386 const tmp<FieldField<Field2, Type2>>& tf2 \ 391 template<class> class Field, \ 399 FieldField<Field, typename product<Type, Form>::type>& f, \ 400 const FieldField<Field, Type>& f1, \ 401 const VectorSpace<Form,Cmpt,nCmpt>& vs \ 406 template<class> class Field, \ 412 tmp<FieldField<Field, typename product<Type, Form>::type>> \ 415 const FieldField<Field, Type>& f1, \ 416 const VectorSpace<Form,Cmpt,nCmpt>& vs \ 421 template<class> class Field, \ 427 tmp<FieldField<Field, typename product<Type, Form>::type>> \ 430 const tmp<FieldField<Field, Type>>& tf1, \ 431 const VectorSpace<Form,Cmpt,nCmpt>& vs \ 436 template<class> class Field, \ 444 FieldField<Field, typename product<Form, Type>::type>& f, \ 445 const VectorSpace<Form,Cmpt,nCmpt>& vs, \ 446 const FieldField<Field, Type>& f1 \ 451 template<class> class Field, \ 457 tmp<FieldField<Field, typename product<Form, Type>::type>> \ 460 const VectorSpace<Form,Cmpt,nCmpt>& vs, \ 461 const FieldField<Field, Type>& f1 \ 466 template<class> class Field, \ 472 tmp<FieldField<Field, typename product<Form, Type>::type>> \ 475 const VectorSpace<Form,Cmpt,nCmpt>& vs, \ 476 const tmp<FieldField<Field, Type>>& tf1 \ 487 #undef PRODUCT_OPERATOR void divide(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, 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)
MinMax< scalar > scalarMinMax
A scalar min/max range.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Type gMin(const FieldField< Field, Type > &f)
#define G_UNARY_FUNCTION(ReturnType, gFunc, func, rFunc)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
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 TMP_UNARY_FUNCTION(returnType, func)
void cross(FieldField< Field1, typename crossProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
#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)
MinMax< label > minMax(const labelHashSet &set)
Find the min/max values of labelHashSet.
#define BINARY_FUNCTION(ReturnType, Type1, Type2, Func)
Type gSum(const FieldField< Field, Type > &f)
dimensionSet clip(const dimensionSet &ds1, const dimensionSet &ds2)
#define PRODUCT_OPERATOR(product, op, opFunc)
#define BINARY_TYPE_FUNCTION_FS(ReturnType, Type1, Type2, Func)
MinMax< Type > gMinMax(const FieldField< Field, Type > &f)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
Specialisation of FieldField<T> for scalar.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
void cmptMag(FieldField< Field, Type > &cf, const FieldField< Field, Type > &f)
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)
scalarMinMax gMinMaxMag(const FieldField< Field, Type > &f)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
typeOfMag< Type >::type gSumMag(const FieldField< Field, Type > &f)
dimensioned< typename typeOfMag< Type >::type > sumMag(const DimensionedField< Type, GeoMesh > &df)
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)
High performance macro functions for Field<Type> algebra. These expand using either array element acc...
pTraits< Type >::cmptType cmptType
Component type.
Type gAverage(const FieldField< Field, Type > &f)
#define UNARY_OPERATOR(ReturnType, Type1, Op, OpFunc, Dfunc)
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh >> cmptAv(const DimensionedField< Type, GeoMesh > &df)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
dimensioned< scalarMinMax > minMaxMag(const DimensionedField< Type, GeoMesh > &df)
pTraits< typename pTraits< arg1 >::cmptType >::magType type