ENH: snappyHexMesh: detect small distance snapping

This commit is contained in:
mattijs
2013-09-13 16:20:03 +01:00
parent 52f85ed637
commit 12d87fcacc
2 changed files with 20 additions and 5 deletions

View File

@ -1312,8 +1312,16 @@ int main(int argc, char *argv[])
// Use the resolveFeatureAngle from the refinement parameters // Use the resolveFeatureAngle from the refinement parameters
scalar curvature = refineParams.curvature(); scalar curvature = refineParams.curvature();
scalar planarAngle = refineParams.planarAngle();
snapDriver.doSnap(snapDict, motionDict, curvature, snapParams); snapDriver.doSnap
(
snapDict,
motionDict,
curvature,
planarAngle,
snapParams
);
writeMesh writeMesh
( (

View File

@ -194,10 +194,13 @@ castellatedMeshControls
// Planar angle: // Planar angle:
// - used to determine if surface normals // - used to determine if surface normals
// are roughly the same or opposite. Used e.g. in proximity refinement // are roughly the same or opposite. Used
// and to decide when to merge free-standing baffles // - in proximity refinement
// If e.g. running in surfaceSimplify mode set this to 180 to // - to decide when to merge free-standing baffles
// merge all baffles // (if e.g. running in surfaceSimplify mode set this to 180 to
// merge all baffles)
// - in snapping to avoid snapping to nearest on 'wrong' side
// of thin gap
// //
// If not specified same as resolveFeatureAngle // If not specified same as resolveFeatureAngle
planarAngle 30; planarAngle 30;
@ -284,6 +287,10 @@ snapControls
// Detect features between multiple surfaces // Detect features between multiple surfaces
// (only for explicitFeatureSnap, default = false) // (only for explicitFeatureSnap, default = false)
multiRegionFeatureSnap false; multiRegionFeatureSnap false;
// wip: disable snapping to opposite near surfaces (revert to 22x behaviour)
// detectNearSurfacesSnap false;
} }
// Settings for the layer addition. // Settings for the layer addition.