Public Member Functions | Static Public Member Functions | Protected 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")
 
 declareRunTimeSelectionTable (autoPtr, interpolationWeights, word,(const scalarField &samples),(samples))
 
 interpolationWeights (const scalarField &samples)
 
virtual ~interpolationWeights ()=default
 
virtual bool valueWeights (const scalar t, labelList &indices, scalarField &weights) const =0
 
virtual bool integrationWeights (const scalar t1, const scalar t2, labelList &indices, scalarField &weights) const =0
 
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)
 
template<class ListType1 , class ListType2 >
static outerProduct< typename ListType1::value_type, typename ListType2::value_type >::type weightedSum (const ListType1 &f1, const ListType2 &f2)
 

Protected Member Functions

 interpolationWeights (const interpolationWeights &)=delete
 
void operator= (const interpolationWeights &)=delete
 

Protected Attributes

const scalarFieldsamples_
 

Detailed Description

Abstract base class for interpolating in 1D.

Source files

Definition at line 54 of file interpolationWeights.H.

Constructor & Destructor Documentation

◆ interpolationWeights() [1/2]

interpolationWeights ( const interpolationWeights )
protecteddelete

◆ interpolationWeights() [2/2]

interpolationWeights ( const scalarField samples)
explicit

Definition at line 37 of file interpolationWeights.C.

◆ ~interpolationWeights()

virtual ~interpolationWeights ( )
virtualdefault

Member Function Documentation

◆ operator=()

void operator= ( const interpolationWeights )
protecteddelete

◆ TypeName()

TypeName ( "interpolationWeights"  )

◆ declareRunTimeSelectionTable()

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

◆ New()

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

Definition at line 46 of file interpolationWeights.C.

References DebugInFunction, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInLookup, samples(), and Foam::type().

Referenced by 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

◆ integrationWeights()

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

◆ weightedSum() [1/2]

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

◆ weightedSum() [2/2]

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

Definition at line 34 of file interpolationWeightsTemplates.C.

References Foam::Zero.

Member Data Documentation

◆ samples_

const scalarField& samples_
protected

Definition at line 60 of file interpolationWeights.H.


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