diff --git a/tutorials/mesh/snappyHexMesh/flange/Allrun b/tutorials/mesh/snappyHexMesh/flange/Allrun index 5291053bae89bcff2fda75d2525dda4b0443a3ba..c4ca60aed0eb58fb9bae5416c985202dfebab1ed 100755 --- a/tutorials/mesh/snappyHexMesh/flange/Allrun +++ b/tutorials/mesh/snappyHexMesh/flange/Allrun @@ -3,5 +3,5 @@ . $WM_PROJECT_DIR/bin/tools/RunFunctions runApplication blockMesh -runApplication surfaceFeatureExtract -includedAngle 135 -writeObj constant/triSurface/flange.stl flange +runApplication surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/flange.stl flange runApplication snappyHexMesh -overwrite diff --git a/tutorials/mesh/snappyHexMesh/flange/constant/polyMesh/blockMeshDict b/tutorials/mesh/snappyHexMesh/flange/constant/polyMesh/blockMeshDict index b5f087977ba446de5992db2f059b6772c6e826bf..83ee691b8c6b59eb6267e32abb1f7526fa2e2626 100644 --- a/tutorials/mesh/snappyHexMesh/flange/constant/polyMesh/blockMeshDict +++ b/tutorials/mesh/snappyHexMesh/flange/constant/polyMesh/blockMeshDict @@ -18,14 +18,14 @@ convertToMeters 1; vertices ( - ( -0.0260093 -0.0275 -0.02375) - ( 0.0260093 -0.0275 -0.02375) - ( 0.0260093 0.0225 -0.02375) - ( -0.0260093 0.0225 -0.02375) - ( -0.0260093 -0.0275 0.00225014) - ( 0.0260093 -0.0275 0.00225014) - ( 0.0260093 0.0225 0.00225014) - ( -0.0260093 0.0225 0.00225014) + ( -0.03 -0.03 -0.03) + ( 0.03 -0.03 -0.03) + ( 0.03 0.03 -0.03) + ( -0.03 0.03 -0.03) + ( -0.03 -0.03 0.01) + ( 0.03 -0.03 0.01) + ( 0.03 0.03 0.01) + ( -0.03 0.03 0.01) ); blocks diff --git a/tutorials/mesh/snappyHexMesh/flange/system/snappyHexMeshDict b/tutorials/mesh/snappyHexMesh/flange/system/snappyHexMeshDict index c5fc9286f60eaa1fecfe0eade6a4d12527f03a69..d7f6fd3439d3b475e95ee9656bd9130e1730b7c2 100644 --- a/tutorials/mesh/snappyHexMesh/flange/system/snappyHexMeshDict +++ b/tutorials/mesh/snappyHexMesh/flange/system/snappyHexMeshDict @@ -35,12 +35,23 @@ geometry name flange; } - refine + //- Refine a bit extra around the small centre hole + refineHole { type searchableSphere; centre (0 0 -0.012); radius 0.003; } + + //- Refine a bit extra around the edge of the flange. With only two cells + // across it might/might not mesh correctly. + refineCap + { + type searchableCylinder; + point1 (0 0.021 -0.01075); + point2 (0 0.025 -0.01075); + radius 0.013; + } }; @@ -110,7 +121,7 @@ castellatedMeshControls } } - resolveFeatureAngle 45; + resolveFeatureAngle 30; // Region-wise refinement @@ -128,7 +139,12 @@ castellatedMeshControls refinementRegions { - refine + refineHole + { + mode inside; + levels ((1E15 3)); + } + refineCap { mode inside; levels ((1E15 3)); @@ -221,7 +237,7 @@ addLayersControls //- When not to extrude surface. 0 is flat surface, 90 is when two faces // make straight angle. - featureAngle 45; + featureAngle 30; //- Maximum number of snapping relaxation iterations. Should stop // before upon reaching a correct mesh.