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

scalarField.C File Reference

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


Detailed Description

Specialisation of Field<T> for scalar.

Definition in file scalarField.C.

#include "src/OpenFOAM/fields/Fields/scalarField/scalarField.H"
#include "src/OpenFOAM/fields/Fields/Field/FieldFunctionsM.C"
#include "src/OpenFOAM/fields/Fields/Field/undefFieldFunctionsM.H"
Include dependency graph for scalarField.C:

Go to the source code of this file.

Namespaces

namespace  Foam
 

Namespace for OpenFOAM.


Defines

#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)

Define Documentation

#define TEMPLATE

Definition at line 31 of file scalarField.C.

#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)                   \
{                                                                             \
    tmp<scalarField> tRes(new scalarField(sf.size()));                        \
    func(tRes(), n, sf);                                                      \
    return tRes;                                                              \
}                                                                             \
                                                                              \
tmp<scalarField> func(const int n, const tmp<scalarField>& tsf)               \
{                                                                             \
    tmp<scalarField> tRes = reuseTmp<scalar, scalar>::New(tsf);               \
    func(tRes(), n, tsf());                                                   \
    reuseTmp<scalar, scalar>::clear(tsf);                                     \
    return tRes;                                                              \
}

Definition at line 139 of file scalarField.C.