Abstract base class for volume field interpolation. More...
#include <interpolation.H>


Public Member Functions | |
| virtual const word & | type () const =0 |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, interpolation, dictionary,(const GeometricField< Type, fvPatchField, volMesh > &psi),(psi)) | |
| interpolation (const GeometricField< Type, fvPatchField, volMesh > &psi) | |
| Construct from components. | |
| virtual | ~interpolation ()=default |
| Destructor. | |
| 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. | |
| virtual Type | interpolate (const barycentric &coordinates, const tetIndices &tetIs, const label facei=-1) const |
| Interpolate field to the given coordinates in the tetrahedron defined by the given indices. | |
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. | |
| static autoPtr< interpolation< Type > > | New (const dictionary &interpolationSchemes, const GeometricField< Type, fvPatchField, volMesh > &psi) |
| Return a reference to the selected interpolation scheme. | |
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 53 of file interpolation.H.
|
explicit |
Construct from components.
Definition at line 29 of file interpolation.C.
References mesh, pMesh_, pMeshFaceAreas_, pMeshFaceCentres_, pMeshFaces_, pMeshPoints_, points, psi(), and psi_.
Referenced by declareRunTimeSelectionTable(), interpolationCell< Type >::interpolationCell(), interpolationCellPatchConstrained< Type >::interpolationCellPatchConstrained(), interpolationCellPoint< Type >::interpolationCellPoint(), interpolationCellPointFace< Type >::interpolationCellPointFace(), interpolationPointMVC< Type >::interpolationPointMVC(), and interpolationPointMVC< Type >::TypeName().


|
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 28 of file interpolationNew.C.
References Foam::exit(), Foam::FatalError, FatalErrorInLookup, and psi().
Referenced by CoulombForce< CloudType >::cacheFields(), InterfaceForce< CloudType >::cacheFields(), LiftForce< CloudType >::cacheFields(), ParamagneticForce< CloudType >::cacheFields(), PressureGradientForce< CloudType >::cacheFields(), streamLineBase::initInterpolations(), propellerInfo::interpolate(), interpolationCellPoint< Type >::interpolationCellPoint(), interpolationCellPointFace< Type >::interpolationCellPointFace(), interpolationPointMVC< Type >::interpolationPointMVC(), mappedPatchFieldBase< Type >::mappedField(), New(), Sample< Type >::value(), and Sampled< Type >::value().


|
static |
Return a reference to the selected interpolation scheme.
Definition at line 51 of file interpolationNew.C.
References dictionary::lookup(), New(), and psi().

|
inlinenoexcept |
Return the field to be interpolated.
Definition at line 133 of file interpolation.H.
References Foam::noexcept, and psi_.
Referenced by declareRunTimeSelectionTable(), interpolation(), interpolationCell< Type >::interpolationCell(), interpolationCellPatchConstrained< Type >::interpolationCellPatchConstrained(), interpolationCellPoint< Type >::interpolationCellPoint(), interpolationCellPointFace< Type >::interpolationCellPointFace(), interpolationCellPointWallModified< Type >::interpolationCellPointWallModified(), interpolationPointMVC< Type >::interpolationPointMVC(), New(), New(), sampledFaceZone::sampleOnFaces(), sampledMeshedSurface::sampleOnFaces(), sampledPatch::sampleOnFaces(), sampledPatchInternalField::sampleOnFaces(), sampledCuttingPlane::sampleOnIsoSurfacePoints(), sampledDistanceSurface::sampleOnIsoSurfacePoints(), sampledIsoSurface::sampleOnIsoSurfacePoints(), sampledMeshedSurface::sampleOnPoints(), interpolationCell< Type >::TypeName(), interpolationCellPatchConstrained< Type >::TypeName(), interpolationCellPoint< Type >::TypeName(), interpolationCellPointFace< Type >::TypeName(), interpolationCellPointWallModified< Type >::TypeName(), and interpolationPointMVC< Type >::TypeName().

|
pure virtual |
Interpolate field to the given point in the given cell.
Implemented in interpolationCell< Type >, interpolationCell< scalar >, interpolationCellPatchConstrained< Type >, interpolationCellPoint< Type >, interpolationCellPointFace< Type >, interpolationCellPointWallModified< Type >, and interpolationPointMVC< Type >.
Referenced by CoulombForce< CloudType >::calcNonCoupled(), InterfaceForce< CloudType >::calcNonCoupled(), ParamagneticForce< CloudType >::calcNonCoupled(), interpolate(), sampledSurface::sampleOnFaces(), sampledFaceZone::sampleOnPoints(), sampledMeshedSurface::sampleOnPoints(), sampledPatch::sampleOnPoints(), sampledPatchInternalField::sampleOnPoints(), and sampledSurface::sampleOnPoints().

|
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 >, interpolationCellPatchConstrained< Type >, interpolationCellPoint< Type >, and interpolationCellPointWallModified< Type >.
Definition at line 155 of file interpolation.H.
References tetrahedron< Point, PointRef >::barycentricToPoint(), tetIndices::cell(), coordinates(), interpolate(), pMesh_, and tetIndices::tet().

|
protected |
Definition at line 59 of file interpolation.H.
Referenced by interpolationCell< Type >::interpolate(), interpolationCell< Type >::interpolate(), interpolationCellPatchConstrained< Type >::interpolate(), interpolationCellPoint< Type >::interpolate(), interpolationCellPoint< Type >::interpolate(), interpolationCellPointFace< Type >::interpolate(), interpolationCellPointWallModified< Type >::interpolate(), interpolation(), and psi().
|
protected |
Definition at line 61 of file interpolation.H.
Referenced by interpolate(), interpolationCellPoint< Type >::interpolate(), interpolationCellPointFace< Type >::interpolate(), interpolationCellPointWallModified< Type >::interpolate(), interpolationCellPointWallModified< Type >::interpolate(), interpolationPointMVC< Type >::interpolate(), and interpolation().
|
protected |
Definition at line 62 of file interpolation.H.
Referenced by interpolation().
|
protected |
Definition at line 63 of file interpolation.H.
Referenced by interpolation().
|
protected |
Definition at line 64 of file interpolation.H.
Referenced by interpolationCellPointFace< Type >::interpolate(), and interpolation().
|
protected |
Definition at line 65 of file interpolation.H.
Referenced by interpolationCellPointFace< Type >::interpolate(), and interpolation().