Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
averageNeighbourFvGeometryScheme Class Reference

Geometry calculation scheme to minimise non-orthogonality/. More...

Inheritance diagram for averageNeighbourFvGeometryScheme:
Inheritance graph
[legend]
Collaboration diagram for averageNeighbourFvGeometryScheme:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("averageNeighbour")
 
 averageNeighbourFvGeometryScheme (const fvMesh &mesh, const dictionary &dict)
 
virtual ~averageNeighbourFvGeometryScheme ()=default
 
virtual void movePoints ()
 
- Public Member Functions inherited from highAspectRatioFvGeometryScheme
 TypeName ("highAspectRatio")
 
 highAspectRatioFvGeometryScheme (const fvMesh &mesh, const dictionary &dict)
 
virtual ~highAspectRatioFvGeometryScheme ()=default
 
- Public Member Functions inherited from basicFvGeometryScheme
 TypeName ("basic")
 
 basicFvGeometryScheme (const fvMesh &mesh, const dictionary &dict)
 
virtual ~basicFvGeometryScheme ()=default
 
virtual tmp< surfaceScalarFieldweights () const
 
virtual tmp< surfaceScalarFielddeltaCoeffs () const
 
virtual tmp< surfaceScalarFieldnonOrthDeltaCoeffs () const
 
virtual tmp< surfaceVectorFieldnonOrthCorrectionVectors () const
 
- Public Member Functions inherited from fvGeometryScheme
 TypeName ("fvGeometryScheme")
 
 declareRunTimeSelectionTable (tmp, fvGeometryScheme, dict,(const fvMesh &mesh, const dictionary &dict),(mesh, dict))
 
 fvGeometryScheme (const fvMesh &mesh, const dictionary &dict)
 
virtual ~fvGeometryScheme ()=default
 
const fvMeshmesh () const
 
- Public Member Functions inherited from refCount
constexpr refCount () noexcept
 
int count () const noexcept
 
bool unique () const noexcept
 
void operator++ () noexcept
 
void operator++ (int) noexcept
 
void operator-- () noexcept
 
void operator-- (int) noexcept
 

Protected Member Functions

label clipFaceTet (const scalar minRatio, const vectorField &faceCentres, const vectorField &faceNormals, vectorField &faceCorrection) const
 
void makePyrHeights (const pointField &cellCentres, const vectorField &faceCentres, const vectorField &faceNormals, scalarField &ownHeight, scalarField &neiHeight) const
 
label clipPyramids (const pointField &cellCentres, const vectorField &faceCentres, const vectorField &faceNormals, const scalarField &minOwnHeight, const scalarField &minNeiHeight, vectorField &correction) const
 
tmp< pointFieldaverageNeighbourCentres (const pointField &cellCentres, const vectorField &faceNormals, const scalarField &faceWeights) const
 
tmp< pointFieldaverageCentres (const pointField &cellCentres, const pointField &faceCentres, const vectorField &faceNormals) const
 
void makeNonOrthoWeights (const pointField &cellCentres, const vectorField &faceNormals, scalarField &cosAngles, scalarField &faceWeights) const
 
- Protected Member Functions inherited from highAspectRatioFvGeometryScheme
void calcAspectRatioWeights (scalarField &cellWeight, scalarField &faceWeight) const
 

Protected Attributes

const label nIters_
 
const scalar relax_
 
const scalar minRatio_
 
- Protected Attributes inherited from highAspectRatioFvGeometryScheme
const scalar minAspect_
 
const scalar maxAspect_
 
- Protected Attributes inherited from fvGeometryScheme
const fvMeshmesh_
 

Additional Inherited Members

- Static Public Member Functions inherited from fvGeometryScheme
static tmp< fvGeometrySchemeNew (const fvMesh &mesh, const dictionary &dict, const word &defaultScheme)
 
- Static Protected Member Functions inherited from highAspectRatioFvGeometryScheme
static void makeAverageCentres (const polyMesh &mesh, const pointField &points, const pointField &faceAreas, const scalarField &magFaceAreas, pointField &faceCentres, pointField &cellCentres)
 

Detailed Description

Geometry calculation scheme to minimise non-orthogonality/.

Source files

Definition at line 48 of file averageNeighbourFvGeometryScheme.H.

Constructor & Destructor Documentation

◆ averageNeighbourFvGeometryScheme()

averageNeighbourFvGeometryScheme ( const fvMesh mesh,
const dictionary dict 
)

Definition at line 566 of file averageNeighbourFvGeometryScheme.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Pout.

Here is the call graph for this function:

◆ ~averageNeighbourFvGeometryScheme()

virtual ~averageNeighbourFvGeometryScheme ( )
virtualdefault

Member Function Documentation

◆ clipFaceTet()

Foam::label clipFaceTet ( const scalar  minRatio,
const vectorField faceCentres,
const vectorField faceNormals,
vectorField faceCorrection 
) const
protected

Definition at line 48 of file averageNeighbourFvGeometryScheme.C.

References f(), faceNormals(), forAll, Foam::mag(), n, nCorr, p, and Foam::returnReduce().

Referenced by averageNeighbourFvGeometryScheme::movePoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makePyrHeights()

void makePyrHeights ( const pointField cellCentres,
const vectorField faceCentres,
const vectorField faceNormals,
scalarField ownHeight,
scalarField neiHeight 
) const
protected

Definition at line 126 of file averageNeighbourFvGeometryScheme.C.

References faceNormals(), and n.

Referenced by averageNeighbourFvGeometryScheme::movePoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clipPyramids()

Foam::label clipPyramids ( const pointField cellCentres,
const vectorField faceCentres,
const vectorField faceNormals,
const scalarField minOwnHeight,
const scalarField minNeiHeight,
vectorField correction 
) const
protected

Definition at line 166 of file averageNeighbourFvGeometryScheme.C.

References Foam::correction(), faceNormals(), n, and Foam::returnReduce().

Referenced by averageNeighbourFvGeometryScheme::movePoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ averageNeighbourCentres()

Foam::tmp< Foam::pointField > averageNeighbourCentres ( const pointField cellCentres,
const vectorField faceNormals,
const scalarField faceWeights 
) const
protected

Definition at line 264 of file averageNeighbourFvGeometryScheme.C.

References faceNormals(), forAll, n, tmp::ref(), and Foam::Zero.

Referenced by averageNeighbourFvGeometryScheme::movePoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ averageCentres()

Foam::tmp< Foam::pointField > averageCentres ( const pointField cellCentres,
const pointField faceCentres,
const vectorField faceNormals 
) const
protected

Definition at line 375 of file averageNeighbourFvGeometryScheme.C.

References f(), faceNormals(), forAll, n, and tmp::ref().

Referenced by averageNeighbourFvGeometryScheme::movePoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeNonOrthoWeights()

void makeNonOrthoWeights ( const pointField cellCentres,
const vectorField faceNormals,
scalarField cosAngles,
scalarField faceWeights 
) const
protected

Definition at line 510 of file averageNeighbourFvGeometryScheme.C.

References Foam::cos(), Foam::degToRad(), faceNormals(), forAll, Foam::max(), and Foam::min().

Referenced by averageNeighbourFvGeometryScheme::movePoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TypeName()

TypeName ( "averageNeighbour"  )

◆ movePoints()

void movePoints ( )
virtual

Member Data Documentation

◆ nIters_

const label nIters_
protected

◆ relax_

const scalar relax_
protected

◆ minRatio_

const scalar minRatio_
protected

The documentation for this class was generated from the following files: