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< T > | fitData (const List< scalarField > &listPolyTerms, const List< T > &listValue) |
| Fit data. More... | |
| Field< T > | fitData (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< T > | computeMatrixSource (const List< scalarField > &listPolyTerms, const List< T > &listValue) |
| Compute source. More... | |
| Field< T > | fitData (const List< vector > &positions, const List< T > &listValue) |
| Fit data. More... | |
| Field< T > | fitData (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< T > | computeMatrixSource (const List< vector > &positions, const List< T > &listValue) |
| Compute source. More... | |
Fit a polynominal function with the help of multiDimPolyFunction.
Original code supplied by Henning Scheufler, DLR (2019)
Definition at line 50 of file multiDimPolyFitter.H.
| multiDimPolyFitter | ( | const word & | polyFunctionName, |
| const labelVector & | geomDirs | ||
| ) |
Construct from components.
Definition at line 27 of file multiDimPolyFitter.C.
| void resetMatrix | ( | ) |
Definition at line 40 of file multiDimPolyFitter.C.
References Foam::Zero.
|
inline |
Definition at line 77 of file multiDimPolyFitter.H.
References Matrix< Form, Type >::n().

| void fillMatrix | ( | const scalarField & | polyTerms, |
| const T & | value | ||
| ) |
Definition at line 52 of file multiDimPolyFitter.C.
| void fillMatrix | ( | const scalarField & | polyTerms, |
| const T & | value, | ||
| const scalar | weight | ||
| ) |
Definition at line 77 of file multiDimPolyFitter.C.
| void fillMatrix | ( | const scalarField & | polyTerms, |
| scalarSymmetricSquareMatrix & | A | ||
| ) |
Definition at line 103 of file multiDimPolyFitter.C.
References A.
| Foam::Field< T > fitData | ( | const List< scalarField > & | listPolyTerms, |
| const List< T > & | listValue | ||
| ) |
Fit data.
Definition at line 123 of file multiDimPolyFitter.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::nl, and UList< T >::size().

| Foam::Field< T > fitData | ( | const List< scalarField > & | listPolyTerms, |
| const List< T > & | listValue, | ||
| const List< scalar > & | listWeight | ||
| ) |
Fit data.
Definition at line 157 of file multiDimPolyFitter.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and UList< T >::size().

| Foam::scalarSymmetricSquareMatrix computeInverse | ( | const List< scalarField > & | listPolyTerms | ) |
Compute inverse.
Definition at line 195 of file multiDimPolyFitter.C.
References forAll, Foam::inv(), and Foam::Zero.

| Foam::Field< T > computeMatrixSource | ( | const List< scalarField > & | listPolyTerms, |
| const List< T > & | listValue | ||
| ) |
Compute source.
Definition at line 216 of file multiDimPolyFitter.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, UList< T >::size(), and Foam::Zero.

Fit data.
Definition at line 246 of file multiDimPolyFitter.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::nl, and UList< T >::size().

| Foam::Field< T > fitData | ( | const List< vector > & | positions, |
| const List< T > & | listValue, | ||
| const List< scalar > & | listWeight | ||
| ) |
Fit data.
Definition at line 279 of file multiDimPolyFitter.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::nl, and UList< T >::size().

| Foam::scalarSymmetricSquareMatrix computeInverse | ( | const List< vector > & | positions | ) |
Compute inverse.
Definition at line 314 of file multiDimPolyFitter.C.
References forAll, Foam::inv(), and Foam::Zero.

| Foam::Field< T > computeMatrixSource | ( | const List< vector > & | positions, |
| const List< T > & | listValue | ||
| ) |
Compute source.
Definition at line 335 of file multiDimPolyFitter.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, UList< T >::size(), and Foam::Zero.
