29 template<class Type, template<class> class PatchField, class GeoMesh> 39 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
44 typename GeometricField<Type, PatchField, GeoMesh>::cmptType,
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,
68 GeometricField<
typename powProduct<Type, r>::type, PatchField, GeoMesh>& gf,
69 const GeometricField<Type, PatchField, GeoMesh>& gf1
75 template<
class>
class PatchField,
82 <
typename powProduct<Type, r>::type, PatchField, GeoMesh>
86 const GeometricField<Type, PatchField, GeoMesh>& gf,
87 typename powProduct<Type, r>::type
93 template<
class>
class PatchField,
100 <
typename powProduct<Type, r>::type, PatchField, GeoMesh>
104 const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf,
105 typename powProduct<Type, r>::type
108 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
112 <
typename outerProduct<Type, Type>::type, PatchField, GeoMesh>& gf,
113 const GeometricField<Type, PatchField, GeoMesh>& gf1
116 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
121 typename outerProduct<Type, Type>::type,
126 sqr(
const GeometricField<Type, PatchField, GeoMesh>& gf);
128 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
133 typename outerProduct<Type, Type>::type,
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>
183 typename GeometricField<Type, PatchField, GeoMesh>::cmptType,
187 const GeometricField<Type, PatchField, GeoMesh>& gf
190 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
195 typename GeometricField<Type, PatchField, GeoMesh>::cmptType,
200 cmptAv(
const GeometricField<Type, PatchField, GeoMesh>& gf);
202 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
207 typename GeometricField<Type, PatchField, GeoMesh>::cmptType,
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 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)
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 PRODUCT_OPERATOR(product, op, opFunc)
#define BINARY_FUNCTION(ReturnType, Type1, Type2, Func)
Scalar specific part of the implementation of GeometricField.
#define UNARY_REDUCTION_FUNCTION_WITH_BOUNDARY(returnType, func, gFunc)
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)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
UNARY_FUNCTION(Type, Type, cmptMag, cmptMag)
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)
dimensioned< scalar > mag(const dimensioned< Type > &)
#define UNARY_OPERATOR(ReturnType, Type1, Op, OpFunc, Dfunc)
#define UNARY_REDUCTION_FUNCTION(returnType, func, gFunc)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
dimensionSet transform(const dimensionSet &)
dimensioned< scalar > sumMag(const DimensionedField< Type, GeoMesh > &df)