mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: shm: more layer printing. Fixes #3049
This commit is contained in:
@ -3056,7 +3056,8 @@ void Foam::snappyLayerDriver::printLayerData
|
|||||||
const labelList& patchIDs,
|
const labelList& patchIDs,
|
||||||
const labelList& cellNLayers,
|
const labelList& cellNLayers,
|
||||||
const scalarField& faceWantedThickness,
|
const scalarField& faceWantedThickness,
|
||||||
const scalarField& faceRealThickness
|
const scalarField& faceRealThickness,
|
||||||
|
const layerParameters& layerParams
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
const polyBoundaryMesh& pbm = mesh.boundaryMesh();
|
const polyBoundaryMesh& pbm = mesh.boundaryMesh();
|
||||||
@ -3079,9 +3080,9 @@ void Foam::snappyLayerDriver::printLayerData
|
|||||||
<< setf(ios_base::left) << setw(maxPatchNameLen) << "patch"
|
<< setf(ios_base::left) << setw(maxPatchNameLen) << "patch"
|
||||||
<< setw(0) << " faces layers overall thickness" << nl
|
<< setw(0) << " faces layers overall thickness" << nl
|
||||||
<< setf(ios_base::left) << setw(maxPatchNameLen) << " "
|
<< setf(ios_base::left) << setw(maxPatchNameLen) << " "
|
||||||
<< setw(0) << " [m] [%]" << nl
|
<< setw(0) << " target mesh [m] [%]" << nl
|
||||||
<< setf(ios_base::left) << setw(maxPatchNameLen) << "-----"
|
<< setf(ios_base::left) << setw(maxPatchNameLen) << "-----"
|
||||||
<< setw(0) << " ----- ------ --- ---" << endl;
|
<< setw(0) << " ----- ----- ---- --- ---" << endl;
|
||||||
|
|
||||||
|
|
||||||
forAll(patchIDs, i)
|
forAll(patchIDs, i)
|
||||||
@ -3139,6 +3140,7 @@ void Foam::snappyLayerDriver::printLayerData
|
|||||||
Info<< setf(ios_base::left) << setw(maxPatchNameLen)
|
Info<< setf(ios_base::left) << setw(maxPatchNameLen)
|
||||||
<< pbm[patchi].name() << setprecision(3)
|
<< pbm[patchi].name() << setprecision(3)
|
||||||
<< " " << setw(8) << sumSize
|
<< " " << setw(8) << sumSize
|
||||||
|
<< " " << setw(8) << layerParams.numLayers()[patchi]
|
||||||
<< " " << setw(8) << avgLayers
|
<< " " << setw(8) << avgLayers
|
||||||
<< " " << setw(8) << avgReal
|
<< " " << setw(8) << avgReal
|
||||||
<< " " << setw(8) << 100*avgFraction
|
<< " " << setw(8) << 100*avgFraction
|
||||||
@ -4953,10 +4955,12 @@ void Foam::snappyLayerDriver::addLayers
|
|||||||
|
|
||||||
// Exit if nothing to be added
|
// Exit if nothing to be added
|
||||||
const label nToAdd = gSum(deltaNLayers);
|
const label nToAdd = gSum(deltaNLayers);
|
||||||
|
Info<< nl
|
||||||
|
<< "Outer iteration : " << layeri << nl
|
||||||
|
<< "-------------------" << endl;
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
Info<< "Outer iteration : " << layeri
|
Info<< " Layers to add in current iteration : " << nToAdd << endl;
|
||||||
<< " to add in current iteration : " << nToAdd << endl;
|
|
||||||
}
|
}
|
||||||
if (nToAdd == 0)
|
if (nToAdd == 0)
|
||||||
{
|
{
|
||||||
@ -5080,8 +5084,7 @@ void Foam::snappyLayerDriver::addLayers
|
|||||||
const label nTotalAdded = gSum(patchNLayers);
|
const label nTotalAdded = gSum(patchNLayers);
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
Info<< "Outer iteration : " << layeri
|
Info<< nl << " Added in current iteration : " << nTotalAdded
|
||||||
<< " added in current iteration : " << nTotalAdded
|
|
||||||
<< " out of : " << gSum(deltaNLayers) << endl;
|
<< " out of : " << gSum(deltaNLayers) << endl;
|
||||||
}
|
}
|
||||||
if (nTotalAdded == 0)
|
if (nTotalAdded == 0)
|
||||||
@ -5197,7 +5200,8 @@ void Foam::snappyLayerDriver::addLayers
|
|||||||
patchIDs,
|
patchIDs,
|
||||||
cellNLayers,
|
cellNLayers,
|
||||||
faceWantedThickness,
|
faceWantedThickness,
|
||||||
faceRealThickness
|
faceRealThickness,
|
||||||
|
layerParams
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -509,7 +509,8 @@ private:
|
|||||||
const labelList& patchIDs,
|
const labelList& patchIDs,
|
||||||
const labelList& cellNLayers,
|
const labelList& cellNLayers,
|
||||||
const scalarField& faceWantedThickness,
|
const scalarField& faceWantedThickness,
|
||||||
const scalarField& faceRealThickness
|
const scalarField& faceRealThickness,
|
||||||
|
const layerParameters& layerParams
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
//- Write cellSet,faceSet for layers
|
//- Write cellSet,faceSet for layers
|
||||||
|
|||||||
@ -412,7 +412,8 @@ void Foam::snappyLayerDriver::addLayersSinglePass
|
|||||||
patchIDs,
|
patchIDs,
|
||||||
cellNLayers,
|
cellNLayers,
|
||||||
faceWantedThickness,
|
faceWantedThickness,
|
||||||
faceRealThickness
|
faceRealThickness,
|
||||||
|
layerParams
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user