From 9021e777e0e3a8bb34bb72db89a3d5d8e90c1528 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Wed, 6 Apr 2011 19:04:17 +0100 Subject: [PATCH] ENH: flange feature edge tutorial: - slightly bigger display so re-patching does not pick up original outside - additional refinement at inlet since 2 cells across is too few occasionally - changed feature angle to pick up more edges --- tutorials/mesh/snappyHexMesh/flange/Allrun | 2 +- .../flange/constant/polyMesh/blockMeshDict | 16 ++++++------- .../flange/system/snappyHexMeshDict | 24 +++++++++++++++---- 3 files changed, 29 insertions(+), 13 deletions(-) diff --git a/tutorials/mesh/snappyHexMesh/flange/Allrun b/tutorials/mesh/snappyHexMesh/flange/Allrun index 5291053bae8..c4ca60aed0e 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 b5f087977ba..83ee691b8c6 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 c5fc9286f60..d7f6fd3439d 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. -- GitLab