57 const word& interpolationType,
61 typename dictionaryConstructorTable::iterator cstrIter =
62 dictionaryConstructorTablePtr_->find(interpolationType);
64 if (cstrIter == dictionaryConstructorTablePtr_->end())
67 <<
"Unknown interpolation type " << interpolationType
69 <<
"Valid interpolation types : " <<
endl
70 << dictionaryConstructorTablePtr_->sortedToc()
109 template<
class Type,
class InterpolationType>
125 static_cast<const InterpolationType&
>(*this).interpolate
129 isNull(facei) ? -1 : facei[i]
137 template<
class Type,
class InterpolationType>
155 static_cast<const InterpolationType&
>(*this).interpolate
159 isNull(facei) ? -1 : facei[i]
#define forAll(list, i)
Loop across all elements in list.
Generic GeometricField class.
const word & name() const
Return name.
void size(const label)
Override size to be inconsistent with allocated storage.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual tmp< Field< Type > > interpolate(const vectorField &position, const labelList &celli, const labelList &facei=NullObjectRef< labelList >()) const
Interpolate field to the given points in the given cells.
Abstract base class for interpolation.
static autoPtr< interpolation< Type > > New(const word &interpolationType, const VolField< Type > &psi)
Return a reference to the specified interpolation scheme.
interpolation(const VolField< Type > &psi)
Construct from components.
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.
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
label cell() const
Return the cell.
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.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const volScalarField & psi
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
bool isNull(const T &t)
Return true if t is a reference to the nullObject of type T.