NeoN
A framework for CFD software
Loading...
Searching...
No Matches
NeoN::finiteVolume::cellCentred::BasicGeometryScheme Class Referencefinal

Default GeometryScheme kernel: computes weights, nonOrthDeltaCoeffs and the non-orthogonal correction vectors directly from the mesh geometry. More...

#include <basicGeometryScheme.hpp>

Inheritance diagram for NeoN::finiteVolume::cellCentred::BasicGeometryScheme:
NeoN::finiteVolume::cellCentred::GeometrySchemeFactory

Public Member Functions

 BasicGeometryScheme (const UnstructuredMesh &mesh)
void updateWeights (const Executor &exec, SurfaceField< scalar > &weights) final
void updateNonOrthDeltaCoeffs (const Executor &exec, SurfaceField< scalar > &nonOrthDeltaCoeffs) final
void updateNonOrthCorrectionVec3s (const Executor &exec, const SurfaceField< scalar > &nonOrthDeltaCoeffs, SurfaceField< Vec3 > &nonOrthCorrectionVec3s) final
Public Member Functions inherited from NeoN::finiteVolume::cellCentred::GeometrySchemeFactory
 GeometrySchemeFactory ()
virtual ~GeometrySchemeFactory ()=default

Detailed Description

Default GeometryScheme kernel: computes weights, nonOrthDeltaCoeffs and the non-orthogonal correction vectors directly from the mesh geometry.

Scheme definitions baked into this kernel:

  • nonOrthDeltaCoeffs is the over-relaxed inverse face-normal distance 1/(n.d), floored by nonOrthDeltaClamp; the snGrad schemes consume it as the consistent normal-gradient coefficient on non-orthogonal meshes (it equals the Euclidean 1/|d| on orthogonal meshes).
  • boundary weights are 1 (one-sided physical patches); processor weights are dN/(dO+dN).
  • processor nonOrthDeltaCoeffs are 1/(dO+dN) from the exchanged owner face-normal distances.
  • non-orthogonal correction vectors are zero on physical (one-sided) boundary faces, but non-zero on non-orthogonal processor faces: a processor face has a real neighbour cell, so the corrected/limited snGrad applies the full correction there (it vanishes on orthogonal processor faces). See FaceNormalGradient docs.

Marked final to enable devirtualisation of the kernel calls in GeometryScheme::update().

Definition at line 37 of file basicGeometryScheme.hpp.

Constructor & Destructor Documentation

◆ BasicGeometryScheme()

NeoN::finiteVolume::cellCentred::BasicGeometryScheme::BasicGeometryScheme ( const UnstructuredMesh & mesh)

Member Function Documentation

◆ updateNonOrthCorrectionVec3s()

void NeoN::finiteVolume::cellCentred::BasicGeometryScheme::updateNonOrthCorrectionVec3s ( const Executor & exec,
const SurfaceField< scalar > & nonOrthDeltaCoeffs,
SurfaceField< Vec3 > & nonOrthCorrectionVec3s )
finalvirtual

◆ updateNonOrthDeltaCoeffs()

void NeoN::finiteVolume::cellCentred::BasicGeometryScheme::updateNonOrthDeltaCoeffs ( const Executor & exec,
SurfaceField< scalar > & nonOrthDeltaCoeffs )
finalvirtual

◆ updateWeights()

void NeoN::finiteVolume::cellCentred::BasicGeometryScheme::updateWeights ( const Executor & exec,
SurfaceField< scalar > & weights )
finalvirtual

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