Loading...
Searching...
No Matches
multiDimPolyFitter< T > Class Template Reference

Fit a polynominal function with the help of multiDimPolyFunction. More...

#include <multiDimPolyFitter.H>

Public Member Functions

 multiDimPolyFitter (const word &polyFunctionName, const labelVector &geomDirs)
 Construct from components.
void resetMatrix ()
label nCoeffs () const
void fillMatrix (const scalarField &polyTerms, const T &value)
void fillMatrix (const scalarField &polyTerms, const T &value, const scalar weight)
void fillMatrix (const scalarField &polyTerms, scalarSymmetricSquareMatrix &A)
Field< TfitData (const List< scalarField > &listPolyTerms, const List< T > &listValue)
 Fit data.
Field< TfitData (const List< scalarField > &listPolyTerms, const List< T > &listValue, const List< scalar > &listWeight)
 Fit data.
scalarSymmetricSquareMatrix computeInverse (const List< scalarField > &listPolyTerms)
 Compute inverse.
Field< TcomputeMatrixSource (const List< scalarField > &listPolyTerms, const List< T > &listValue)
 Compute source.
Field< TfitData (const List< vector > &positions, const List< T > &listValue)
 Fit data.
Field< TfitData (const List< vector > &positions, const List< T > &listValue, const List< scalar > &listWeight)
 Fit data.
scalarSymmetricSquareMatrix computeInverse (const List< vector > &positions)
 Compute inverse.
Field< TcomputeMatrixSource (const List< vector > &positions, const List< T > &listValue)
 Compute source.

Detailed Description

template<class T>
class Foam::multiDimPolyFitter< T >

Fit a polynominal function with the help of multiDimPolyFunction.

Original code supplied by Henning Scheufler, DLR (2019)

Source files

Definition at line 50 of file multiDimPolyFitter.H.

Constructor & Destructor Documentation

◆ multiDimPolyFitter()

template<class T>
multiDimPolyFitter ( const word & polyFunctionName,
const labelVector & geomDirs )

Construct from components.

Definition at line 26 of file multiDimPolyFitter.C.

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

Here is the call graph for this function:

Member Function Documentation

◆ resetMatrix()

template<class T>
void resetMatrix ( )

Definition at line 40 of file multiDimPolyFitter.C.

References Foam::Zero.

Referenced by fitData(), fitData(), fitData(), and fitData().

Here is the caller graph for this function:

◆ nCoeffs()

template<class T>
label nCoeffs ( ) const
inline

Definition at line 77 of file multiDimPolyFitter.H.

◆ fillMatrix() [1/3]

template<class T>
void fillMatrix ( const scalarField & polyTerms,
const T & value )

Definition at line 51 of file multiDimPolyFitter.C.

References Foam::T().

Referenced by computeInverse(), computeInverse(), fitData(), fitData(), fitData(), and fitData().

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

◆ fillMatrix() [2/3]

template<class T>
void fillMatrix ( const scalarField & polyTerms,
const T & value,
const scalar weight )

Definition at line 76 of file multiDimPolyFitter.C.

References Foam::T().

Here is the call graph for this function:

◆ fillMatrix() [3/3]

template<class T>
void fillMatrix ( const scalarField & polyTerms,
scalarSymmetricSquareMatrix & A )

Definition at line 102 of file multiDimPolyFitter.C.

References A.

◆ fitData() [1/4]

template<class T>
Foam::Field< T > fitData ( const List< scalarField > & listPolyTerms,
const List< T > & listValue )

Fit data.

Definition at line 122 of file multiDimPolyFitter.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, fillMatrix(), forAll, Foam::nl, resetMatrix(), and UList< T >::size().

Here is the call graph for this function:

◆ fitData() [2/4]

template<class T>
Foam::Field< T > fitData ( const List< scalarField > & listPolyTerms,
const List< T > & listValue,
const List< scalar > & listWeight )

Fit data.

Definition at line 156 of file multiDimPolyFitter.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, fillMatrix(), forAll, resetMatrix(), and UList< T >::size().

Here is the call graph for this function:

◆ computeInverse() [1/2]

template<class T>
Foam::scalarSymmetricSquareMatrix computeInverse ( const List< scalarField > & listPolyTerms)

Compute inverse.

Definition at line 194 of file multiDimPolyFitter.C.

References fillMatrix(), forAll, Foam::inv(), and Foam::Zero.

Here is the call graph for this function:

◆ computeMatrixSource() [1/2]

template<class T>
Foam::Field< T > computeMatrixSource ( const List< scalarField > & listPolyTerms,
const List< T > & listValue )

Compute source.

Definition at line 215 of file multiDimPolyFitter.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, UList< T >::size(), and Foam::Zero.

Here is the call graph for this function:

◆ fitData() [3/4]

template<class T>
Foam::Field< T > fitData ( const List< vector > & positions,
const List< T > & listValue )

Fit data.

Definition at line 245 of file multiDimPolyFitter.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, fillMatrix(), forAll, Foam::nl, resetMatrix(), and UList< T >::size().

Here is the call graph for this function:

◆ fitData() [4/4]

template<class T>
Foam::Field< T > fitData ( const List< vector > & positions,
const List< T > & listValue,
const List< scalar > & listWeight )

Fit data.

Definition at line 278 of file multiDimPolyFitter.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, fillMatrix(), forAll, Foam::nl, resetMatrix(), and UList< T >::size().

Here is the call graph for this function:

◆ computeInverse() [2/2]

template<class T>
Foam::scalarSymmetricSquareMatrix computeInverse ( const List< vector > & positions)

Compute inverse.

Definition at line 313 of file multiDimPolyFitter.C.

References fillMatrix(), forAll, Foam::inv(), and Foam::Zero.

Here is the call graph for this function:

◆ computeMatrixSource() [2/2]

template<class T>
Foam::Field< T > computeMatrixSource ( const List< vector > & positions,
const List< T > & listValue )

Compute source.

Definition at line 334 of file multiDimPolyFitter.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, UList< T >::size(), and Foam::Zero.

Here is the call graph for this function:

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