Interpolates between two sets of unstructured points using 2D Delaunay triangulation. Used in e.g. timeVaryingMapped bcs. More...
Public Member Functions | |
ClassName ("pointToPointPlanarInterpolation") | |
pointToPointPlanarInterpolation (const pointToPointPlanarInterpolation &)=default | |
Copy construct. More... | |
pointToPointPlanarInterpolation & | operator= (const pointToPointPlanarInterpolation &)=default |
Copy assignment. More... | |
pointToPointPlanarInterpolation (const pointField &sourcePoints, const pointField &destPoints, const scalar perturb, const bool nearestOnly=false) | |
Construct from 3D locations. More... | |
pointToPointPlanarInterpolation (const coordinateSystem &referenceCS, const pointField &sourcePoints, const pointField &destPoints, const scalar perturb) | |
Construct from coordinate system and locations. More... | |
pointToPointPlanarInterpolation (const scalar perturb, const bool nearestOnly, const coordinateSystem &referenceCS, const label sourceSize, List< FixedList< label, 3 >> &&nearestVertex, List< FixedList< scalar, 3 >> &&nearestVertexWeight) | |
Construct from components. More... | |
autoPtr< pointToPointPlanarInterpolation > | clone () const |
Construct and return a clone. More... | |
scalar | perturb () const noexcept |
Perturbation factor (for triangulation) More... | |
bool | nearestOnly () const noexcept |
Whether to use nearest point only (avoids triangulation, projection) More... | |
const coordSystem::cartesian & | referenceCS () const noexcept |
Return the Cartesian reference coordinate system. More... | |
label | sourceSize () const noexcept |
Number of source points. More... | |
label | targetSize () const noexcept |
Number of target points. More... | |
const List< FixedList< label, 3 > > & | nearestVertex () const noexcept |
Interpolation addressing to face centres of underlying patch. More... | |
const List< FixedList< scalar, 3 > > & | nearestVertexWeight () const noexcept |
Interpolation factors to face centres of underlying patch. More... | |
template<class Type > | |
tmp< Field< Type > > | interpolate (const Field< Type > &sourceFld) const |
Interpolate from field on source points to dest points. More... | |
template<class Type > | |
tmp< Field< Type > > | interpolate (const tmp< Field< Type >> &tsource) const |
Interpolate from field on source points to dest points. More... | |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interpolate (const Field< Type > &sourceFld) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | interpolate (const tmp< Field< Type >> &tsource) const |
Static Public Member Functions | |
static wordList | timeNames (const instantList ×) |
Helper: extract words of times. More... | |
Interpolates between two sets of unstructured points using 2D Delaunay triangulation. Used in e.g. timeVaryingMapped bcs.
Definition at line 51 of file pointToPointPlanarInterpolation.H.
|
default |
Copy construct.
pointToPointPlanarInterpolation | ( | const pointField & | sourcePoints, |
const pointField & | destPoints, | ||
const scalar | perturb, | ||
const bool | nearestOnly = false |
||
) |
Construct from 3D locations.
Determines local coordinate system from sourcePoints and maps onto that. If nearestOnly skips any local coordinate system and triangulation and uses nearest vertex only
Definition at line 316 of file pointToPointPlanarInterpolation.C.
pointToPointPlanarInterpolation | ( | const coordinateSystem & | referenceCS, |
const pointField & | sourcePoints, | ||
const pointField & | destPoints, | ||
const scalar | perturb | ||
) |
Construct from coordinate system and locations.
Definition at line 337 of file pointToPointPlanarInterpolation.C.
pointToPointPlanarInterpolation | ( | const scalar | perturb, |
const bool | nearestOnly, | ||
const coordinateSystem & | referenceCS, | ||
const label | sourceSize, | ||
List< FixedList< label, 3 >> && | nearestVertex, | ||
List< FixedList< scalar, 3 >> && | nearestVertexWeight | ||
) |
Construct from components.
Definition at line 354 of file pointToPointPlanarInterpolation.C.
ClassName | ( | "pointToPointPlanarInterpolation" | ) |
|
default |
Copy assignment.
|
inline |
Construct and return a clone.
Definition at line 173 of file pointToPointPlanarInterpolation.H.
References autoPtr< T >::New().
|
inlinenoexcept |
Perturbation factor (for triangulation)
Definition at line 184 of file pointToPointPlanarInterpolation.H.
|
inlinenoexcept |
Whether to use nearest point only (avoids triangulation, projection)
Definition at line 192 of file pointToPointPlanarInterpolation.H.
|
inlinenoexcept |
Return the Cartesian reference coordinate system.
Definition at line 200 of file pointToPointPlanarInterpolation.H.
|
inlinenoexcept |
Number of source points.
Definition at line 208 of file pointToPointPlanarInterpolation.H.
|
inlinenoexcept |
Number of target points.
Definition at line 216 of file pointToPointPlanarInterpolation.H.
References UList< T >::size().
Interpolation addressing to face centres of underlying patch.
Definition at line 224 of file pointToPointPlanarInterpolation.H.
Interpolation factors to face centres of underlying patch.
Definition at line 232 of file pointToPointPlanarInterpolation.H.
|
static |
Helper: extract words of times.
Definition at line 375 of file pointToPointPlanarInterpolation.C.
References forAll, Foam::PtrListOps::names(), and UList< T >::size().
Interpolate from field on source points to dest points.
Interpolate from field on source points to dest points.
Foam::tmp<Foam::Field<Type> > interpolate | ( | const Field< Type > & | sourceFld | ) | const |
Definition at line 29 of file pointToPointPlanarInterpolationTemplates.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, fld, forAll, Foam::New(), and UList< Type >::size().
Foam::tmp<Foam::Field<Type> > interpolate | ( | const tmp< Field< Type >> & | tsource | ) | const |
Definition at line 81 of file pointToPointPlanarInterpolationTemplates.C.
References Foam::fac::interpolate().