Abstract base class for interpolating in 1D. More...
Public Member Functions | |
TypeName ("interpolationWeights") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, interpolationWeights, word,(const scalarField &samples),(samples)) | |
interpolationWeights (const scalarField &samples) | |
Construct from components. More... | |
interpolationWeights (const interpolationWeights &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~interpolationWeights () |
Destructor. More... | |
virtual bool | valueWeights (const scalar t, labelList &indices, scalarField &weights) const =0 |
Calculate weights and indices to calculate t from samples. More... | |
virtual bool | integrationWeights (const scalar t1, const scalar t2, labelList &indices, scalarField &weights) const =0 |
Calculate weights and indices to calculate integrand of t1..t2. More... | |
void | operator= (const interpolationWeights &)=delete |
Disallow default bitwise assignment. More... | |
template<class ListType1 , class ListType2 > | |
Foam::outerProduct< typename ListType1::value_type, typename ListType2::value_type >::type | weightedSum (const ListType1 &f1, const ListType2 &f2) |
Static Public Member Functions | |
static autoPtr< interpolationWeights > | New (const word &type, const scalarField &samples) |
Return a reference to the selected interpolationWeights. More... | |
template<class ListType1 , class ListType2 > | |
static outerProduct< typename ListType1::value_type, typename ListType2::value_type >::type | weightedSum (const ListType1 &f1, const ListType2 &f2) |
Weighted sum helper method. More... | |
Protected Attributes | |
const scalarField & | samples_ |
Cached samples. More... | |
Abstract base class for interpolating in 1D.
Definition at line 55 of file interpolationWeights.H.
interpolationWeights | ( | const scalarField & | samples | ) |
Construct from components.
Definition at line 43 of file interpolationWeights.C.
|
delete |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 87 of file interpolationWeights.C.
TypeName | ( | "interpolationWeights" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
interpolationWeights | , | ||
word | , | ||
(const scalarField &samples) | , | ||
(samples) | |||
) |
|
static |
Return a reference to the selected interpolationWeights.
Definition at line 54 of file interpolationWeights.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, InfoInFunction, samples(), and Foam::type().
Referenced by dynamicMeshPointInterpolator::curPointField().
|
pure virtual |
Calculate weights and indices to calculate t from samples.
Returns true if indices changed.
Implemented in stepInterpolationWeights, splineInterpolationWeights, and linearInterpolationWeights.
|
pure virtual |
Calculate weights and indices to calculate integrand of t1..t2.
from samples. Returns true if indices changed.
Implemented in stepInterpolationWeights, linearInterpolationWeights, and splineInterpolationWeights.
|
static |
Weighted sum helper method.
|
delete |
Disallow default bitwise assignment.
Foam::outerProduct< typename ListType1::value_type, typename ListType2::value_type>::type weightedSum | ( | const ListType1 & | f1, |
const ListType2 & | f2 | ||
) |
Definition at line 45 of file interpolationWeightsTemplates.C.
References Foam::type(), and Foam::Zero.
|
protected |
Cached samples.
Definition at line 62 of file interpolationWeights.H.
Referenced by linearInterpolationWeights::integrationWeights(), stepInterpolationWeights::integrationWeights(), splineInterpolationWeights::splineInterpolationWeights(), linearInterpolationWeights::valueWeights(), splineInterpolationWeights::valueWeights(), and stepInterpolationWeights::valueWeights().