37#ifndef Foam_FieldOps_H
38#define Foam_FieldOps_H
79template<
class Tout,
class T1,
class UnaryOp>
99template<
class Tout,
class T1,
class T2,
class BinaryOp>
116template<
class T,
class BinaryOp>
138template<
class T,
class BoolListType,
class FlipOp>
142 const BoolListType& cond,
154template<
class T,
class FlipOp>
166template<
class T,
class BoolListType>
170 const BoolListType& cond,
195template<
class T1,
class T2>
205template<
class T1,
class T2>
Various functions to operate on Lists.
Generic templated field type.
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Database for solution data, solver performance and other reduced 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.
void ternarySelect(Field< T > &result, const BoolListType &cond, const Field< T > &a, const Field< T > &b, const FlipOp &flip)
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.
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 ternary(Field< T > &result, const Field< T > &a, const Field< T > &b, const BinaryOp &bop)