diff --git a/src/dynamicMesh/topoChangerFvMesh/dynamicPolyRefinementFvMesh/dynamicPolyRefinementFvMesh.C b/src/dynamicMesh/topoChangerFvMesh/dynamicPolyRefinementFvMesh/dynamicPolyRefinementFvMesh.C index c48a74a10..d3165ecef 100644 --- a/src/dynamicMesh/topoChangerFvMesh/dynamicPolyRefinementFvMesh/dynamicPolyRefinementFvMesh.C +++ b/src/dynamicMesh/topoChangerFvMesh/dynamicPolyRefinementFvMesh/dynamicPolyRefinementFvMesh.C @@ -163,9 +163,11 @@ bool Foam::dynamicPolyRefinementFvMesh::update() refinementSelectionPtr_->unrefinementPointCandidates() ); - // Set split points to unrefine around. Note: polyhedralRefinement - // ensures that only a consistent set of split points is used for - // unrefinement + // Set split points to unrefine around. + // Notes: + // 1. polyhedralRefinement ensures that only a consistent set of split + // points is used for unrefinement + // 2. Must be called after polyhedralRefinement::setCellsToRefine polyRefModifier.setSplitPointsToUnrefine(unrefCandidates); // Activate the polyhedral refinement engine if there are some cells to @@ -189,6 +191,14 @@ bool Foam::dynamicPolyRefinementFvMesh::update() // Perform refinement and unrefinement in one go autoPtr topoChangeMap = topoChanger_.changeMesh(); + // Output cell balance + Info<< "Successfully performed polyhedral refinement. " + << "Changed from " + << returnReduce(topoChangeMap->nOldCells(), sumOp