Abstract base class for 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 () |
| Destructor. More... | |
| const GeometricField< Type, fvPatchField, volMesh > & | psi () const |
| 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 tmp< Field< Type > > | interpolate (const vectorField &position, const labelField &celli, const labelField &facei=NullObjectRef< labelField >()) const =0 |
| As above, but for a field. More... | |
| virtual Type | interpolate (const barycentric &coordinates, const tetIndices &tetIs, const label facei=-1) const |
| Interpolate field to the given coordinates in the tetrahedron. More... | |
| virtual tmp< Field< Type > > | interpolate (const Field< barycentric > &coordinates, const labelField &celli, const labelField &tetFacei, const labelField &tetPti, const labelField &facei=NullObjectRef< labelField >()) const =0 |
| As above, but for a field. More... | |
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_ |
| The vol field to interpolate. More... | |
| const polyMesh & | mesh_ |
| Reference to the mesh. More... | |
Abstract base class for interpolation.
Definition at line 57 of file mappedPatchFieldBase.H.
| interpolation | ( | const GeometricField< Type, fvPatchField, volMesh > & | psi | ) |
Construct from components.
Definition at line 35 of file interpolation.C.
|
inlinevirtual |
Destructor.
Definition at line 114 of file interpolation.H.
|
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 48 of file interpolation.C.
Referenced by interpolation< Foam::Vector >::interpolation(), and interpolation< Foam::Vector >::New().

|
static |
Return a reference to the selected interpolation scheme.
Definition at line 72 of file interpolation.C.
|
inline |
Return the field to be interpolated.
Definition at line 121 of file interpolation.H.
Referenced by ThermoParcel< ParcelType >::cellValueSourceCorrection(), cuttingPlane::interpolateField(), and distanceSurface::interpolateField().

|
pure virtual |
Interpolate field to the given point in the given cell.
Implemented in interpolationCellPointFace< Type >, interpolationCellPoint< Type >, interpolationCellPoint< scalar >, interpolationCellPoint< Foam::Vector >, interpolationPointMVC< Type >, interpolationCellPatchConstrained< Type >, and interpolationCell< Type >.
Referenced by ThermoParcel< ParcelType >::calcHeatTransfer(), ParamagneticForce< CloudType >::calcNonCoupled(), ThermoParcel< ParcelType >::calcSurfaceValues(), plane::interpolateField(), isoSurface::interpolateField(), thresholdCellFaces::interpolateField(), patchInternalField::interpolateField(), patch::interpolateField(), triSurfaceMesh::interpolateField(), mappedPatchFieldBase< Type >::mappedField(), interpolation< Foam::Vector >::New(), interpolation< Foam::Vector >::psi(), ThermoParcel< ParcelType >::setCellValues(), and MomentumParcel< ParcelType >::setCellValues().

|
pure virtual |
As above, but for a field.
Implemented in fieldInterpolation< Type, InterpolationType >, fieldInterpolation< Type, interpolationPointMVC< Type > >, fieldInterpolation< Foam::Vector, interpolationCellPoint< Foam::Vector > >, fieldInterpolation< Type, interpolationCellPatchConstrained< Type > >, fieldInterpolation< Type, interpolationCellPointFace< Type > >, fieldInterpolation< Type, interpolationCellPoint< Type > >, fieldInterpolation< Type, interpolationCell< Type > >, and fieldInterpolation< scalar, interpolationCellPoint< scalar > >.
|
virtual |
Interpolate field to the given coordinates in the tetrahedron.
defined by the given indices. Calls interpolate function above here except where overridden by derived interpolation types.
Reimplemented in interpolationCellPoint< Type >, interpolationCellPoint< scalar >, interpolationCellPoint< Foam::Vector >, interpolationCellPatchConstrained< Type >, and interpolationCell< Type >.
Definition at line 85 of file interpolation.C.
|
pure virtual |
As above, but for a field.
Implemented in fieldInterpolation< Type, InterpolationType >, fieldInterpolation< Type, interpolationPointMVC< Type > >, fieldInterpolation< Foam::Vector, interpolationCellPoint< Foam::Vector > >, fieldInterpolation< Type, interpolationCellPatchConstrained< Type > >, fieldInterpolation< Type, interpolationCellPointFace< Type > >, fieldInterpolation< Type, interpolationCellPoint< Type > >, fieldInterpolation< Type, interpolationCell< Type > >, and fieldInterpolation< scalar, interpolationCellPoint< scalar > >.
|
protected |
The vol field to interpolate.
Definition at line 61 of file interpolation.H.
Referenced by interpolation< Foam::Vector >::psi().
|
protected |
Reference to the mesh.
Definition at line 64 of file interpolation.H.