Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
interpolationWeights Class Referenceabstract

Abstract base class for interpolating in 1D. More...

Inheritance diagram for interpolationWeights:
Inheritance graph
[legend]
Collaboration diagram for interpolationWeights:
Collaboration graph
[legend]

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...
 
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...
 
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< interpolationWeightsNew (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)
 Helper: weighted sum. More...
 

Protected Attributes

const scalarFieldsamples_
 

Detailed Description

Abstract base class for interpolating in 1D.

Source files

Definition at line 55 of file interpolationWeights.H.

Constructor & Destructor Documentation

◆ interpolationWeights()

interpolationWeights ( const scalarField samples)

Construct from components.

Definition at line 44 of file interpolationWeights.C.

References interpolationWeights::New().

Here is the call graph for this function:

◆ ~interpolationWeights()

~interpolationWeights ( )
virtual

Destructor.

Definition at line 87 of file interpolationWeights.C.

Member Function Documentation

◆ TypeName()

TypeName ( "interpolationWeights"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
interpolationWeights  ,
word  ,
(const scalarField &samples ,
(samples  
)

◆ New()

autoPtr< interpolationWeights > New ( const word type,
const scalarField samples 
)
static

Return a reference to the selected interpolationWeights.

Definition at line 55 of file interpolationWeights.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, InfoInFunction, and samples().

Referenced by interpolationWeights::interpolationWeights(), and uniformInterpolatedDisplacementPointPatchVectorField::updateCoeffs().

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

◆ valueWeights()

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

Calculate weights and indices to calculate t from samples.

Returns true if indices changed.

Implemented in linearInterpolationWeights, and splineInterpolationWeights.

Referenced by TableBase< Type >::value().

Here is the caller graph for this function:

◆ integrationWeights()

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

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

from samples. Returns true if indices changed.

Implemented in linearInterpolationWeights, and splineInterpolationWeights.

Referenced by TableBase< Type >::integrate().

Here is the caller graph for this function:

◆ weightedSum() [1/2]

static outerProduct< typename ListType1::value_type, typename ListType2::value_type >::type weightedSum ( const ListType1 &  f1,
const ListType2 &  f2 
)
static

Helper: weighted sum.

◆ weightedSum() [2/2]

Foam::outerProduct< typename ListType1::value_type, typename ListType2::value_type>::type weightedSum ( const ListType1 &  f1,
const ListType2 &  f2 
)

Definition at line 46 of file interpolationWeightsTemplates.C.

References Foam::type(), and Foam::Zero.

Here is the call graph for this function:

Member Data Documentation

◆ samples_

const scalarField& samples_
protected

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