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 315 #define PRODUCT_OPERATOR(product, op, opFunc) \ 319 template<class> class Field1, \ 320 template<class> class Field2, \ 326 FieldField<Field1, typename product<Type1, Type2>::type>& f, \ 327 const FieldField<Field1, Type1>& f1, \ 328 const FieldField<Field2, Type2>& f2 \ 333 template<class> class Field1, \ 334 template<class> class Field2, \ 338 tmp<FieldField<Field1, typename product<Type1, Type2>::type>> \ 341 const FieldField<Field1, Type1>& f1, \ 342 const FieldField<Field2, Type2>& f2 \ 345 template<template<class> class Field, class Type1, class Type2> \ 346 tmp<FieldField<Field, typename product<Type1, Type2>::type>> \ 349 const FieldField<Field, Type1>& f1, \ 350 const tmp<FieldField<Field, Type2>>& tf2 \ 355 template<class> class Field1, \ 356 template<class> class Field2, \ 360 tmp<FieldField<Field1, typename product<Type1, Type2>::type>> \ 363 const FieldField<Field1, Type1>& f1, \ 364 const tmp<FieldField<Field2, Type2>>& tf2 \ 369 template<class> class Field1, \ 370 template<class> class Field2, \ 374 tmp<FieldField<Field1, typename product<Type1, Type2>::type>> \ 377 const tmp<FieldField<Field1, Type1>>& tf1, \ 378 const FieldField<Field2, Type2>& f2 \ 383 template<class> class Field1, \ 384 template<class> class Field2, \ 388 tmp<FieldField<Field1, typename product<Type1, Type2>::type>> \ 391 const tmp<FieldField<Field1, Type1>>& tf1, \ 392 const tmp<FieldField<Field2, Type2>>& tf2 \ 397 template<class> class Field, \ 405 FieldField<Field, typename product<Type, Form>::type>& f, \ 406 const FieldField<Field, Type>& f1, \ 407 const VectorSpace<Form,Cmpt,nCmpt>& vs \ 412 template<class> class Field, \ 418 tmp<FieldField<Field, typename product<Type, Form>::type>> \ 421 const FieldField<Field, Type>& f1, \ 422 const VectorSpace<Form,Cmpt,nCmpt>& vs \ 427 template<class> class Field, \ 433 tmp<FieldField<Field, typename product<Type, Form>::type>> \ 436 const tmp<FieldField<Field, Type>>& tf1, \ 437 const VectorSpace<Form,Cmpt,nCmpt>& vs \ 442 template<class> class Field, \ 450 FieldField<Field, typename product<Form, Type>::type>& f, \ 451 const VectorSpace<Form,Cmpt,nCmpt>& vs, \ 452 const FieldField<Field, Type>& f1 \ 457 template<class> class Field, \ 463 tmp<FieldField<Field, typename product<Form, Type>::type>> \ 466 const VectorSpace<Form,Cmpt,nCmpt>& vs, \ 467 const FieldField<Field, Type>& f1 \ 472 template<class> class Field, \ 478 tmp<FieldField<Field, typename product<Form, Type>::type>> \ 481 const VectorSpace<Form,Cmpt,nCmpt>& vs, \ 482 const tmp<FieldField<Field, Type>>& tf1 \ 493 #undef PRODUCT_OPERATOR dimensioned< typename typeOfMag< Type >::type > sumMag(const DimensionedField< Type, GeoMesh > &f1)
void cmptMax(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &f1)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &f1)
#define BINARY_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
void divide(DimensionedField< Type, GeoMesh > &result, const DimensionedField< Type, GeoMesh > &f1, const DimensionedField< scalar, GeoMesh > &f2)
MinMax< scalar > scalarMinMax
A scalar min/max range.
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh >> cmptAv(const DimensionedField< Type, GeoMesh > &f1)
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 > &)
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)
#define PRODUCT_OPERATOR(product, op, opFunc)
MinMax< Type > gMinMax(const FieldField< Field, Type > &f)
void negate(DimensionedField< Type, GeoMesh > &result, const DimensionedField< Type, GeoMesh > &f1)
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)
dimensioned< Type > lerp(const dimensioned< Type > &a, const dimensioned< Type > &b, const scalar t)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
typeOfMag< Type >::type gSumMag(const FieldField< Field, Type > &f)
symmTypeOfRank< typename pTraits< arg1 >::cmptType, arg2 *direction(pTraits< arg1 >::rank) >::type type
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Macro functions for FieldField<Type> algebra.
pTraits< Type >::cmptType cmptType
Component type.
dimensioned< scalarMinMax > minMaxMag(const DimensionedField< Type, GeoMesh > &f1)
Type gAverage(const FieldField< Field, Type > &f)
BINARY_TYPE_FUNCTION_FS(Type, Type, MinMax< Type >, clip)
#define UNARY_OPERATOR(ReturnType, Type1, Op, OpFunc, Dfunc)
#define TERNARY_TYPE_FUNCTION_FFS(ReturnType, Type1, Type2, Type3, Func)
void cmptMin(FieldField< Field, typename FieldField< Field, Type >::cmptType > &cf, const FieldField< Field, Type > &f)
void multiply(DimensionedField< Type, GeoMesh > &result, const DimensionedField< Type, GeoMesh > &f1, const DimensionedField< scalar, GeoMesh > &f2)
#define TERNARY_FUNCTION(ReturnType, Type1, Type2, Type3, Func)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
dimensionSet clamp(const dimensionSet &a, const dimensionSet &range)
pTraits< typename pTraits< arg1 >::cmptType >::magType type