Skip to content
Snippets Groups Projects
Commit 9021e777 authored by mattijs's avatar mattijs
Browse files

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
parent 668f97c0
No related merge requests found
......@@ -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
......@@ -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
......
......@@ -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.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment