Go to the documentation of this file.
32 #ifndef interpolation_H
33 #define interpolation_H
74 virtual const word&
type()
const = 0;
96 const word& interpolationType,
135 const label faceI = -1
146 const label faceI = -1
160 #define makeInterpolationType(SS, Type) \
162 defineNamedTemplateTypeNameAndDebug(SS<Type>, 0); \
164 interpolation<Type>::adddictionaryConstructorToTable<SS<Type> > \
165 add##SS##Type##ConstructorToTable_;
168 #define makeInterpolation(SS) \
170 makeInterpolationType(SS, scalar) \
171 makeInterpolationType(SS, vector) \
172 makeInterpolationType(SS, sphericalTensor) \
173 makeInterpolationType(SS, symmTensor) \
174 makeInterpolationType(SS, tensor)
const GeometricField< Type, fvPatchField, volMesh > & psi_
A class for handling words, derived from string.
const vectorField & pMeshFaceAreas_
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.
Mesh consisting of general polyhedral cells.
interpolation(const GeometricField< Type, fvPatchField, volMesh > &psi)
Construct from components.
const GeometricField< Type, fvPatchField, volMesh > & psi() const
Return the field to be interpolated.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
static autoPtr< interpolation< Type > > New(const word &interpolationType, const GeometricField< Type, fvPatchField, volMesh > &psi)
Return a reference to the specified interpolation scheme.
const faceList & pMeshFaces_
const vectorField & pMeshFaceCentres_
const vectorField & pMeshPoints_
Abstract base class for interpolation.
A list of keyword definitions, which are a keyword followed by any number of values (e....
label cell() const
Return the cell.
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual ~interpolation()
Destructor.
virtual const word & type() const =0
Runtime type information.
declareRunTimeSelectionTable(autoPtr, interpolation, dictionary,(const GeometricField< Type, fvPatchField, volMesh > &psi),(psi))
Macros to ease declaration of run-time selection tables.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Generic GeometricField class.