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 VolField< Type > &psi) | |
Construct from components. More... | |
interpolationCellPatchConstrained (const interpolationCellPatchConstrained< Type > &i) | |
Copy construct. More... | |
virtual autoPtr< interpolation< Type > > | clone () const |
Clone. 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... | |
Public Member Functions inherited from fieldInterpolation< Type, interpolationCellPatchConstrained< Type > > | |
virtual tmp< Field< Type > > | interpolate (const vectorField &position, const labelList &celli, const labelList &facei=NullObjectRef< labelList >()) const |
Interpolate field to the given points in the given cells. More... | |
virtual tmp< Field< Type > > | interpolate (const Field< barycentric > &coordinates, const labelList &celli, const labelList &tetFacei, const labelList &tetPti, const labelList &facei=NullObjectRef< labelList >()) const |
Interpolate field to the given coordinates in the given tetrahedra. More... | |
Public Member Functions inherited from interpolation< Type > | |
TypeName ("interpolation") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, interpolation, dictionary,(const VolField< Type > &psi),(psi)) | |
interpolation (const VolField< Type > &psi) | |
Construct from components. More... | |
interpolation (const interpolation< Type > &i) | |
Copy constructor. More... | |
virtual | ~interpolation () |
Destructor. More... | |
const VolField< Type > & | psi () const |
Return the field to be interpolated. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from interpolation< Type > | |
static autoPtr< interpolation< Type > > | New (const word &interpolationType, const VolField< Type > &psi) |
Return a reference to the specified interpolation scheme. More... | |
static autoPtr< interpolation< Type > > | New (const dictionary &interpolationSchemes, const VolField< Type > &psi) |
Return a reference to the selected interpolation scheme. More... | |
Protected Attributes inherited from interpolation< Type > | |
const VolField< Type > & | psi_ |
The vol field to interpolate. More... | |
const polyMesh & | mesh_ |
Reference to the mesh. More... | |
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 50 of file interpolationCellPatchConstrained.H.
interpolationCellPatchConstrained | ( | const VolField< Type > & | psi | ) |
Construct from components.
Definition at line 32 of file interpolationCellPatchConstrained.C.
interpolationCellPatchConstrained | ( | const interpolationCellPatchConstrained< Type > & | i | ) |
Copy construct.
Definition at line 42 of file interpolationCellPatchConstrained.C.
TypeName | ( | "cellPatchConstrained" | ) |
Runtime type information.
|
inlinevirtual |
Clone.
Implements interpolation< Type >.
Definition at line 76 of file interpolationCellPatchConstrained.H.
|
virtual |
Interpolate field to the given point in the given cell.
Implements interpolation< Type >.
Definition at line 54 of file interpolationCellPatchConstrained.C.
References polyMesh::boundaryMesh(), polyBoundaryMesh::mesh(), patchi, and polyBoundaryMesh::patchID().
|
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 101 of file interpolationCellPatchConstrained.H.