mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: snappyHexMesh: Size printing, formatting. See #972.
This commit is contained in:
@ -4629,6 +4629,8 @@ void Foam::snappyLayerDriver::addLayers
|
|||||||
// Write mesh data
|
// Write mesh data
|
||||||
// ~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
if (!dryRun_)
|
||||||
|
{
|
||||||
writeLayerData
|
writeLayerData
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
@ -4638,6 +4640,7 @@ void Foam::snappyLayerDriver::addLayers
|
|||||||
faceRealThickness
|
faceRealThickness
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::snappyLayerDriver::doLayers
|
void Foam::snappyLayerDriver::doLayers
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user