FreeFOAM The Cross-Platform CFD Toolkit
FieldFunctions.C File Reference

Detailed Description

Definition in file FieldFunctions.C.

+ Include dependency graph for FieldFunctions.C:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  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 , int r>
void pow (Field< typename powProduct< Type, r >::type > &res, const UList< Type > &vf)
template<class Type , int r>
tmp< Field< typename
powProduct< Type, r >::type > > 
pow (const UList< Type > &f, typename powProduct< Type, r >::type)
template<class Type , int 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 >
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)
template<class Type >
Type gMax (const tmp< Field< Type > > &tf1)
template<class Type >
Type gMin (const UList< Type > &f)
template<class Type >
Type gMin (const tmp< Field< Type > > &tf1)
template<class Type >
Type gSum (const UList< Type > &f)
template<class Type >
Type gSum (const tmp< Field< Type > > &tf1)
template<class Type >
scalar gSumSqr (const UList< Type > &f)
template<class Type >
scalar gSumSqr (const tmp< Field< Type > > &tf1)
template<class Type >
scalar gSumMag (const UList< Type > &f)
template<class Type >
scalar gSumMag (const tmp< Field< Type > > &tf1)
template<class Type >
Type gSumCmptMag (const UList< Type > &f)
template<class Type >
Type gSumCmptMag (const tmp< Field< Type > > &tf1)
template<class Type >
scalar gSumProd (const UList< Type > &f1, const UList< Type > &f2)
template<class Type >
Type gSumCmptProd (const UList< Type > &f1, const UList< Type > &f2)
template<class Type >
Type gAverage (const UList< Type > &f)
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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int 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 , int nCmpt, class Type >
tmp< Field< typename
scalarProduct< Form, Type >
::type > > 
operator&& (const VectorSpace< Form, Cmpt, nCmpt > &vs, const tmp< Field< Type > > &tf1)

Macro Definition Documentation

#define TEMPLATE   template<class Type>

Definition at line 29 of file FieldFunctions.C.

#define TMP_UNARY_FUNCTION (   ReturnType,
  Func 
)
Value:
\
template<class Type> \
ReturnType Func(const tmp<Field<Type> >& tf1) \
{ \
ReturnType res = Func(tf1()); \
tf1.clear(); \
return res; \
}

Definition at line 300 of file FieldFunctions.C.

#define G_UNARY_FUNCTION (   ReturnType,
  gFunc,
  Func,
  rFunc 
)
Value:
\
template<class Type> \
ReturnType gFunc(const UList<Type>& f) \
{ \
ReturnType res = Func(f); \
reduce(res, rFunc##Op<Type>()); \
return res; \
} \
TMP_UNARY_FUNCTION(ReturnType, gFunc)

Definition at line 467 of file FieldFunctions.C.

#define PRODUCT_OPERATOR (   product,
  Op,
  OpFunc 
)

Definition at line 556 of file FieldFunctions.C.