Functions
Foam::FieldOps Namespace Reference

Various utility functions to work on Fields. More...

Functions

template<class Tout , class T1 , class UnaryOp >
void assign (Field< Tout > &result, const Field< T1 > &a, const UnaryOp &op)
 
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)
 
template<class T , class BinaryOp >
void ternary (Field< T > &result, const Field< T > &a, const Field< T > &b, const BinaryOp &bop)
 
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)
 
template<class T , class FlipOp >
void ternarySelect (Field< T > &result, const bitSet &cond, const Field< T > &a, const Field< T > &b, const FlipOp &flip)
 
template<class T , class BoolListType >
void ternarySelect (Field< T > &result, const BoolListType &cond, const Field< T > &a, const Field< T > &b)
 
template<class T >
void ternarySelect (Field< T > &result, const bitSet &cond, const Field< T > &a, const Field< T > &b)
 
template<class T1 , class T2 >
Tuple2< T1, T2 > findMinData (const Field< T1 > &vals, const Field< T2 > &data)
 
template<class T1 , class T2 >
Tuple2< T1, T2 > findMaxData (const Field< T1 > &vals, const Field< T2 > &data)
 
template<class Tout , class T1 , class UnaryOp , template< class > class PatchField, class GeoMesh >
void assign (GeometricField< Tout, PatchField, GeoMesh > &result, const GeometricField< T1, PatchField, GeoMesh > &a, const UnaryOp &op)
 
template<class Tout , class T1 , class T2 , class BinaryOp , template< class > class PatchField, class GeoMesh >
void assign (GeometricField< Tout, PatchField, GeoMesh > &result, const GeometricField< T1, PatchField, GeoMesh > &a, const GeometricField< T2, PatchField, GeoMesh > &b, const BinaryOp &bop)
 
template<class T , class BinaryOp , template< class > class PatchField, class GeoMesh >
void ternary (GeometricField< T, PatchField, GeoMesh > &result, const GeometricField< T, PatchField, GeoMesh > &a, const GeometricField< T, PatchField, GeoMesh > &b, const BinaryOp &bop)
 
template<class T , class BoolType , class FlipOp , template< class > class PatchField, class GeoMesh >
void ternarySelect (GeometricField< T, PatchField, GeoMesh > &result, const GeometricField< BoolType, PatchField, GeoMesh > &cond, const GeometricField< T, PatchField, GeoMesh > &a, const GeometricField< T, PatchField, GeoMesh > &b, const FlipOp &flip)
 
template<class Tout , class T1 , class UnaryOp >
void assign (pointPatchField< Tout > &result, const pointPatchField< T1 > &a, const UnaryOp &op)
 
template<class Tout , class T1 , class T2 , class BinaryOp >
void assign (pointPatchField< Tout > &result, const pointPatchField< T1 > &a, const pointPatchField< T2 > &b, const BinaryOp &bop)
 
template<class T , class BinaryOp >
void ternary (pointPatchField< T > &result, const pointPatchField< T > &a, const pointPatchField< T > &b, const BinaryOp &bop)
 
template<class T , class BoolType , class FlipOp >
void ternarySelect (pointPatchField< T > &result, const pointPatchField< BoolType > &cond, const pointPatchField< T > &a, const pointPatchField< T > &b, const FlipOp &flip)
 

Detailed Description

Various utility functions to work on Fields.

Source files

Function Documentation

◆ assign() [1/6]

void assign ( Field< Tout > &  result,
const Field< T1 > &  a,
const UnaryOp &  op 
)

◆ assign() [2/6]

void assign ( Field< Tout > &  result,
const Field< T1 > &  a,
const Field< T2 > &  b,
const BinaryOp &  bop 
)

Definition at line 50 of file FieldOps.C.

References Foam::abort(), Foam::constant::physicoChemical::b, Foam::FatalError, FatalErrorInFunction, Foam::nl, and Foam::transform().

Here is the call graph for this function:

◆ ternary() [1/3]

void ternary ( Field< T > &  result,
const Field< T > &  a,
const Field< T > &  b,
const BinaryOp &  bop 
)

Definition at line 73 of file FieldOps.C.

References Foam::abort(), Foam::constant::physicoChemical::b, Foam::FatalError, FatalErrorInFunction, forAll, and Foam::nl.

Referenced by ternary().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ternarySelect() [1/6]

void ternarySelect ( Field< T > &  result,
const BoolListType &  cond,
const Field< T > &  a,
const Field< T > &  b,
const FlipOp &  flip 
)

Definition at line 99 of file FieldOps.C.

References Foam::abort(), Foam::constant::physicoChemical::b, Foam::FatalError, FatalErrorInFunction, forAll, and Foam::nl.

Referenced by ternarySelect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ternarySelect() [2/6]

void ternarySelect ( Field< T > &  result,
const bitSet cond,
const Field< T > &  a,
const Field< T > &  b,
const FlipOp &  flip 
)

Definition at line 126 of file FieldOps.C.

References Foam::abort(), Foam::constant::physicoChemical::b, Foam::FatalError, FatalErrorInFunction, forAll, and Foam::nl.

Here is the call graph for this function:

◆ ternarySelect() [3/6]

void Foam::FieldOps::ternarySelect ( Field< T > &  result,
const BoolListType &  cond,
const Field< T > &  a,
const Field< T > &  b 
)

Definition at line 181 of file FieldOps.H.

References Foam::constant::physicoChemical::b, and ternarySelect().

Here is the call graph for this function:

◆ ternarySelect() [4/6]

void Foam::FieldOps::ternarySelect ( Field< T > &  result,
const bitSet cond,
const Field< T > &  a,
const Field< T > &  b 
)

Definition at line 197 of file FieldOps.H.

References Foam::constant::physicoChemical::b, and ternarySelect().

Here is the call graph for this function:

◆ findMinData()

Tuple2<T1,T2> Foam::FieldOps::findMinData ( const Field< T1 > &  vals,
const Field< T2 > &  data 
)

Referenced by exprDriver::getPositionOfMinimum().

Here is the caller graph for this function:

◆ findMaxData()

Tuple2<T1,T2> Foam::FieldOps::findMaxData ( const Field< T1 > &  vals,
const Field< T2 > &  data 
)

Referenced by exprDriver::getPositionOfMaximum().

Here is the caller graph for this function:

◆ assign() [3/6]

void Foam::FieldOps::assign ( GeometricField< Tout, PatchField, GeoMesh > &  result,
const GeometricField< T1, PatchField, GeoMesh > &  a,
const UnaryOp &  op 
)

◆ assign() [4/6]

void Foam::FieldOps::assign ( GeometricField< Tout, PatchField, GeoMesh > &  result,
const GeometricField< T1, PatchField, GeoMesh > &  a,
const GeometricField< T2, PatchField, GeoMesh > &  b,
const BinaryOp &  bop 
)

◆ ternary() [2/3]

void Foam::FieldOps::ternary ( GeometricField< T, PatchField, GeoMesh > &  result,
const GeometricField< T, PatchField, GeoMesh > &  a,
const GeometricField< T, PatchField, GeoMesh > &  b,
const BinaryOp &  bop 
)

◆ ternarySelect() [5/6]

void Foam::FieldOps::ternarySelect ( GeometricField< T, PatchField, GeoMesh > &  result,
const GeometricField< BoolType, PatchField, GeoMesh > &  cond,
const GeometricField< T, PatchField, GeoMesh > &  a,
const GeometricField< T, PatchField, GeoMesh > &  b,
const FlipOp &  flip 
)

◆ assign() [5/6]

void Foam::FieldOps::assign ( pointPatchField< Tout > &  result,
const pointPatchField< T1 > &  a,
const UnaryOp &  op 
)
inline

Definition at line 353 of file pointPatchFieldFunctions.H.

◆ assign() [6/6]

void Foam::FieldOps::assign ( pointPatchField< Tout > &  result,
const pointPatchField< T1 > &  a,
const pointPatchField< T2 > &  b,
const BinaryOp &  bop 
)
inline

Definition at line 363 of file pointPatchFieldFunctions.H.

◆ ternary() [3/3]

void Foam::FieldOps::ternary ( pointPatchField< T > &  result,
const pointPatchField< T > &  a,
const pointPatchField< T > &  b,
const BinaryOp &  bop 
)
inline

Definition at line 373 of file pointPatchFieldFunctions.H.

◆ ternarySelect() [6/6]

void Foam::FieldOps::ternarySelect ( pointPatchField< T > &  result,
const pointPatchField< BoolType > &  cond,
const pointPatchField< T > &  a,
const pointPatchField< T > &  b,
const FlipOp &  flip 
)
inline

Definition at line 383 of file pointPatchFieldFunctions.H.