Public Member Functions | List of all members
linearInterpolationWeights Class Reference
Inheritance diagram for linearInterpolationWeights:
Inheritance graph
[legend]
Collaboration diagram for linearInterpolationWeights:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("linear")
 Runtime type information. More...
 
 linearInterpolationWeights (const scalarField &samples)
 Construct from components. More...
 
virtual ~linearInterpolationWeights ()
 Destructor. More...
 
virtual bool valueWeights (const scalar t, labelList &indices, scalarField &weights) const
 Calculate weights and indices to calculate t from samples. More...
 
virtual bool integrationWeights (const scalar t1, const scalar t2, labelList &indices, scalarField &weights) const
 Calculate weights and indices to calculate integrand of t1..t2. More...
 
- Public Member Functions inherited from interpolationWeights
 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...
 
template<class ListType1 , class ListType2 >
Foam::outerProduct< typename ListType1::value_type, typename ListType2::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. 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 inherited from interpolationWeights
const scalarFieldsamples_
 

Detailed Description

Source files

Definition at line 47 of file linearInterpolationWeights.H.

Constructor & Destructor Documentation

Construct from components.

Definition at line 76 of file linearInterpolationWeights.C.

References linearInterpolationWeights::valueWeights().

Here is the call graph for this function:

virtual ~linearInterpolationWeights ( )
inlinevirtual

Destructor.

Definition at line 84 of file linearInterpolationWeights.H.

References linearInterpolationWeights::valueWeights().

Here is the call graph for this function:

Member Function Documentation

TypeName ( "linear"  )

Runtime type information.

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 88 of file linearInterpolationWeights.C.

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

Referenced by linearInterpolationWeights::linearInterpolationWeights(), splineInterpolationWeights::valueWeights(), and linearInterpolationWeights::~linearInterpolationWeights().

Here is the call graph for this function:

Here is the caller graph for this function:

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 155 of file linearInterpolationWeights.C.

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

Here is the call graph for this function:


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