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:
graham
2009-10-20 13:35:57 +01:00
parent 9ac6f64c5c
commit 913eba05f8

View File

@ -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()
// ************************************************************************* //