A simple linear interpolator between two locations, which are referenced by index. More...
Public Member Functions | |
lumpedPointInterpolator () | |
lumpedPointInterpolator (const label id) | |
~lumpedPointInterpolator ()=default | |
bool | valid () const |
label | nearest () const |
label | next () const |
label | next1 () const |
label | next2 () const |
scalar | weight0 () const |
scalar | weight1 () const |
scalar | weight2 () const |
void | nearest (const label id) |
void | next (const label id, const scalar weight) |
void | next (const label id, const scalar weight, const label position) |
void | set (const triFace &ids, const barycentric2D &weights) |
template<class T > | |
T | interpolate (const UList< T > &input) const |
A simple linear interpolator between two locations, which are referenced by index.
When the interpolator is built for based on searching for nearest and next-nearest points, the interpolation will typically cover a (0-0.5) range rather than a (0-1) range. The (0.5-1) range implies a flip in the relationship of nearest vs. next-nearest.
Definition at line 55 of file lumpedPointInterpolator.H.
|
inline |
Definition at line 23 of file lumpedPointInterpolatorI.H.
|
inlineexplicit |
Definition at line 29 of file lumpedPointInterpolatorI.H.
|
default |
|
inline |
Definition at line 41 of file lumpedPointInterpolatorI.H.
|
inline |
Definition at line 47 of file lumpedPointInterpolatorI.H.
|
inline |
Definition at line 53 of file lumpedPointInterpolatorI.H.
|
inline |
Definition at line 59 of file lumpedPointInterpolatorI.H.
|
inline |
Definition at line 65 of file lumpedPointInterpolatorI.H.
|
inline |
Definition at line 71 of file lumpedPointInterpolatorI.H.
|
inline |
Definition at line 77 of file lumpedPointInterpolatorI.H.
|
inline |
Definition at line 83 of file lumpedPointInterpolatorI.H.
|
inline |
Definition at line 89 of file lumpedPointInterpolatorI.H.
References Foam::Zero.
|
inline |
Definition at line 97 of file lumpedPointInterpolatorI.H.
References Foam::Zero.
|
inline |
position | Use 0 or 1 for first/second |
Definition at line 119 of file lumpedPointInterpolatorI.H.
|
inline |
Definition at line 148 of file lumpedPointInterpolatorI.H.
Definition at line 163 of file lumpedPointInterpolatorI.H.
References Foam::input(), and Foam::Zero.
Referenced by lumpedPointMovement::pointsDisplacement(), and lumpedPointMovement::pointsPosition().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.