Geometry calculation scheme to minimise non-orthogonality/. More...
Public Member Functions | |
TypeName ("averageNeighbour") | |
averageNeighbourFvGeometryScheme (const fvMesh &mesh, const dictionary &dict) | |
virtual | ~averageNeighbourFvGeometryScheme ()=default |
virtual void | movePoints () |
![]() | |
TypeName ("highAspectRatio") | |
highAspectRatioFvGeometryScheme (const fvMesh &mesh, const dictionary &dict) | |
virtual | ~highAspectRatioFvGeometryScheme ()=default |
![]() | |
TypeName ("basic") | |
basicFvGeometryScheme (const fvMesh &mesh, const dictionary &dict) | |
virtual | ~basicFvGeometryScheme ()=default |
virtual tmp< surfaceScalarField > | weights () const |
virtual tmp< surfaceScalarField > | deltaCoeffs () const |
virtual tmp< surfaceScalarField > | nonOrthDeltaCoeffs () const |
virtual tmp< surfaceVectorField > | nonOrthCorrectionVectors () const |
![]() | |
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 fvMesh & | mesh () const |
![]() | |
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< pointField > | averageNeighbourCentres (const pointField &cellCentres, const vectorField &faceNormals, const scalarField &faceWeights) const |
tmp< pointField > | averageCentres (const pointField &cellCentres, const pointField &faceCentres, const vectorField &faceNormals) const |
void | makeNonOrthoWeights (const pointField &cellCentres, const vectorField &faceNormals, scalarField &cosAngles, scalarField &faceWeights) const |
![]() | |
void | calcAspectRatioWeights (scalarField &cellWeight, scalarField &faceWeight) const |
Protected Attributes | |
const label | nIters_ |
const scalar | relax_ |
const scalar | minRatio_ |
![]() | |
const scalar | minAspect_ |
const scalar | maxAspect_ |
![]() | |
const fvMesh & | mesh_ |
Additional Inherited Members | |
![]() | |
static tmp< fvGeometryScheme > | New (const fvMesh &mesh, const dictionary &dict, const word &defaultScheme) |
![]() | |
static void | makeAverageCentres (const polyMesh &mesh, const pointField &points, const pointField &faceAreas, const scalarField &magFaceAreas, pointField &faceCentres, pointField &cellCentres) |
Geometry calculation scheme to minimise non-orthogonality/.
Definition at line 48 of file averageNeighbourFvGeometryScheme.H.
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.
|
virtualdefault |
|
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().
|
protected |
Definition at line 126 of file averageNeighbourFvGeometryScheme.C.
References faceNormals(), and n.
Referenced by averageNeighbourFvGeometryScheme::movePoints().
|
protected |
Definition at line 166 of file averageNeighbourFvGeometryScheme.C.
References Foam::correction(), faceNormals(), n, and Foam::returnReduce().
Referenced by averageNeighbourFvGeometryScheme::movePoints().
|
protected |
Definition at line 264 of file averageNeighbourFvGeometryScheme.C.
References faceNormals(), forAll, n, tmp::ref(), and Foam::Zero.
Referenced by averageNeighbourFvGeometryScheme::movePoints().
|
protected |
Definition at line 375 of file averageNeighbourFvGeometryScheme.C.
References f(), faceNormals(), forAll, n, and tmp::ref().
Referenced by averageNeighbourFvGeometryScheme::movePoints().
|
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().
TypeName | ( | "averageNeighbour" | ) |
|
virtual |
Reimplemented from highAspectRatioFvGeometryScheme.
Definition at line 623 of file averageNeighbourFvGeometryScheme.C.
References Foam::acos(), averageNeighbourFvGeometryScheme::averageCentres(), averageNeighbourFvGeometryScheme::averageNeighbourCentres(), highAspectRatioFvGeometryScheme::calcAspectRatioWeights(), primitiveMesh::cellCentres(), primitiveMesh::cellVolumes(), fileName::clean(), averageNeighbourFvGeometryScheme::clipFaceTet(), averageNeighbourFvGeometryScheme::clipPyramids(), Foam::correction(), Foam::cos(), Foam::expressions::patchExpr::debug, Foam::degToRad(), Foam::endl(), primitiveMesh::faceAreas(), primitiveMesh::faceCentres(), faceNormals(), polyMeshTools::faceOrthogonality(), polyMesh::faces(), forAll, Foam::gAverage(), TimePaths::globalPath(), Foam::gMax(), Foam::gMin(), Foam::mag(), averageNeighbourFvGeometryScheme::makeNonOrthoWeights(), averageNeighbourFvGeometryScheme::makePyrHeights(), fvGeometryScheme::mesh_, Foam::min(), averageNeighbourFvGeometryScheme::minRatio_, Foam::mkDir(), highAspectRatioFvGeometryScheme::movePoints(), OFstream::name(), surfaceWriter::New(), averageNeighbourFvGeometryScheme::nIters_, functionObject::outputPrefix, polyMesh::points(), polyMesh::pointsInstance(), Foam::Pout, Foam::radToDeg(), averageNeighbourFvGeometryScheme::relax_, primitiveMesh::resetGeometry(), autoPtr::set(), fvMesh::time(), Time::timePath(), and OBJstream::write().
|
protected |
Definition at line 67 of file averageNeighbourFvGeometryScheme.H.
Referenced by averageNeighbourFvGeometryScheme::movePoints().
|
protected |
Definition at line 70 of file averageNeighbourFvGeometryScheme.H.
Referenced by averageNeighbourFvGeometryScheme::movePoints().
|
protected |
Definition at line 74 of file averageNeighbourFvGeometryScheme.H.
Referenced by averageNeighbourFvGeometryScheme::movePoints().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.