FieldFunctions.H File Reference
Include dependency graph for FieldFunctions.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define TEMPLATE   template<class Type>
 
#define TMP_UNARY_FUNCTION(ReturnType, Func)
 
#define G_UNARY_FUNCTION(ReturnType, gFunc, Func, rFunc)
 
#define PRODUCT_OPERATOR(product, Op, OpFunc)
 

Functions

template<class Type >
void component (Field< typename Field< Type >::cmptType > &res, const UList< Type > &f, const direction d)
 
template<class Type >
void T (Field< Type > &res, const UList< Type > &f)
 
template<class Type , direction r>
void pow (Field< typename powProduct< Type, r >::type > &res, const UList< Type > &vf)
 
template<class Type , direction r>
tmp< Field< typename powProduct< Type, r >::type > > pow (const UList< Type > &f, typename powProduct< Type, r >::type)
 
template<class Type , direction r>
tmp< Field< typename powProduct< Type, r >::type > > pow (const tmp< Field< Type >> &tf, typename powProduct< Type, r >::type)
 
template<class Type >
void sqr (Field< typename outerProduct< Type, Type >::type > &res, const UList< Type > &vf)
 
template<class Type >
tmp< Field< typename outerProduct< Type, Type >::type > > sqr (const UList< Type > &f)
 
template<class Type >
tmp< Field< typename outerProduct< Type, Type >::type > > sqr (const tmp< Field< Type >> &tf)
 
template<class Type >
void magSqr (Field< scalar > &res, const UList< Type > &f)
 
template<class Type >
tmp< Field< scalar > > magSqr (const UList< Type > &f)
 
template<class Type >
tmp< Field< scalar > > magSqr (const tmp< Field< Type >> &tf)
 
template<class Type >
void mag (Field< scalar > &res, const UList< Type > &f)
 
template<class Type >
tmp< Field< scalar > > mag (const UList< Type > &f)
 
template<class Type >
tmp< Field< scalar > > mag (const tmp< Field< Type >> &tf)
 
template<class Type >
void cmptMax (Field< typename Field< Type >::cmptType > &res, const UList< Type > &f)
 
template<class Type >
tmp< Field< typename Field< Type >::cmptType > > cmptMax (const UList< Type > &f)
 
template<class Type >
tmp< Field< typename Field< Type >::cmptType > > cmptMax (const tmp< Field< Type >> &tf)
 
template<class Type >
void cmptMin (Field< typename Field< Type >::cmptType > &res, const UList< Type > &f)
 
template<class Type >
tmp< Field< typename Field< Type >::cmptType > > cmptMin (const UList< Type > &f)
 
template<class Type >
tmp< Field< typename Field< Type >::cmptType > > cmptMin (const tmp< Field< Type >> &tf)
 
template<class Type >
void cmptAv (Field< typename Field< Type >::cmptType > &res, const UList< Type > &f)
 
template<class Type >
tmp< Field< typename Field< Type >::cmptType > > cmptAv (const UList< Type > &f)
 
template<class Type >
tmp< Field< typename Field< Type >::cmptType > > cmptAv (const tmp< Field< Type >> &tf)
 
template<class Type >
void cmptMag (Field< Type > &res, const UList< Type > &f)
 
template<class Type >
tmp< Field< Type > > cmptMag (const UList< Type > &f)
 
template<class Type >
tmp< Field< Type > > cmptMag (const tmp< Field< Type >> &tf)
 
template<class Type >
Type max (const UList< Type > &f)
 
template<class Type >
Type max (const tmp< Field< Type >> &tf1)
 
template<class Type >
Type min (const UList< Type > &f)
 
template<class Type >
Type min (const tmp< Field< Type >> &tf1)
 
template<class Type >
Type sum (const UList< Type > &f)
 
template<class Type >
Type sum (const tmp< Field< Type >> &tf1)
 
template<class Type >
Type maxMagSqr (const UList< Type > &f)
 
template<class Type >
Type maxMagSqr (const tmp< Field< Type >> &tf1)
 
template<class Type >
Type minMagSqr (const UList< Type > &f)
 
template<class Type >
Type minMagSqr (const tmp< Field< Type >> &tf1)
 
template<class Type >
scalar sumProd (const UList< Type > &f1, const UList< Type > &f2)
 
template<class Type >
Type sumCmptProd (const UList< Type > &f1, const UList< Type > &f2)
 
template<class Type >
scalar sumSqr (const UList< Type > &f)
 
template<class Type >
scalar sumSqr (const tmp< Field< Type >> &tf1)
 
template<class Type >
scalar sumMag (const UList< Type > &f)
 
template<class Type >
scalar sumMag (const tmp< Field< Type >> &tf1)
 
template<class Type >
Type sumCmptMag (const UList< Type > &f)
 
template<class Type >
Type sumCmptMag (const tmp< Field< Type >> &tf1)
 
template<class Type >
Type average (const UList< Type > &f)
 
template<class Type >
Type average (const tmp< Field< Type >> &tf1)
 
template<class Type >
Type gMax (const UList< Type > &f, const label comm)
 
template<class Type >
Type gMax (const tmp< Field< Type >> &tf1)
 
template<class Type >
Type gMin (const UList< Type > &f, const label comm)
 
template<class Type >
Type gMin (const tmp< Field< Type >> &tf1)
 
template<class Type >
Type gSum (const UList< Type > &f, const label comm)
 
template<class Type >
Type gSum (const tmp< Field< Type >> &tf1)
 
template<class Type >
Type gMaxMagSqr (const UList< Type > &f, const label comm)
 
template<class Type >
Type gMaxMagSqr (const tmp< Field< Type >> &tf1)
 
template<class Type >
Type gMinMagSqr (const UList< Type > &f, const label comm)
 
template<class Type >
Type gMinMagSqr (const tmp< Field< Type >> &tf1)
 
template<class Type >
scalar gSumSqr (const UList< Type > &f, const label comm)
 
template<class Type >
scalar gSumSqr (const tmp< Field< Type >> &tf1)
 
template<class Type >
scalar gSumMag (const UList< Type > &f, const label comm)
 
template<class Type >
scalar gSumMag (const tmp< Field< Type >> &tf1)
 
template<class Type >
Type gSumCmptMag (const UList< Type > &f, const label comm)
 
template<class Type >
Type gSumCmptMag (const tmp< Field< Type >> &tf1)
 
template<class Type >
scalar gSumProd (const UList< Type > &f1, const UList< Type > &f2, const label comm)
 
template<class Type >
Type gSumCmptProd (const UList< Type > &f1, const UList< Type > &f2, const label comm)
 
template<class Type >
Type gAverage (const UList< Type > &f, const label comm)
 
template<class Type >
Type gAverage (const tmp< Field< Type >> &tf1)
 
template<class Type1 , class Type2 >
void add (Field< typename typeOfSum< Type1, Type2 >::type > &res, const UList< Type1 > &f1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename typeOfSum< Type1, Type2 >::type > > operator+ (const UList< Type1 > &f1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename typeOfSum< Type1, Type2 >::type > > operator+ (const UList< Type1 > &f1, const tmp< Field< Type2 >> &tf2)
 
template<class Type1 , class Type2 >
tmp< Field< typename typeOfSum< Type1, Type2 >::type > > operator+ (const tmp< Field< Type1 >> &tf1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename typeOfSum< Type1, Type2 >::type > > operator+ (const tmp< Field< Type1 >> &tf1, const tmp< Field< Type2 >> &tf2)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
void add (Field< typename typeOfSum< Type, Form >::type > &res, const UList< Type > &f1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
tmp< Field< typename typeOfSum< Type, Form >::type > > operator+ (const UList< Type > &f1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
tmp< Field< typename typeOfSum< Type, Form >::type > > operator+ (const tmp< Field< Type >> &tf1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
void add (Field< typename typeOfSum< Form, Type >::type > &res, const VectorSpace< Form, Cmpt, nCmpt > &vs, const UList< Type > &f1)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
tmp< Field< typename typeOfSum< Form, Type >::type > > operator+ (const VectorSpace< Form, Cmpt, nCmpt > &vs, const UList< Type > &f1)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
tmp< Field< typename typeOfSum< Form, Type >::type > > operator+ (const VectorSpace< Form, Cmpt, nCmpt > &vs, const tmp< Field< Type >> &tf1)
 
template<class Type1 , class Type2 >
void subtract (Field< typename typeOfSum< Type1, Type2 >::type > &res, const UList< Type1 > &f1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename typeOfSum< Type1, Type2 >::type > > operator- (const UList< Type1 > &f1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename typeOfSum< Type1, Type2 >::type > > operator- (const UList< Type1 > &f1, const tmp< Field< Type2 >> &tf2)
 
template<class Type1 , class Type2 >
tmp< Field< typename typeOfSum< Type1, Type2 >::type > > operator- (const tmp< Field< Type1 >> &tf1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename typeOfSum< Type1, Type2 >::type > > operator- (const tmp< Field< Type1 >> &tf1, const tmp< Field< Type2 >> &tf2)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
void subtract (Field< typename typeOfSum< Type, Form >::type > &res, const UList< Type > &f1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
tmp< Field< typename typeOfSum< Type, Form >::type > > operator- (const UList< Type > &f1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
tmp< Field< typename typeOfSum< Type, Form >::type > > operator- (const tmp< Field< Type >> &tf1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
void subtract (Field< typename typeOfSum< Form, Type >::type > &res, const VectorSpace< Form, Cmpt, nCmpt > &vs, const UList< Type > &f1)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
tmp< Field< typename typeOfSum< Form, Type >::type > > operator- (const VectorSpace< Form, Cmpt, nCmpt > &vs, const UList< Type > &f1)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
tmp< Field< typename typeOfSum< Form, Type >::type > > operator- (const VectorSpace< Form, Cmpt, nCmpt > &vs, const tmp< Field< Type >> &tf1)
 
template<class Type1 , class Type2 >
void outer (Field< typename outerProduct< Type1, Type2 >::type > &res, const UList< Type1 > &f1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename outerProduct< Type1, Type2 >::type > > operator* (const UList< Type1 > &f1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename outerProduct< Type1, Type2 >::type > > operator* (const UList< Type1 > &f1, const tmp< Field< Type2 >> &tf2)
 
template<class Type1 , class Type2 >
tmp< Field< typename outerProduct< Type1, Type2 >::type > > operator* (const tmp< Field< Type1 >> &tf1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename outerProduct< Type1, Type2 >::type > > operator* (const tmp< Field< Type1 >> &tf1, const tmp< Field< Type2 >> &tf2)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
void outer (Field< typename outerProduct< Type, Form >::type > &res, const UList< Type > &f1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
tmp< Field< typename outerProduct< Type, Form >::type > > operator* (const UList< Type > &f1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
tmp< Field< typename outerProduct< Type, Form >::type > > operator* (const tmp< Field< Type >> &tf1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
void outer (Field< typename outerProduct< Form, Type >::type > &res, const VectorSpace< Form, Cmpt, nCmpt > &vs, const UList< Type > &f1)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
tmp< Field< typename outerProduct< Form, Type >::type > > operator* (const VectorSpace< Form, Cmpt, nCmpt > &vs, const UList< Type > &f1)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
tmp< Field< typename outerProduct< Form, Type >::type > > operator* (const VectorSpace< Form, Cmpt, nCmpt > &vs, const tmp< Field< Type >> &tf1)
 
template<class Type1 , class Type2 >
void cross (Field< typename crossProduct< Type1, Type2 >::type > &res, const UList< Type1 > &f1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename crossProduct< Type1, Type2 >::type > > operator^ (const UList< Type1 > &f1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename crossProduct< Type1, Type2 >::type > > operator^ (const UList< Type1 > &f1, const tmp< Field< Type2 >> &tf2)
 
template<class Type1 , class Type2 >
tmp< Field< typename crossProduct< Type1, Type2 >::type > > operator^ (const tmp< Field< Type1 >> &tf1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename crossProduct< Type1, Type2 >::type > > operator^ (const tmp< Field< Type1 >> &tf1, const tmp< Field< Type2 >> &tf2)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
void cross (Field< typename crossProduct< Type, Form >::type > &res, const UList< Type > &f1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
tmp< Field< typename crossProduct< Type, Form >::type > > operator^ (const UList< Type > &f1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
tmp< Field< typename crossProduct< Type, Form >::type > > operator^ (const tmp< Field< Type >> &tf1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
void cross (Field< typename crossProduct< Form, Type >::type > &res, const VectorSpace< Form, Cmpt, nCmpt > &vs, const UList< Type > &f1)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
tmp< Field< typename crossProduct< Form, Type >::type > > operator^ (const VectorSpace< Form, Cmpt, nCmpt > &vs, const UList< Type > &f1)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
tmp< Field< typename crossProduct< Form, Type >::type > > operator^ (const VectorSpace< Form, Cmpt, nCmpt > &vs, const tmp< Field< Type >> &tf1)
 
template<class Type1 , class Type2 >
void dot (Field< typename innerProduct< Type1, Type2 >::type > &res, const UList< Type1 > &f1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename innerProduct< Type1, Type2 >::type > > operator& (const UList< Type1 > &f1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename innerProduct< Type1, Type2 >::type > > operator& (const UList< Type1 > &f1, const tmp< Field< Type2 >> &tf2)
 
template<class Type1 , class Type2 >
tmp< Field< typename innerProduct< Type1, Type2 >::type > > operator& (const tmp< Field< Type1 >> &tf1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename innerProduct< Type1, Type2 >::type > > operator& (const tmp< Field< Type1 >> &tf1, const tmp< Field< Type2 >> &tf2)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
void dot (Field< typename innerProduct< Type, Form >::type > &res, const UList< Type > &f1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
tmp< Field< typename innerProduct< Type, Form >::type > > operator& (const UList< Type > &f1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
tmp< Field< typename innerProduct< Type, Form >::type > > operator& (const tmp< Field< Type >> &tf1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
void dot (Field< typename innerProduct< Form, Type >::type > &res, const VectorSpace< Form, Cmpt, nCmpt > &vs, const UList< Type > &f1)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
tmp< Field< typename innerProduct< Form, Type >::type > > operator& (const VectorSpace< Form, Cmpt, nCmpt > &vs, const UList< Type > &f1)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
tmp< Field< typename innerProduct< Form, Type >::type > > operator& (const VectorSpace< Form, Cmpt, nCmpt > &vs, const tmp< Field< Type >> &tf1)
 
template<class Type1 , class Type2 >
void dotdot (Field< typename scalarProduct< Type1, Type2 >::type > &res, const UList< Type1 > &f1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename scalarProduct< Type1, Type2 >::type > > operator&& (const UList< Type1 > &f1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename scalarProduct< Type1, Type2 >::type > > operator&& (const UList< Type1 > &f1, const tmp< Field< Type2 >> &tf2)
 
template<class Type1 , class Type2 >
tmp< Field< typename scalarProduct< Type1, Type2 >::type > > operator&& (const tmp< Field< Type1 >> &tf1, const UList< Type2 > &f2)
 
template<class Type1 , class Type2 >
tmp< Field< typename scalarProduct< Type1, Type2 >::type > > operator&& (const tmp< Field< Type1 >> &tf1, const tmp< Field< Type2 >> &tf2)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
void dotdot (Field< typename scalarProduct< Type, Form >::type > &res, const UList< Type > &f1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
tmp< Field< typename scalarProduct< Type, Form >::type > > operator&& (const UList< Type > &f1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Type , class Form , class Cmpt , direction nCmpt>
tmp< Field< typename scalarProduct< Type, Form >::type > > operator&& (const tmp< Field< Type >> &tf1, const VectorSpace< Form, Cmpt, nCmpt > &vs)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
void dotdot (Field< typename scalarProduct< Form, Type >::type > &res, const VectorSpace< Form, Cmpt, nCmpt > &vs, const UList< Type > &f1)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
tmp< Field< typename scalarProduct< Form, Type >::type > > operator&& (const VectorSpace< Form, Cmpt, nCmpt > &vs, const UList< Type > &f1)
 
template<class Form , class Cmpt , direction nCmpt, class Type >
tmp< Field< typename scalarProduct< Form, Type >::type > > operator&& (const VectorSpace< Form, Cmpt, nCmpt > &vs, const tmp< Field< Type >> &tf1)
 

Detailed Description

Original source file FieldFunctions.H

Definition in file FieldFunctions.H.

Macro Definition Documentation

◆ TEMPLATE

#define TEMPLATE   template<class Type>

Definition at line 26 of file FieldFunctions.H.

◆ TMP_UNARY_FUNCTION

#define TMP_UNARY_FUNCTION (   ReturnType,
  Func 
)
Value:
\
template<class Type> \
ReturnType Func(const tmp<Field<Type>>& tf1);

Definition at line 154 of file FieldFunctions.H.

◆ G_UNARY_FUNCTION

#define G_UNARY_FUNCTION (   ReturnType,
  gFunc,
  Func,
  rFunc 
)
Value:
\
template<class Type> \
ReturnType gFunc(const UList<Type>& f, const label comm = UPstream::worldComm);\
TMP_UNARY_FUNCTION(ReturnType, gFunc)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
labelList f(nPoints)

Definition at line 212 of file FieldFunctions.H.

◆ PRODUCT_OPERATOR

#define PRODUCT_OPERATOR (   product,
  Op,
  OpFunc 
)

Definition at line 284 of file FieldFunctions.H.