Loading...
Searching...
No Matches
linearInterpolationWeights Class Reference

#include <linearInterpolationWeights.H>

Inheritance diagram for linearInterpolationWeights:
Collaboration diagram for linearInterpolationWeights:

Public Member Functions

 TypeName ("linear")
 Runtime type information.
 linearInterpolationWeights (const scalarField &samples)
 Construct from components.
virtual ~linearInterpolationWeights ()=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< interpolationWeightsNew (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 scalarFieldsamples_

Detailed Description

Constructor & Destructor Documentation

◆ linearInterpolationWeights()

linearInterpolationWeights ( const scalarField & samples)
explicit

Construct from components.

Definition at line 69 of file linearInterpolationWeights.C.

References interpolationWeights::interpolationWeights(), and samples().

Here is the call graph for this function:

◆ ~linearInterpolationWeights()

virtual ~linearInterpolationWeights ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "linear" )

Runtime type information.

References samples().

Here is the call graph for this function:

◆ valueWeights()

bool valueWeights ( const scalar t,
labelList & indices,
scalarField & weights ) const
virtual

Calculate weights and indices to calculate t from samples.

Returns
true if indices changed.

Implements interpolationWeights.

Definition at line 81 of file linearInterpolationWeights.C.

References Foam::findLower(), interpolationWeights::samples_, and List< T >::setSize().

Referenced by searchableExtrudedCircle::findParametricNearest(), projectCurveEdge::position(), projectEdge::position(), projectFace::project(), and splineInterpolationWeights::valueWeights().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ integrationWeights()

bool integrationWeights ( const scalar t1,
const scalar t2,
labelList & indices,
scalarField & weights ) const
virtual

Calculate weights and indices to calculate integrand of t1..t2 from samples.

Returns
true if indices changed.

Find lower or equal index

Find lower index

Implements interpolationWeights.

Definition at line 148 of file linearInterpolationWeights.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::findLower(), Pair< T >::first(), forAll, interpolationWeights::samples_, Pair< T >::second(), List< T >::setSize(), and UList< T >::size().

Here is the call graph for this function:

The documentation for this class was generated from the following files: