Fit a polynominal function with the help of multiDimPolyFunction. More...
Public Member Functions | |
multiDimPolyFitter (const word &polyFunctionName, const labelVector &geomDirs) | |
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) |
Field< T > | fitData (const List< scalarField > &listPolyTerms, const List< T > &listValue, const List< scalar > &listWeight) |
scalarSymmetricSquareMatrix | computeInverse (const List< scalarField > &listPolyTerms) |
Field< T > | computeMatrixSource (const List< scalarField > &listPolyTerms, const List< T > &listValue) |
Field< T > | fitData (const List< vector > &positions, const List< T > &listValue) |
Field< T > | fitData (const List< vector > &positions, const List< T > &listValue, const List< scalar > &listWeight) |
scalarSymmetricSquareMatrix | computeInverse (const List< vector > &positions) |
Field< T > | computeMatrixSource (const List< vector > &positions, const List< T > &listValue) |
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 | ||
) |
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 75 of file multiDimPolyFitter.H.
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 | ||
) |
Definition at line 123 of file multiDimPolyFitter.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::nl.
Foam::Field< T > fitData | ( | const List< scalarField > & | listPolyTerms, |
const List< T > & | listValue, | ||
const List< scalar > & | listWeight | ||
) |
Definition at line 157 of file multiDimPolyFitter.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and forAll.
Foam::scalarSymmetricSquareMatrix computeInverse | ( | const List< scalarField > & | listPolyTerms | ) |
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 | ||
) |
Definition at line 216 of file multiDimPolyFitter.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::Zero.
Definition at line 246 of file multiDimPolyFitter.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::nl.
Foam::Field< T > fitData | ( | const List< vector > & | positions, |
const List< T > & | listValue, | ||
const List< scalar > & | listWeight | ||
) |
Definition at line 279 of file multiDimPolyFitter.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::nl.
Foam::scalarSymmetricSquareMatrix computeInverse | ( | const List< vector > & | positions | ) |
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 | ||
) |
Definition at line 335 of file multiDimPolyFitter.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and Foam::Zero.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.