Additional output in dynamicPolyRefinementFvMesh
After successfully performing topo change (either refinement or unrefinement or both), prints out global cell balance.
This commit is contained in:
parent
0d4bd534e2
commit
5613b4b4ad
1 changed files with 13 additions and 3 deletions
|
@ -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<mapPolyMesh> topoChangeMap = topoChanger_.changeMesh();
|
||||
|
||||
// Output cell balance
|
||||
Info<< "Successfully performed polyhedral refinement. "
|
||||
<< "Changed from "
|
||||
<< returnReduce(topoChangeMap->nOldCells(), sumOp<label>())
|
||||
<< " to "
|
||||
<< returnReduce(topoChangeMap->cellMap().size(), sumOp<label>())
|
||||
<< " cells." << endl;
|
||||
|
||||
return topoChangeMap->morphing();
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue