OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

FieldFunctions.H File Reference


Detailed Description

View FieldFunctions.H
License
This file is part of OpenFOAM.

OpenFOAM is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file FieldFunctions.H.

Go to the source code of this file.


Namespaces

namespace  Foam

Defines

#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=pTraits< typename powProduct< Type, r >::type >::zero)
template<class Type, int r>
tmp< Field< typename powProduct<
Type, r >::type > > 
pow (const tmp< Field< Type > > &tf, typename powProduct< Type, r >::type=pTraits< typename powProduct< Type, r >::type >::zero)
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>
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 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>
scalar gSumProd (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)

Define Documentation

#define TEMPLATE   template<class Type>

Definition at line 34 of file FieldFunctions.H.

#define TMP_UNARY_FUNCTION ( ReturnType,
Func   ) 

Value:

\
template<class Type>                                                          \
ReturnType Func(const tmp<Field<Type> >& tf1);

Definition at line 161 of file FieldFunctions.H.

#define G_UNARY_FUNCTION ( ReturnType,
gFunc,
Func,
rFunc   ) 

Value:

\
template<class Type>                                                          \
ReturnType gFunc(const UList<Type>& f);                                       \
TMP_UNARY_FUNCTION(ReturnType, gFunc)

Definition at line 201 of file FieldFunctions.H.

#define PRODUCT_OPERATOR ( product,
Op,
OpFunc   ) 

Definition at line 251 of file FieldFunctions.H.

Copyright © 2000-2007 OpenCFD Ltd