Go to the documentation of this file.
36 #ifndef pointToPointPlanarInterpolation_H
37 #define pointToPointPlanarInterpolation_H
91 ClassName(
"pointToPointPlanarInterpolation");
104 const scalar perturb,
105 const bool nearestOnly =
false
152 const label startSampleTime,
153 const scalar timeVal,
const coordinateSystem & referenceCS() const
Return the coordinateSystem.
const List< FixedList< label, 3 > > & nearestVertex() const
const scalar perturb_
Perturbation factor.
coordinateSystem referenceCS_
Coordinate system.
label sourceSize() const
Number of source points.
A class for managing temporary objects.
const bool nearestOnly_
Whether to use nearest point only (avoids triangulation, projection)
Interpolates between two sets of unstructured points using 2D Delaunay triangulation....
tmp< Field< Type > > interpolate(const Field< Type > &sourceFld) const
Interpolate from field on source points to dest points.
List< instant > instantList
List of instants.
const List< FixedList< scalar, 3 > > & nearestVertexWeight() const
Current interpolation factors to face centres of underlying.
static bool findTime(const instantList ×, const label startSampleTime, const scalar timeVal, label &lo, label &hi)
Helper: find time. Return true if succesful.
ClassName("pointToPointPlanarInterpolation")
List< word > wordList
A List of words.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
List< FixedList< label, 3 > > nearestVertex_
Current interpolation addressing to face centres of underlying.
label nPoints_
Number of source points (for checking)
List< FixedList< scalar, 3 > > nearestVertexWeight_
Current interpolation factors to face centres of underlying.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void calcWeights(const pointField &sourcePoints, const pointField &destPoints)
Calculate addressing and weights.
coordinateSystem calcCoordinateSystem(const pointField &) const
Calculate a local coordinate system from set of points.
static wordList timeNames(const instantList &)
Helper: extract words of times.
Base class for other coordinate system specifications.
pointToPointPlanarInterpolation(const pointField &sourcePoints, const pointField &destPoints, const scalar perturb, const bool nearestOnly=false)
Construct from 3D locations. Determines local coordinate system.