Abstract base class for volume field interpolation. More...
Public Member Functions | |
virtual const word & | type () const =0 |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, interpolation, dictionary,(const GeometricField< Type, fvPatchField, volMesh > &psi),(psi)) | |
interpolation (const GeometricField< Type, fvPatchField, volMesh > &psi) | |
Construct from components. More... | |
virtual | ~interpolation ()=default |
Destructor. More... | |
const GeometricField< Type, fvPatchField, volMesh > & | psi () const noexcept |
Return the field to be interpolated. More... | |
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. More... | |
virtual Type | interpolate (const barycentric &coordinates, const tetIndices &tetIs, const label facei=-1) const |
Static Public Member Functions | |
static autoPtr< interpolation< Type > > | New (const word &interpolationType, const GeometricField< Type, fvPatchField, volMesh > &psi) |
Return a reference to the specified interpolation scheme. More... | |
static autoPtr< interpolation< Type > > | New (const dictionary &interpolationSchemes, const GeometricField< Type, fvPatchField, volMesh > &psi) |
Return a reference to the selected interpolation scheme. More... | |
Protected Attributes | |
const GeometricField< Type, fvPatchField, volMesh > & | psi_ |
const polyMesh & | pMesh_ |
const vectorField & | pMeshPoints_ |
const faceList & | pMeshFaces_ |
const vectorField & | pMeshFaceCentres_ |
const vectorField & | pMeshFaceAreas_ |
Abstract base class for volume field interpolation.
Definition at line 59 of file interpolation.H.
|
explicit |
Construct from components.
Definition at line 36 of file interpolation.C.
|
virtualdefault |
Destructor.
|
pure virtual |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
interpolation< Type > | , | ||
dictionary | , | ||
(const GeometricField< Type, fvPatchField, volMesh > &psi) | , | ||
(psi) | |||
) |
|
static |
Return a reference to the specified interpolation scheme.
Definition at line 35 of file interpolationNew.C.
References Foam::exit(), Foam::FatalError, FatalErrorInLookup, and psi.
|
static |
Return a reference to the selected interpolation scheme.
Definition at line 58 of file interpolationNew.C.
References dictionary::lookup(), Foam::New(), and psi.
|
inlinenoexcept |
Return the field to be interpolated.
Definition at line 127 of file interpolation.H.
References interpolation< Type >::psi_.
Referenced by ThermoParcel< ParcelType >::cellValueSourceCorrection(), interpolationCellPoint< Type >::interpolationCellPoint(), sampledFaceZone::sampleOnFaces(), sampledMeshedSurface::sampleOnFaces(), sampledPatch::sampleOnFaces(), sampledPatchInternalField::sampleOnFaces(), sampledDistanceSurface::sampleOnIsoSurfacePoints(), sampledIsoSurface::sampleOnIsoSurfacePoints(), sampledCuttingPlane::sampleOnIsoSurfacePoints(), and sampledMeshedSurface::sampleOnPoints().
|
pure virtual |
Interpolate field to the given point in the given cell.
Implemented in interpolationCell< Type >, interpolationCell< scalar >, interpolationCellPatchConstrained< Type >, interpolationCellPoint< Type >, interpolationCellPoint< Foam::Vector >, interpolationCellPoint< scalar >, interpolationCellPointFace< Type >, interpolationCellPointWallModified< Type >, and interpolationPointMVC< Type >.
References tetrahedron< Point, PointRef >::barycentricToPoint(), tetIndices::cell(), coordinates(), interpolation< Type >::interpolate(), interpolation< Type >::pMesh_, and tetIndices::tet().
Referenced by ThermoParcel< ParcelType >::calcHeatTransfer(), InterfaceForce< CloudType >::calcNonCoupled(), ParamagneticForce< CloudType >::calcNonCoupled(), ThermoParcel< ParcelType >::calcSurfaceValues(), interpolation< Type >::interpolate(), sampledSurface::sampleOnFaces(), sampledFaceZone::sampleOnPoints(), sampledMeshedSurface::sampleOnPoints(), sampledPatch::sampleOnPoints(), sampledPatchInternalField::sampleOnPoints(), sampledSurface::sampleOnPoints(), KinematicParcel< ParcelType >::setCellValues(), ReactingParcel< ParcelType >::setCellValues(), and ThermoParcel< ParcelType >::setCellValues().
|
inlinevirtual |
Interpolate field to the given coordinates in the tetrahedron defined by the given indices.
Calls interpolate function (vector, cell, face) except where overridden by derived interpolation types.
Reimplemented in interpolationCell< Type >, interpolationCell< scalar >, interpolationCellPatchConstrained< Type >, interpolationCellPoint< Type >, interpolationCellPoint< Foam::Vector >, interpolationCellPoint< scalar >, and interpolationCellPointWallModified< Type >.
Definition at line 144 of file interpolation.H.
|
protected |
Definition at line 65 of file interpolation.H.
Referenced by interpolationCell< Type >::interpolate(), and interpolation< Type >::psi().
|
protected |
Definition at line 67 of file interpolation.H.
Referenced by interpolation< Type >::interpolate().
|
protected |
Definition at line 68 of file interpolation.H.
|
protected |
Definition at line 69 of file interpolation.H.
|
protected |
Definition at line 70 of file interpolation.H.
|
protected |
Definition at line 71 of file interpolation.H.