54 template<
class FitDataType,
class ExtendedStencil,
class Polynomial>
62 const ExtendedStencil& stencil_;
65 const bool linearCorrection_;
71 const scalar linearLimitFactor_;
74 const scalar centralWeight_;
126 const ExtendedStencil&
stencil()
const
134 return linearLimitFactor_;
140 return centralWeight_;
157 return linearCorrection_;
Templated abstract base-class for demand-driven mesh objects used to automate their allocation to the...
const fvMesh & mesh() const
Data for the upwinded and centred polynomial fit interpolation schemes. The linearCorrection_ determi...
const ExtendedStencil & stencil() const
Return reference to the stencil.
bool movePoints()
Recalculate weights (but not stencil) when the mesh moves.
label minSize() const
Minimum stencil size.
virtual ~FitData()
Destructor.
label dim() const
Dimensionality of the geometry.
scalar linearLimitFactor() const
Factor the fit is allowed to deviate from the base scheme.
bool linearCorrection() const
FitData(const fvMesh &mesh, const ExtendedStencil &stencil, const bool linearCorrection, const scalar linearLimitFactor, const scalar centralWeight)
Construct from components.
scalar centralWeight() const
Return weight for central stencil.
virtual void calcFit()=0
Calculate the fit for all the faces.
void findFaceDirs(vector &idir, vector &jdir, vector &kdir, const label faci)
Find the normal direction (i) and j and k directions for face faci.
Mesh data needed to do the Finite Volume discretisation.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.