Loading...
Searching...
No Matches
FieldOps.H File Reference
Include dependency graph for FieldOps.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Foam::FieldOps
 Various utility functions to work on Fields.
namespace  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.
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.
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.
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.
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.
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.
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.
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.
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.

Detailed Description

Original source file FieldOps.H

Definition in file FieldOps.H.