34 template<
class>
class GeoField,
35 template<
class ...>
class Op,
42 const GeoField<TypeA>& a,
43 const GeoField<TypeB>& b
46 return store(resultName_,
Op<GeoField<TypeA>, GeoField<TypeB>>()(a, b));
52 template<
class>
class GeoField,
53 template<
class ...>
class Op,
67 template<
class>
class GeoField,
68 template<
class ...>
class Op,
97 const GeoField<TypeB>& b =
101 return opAndStore<GeoField, Op>(a(),
b);
110 template<
class>
class GeoField,
111 template<
class ...>
class Op,
118 #define processType(Type, none) \ 119 success = success || foldAB<GeoField, Op, TypeA, Type>(i); 127 template<
template<
class>
class GeoField,
template<
class ...>
class Op>
132 #define processType(Type, none) \ 133 success = success || foldA<GeoField, Op, Type>(i); 141 template<
template<
class>
class GeoField,
template<
class ...>
class Op>
146 if (!fold<GeoField, Op>(i))
156 template<
template<
class ...>
class Op>
160 calcGeoFieldOp<VolField, Op>()
161 || calcGeoFieldOp<SurfaceField, Op>();
#define forAll(list, i)
Loop across all elements in list.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m K].
#define processType(Type, none)
const ObjectType & lookupObject(const word &fieldName) const
Lookup object from the objectRegistry.
wordList fieldNames_
Names of fields to process.
bool foldA(const label i)
Fold the fields expression up one place.
bool calcGeoFieldOp()
Calculate and store the fields expression for the given geometric.
bool foundObject(const word &fieldName) const
Find field in the objectRegistry.
bool foldAB(const label i)
Fold the fields expression up one place.
bool fold(const label i)
Fold the fields expression up one place.
bool clearObject(const word &fieldName)
Clear field from the objectRegistry if present.
bool store(const tmp< ObjectType > &tfield)
Store the given field in the objectRegistry.
word resultName_
Name of result fields.
bool calcOp()
Calculate and store the fields expression for the given operation.
autoPtr< functionObject > clone() const
Return clone.
FOR_ALL_FIELD_TYPES(DefineFvWallInfoType)
A class for managing temporary objects.
bool opAndStore(const GeoField< TypeA > &a, const GeoField< TypeB > &b)
Operate on the fields and store the result. Supported overload.