ENH: snappyHexMesh: Size printing, formatting. See #972.

This commit is contained in:
mattijs
2018-11-29 10:56:38 +00:00
parent 0e5325bff9
commit 7bf4bcf4ba
2 changed files with 22 additions and 11 deletions

View File

@ -4629,14 +4629,17 @@ void Foam::snappyLayerDriver::addLayers
// Write mesh data // Write mesh data
// ~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~
writeLayerData if (!dryRun_)
( {
mesh, writeLayerData
patchIDs, (
cellNLayers, mesh,
faceWantedThickness, patchIDs,
faceRealThickness cellNLayers,
); faceWantedThickness,
faceRealThickness
);
}
} }

View File

@ -33,6 +33,7 @@ License
#include "shellSurfaces.H" #include "shellSurfaces.H"
#include "searchableSurfaces.H" #include "searchableSurfaces.H"
#include "voxelMeshSearch.H" #include "voxelMeshSearch.H"
#include "IOmanip.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -388,9 +389,16 @@ Foam::snappyVoxelMeshDriver::snappyVoxelMeshDriver
const scalar level0Len = meshRefiner_.meshCutter().level0EdgeLength(); const scalar level0Len = meshRefiner_.meshCutter().level0EdgeLength();
Info<< "Cell size estimate :" << nl const int oldWidth = Sout.width();
<< " Maximum : " << level0Len << nl
<< " Minimum : " << level0Len/pow(2.0, maxLevel) << nl Info<< nl
<< "Cell size estimate :" << nl
<< " Level "
<< setw(2) << label(0) << setw(oldWidth)
<< " : " << level0Len << nl
<< " Level "
<< setw(2) << maxLevel << setw(oldWidth)
<< " : " << level0Len/pow(2.0, maxLevel) << nl
<< endl; << endl;