scalarField.C File Reference

Specialisation of Field<T> for scalar. More...

Include dependency graph for scalarField.C:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define TEMPLATE
 
#define BesselFunc(func)
 

Functions

void component (scalarField &sf, const UList< scalar > &f, const direction)
 
void stabilise (scalarField &res, const UList< scalar > &sf, const scalar s)
 
tmp< scalarField > stabilise (const UList< scalar > &sf, const scalar s)
 
tmp< scalarField > stabilise (const tmp< scalarField > &tsf, const scalar s)
 
template<>
float sumProd (const UList< float > &f1, const UList< float > &f2)
 Sum product for float. More...
 
template<>
double sumProd (const UList< double > &f1, const UList< double > &f2)
 Sum product for double. More...
 
void jn (scalarField &res, const int n, const UList< scalar > &sf)
 
tmp< scalarField > jn (const int n, const UList< scalar > &sf)
 
tmp< scalarField > jn (const int n, const tmp< scalarField > &tsf)
 
void yn (scalarField &res, const int n, const UList< scalar > &sf)
 
tmp< scalarField > yn (const int n, const UList< scalar > &sf)
 
tmp< scalarField > yn (const int n, const tmp< scalarField > &tsf)
 

Detailed Description

Specialisation of Field<T> for scalar.

Original source file scalarField.C

Definition in file scalarField.C.

Macro Definition Documentation

◆ TEMPLATE

#define TEMPLATE

Definition at line 35 of file scalarField.C.

◆ BesselFunc

#define BesselFunc (   func)
Value:
void func(scalarField& res, const int n, const UList<scalar>& sf) \
{ \
TFOR_ALL_F_OP_FUNC_S_F(scalar, res, =, ::Foam::func, int, n, scalar, sf) \
} \
\
tmp<scalarField> func(const int n, const UList<scalar>& sf) \
{ \
auto tresult = tmp<scalarField>::New(sf.size()); \
func(tresult.ref(), n, sf); \
return tresult; \
} \
\
tmp<scalarField> func(const int n, const tmp<scalarField>& tsf) \
{ \
tmp<scalarField> tresult = New(tsf); \
func(tresult.ref(), n, tsf()); \
tsf.clear(); \
return tresult; \
}

Definition at line 185 of file scalarField.C.

Foam::scalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Definition: primitiveFieldsFwd.H:52
n
label n
Definition: TABSMDCalcMethod2.H:31
Foam::func
void func(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Foam::New
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Definition: DimensionedFieldReuseFunctions.H:105