Report zone sizes
This commit is contained in:
parent
d9f01f2d23
commit
33c1be373c
1 changed files with 16 additions and 0 deletions
|
@ -250,6 +250,22 @@ Foam::label Foam::checkTopology
|
||||||
rs
|
rs
|
||||||
);
|
);
|
||||||
ctr.write();
|
ctr.write();
|
||||||
|
|
||||||
|
// Count number of cells in all regions
|
||||||
|
labelList nCellsInRegions(rs.nRegions(), 0);
|
||||||
|
|
||||||
|
forAll (rs, rsI)
|
||||||
|
{
|
||||||
|
nCellsInRegions[rs[rsI]]++;
|
||||||
|
}
|
||||||
|
|
||||||
|
Info<< "Nuumber of cells per region: " << nl;
|
||||||
|
|
||||||
|
forAll (nCellsInRegions, regionI)
|
||||||
|
{
|
||||||
|
Info<< tab << regionI << tab << nCellsInRegions[regionI] << nl;
|
||||||
|
}
|
||||||
|
Info<< endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue