37#ifndef averageNeighbourFvGeometryScheme_H
38#define averageNeighbourFvGeometryScheme_H
86 const scalar minRatio,
Geometry calculation scheme to minimise non-orthogonality/.
const label nIters_
Number of averaging iterations.
label clipFaceTet(const scalar minRatio, const vectorField &faceCentres, const vectorField &faceNormals, vectorField &faceCorrection) const
const scalar minRatio_
Clipping for pyramid heights - allowable shrinkage as fraction.
tmp< pointField > averageCentres(const pointField &cellCentres, const pointField &faceCentres, const vectorField &faceNormals) const
TypeName("averageNeighbour")
Runtime type information.
virtual void movePoints()
Do what is necessary if the mesh has moved.
void makePyrHeights(const pointField &cellCentres, const vectorField &faceCentres, const vectorField &faceNormals, scalarField &ownHeight, scalarField &neiHeight) const
Calculate pyramid heights.
virtual ~averageNeighbourFvGeometryScheme()=default
Destructor.
tmp< pointField > averageNeighbourCentres(const pointField &cellCentres, const vectorField &faceNormals, const scalarField &faceWeights) const
Average neighbouring cell centres to minimise non-ortho.
const scalar relax_
Blending between old-iteration cell centres and current average.
label clipPyramids(const pointField &cellCentres, const vectorField &faceCentres, const vectorField &faceNormals, const scalarField &minOwnHeight, const scalarField &minNeiHeight, vectorField &correction) const
void makeNonOrthoWeights(const pointField &cellCentres, const vectorField &faceNormals, scalarField &cosAngles, scalarField &faceWeights) const
Make weights based on non-orthogonality.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const fvMesh & mesh() const
Return mesh reference.
Mesh data needed to do the Finite Volume discretisation.
Geometry calculation scheme with automatic stabilisation for high-aspect ratio cells.
A class for managing temporary objects.
surfaceVectorField faceNormals(mesh.Sf()/mesh.magSf())
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.