57template<
class FitDataType,
class ExtendedStencil,
class Polynomial>
60 public MeshObject<fvMesh, MoveableMeshObject, FitDataType>
75 const ExtendedStencil& stencil_;
78 const bool linearCorrection_;
84 const scalar linearLimitFactor_;
87 const scalar centralWeight_;
115 const ExtendedStencil&
stencil,
129 const ExtendedStencil&
stencil()
const
137 return linearLimitFactor_;
143 return centralWeight_;
160 return linearCorrection_;
bool movePoints()
Recalculate weights (but not stencil) when the mesh moves.
label minSize() const
Minimum stencil size.
virtual ~FitData()=default
Destructor.
label dim() const
Dimensionality of the geometry.
scalar linearLimitFactor() const
Factor the fit is allowed to deviate from the base scheme.
const ExtendedStencil & stencil() const
Return reference to the stencil.
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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
MeshObject(const fvMesh &mesh)
const fvMesh & mesh() const noexcept
Mesh data needed to do the Finite Volume discretisation.
List< scalar > scalarList
List of scalar.