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
This commit is contained in:
mattijs
2011-04-06 19:04:17 +01:00
parent 668f97c0ec
commit 9021e777e0
3 changed files with 29 additions and 13 deletions

View File

@ -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

View File

@ -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

View File

@ -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.