35#ifndef Foam_interpolation_H
36#define Foam_interpolation_H
78 virtual const word&
type()
const = 0;
100 const word& interpolationType,
138 const label facei = -1
149 const label facei = -1
169#define makeInterpolationType(SS, Type) \
171defineNamedTemplateTypeNameAndDebug(SS<Type>, 0); \
173interpolation<Type>::adddictionaryConstructorToTable<SS<Type>> \
174 add##SS##Type##ConstructorToTable_;
177#define makeInterpolation(SS) \
179makeInterpolationType(SS, scalar) \
180makeInterpolationType(SS, vector) \
181makeInterpolationType(SS, sphericalTensor) \
182makeInterpolationType(SS, symmTensor) \
183makeInterpolationType(SS, tensor)
Generic GeometricField class.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base class for volume field interpolation.
virtual ~interpolation()=default
Destructor.
const vectorField & pMeshFaceCentres_
const faceList & pMeshFaces_
const vectorField & pMeshFaceAreas_
static autoPtr< interpolation< Type > > New(const word &interpolationType, const GeometricField< Type, fvPatchField, volMesh > &psi)
Return a reference to the specified interpolation scheme.
const GeometricField< Type, fvPatchField, volMesh > & psi_
const vectorField & pMeshPoints_
declareRunTimeSelectionTable(autoPtr, interpolation, dictionary,(const GeometricField< Type, fvPatchField, volMesh > &psi),(psi))
virtual const word & type() const =0
Runtime type information.
const GeometricField< Type, fvPatchField, volMesh > & psi() const noexcept
Return the field to be interpolated.
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.
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
tetPointRef tet(const polyMesh &mesh) const
Return the geometry corresponding to this tet.
label cell() const noexcept
Return the cell index.
Point barycentricToPoint(const barycentric &bary) const
Calculate the point from the given barycentric coordinates.
A class for handling words, derived from Foam::string.
PtrList< coordinateSystem > coordinates(solidRegions.size())
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)