1 /*--------------------------------*- C++ -*----------------------------------*\
3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4 | \\ / O peration | Version: 2.0.0 |
5 | \\ / A nd | Web: www.OpenFOAM.com |
6 | \\/ M anipulation | |
7 \*---------------------------------------------------------------------------*/
13 object snappyHexMeshDict;
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17 // Which of the steps to run
23 // Geometry. Definition of all surfaces. All surfaces are of class
26 // - to specify refinement for any mesh cell intersecting it
27 // - to specify refinement for any mesh cell inside/outside/near
28 // - to 'snap' the mesh boundary to the surface
46 // Settings for the castellatedMesh generation.
47 castellatedMeshControls
50 // Refinement parameters
51 // ~~~~~~~~~~~~~~~~~~~~~
53 // If local number of cells is >= maxLocalCells on any processor
54 // switches from from refinement followed by balancing
55 // (current method) to (weighted) balancing before refinement.
56 maxLocalCells 1000000;
58 // Overall cell limit (approximately). Refinement will stop immediately
59 // upon reaching this number so a refinement level might not complete.
60 // Note that this is the number of cells before removing the part which
61 // is not 'visible' from the keepPoint. The final number of cells might
62 // actually be a lot less.
63 maxGlobalCells 2000000;
65 // The surface refinement loop might spend lots of iterations refining just
66 // a few cells. This setting will cause refinement to stop if <=
67 // minimumRefine are selected for refinement. Note: it will at least do one
68 // iteration (unless the number of cells to refine is 0)
69 minRefinementCells 100;
71 // Number of buffer layers between different levels.
72 // 1 means normal 2:1 refinement restriction, larger means slower
74 nCellsBetweenLevels 6;
78 // Explicit feature edge refinement
79 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
81 // Specifies a level for any cell intersected by its edges.
82 // This is a featureEdgeMesh, read from constant/triSurface for now.
87 // Surface based refinement
88 // ~~~~~~~~~~~~~~~~~~~~~~~~
90 // Specifies two levels for every surface. The first is the minimum level,
91 // every cell intersecting a surface gets refined up to the minimum level.
92 // The second level is the maximum level. Cells that 'see' multiple
93 // intersections where the intersections make an
94 // angle > resolveFeatureAngle get refined up to the maximum level.
100 // Surface-wise min and max refinement level
105 // Resolve sharp angles on fridges
106 resolveFeatureAngle 30;
109 // Region-wise refinement
110 // ~~~~~~~~~~~~~~~~~~~~~~
112 // Specifies refinement level for cells in relation to a surface. One of
114 // - distance. 'levels' specifies per distance to the surface the
115 // wanted refinement level. The distances need to be specified in
117 // - inside. 'levels' is only one entry and only the level is used. All
118 // cells inside the surface get refined up to the level. The surface
119 // needs to be closed for this to be possible.
120 // - outside. Same but cells outside.
135 // After refinement patches get added for all refinementSurfaces and
136 // all cells intersecting the surfaces get put into these patches. The
137 // section reachable from the locationInMesh is kept.
138 // NOTE: This point should never be on a face, always inside a cell, even
140 locationInMesh (-0.5 0 0);
143 // Whether any faceZones (as specified in the refinementSurfaces)
144 // are only on the boundary of corresponding cellZones or also allow
145 // free-standing zone faces. Not used if there are no faceZones.
146 allowFreeStandingZoneFaces true;
151 // Settings for the snapping.
154 //- Number of patch smoothing iterations before finding correspondence
158 //- Relative distance for points to be attracted by surface feature point
159 // or edge. True distance is this factor times local
160 // maximum edge length.
163 //- Number of mesh displacement relaxation iterations.
166 //- Maximum number of snapping relaxation iterations. Should stop
167 // before upon reaching a correct mesh.
173 // Settings for the layer addition.
176 // Are the thickness parameters below relative to the undistorted
177 // size of the refined cell outside layer (true) or absolute sizes (false).
180 // Per final patch (so not geometry!) the layer information
189 // Expansion factor for layer mesh
192 //- Wanted thickness of final added cell layer. If multiple layers
194 // thickness of the layer furthest away from the wall.
195 // Relative to undistorted size of cell outside layer.
196 // is the thickness of the layer furthest away from the wall.
197 // See relativeSizes parameter.
198 finalLayerThickness 0.7;
200 //- Minimum thickness of cell layer. If for any reason layer
201 // cannot be above minThickness do not add layer.
202 // Relative to undistorted size of cell outside layer.
203 // See relativeSizes parameter.
206 //- If points get not extruded do nGrow layers of connected faces that are
207 // also not grown. This helps convergence of the layer addition process
208 // close to features.
209 // Note: changed(corrected) w.r.t 17x! (didn't do anything in 17x)
214 //- When not to extrude surface. 0 is flat surface, 90 is when two faces
215 // make straight angle.
218 //- Maximum number of snapping relaxation iterations. Should stop
219 // before upon reaching a correct mesh.
222 // Number of smoothing iterations of surface normals
223 nSmoothSurfaceNormals 1;
225 // Number of smoothing iterations of interior mesh movement direction
228 // Smooth layer thickness over surface patches
231 // Stop layer growth on highly warped cells
232 maxFaceThicknessRatio 0.5;
234 // Reduce layer growth where ratio thickness to medial
236 maxThicknessToMedialRatio 0.3;
238 // Angle used to pick up medial axis points
239 // Note: changed(corrected) w.r.t 16x! 90 degrees corresponds to 130 in 16x.
240 minMedianAxisAngle 90;
242 // Create buffer region for new layer terminations
243 nBufferCellsNoExtrude 0;
246 // Overall max number of layer addition iterations. The mesher will exit
247 // if it reaches this number of iterations; possibly with an illegal
254 // Generic mesh quality settings. At any undoable phase these determine
258 //- Maximum non-orthogonality allowed. Set to 180 to disable.
261 //- Max skewness allowed. Set to <0 to disable.
262 maxBoundarySkewness 20;
263 maxInternalSkewness 4;
265 //- Max concaveness allowed. Is angle (in degrees) below which concavity
266 // is allowed. 0 is straight face, <0 would be convex face.
267 // Set to 180 to disable.
270 //- Minimum pyramid volume. Is absolute volume of cell pyramid.
271 // Set to a sensible fraction of the smallest cell volume expected.
272 // Set to very negative number (e.g. -1E30) to disable.
275 //- Minimum quality of the tet formed by the face-centre
276 // and variable base point minimum decomposition triangles and
277 // the cell centre. Set to very negative number (e.g. -1E30) to
279 // <0 = inside out tet,
284 //- Minimum face area. Set to <0 to disable.
287 //- Minimum face twist. Set to <-1 to disable. dot product of face normal
288 //- and face centre triangles normal
291 //- minimum normalised cell determinant
292 //- 1 = hex, <= 0 = folded or flattened illegal cell
293 minDeterminant 0.001;
295 //- minFaceWeight (0 -> 0.5)
298 //- minVolRatio (0 -> 1)
301 //must be >0 for Fluent compatibility
307 //- Number of error distribution iterations
309 //- amount to scale back displacement at error points
316 // Flags for optional output
317 // 0 : only write final meshes
318 // 1 : write intermediate meshes
319 // 2 : write volScalarField with cellLevel for postprocessing
320 // 4 : write current intersections as .obj files
324 // Merge tolerance. Is fraction of overall bounding box of initial mesh.
325 // Note: the write tolerance needs to be higher than this.
329 // ************************************************************************* //