Uses the cell value for any point in the cell apart from a boundary face where it uses the boundary value directly. Note: will not work on an empty patch. More...
Public Member Functions | |
TypeName ("cellPatchConstrained") | |
Runtime type information. More... | |
interpolationCellPatchConstrained (const GeometricField< Type, fvPatchField, volMesh > &psi) | |
Construct from components. More... | |
Type | interpolate (const vector &position, const label celli, const label facei=-1) const |
Interpolate field to the given point in the given cell. More... | |
Type | interpolate (const barycentric &coordinates, const tetIndices &tetIs, const label facei=-1) const |
Interpolate field to the given coordinates in the tetrahedron. More... | |
![]() | |
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 |
Return the field to be interpolated. More... | |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
const GeometricField< Type, fvPatchField, volMesh > & | psi_ |
const polyMesh & | pMesh_ |
const vectorField & | pMeshPoints_ |
const faceList & | pMeshFaces_ |
const vectorField & | pMeshFaceCentres_ |
const vectorField & | pMeshFaceAreas_ |
Uses the cell value for any point in the cell apart from a boundary face where it uses the boundary value directly. Note: will not work on an empty patch.
Definition at line 52 of file interpolationCellPatchConstrained.H.
interpolationCellPatchConstrained | ( | const GeometricField< Type, fvPatchField, volMesh > & | psi | ) |
Construct from components.
Definition at line 35 of file interpolationCellPatchConstrained.C.
TypeName | ( | "cellPatchConstrained" | ) |
Runtime type information.
|
virtual |
Interpolate field to the given point in the given cell.
Implements interpolation< Type >.
Definition at line 47 of file interpolationCellPatchConstrained.C.
References polyMesh::boundaryMesh(), polyBoundaryMesh::mesh(), and polyBoundaryMesh::patchID().
Referenced by interpolationCellPatchConstrained< Type >::interpolate().
|
inlinevirtual |
Interpolate field to the given coordinates in the tetrahedron.
defined by the given indices. This is an optimisation which skips calculating the position, as cell interpolation doesn't need it.
Reimplemented from interpolation< Type >.
Definition at line 86 of file interpolationCellPatchConstrained.H.
References tetIndices::cell(), interpolationCellPatchConstrained< Type >::interpolate(), and VectorSpace< Vector< scalar >, scalar, 3 >::zero.