Data for the upwinded and centred polynomial fit interpolation schemes. The linearCorrection_ determines whether the fit is for a corrected linear scheme (first two coefficients are corrections for owner and neighbour) or a pure upwind scheme (first coefficient is correction for owner ; weight on face taken as 1). More...
#include <finiteVolume/FitData.H>
Data for the upwinded and centred polynomial fit interpolation schemes. The linearCorrection_ determines whether the fit is for a corrected linear scheme (first two coefficients are corrections for owner and neighbour) or a pure upwind scheme (first coefficient is correction for owner ; weight on face taken as 1).
Definition at line 55 of file FitData.H.
Public Member Functions | |
FitData (const fvMesh &mesh, const ExtendedStencil &stencil, const bool linearCorrection, const scalar linearLimitFactor, const scalar centralWeight) | |
Construct from components.
| |
virtual | ~FitData () |
Destructor.
| |
const ExtendedStencil & | stencil () const |
Return reference to the stencil.
| |
bool | linearCorrection () const |
void | calcFit (scalarList &coeffsi, const List< point > &, const scalar wLin, const label faci) |
Calculate the fit for the specified face and set the coefficients.
| |
virtual void | calcFit ()=0 |
Calculate the fit for all the faces.
| |
bool | movePoints () |
Recalculate weights (but not stencil) when the mesh moves.
|
FitData | ( | const fvMesh & | mesh, |
const ExtendedStencil & | stencil, | ||
const bool | linearCorrection, | ||
const scalar | linearLimitFactor, | ||
const scalar | centralWeight | ||
) |
Construct from components.
Definition at line 35 of file FitData.C.
References Foam::exit(), Foam::FatalError, and FatalErrorIn.
const ExtendedStencil& stencil | ( | ) | const [inline]
|
void calcFit | ( | scalarList & | coeffsi, |
const List< point > & | C, | ||
const scalar | wLin, | ||
const label | faci | ||
) |
Calculate the fit for the specified face and set the coefficients.
Definition at line 132 of file FitData.C.
References cmptMag(), cmptMax(), d, Foam::endl(), primitiveMesh::faceCentres(), Foam::mag(), mesh, Foam::nl, p, List< T >::setSize(), List< T >::size(), SVD::VSinvUt(), WarningIn, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
virtual void calcFit | ( | ) | [pure virtual]
|
Calculate the fit for all the faces.
bool movePoints | ( | ) |