29 template<class Type, template<class> class PatchField, class GeoMesh>
39 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
48 const GeometricField<Type, PatchField, GeoMesh>& gf,
52 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
55 GeometricField<Type, PatchField, GeoMesh>& gf,
56 const GeometricField<Type, PatchField, GeoMesh>& gf1
62 template<
class>
class PatchField,
69 const GeometricField<Type, PatchField, GeoMesh>& gf1
75 template<
class>
class PatchField,
86 const GeometricField<Type, PatchField, GeoMesh>& gf,
93 template<
class>
class PatchField,
104 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf,
108 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
113 const GeometricField<Type, PatchField, GeoMesh>& gf1
116 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
126 sqr(
const GeometricField<Type, PatchField, GeoMesh>& gf);
128 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
138 sqr(
const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf);
140 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
143 GeometricField<scalar, PatchField, GeoMesh>& gsf,
144 const GeometricField<Type, PatchField, GeoMesh>& gf
147 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
148 tmp<GeometricField<scalar, PatchField, GeoMesh>>
magSqr
150 const GeometricField<Type, PatchField, GeoMesh>& gf
153 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
154 tmp<GeometricField<scalar, PatchField, GeoMesh>>
magSqr
156 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf
159 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
162 GeometricField<scalar, PatchField, GeoMesh>& gsf,
163 const GeometricField<Type, PatchField, GeoMesh>& gf
166 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
167 tmp<GeometricField<scalar, PatchField, GeoMesh>>
mag
169 const GeometricField<Type, PatchField, GeoMesh>& gf
172 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
173 tmp<GeometricField<scalar, PatchField, GeoMesh>>
mag
175 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf
178 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
187 const GeometricField<Type, PatchField, GeoMesh>& gf
190 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
200 cmptAv(
const GeometricField<Type, PatchField, GeoMesh>& gf);
202 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
212 cmptAv(
const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf);
217 #define UNARY_REDUCTION_FUNCTION_WITH_BOUNDARY(returnType, func, gFunc) \
219 template<class Type, template<class> class PatchField, class GeoMesh> \
220 dimensioned<returnType> func \
222 const GeometricField<Type, PatchField, GeoMesh>& gf \
225 template<class Type, template<class> class PatchField, class GeoMesh> \
226 dimensioned<returnType> func \
228 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf1 \
234 #undef UNARY_REDUCTION_FUNCTION_WITH_BOUNDARY
237 #define UNARY_REDUCTION_FUNCTION(returnType, func, gFunc) \
239 template<class Type, template<class> class PatchField, class GeoMesh> \
240 dimensioned<returnType> func \
242 const GeometricField<Type, PatchField, GeoMesh>& gf \
245 template<class Type, template<class> class PatchField, class GeoMesh> \
246 dimensioned<returnType> func \
248 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf1 \
255 #undef UNARY_REDUCTION_FUNCTION
285 #define PRODUCT_OPERATOR(product, op, opFunc) \
288 <class Type1, class Type2, template<class> class PatchField, class GeoMesh> \
292 <typename product<Type1, Type2>::type, PatchField, GeoMesh>& gf, \
293 const GeometricField<Type1, PatchField, GeoMesh>& gf1, \
294 const GeometricField<Type2, PatchField, GeoMesh>& gf2 \
298 <class Type1, class Type2, template<class> class PatchField, class GeoMesh> \
302 <typename product<Type1, Type2>::type, PatchField, GeoMesh> \
306 const GeometricField<Type1, PatchField, GeoMesh>& gf1, \
307 const GeometricField<Type2, PatchField, GeoMesh>& gf2 \
311 <class Type1, class Type2, template<class> class PatchField, class GeoMesh> \
315 <typename product<Type1, Type2>::type, PatchField, GeoMesh> \
319 const GeometricField<Type1, PatchField, GeoMesh>& gf1, \
320 const tmp<GeometricField<Type2, PatchField, GeoMesh>>& tgf2 \
324 <class Type1, class Type2, template<class> class PatchField, class GeoMesh> \
328 <typename product<Type1, Type2>::type, PatchField, GeoMesh> \
332 const tmp<GeometricField<Type1, PatchField, GeoMesh>>& tgf1, \
333 const GeometricField<Type2, PatchField, GeoMesh>& gf2 \
337 <class Type1, class Type2, template<class> class PatchField, class GeoMesh> \
341 <typename product<Type1, Type2>::type, PatchField, GeoMesh> \
345 const tmp<GeometricField<Type1, PatchField, GeoMesh>>& tgf1, \
346 const tmp<GeometricField<Type2, PatchField, GeoMesh>>& tgf2 \
350 <class Form, class Type, template<class> class PatchField, class GeoMesh> \
354 <typename product<Type, Form>::type, PatchField, GeoMesh>& gf, \
355 const GeometricField<Type, PatchField, GeoMesh>& gf1, \
356 const dimensioned<Form>& dvs \
360 <class Form, class Type, template<class> class PatchField, class GeoMesh> \
364 <typename product<Type, Form>::type, PatchField, GeoMesh> \
368 const GeometricField<Type, PatchField, GeoMesh>& gf1, \
369 const dimensioned<Form>& dvs \
377 class Type, template<class> class PatchField, \
383 <typename product<Form, Type>::type, PatchField, GeoMesh> \
387 const GeometricField<Type, PatchField, GeoMesh>& gf1, \
388 const VectorSpace<Form,Cmpt,nCmpt>& vs \
392 <class Form, class Type, template<class> class PatchField, class GeoMesh> \
396 <typename product<Type, Form>::type, PatchField, GeoMesh> \
400 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf1, \
401 const dimensioned<Form>& dvs \
409 class Type, template<class> class PatchField, \
415 <typename product<Form, Type>::type, PatchField, GeoMesh> \
419 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf1, \
420 const VectorSpace<Form,Cmpt,nCmpt>& vs \
424 <class Form, class Type, template<class> class PatchField, class GeoMesh> \
428 <typename product<Form, Type>::type, PatchField, GeoMesh>& gf, \
429 const dimensioned<Form>& dvs, \
430 const GeometricField<Type, PatchField, GeoMesh>& gf1 \
434 <class Form, class Type, template<class> class PatchField, class GeoMesh> \
438 <typename product<Form, Type>::type, PatchField, GeoMesh> \
442 const dimensioned<Form>& dvs, \
443 const GeometricField<Type, PatchField, GeoMesh>& gf1 \
451 class Type, template<class> class PatchField, \
457 <typename product<Form, Type>::type, PatchField, GeoMesh> \
461 const VectorSpace<Form,Cmpt,nCmpt>& vs, \
462 const GeometricField<Type, PatchField, GeoMesh>& gf1 \
466 <class Form, class Type, template<class> class PatchField, class GeoMesh> \
470 <typename product<Form, Type>::type, PatchField, GeoMesh> \
474 const dimensioned<Form>& dvs, \
475 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf1 \
483 class Type, template<class> class PatchField, \
489 <typename product<Form, Type>::type, PatchField, GeoMesh> \
493 const VectorSpace<Form,Cmpt,nCmpt>& vs, \
494 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf1 \
505 #undef PRODUCT_OPERATOR
#define BINARY_FUNCTION(ReturnType, Type1, Type2, Func)
#define UNARY_OPERATOR(ReturnType, Type1, Op, OpFunc, Dfunc)
#define BINARY_OPERATOR(ReturnType, Type1, Type2, Op, OpName, OpFunc)
#define BINARY_TYPE_OPERATOR_SF(ReturnType, Type1, Type2, Op, OpName, OpFunc)
#define BINARY_TYPE_OPERATOR_FS(ReturnType, Type1, Type2, Op, OpName, OpFunc)
#define BINARY_TYPE_FUNCTION(ReturnType, Type1, Type2, Func)
#define UNARY_REDUCTION_FUNCTION_WITH_BOUNDARY(returnType, func, gFunc)
#define PRODUCT_OPERATOR(product, op, opFunc)
#define UNARY_REDUCTION_FUNCTION(returnType, func, gFunc)
Scalar specific part of the implementation of GeometricField.
Field< Type >::cmptType cmptType
Component type of the elements of the field.
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
symmTypeOfRank< typename pTraits< arg1 >::cmptType, arg2 *direction(pTraits< arg1 >::rank) >::type type
void negate(FieldField< Field, Type > &res, const FieldField< Field, Type > &f)
Type gSum(const FieldField< Field, Type > &f)
scalar gSumMag(const FieldField< Field, Type > &f)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
void subtract(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
dimensioned< Type > average(const DimensionedField< Type, GeoMesh > &df)
UNARY_FUNCTION(Type, Type, cmptMag, cmptMag)
void dot(FieldField< Field1, typename innerProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
void divide(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh >> cmptAv(const DimensionedField< Type, GeoMesh > &df)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
dimensionSet transform(const dimensionSet &)
dimensioned< scalar > mag(const dimensioned< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionSet cmptMag(const dimensionSet &)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
Type gAverage(const FieldField< Field, Type > &f)
void dotdot(FieldField< Field1, typename scalarProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Type gMin(const FieldField< Field, Type > &f)
void cross(FieldField< Field1, typename crossProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
void multiply(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, scalar > &f2)
Type gMax(const FieldField< Field, Type > &f)
void outer(FieldField< Field1, typename outerProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
dimensioned< scalar > sumMag(const DimensionedField< Type, GeoMesh > &df)