mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: snappyHexMesh: fixes #1836.
When truncating layers in one go (nBufferCellsNoExtrude -1) it should set the nCells per face to be the min of the number of points per edge.
This commit is contained in:
@ -2407,10 +2407,21 @@ void Foam::snappyLayerDriver::setupLayerInfoTruncation
|
||||
|
||||
forAll(f, fp)
|
||||
{
|
||||
if (patchNLayers[f[fp]] > 0)
|
||||
const label nPointLayers = patchNLayers[f[fp]];
|
||||
if (nPointLayers > 0)
|
||||
{
|
||||
nPatchFaceLayers[patchFacei] = patchNLayers[f[fp]];
|
||||
break;
|
||||
if (nPatchFaceLayers[patchFacei] == -1)
|
||||
{
|
||||
nPatchFaceLayers[patchFacei] = nPointLayers;
|
||||
}
|
||||
else
|
||||
{
|
||||
nPatchFaceLayers[patchFacei] = min
|
||||
(
|
||||
nPatchFaceLayers[patchFacei],
|
||||
nPointLayers
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user