FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

DimensionedFieldFunctions.C File Reference


Detailed Description

Definition in file DimensionedFieldFunctions.C.

#include "src/OpenFOAM/fields/DimensionedFields/DimensionedField/DimensionedFieldReuseFunctions.H"
#include "src/OpenFOAM/fields/DimensionedFields/DimensionedField/DimensionedFieldFunctionsM.C"
#include "src/OpenFOAM/fields/Fields/Field/undefFieldFunctionsM.H"
Include dependency graph for DimensionedFieldFunctions.C:

Go to the source code of this file.

Namespaces

namespace  Foam
 

Namespace for OpenFOAM.


Defines

#define  TEMPLATE   template<class Type, class GeoMesh>
#define  UNARY_REDUCTION_FUNCTION(returnType, func, dfunc)
#define  PRODUCT_OPERATOR(product, op, opFunc)

Functions

template<class Type , class GeoMesh , int r>
tmp< DimensionedField
< typename powProduct< Type, r >
::type, GeoMesh > >  
pow (const DimensionedField< Type, GeoMesh > &df, typename powProduct< Type, r >::type)
template<class Type , class GeoMesh , int r>
tmp< DimensionedField
< typename powProduct< Type, r >
::type, GeoMesh > >  
pow (const tmp< DimensionedField< Type, GeoMesh > > &tdf, typename powProduct< Type, r >::type)
template<class Type , class GeoMesh >
tmp< DimensionedField
< typename outerProduct< Type,
Type >::type, GeoMesh > >  
sqr (const DimensionedField< Type, GeoMesh > &df)
template<class Type , class GeoMesh >
tmp< DimensionedField
< typename outerProduct< Type,
Type >::type, GeoMesh > >  
sqr (const tmp< DimensionedField< Type, GeoMesh > > &tdf)
template<class Type , class GeoMesh >
tmp< DimensionedField< scalar,
GeoMesh > >  
magSqr (const DimensionedField< Type, GeoMesh > &df)
template<class Type , class GeoMesh >
tmp< DimensionedField< scalar,
GeoMesh > >  
magSqr (const tmp< DimensionedField< Type, GeoMesh > > &tdf)
template<class Type , class GeoMesh >
tmp< DimensionedField< scalar,
GeoMesh > >  
mag (const DimensionedField< Type, GeoMesh > &df)
template<class Type , class GeoMesh >
tmp< DimensionedField< scalar,
GeoMesh > >  
mag (const tmp< DimensionedField< Type, GeoMesh > > &tdf)
template<class Type , class GeoMesh >
tmp< DimensionedField
< typename DimensionedField
< Type, GeoMesh >::cmptType,
GeoMesh >>  
cmptAv (const DimensionedField< Type, GeoMesh > &df)
template<class Type , class GeoMesh >
tmp< DimensionedField
< typename DimensionedField
< Type, GeoMesh >::cmptType,
GeoMesh >>  
cmptAv (const tmp< DimensionedField< Type, GeoMesh > > &tdf)
template<class Type , class GeoMesh >
dimensioned< Type >  max (const DimensionedField< Type, GeoMesh > &df)
template<class Type , class GeoMesh >
dimensioned< Type >  max (const tmp< DimensionedField< Type, GeoMesh > > &tdf1)
template<class Type , class GeoMesh >
dimensioned< Type >  min (const DimensionedField< Type, GeoMesh > &df)
template<class Type , class GeoMesh >
dimensioned< Type >  min (const tmp< DimensionedField< Type, GeoMesh > > &tdf1)
template<class Type , class GeoMesh >
dimensioned< Type >  sum (const DimensionedField< Type, GeoMesh > &df)
template<class Type , class GeoMesh >
dimensioned< Type >  sum (const tmp< DimensionedField< Type, GeoMesh > > &tdf1)
template<class Type , class GeoMesh >
dimensioned< scalar >  sumMag (const DimensionedField< Type, GeoMesh > &df)
template<class Type , class GeoMesh >
dimensioned< scalar >  sumMag (const tmp< DimensionedField< Type, GeoMesh > > &tdf1)
template<class Type , class GeoMesh >
dimensioned< Type >  average (const DimensionedField< Type, GeoMesh > &df)
template<class Type , class GeoMesh >
dimensioned< Type >  average (const tmp< DimensionedField< Type, GeoMesh > > &tdf1)

Define Documentation

#define TEMPLATE   template<class Type, class GeoMesh>

Definition at line 28 of file DimensionedFieldFunctions.C.

#define UNARY_REDUCTION_FUNCTION (   returnType,
  func,
  dfunc  
)
Value:
\
template<class Type, class GeoMesh>                                           \
dimensioned<returnType> func                                                  \
(                                                                             \
    const DimensionedField<Type, GeoMesh>& df                                 \
)                                                                             \
{                                                                             \
    return dimensioned<Type>                                                  \
    (                                                                         \
        #func "(" + df.name() + ')',                                          \
        df.dimensions(),                                                      \
        dfunc(df.field())                                                     \
    );                                                                        \
}                                                                             \
                                                                              \
template<class Type, class GeoMesh>                                           \
dimensioned<returnType> func                                                  \
(                                                                             \
    const tmp<DimensionedField<Type, GeoMesh> >& tdf1                         \
)                                                                             \
{                                                                             \
    dimensioned<returnType> res = func(tdf1());                               \
    tdf1.clear();                                                             \
    return res;                                                               \
}

Definition at line 304 of file DimensionedFieldFunctions.C.

#define PRODUCT_OPERATOR (   product,
  op,
  opFunc  
)

Definition at line 367 of file DimensionedFieldFunctions.C.