Go to the source code of this file.
Namespaces | |
Foam::FieldOps | |
Various utility functions to work on Fields. | |
Foam | |
Namespace for OpenFOAM. | |
Functions | |
template<class Tout , class T1 , class UnaryOp > | |
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. More... | |
template<class Tout , class T1 , class T2 , class BinaryOp > | |
void | assign (Field< Tout > &result, const Field< T1 > &a, const Field< T2 > &b, const BinaryOp &bop) |
Populate a field as the result of a binary operation on two inputs. More... | |
template<class T , class BinaryOp > | |
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. More... | |
template<class T , class BoolListType , class FlipOp > | |
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. More... | |
template<class T , class FlipOp > | |
void | ternarySelect (Field< T > &result, const bitSet &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. More... | |
template<class T , class BoolListType > | |
void | ternarySelect (Field< T > &result, const BoolListType &cond, const Field< T > &a, const Field< T > &b) |
Emulated ternary operation, without condition flipping. More... | |
template<class T > | |
void | ternarySelect (Field< T > &result, const bitSet &cond, const Field< T > &a, const Field< T > &b) |
Emulated ternary operation, without condition flipping. More... | |
template<class T1 , class T2 > | |
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. More... | |
template<class T1 , class T2 > | |
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. More... | |
Original source file FieldOps.H
Definition in file FieldOps.H.