mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: autoLayerDriver: initialisation of face merge candidates
This commit is contained in:
@ -2450,17 +2450,17 @@ void Foam::autoLayerDriver::mergePatchFacesUndo
|
|||||||
const dictionary& motionDict
|
const dictionary& motionDict
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
scalar minCos =
|
// Clip to 45 degrees
|
||||||
Foam::cos(degToRad(layerParams.featureAngle()));
|
scalar planarAngle = min(45.0, layerParams.featureAngle());
|
||||||
|
scalar minCos = Foam::cos(degToRad(planarAngle));
|
||||||
|
|
||||||
scalar concaveCos =
|
scalar concaveCos = Foam::cos(degToRad(layerParams.concaveAngle()));
|
||||||
Foam::cos(degToRad(layerParams.concaveAngle()));
|
|
||||||
|
|
||||||
Info<< nl
|
Info<< nl
|
||||||
<< "Merging all faces of a cell" << nl
|
<< "Merging all faces of a cell" << nl
|
||||||
<< "---------------------------" << nl
|
<< "---------------------------" << nl
|
||||||
<< " - which are on the same patch" << nl
|
<< " - which are on the same patch" << nl
|
||||||
<< " - which make an angle < " << layerParams.featureAngle()
|
<< " - which make an angle < " << planarAngle
|
||||||
<< " degrees"
|
<< " degrees"
|
||||||
<< nl
|
<< nl
|
||||||
<< " (cos:" << minCos << ')' << nl
|
<< " (cos:" << minCos << ')' << nl
|
||||||
@ -2478,7 +2478,7 @@ void Foam::autoLayerDriver::mergePatchFacesUndo
|
|||||||
concaveCos,
|
concaveCos,
|
||||||
meshRefiner_.meshedPatches(),
|
meshRefiner_.meshedPatches(),
|
||||||
motionDict,
|
motionDict,
|
||||||
labelList(mesh.nFaces() -1)
|
labelList(mesh.nFaces(), -1)
|
||||||
);
|
);
|
||||||
|
|
||||||
nChanged += meshRefiner_.mergeEdgesUndo(minCos, motionDict);
|
nChanged += meshRefiner_.mergeEdgesUndo(minCos, motionDict);
|
||||||
|
|||||||
Reference in New Issue
Block a user