ENH: Do a weighted balance before refinement and layer addition.

Have weight=7 on cells to be refined and balance. Then after refinement
there will be perfect balancing. Similar for layer addition.
This commit is contained in:
mattijs
2010-02-03 06:18:30 +00:00
parent 953030879e
commit 36346ec1a2
11 changed files with 262 additions and 121 deletions

View File

@ -656,6 +656,16 @@ public:
const scalar maxLoadUnbalance
);
//- Balance before refining some cells
autoPtr<mapDistributePolyMesh> balanceAndRefine
(
const string& msg,
decompositionMethod& decomposer,
fvMeshDistribute& distributor,
const labelList& cellsToRefine,
const scalar maxLoadUnbalance
);
// Baffle handling