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()
|
refinementSelectionPtr_->unrefinementPointCandidates()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Set split points to unrefine around. Note: polyhedralRefinement
|
// Set split points to unrefine around.
|
||||||
// ensures that only a consistent set of split points is used for
|
// Notes:
|
||||||
// unrefinement
|
// 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);
|
polyRefModifier.setSplitPointsToUnrefine(unrefCandidates);
|
||||||
|
|
||||||
// Activate the polyhedral refinement engine if there are some cells to
|
// 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
|
// Perform refinement and unrefinement in one go
|
||||||
autoPtr<mapPolyMesh> topoChangeMap = topoChanger_.changeMesh();
|
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();
|
return topoChangeMap->morphing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue