mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
Adding harmonic (commented) and geometric means of cell sizes to
reduce the impact of large step changes in cell size.
This commit is contained in:
@ -2523,8 +2523,18 @@ void Foam::conformalVoronoiMesh::move()
|
||||
> cvMeshControls().cosAlignmentAcceptanceAngle()
|
||||
)
|
||||
{
|
||||
// Arithmetic mean
|
||||
// scalar targetCellSize =
|
||||
// 0.5*(vA->targetCellSize() + vB->targetCellSize());
|
||||
|
||||
// Geometric mean
|
||||
scalar targetCellSize =
|
||||
0.5*(vA->targetCellSize() + vB->targetCellSize());
|
||||
sqrt(vA->targetCellSize()*vB->targetCellSize());
|
||||
|
||||
// Harmonic mean
|
||||
// scalar targetCellSize =
|
||||
// 2.0*(vA->targetCellSize()*vB->targetCellSize())
|
||||
// /(vA->targetCellSize() + vB->targetCellSize());
|
||||
|
||||
scalar targetFaceArea = sqr(targetCellSize);
|
||||
|
||||
@ -2712,4 +2722,3 @@ void Foam::conformalVoronoiMesh::move()
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
|
||||
Reference in New Issue
Block a user