multiDimPolyFitter< T > Class Template Reference

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

Public Member Functions

 multiDimPolyFitter (const word &polyFunctionName, const labelVector &geomDirs)
 Construct from components. More...
 
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. More...
 
Field< TfitData (const List< scalarField > &listPolyTerms, const List< T > &listValue, const List< scalar > &listWeight)
 Fit data. More...
 
scalarSymmetricSquareMatrix computeInverse (const List< scalarField > &listPolyTerms)
 Compute inverse. More...
 
Field< TcomputeMatrixSource (const List< scalarField > &listPolyTerms, const List< T > &listValue)
 Compute source. More...
 
Field< TfitData (const List< vector > &positions, const List< T > &listValue)
 Fit data. More...
 
Field< TfitData (const List< vector > &positions, const List< T > &listValue, const List< scalar > &listWeight)
 Fit data. More...
 
scalarSymmetricSquareMatrix computeInverse (const List< vector > &positions)
 Compute inverse. More...
 
Field< TcomputeMatrixSource (const List< vector > &positions, const List< T > &listValue)
 Compute source. More...
 

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 54 of file multiDimPolyFitter.H.

Constructor & Destructor Documentation

◆ multiDimPolyFitter()

multiDimPolyFitter ( const word polyFunctionName,
const labelVector geomDirs 
)

Construct from components.

Definition at line 34 of file multiDimPolyFitter.C.

Member Function Documentation

◆ resetMatrix()

void resetMatrix ( )

Definition at line 47 of file multiDimPolyFitter.C.

References Foam::Zero.

◆ nCoeffs()

label nCoeffs ( ) const
inline

Definition at line 79 of file multiDimPolyFitter.H.

◆ fillMatrix() [1/3]

void fillMatrix ( const scalarField polyTerms,
const T value 
)

Definition at line 59 of file multiDimPolyFitter.C.

◆ fillMatrix() [2/3]

void fillMatrix ( const scalarField polyTerms,
const T value,
const scalar  weight 
)

Definition at line 84 of file multiDimPolyFitter.C.

◆ fillMatrix() [3/3]

void fillMatrix ( const scalarField polyTerms,
scalarSymmetricSquareMatrix A 
)

Definition at line 110 of file multiDimPolyFitter.C.

References A.

◆ fitData() [1/4]

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

Fit data.

Definition at line 130 of file multiDimPolyFitter.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::nl.

Here is the call graph for this function:

◆ fitData() [2/4]

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

Fit data.

Definition at line 164 of file multiDimPolyFitter.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and forAll.

Here is the call graph for this function:

◆ computeInverse() [1/2]

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

Compute inverse.

Definition at line 202 of file multiDimPolyFitter.C.

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

Here is the call graph for this function:

◆ computeMatrixSource() [1/2]

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

Compute source.

Definition at line 223 of file multiDimPolyFitter.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::Zero.

Here is the call graph for this function:

◆ fitData() [3/4]

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

Fit data.

Definition at line 253 of file multiDimPolyFitter.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::nl.

Here is the call graph for this function:

◆ fitData() [4/4]

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

Fit data.

Definition at line 286 of file multiDimPolyFitter.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::nl.

Here is the call graph for this function:

◆ computeInverse() [2/2]

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

Compute inverse.

Definition at line 321 of file multiDimPolyFitter.C.

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

Here is the call graph for this function:

◆ computeMatrixSource() [2/2]

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

Compute source.

Definition at line 342 of file multiDimPolyFitter.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::Zero.

Here is the call graph for this function:

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