49 const word& interpolationType,
53 typename dictionaryConstructorTable::iterator cstrIter =
54 dictionaryConstructorTablePtr_->find(interpolationType);
56 if (cstrIter == dictionaryConstructorTablePtr_->end())
59 <<
"Unknown interpolation type " << interpolationType
60 <<
" for field " << psi.
name() <<
nl <<
nl 61 <<
"Valid interpolation types : " <<
endl 62 << dictionaryConstructorTablePtr_->sortedToc()
101 template<
class Type,
class InterpolationType>
117 static_cast<const InterpolationType&
>(*this).interpolate
121 isNull(facei) ? -1 : facei[i]
129 template<
class Type,
class InterpolationType>
147 static_cast<const InterpolationType&
>(*this).interpolate
151 isNull(facei) ? -1 : facei[i]
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word & name() const
Return name.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
T & ref() const
Return non-const reference or generate a fatal error.
static autoPtr< interpolation< Type > > New(const word &interpolationType, const GeometricField< Type, fvPatchField, volMesh > &psi)
Return a reference to the specified interpolation scheme.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Generic GeometricField class.
tetPointRef tet(const polyMesh &mesh) const
Return the geometry corresponding to this tet.
Point barycentricToPoint(const barycentric &bary) const
Calculate the point from the given barycentric coordinates.
virtual Type interpolate(const vector &position, const label celli, const label facei=-1) const =0
Interpolate field to the given point in the given cell.
bool isNull(const T &t)
Return true if t is a reference to the nullObject of type T.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
A class for handling words, derived from string.
label cell() const
Return the cell.
virtual tmp< Field< Type > > interpolate(const vectorField &position, const labelField &celli, const labelField &facei=NullObjectRef< labelField >()) const
Interpolate field to the given points in the given cells.
Storage and named access for the indices of a tet which is part of the decomposition of a cell...
const Mesh & mesh() const
Return mesh.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
interpolation(const GeometricField< Type, fvPatchField, volMesh > &psi)
Construct from components.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const volScalarField & psi
A class for managing temporary objects.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.