Catmull-Rom spline interpolation. More...
#include <splineInterpolationWeights.H>


Public Member Functions | |
| TypeName ("spline") | |
| Runtime type information. | |
| splineInterpolationWeights (const scalarField &samples, const bool checkEqualDistance=true) | |
| Construct from components. By default make sure samples are. | |
| virtual | ~splineInterpolationWeights ()=default |
| Destructor. | |
| virtual bool | valueWeights (const scalar t, labelList &indices, scalarField &weights) const |
| Calculate weights and indices to calculate t from samples. | |
| virtual bool | integrationWeights (const scalar t1, const scalar t2, labelList &indices, scalarField &weights) const |
| Calculate weights and indices to calculate integrand of t1..t2 from samples. | |
| Public Member Functions inherited from interpolationWeights | |
| TypeName ("interpolationWeights") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, interpolationWeights, word,(const scalarField &samples),(samples)) | |
| interpolationWeights (const scalarField &samples) | |
| Construct from components. | |
| virtual | ~interpolationWeights ()=default |
| Destructor. | |
| template<class ListType1, class ListType2> | |
| Foam::outerProduct< typenameListType1::value_type, typenameListType2::value_type >::type | weightedSum (const ListType1 &f1, const ListType2 &f2) |
Additional Inherited Members | |
| Static Public Member Functions inherited from interpolationWeights | |
| static autoPtr< interpolationWeights > | New (const word &type, const scalarField &samples) |
| Return a reference to the selected interpolationWeights. | |
| template<class ListType1, class ListType2> | |
| static outerProduct< typenameListType1::value_type, typenameListType2::value_type >::type | weightedSum (const ListType1 &f1, const ListType2 &f2) |
| Helper: weighted sum. | |
| Protected Member Functions inherited from interpolationWeights | |
| interpolationWeights (const interpolationWeights &)=delete | |
| No copy construct. | |
| void | operator= (const interpolationWeights &)=delete |
| No copy assignment. | |
| Protected Attributes inherited from interpolationWeights | |
| const scalarField & | samples_ |
Catmull-Rom spline interpolation.
Definition at line 47 of file splineInterpolationWeights.H.
|
explicit |
Construct from components. By default make sure samples are.
equidistant.
Definition at line 43 of file splineInterpolationWeights.C.
References interpolationWeights::interpolationWeights(), samples(), and interpolationWeights::samples_.

|
virtualdefault |
Destructor.
| TypeName | ( | "spline" | ) |
|
virtual |
Calculate weights and indices to calculate t from samples.
Implements interpolationWeights.
Definition at line 75 of file splineInterpolationWeights.C.
References Foam::findLower(), mu, interpolationWeights::samples_, List< T >::setSize(), linearInterpolationWeights::valueWeights(), w0, w1, w2, and w3.

|
inlinevirtual |
Calculate weights and indices to calculate integrand of t1..t2 from samples.
Implements interpolationWeights.
Definition at line 107 of file splineInterpolationWeights.H.
References NotImplemented.