37 #ifndef Foam_FieldOps_H 38 #define Foam_FieldOps_H 79 template<
class Tout,
class T1,
class UnaryOp>
99 template<
class Tout,
class T1,
class T2,
class BinaryOp>
116 template<
class T,
class BinaryOp>
138 template<
class T,
class BoolListType,
class FlipOp>
142 const BoolListType& cond,
154 template<
class T,
class FlipOp>
166 template<
class T,
class BoolListType>
170 const BoolListType& cond,
195 template<
class T1,
class T2>
205 template<
class T1,
class T2>
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
void ternarySelect(Field< T > &result, const BoolListType &cond, const Field< T > &a, const Field< T > &b, const FlipOp &flip)
Emulate a ternary operation, selecting values from a or b depending on the conditional.
Tuple2< T1, T2 > findMaxData(const Field< T1 > &vals, const Field< T2 > &data)
Locate the max value in a field and return it and associated data.
Various functions to operate on Lists.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Tuple2< T1, T2 > findMinData(const Field< T1 > &vals, const Field< T2 > &data)
Locate the min value in a field and return it and associated data.
void assign(Field< Tout > &result, const Field< T1 > &a, const UnaryOp &op)
Populate a field as the result of a unary operation on an input.
A functor that returns its argument unchanged (cf. C++20 std::identity) Should never be specialized...
void ternary(Field< T > &result, const Field< T > &a, const Field< T > &b, const BinaryOp &bop)
Emulate a ternary operation, selecting values from a or b depending on the binary predicate...
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...