mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: snappyHexMesh: detect small distance snapping
This commit is contained in:
@ -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
|
||||||
(
|
(
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user