1 /*--------------------------------*- C++ -*----------------------------------*\
3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4 | \\ / O peration | Version: 2.0.0 |
5 | \\ / A nd | Web: www.OpenFOAM.org |
6 | \\/ M anipulation | |
7 \*---------------------------------------------------------------------------*/
13 object snappyHexMeshDict;
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
18 // Which of the steps to run
24 // Geometry. Definition of all surfaces. All surfaces are of class
27 // - to specify refinement for any mesh cell intersecting it
28 // - to specify refinement for any mesh cell inside/outside/near
29 // - to 'snap' the mesh boundary to the surface
36 min (581845 4785805 1061);
37 max (581855 4785815 1071);
43 min (581740 4785658 1065);
44 max (581771 4785671 1079);
52 //tolerance 1e-5; // optional:non-default tolerance on intersections
53 //maxTreeDepth 10; // optional:depth of octree. Decrease only in case
54 // of memory limitations.
56 // Per region the patchname. If not provided will be <name>_<region>.
70 type searchableSphere;
79 // Settings for the castellatedMesh generation.
80 castellatedMeshControls
83 // Refinement parameters
84 // ~~~~~~~~~~~~~~~~~~~~~
86 // If local number of cells is >= maxLocalCells on any processor
87 // switches from from refinement followed by balancing
88 // (current method) to (weighted) balancing before refinement.
91 // Overall cell limit (approximately). Refinement will stop immediately
92 // upon reaching this number so a refinement level might not complete.
93 // Note that this is the number of cells before removing the part which
94 // is not 'visible' from the keepPoint. The final number of cells might
95 // actually be a lot less.
96 maxGlobalCells 2000000;
98 // The surface refinement loop might spend lots of iterations
99 // refining just a few cells. This setting will cause refinement
100 // to stop if <= minimumRefine are selected for refinement. Note:
101 // it will at least do one iteration (unless the number of cells
103 minRefinementCells 0;
105 // Allow a certain level of imbalance during refining
106 // (since balancing is quite expensive)
107 // Expressed as fraction of perfect balance (= overall number of cells /
108 // nProcs). 0=balance always.
109 maxLoadUnbalance 0.10;
112 // Number of buffer layers between different levels.
113 // 1 means normal 2:1 refinement restriction, larger means slower
115 nCellsBetweenLevels 1;
119 // Explicit feature edge refinement
120 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122 // Specifies a level for any cell intersected by its edges.
123 // This is a featureEdgeMesh, read from constant/triSurface for now.
127 // file "someLine.eMesh";
134 // Surface based refinement
135 // ~~~~~~~~~~~~~~~~~~~~~~~~
137 // Specifies two levels for every surface. The first is the minimum level,
138 // every cell intersecting a surface gets refined up to the minimum level.
139 // The second level is the maximum level. Cells that 'see' multiple
140 // intersections where the intersections make an
141 // angle > resolveFeatureAngle get refined up to the maximum level.
147 // Surface-wise min and max refinement level
150 // Optional region-wise level specification
160 //- Optional angle to detect small-large cell situation
161 // perpendicular to the surface. Is the angle of face w.r.t.
162 // the local surface normal. Use on flat(ish) surfaces only.
163 // Otherwise leave out or set to negative number.
164 //perpendicularAngle 10;
167 //- Optional faceZone and (for closed surface) cellZone with
168 // how to select the cells that are in the cellZone
169 // (inside / outside / specified insidePoint)
172 //cellZoneInside inside; //outside/insidePoint
176 resolveFeatureAngle 2;
179 // Region-wise refinement
180 // ~~~~~~~~~~~~~~~~~~~~~~
182 // Specifies refinement level for cells in relation to a surface. One of
184 // - distance. 'levels' specifies per distance to the surface the
185 // wanted refinement level. The distances need to be specified in
187 // - inside. 'levels' is only one entry and only the level is used. All
188 // cells inside the surface get refined up to the level. The surface
189 // needs to be closed for this to be possible.
190 // - outside. Same but cells outside.
209 // levels ((1.0 5) (2.0 3));
217 // After refinement patches get added for all refinementSurfaces and
218 // all cells intersecting the surfaces get put into these patches. The
219 // section reachable from the locationInMesh is kept.
220 // NOTE: This point should never be on a face, always inside a cell, even
222 locationInMesh (581770 4.78580e+06 1050);
225 // Whether any faceZones (as specified in the refinementSurfaces)
226 // are only on the boundary of corresponding cellZones or also allow
227 // free-standing zone faces. Not used if there are no faceZones.
228 allowFreeStandingZoneFaces true;
233 // Settings for the snapping.
236 //- Number of patch smoothing iterations before finding correspondence
240 //- Relative distance for points to be attracted by surface feature point
241 // or edge. True distance is this factor times local
242 // maximum edge length.
245 //- Number of mesh displacement relaxation iterations.
248 //- Maximum number of snapping relaxation iterations. Should stop
249 // before upon reaching a correct mesh.
255 // Settings for the layer addition.
258 // Are the thickness parameters below relative to the undistorted
259 // size of the refined cell outside layer (true) or absolute sizes (false).
262 // Per final patch (so not geometry!) the layer information
265 sphere.stl_firstSolid
276 // Expansion factor for layer mesh
280 //- Wanted thickness of final added cell layer. If multiple layers
281 // is the thickness of the layer furthest away from the wall.
282 // See relativeSizes parameter.
283 finalLayerThickness 0.3;
285 //- Minimum thickness of cell layer. If for any reason layer
286 // cannot be above minThickness do not add layer.
287 // See relativeSizes parameter.
290 //- If points get not extruded do nGrow layers of connected faces that are
291 // also not grown. This helps convergence of the layer addition process
292 // close to features.
293 // Note: changed(corrected) w.r.t 17x! (didn't do anything in 17x)
299 //- When not to extrude surface. 0 is flat surface, 90 is when two faces
300 // make straight angle.
303 //- Maximum number of snapping relaxation iterations. Should stop
304 // before upon reaching a correct mesh.
307 // Number of smoothing iterations of surface normals
308 nSmoothSurfaceNormals 1;
310 // Number of smoothing iterations of interior mesh movement direction
313 // Smooth layer thickness over surface patches
316 // Stop layer growth on highly warped cells
317 maxFaceThicknessRatio 0.5;
319 // Reduce layer growth where ratio thickness to medial
321 maxThicknessToMedialRatio 0.3;
323 // Angle used to pick up medial axis points
324 // Note: changed(corrected) w.r.t 16x! 90 degrees corresponds to 130 in 16x.
325 minMedianAxisAngle 90;
327 // Create buffer region for new layer terminations
328 nBufferCellsNoExtrude 0;
331 // Overall max number of layer addition iterations. The mesher will exit
332 // if it reaches this number of iterations; possibly with an illegal
336 // Max number of iterations after which relaxed meshQuality controls
337 // get used. Up to nRelaxIter it uses the settings in meshQualityControls,
338 // after nRelaxIter it uses the values in meshQualityControls::relaxed.
344 // Generic mesh quality settings. At any undoable phase these determine
348 //- Maximum non-orthogonality allowed. Set to 180 to disable.
351 //- Max skewness allowed. Set to <0 to disable.
352 maxBoundarySkewness 20;
353 maxInternalSkewness 4;
355 //- Max concaveness allowed. Is angle (in degrees) below which concavity
356 // is allowed. 0 is straight face, <0 would be convex face.
357 // Set to 180 to disable.
360 //- Minimum pyramid volume. Is absolute volume of cell pyramid.
361 // Set to a sensible fraction of the smallest cell volume expected.
362 // Set to very negative number (e.g. -1E30) to disable.
365 //- Minimum quality of the tet formed by the face-centre
366 // and variable base point minimum decomposition triangles and
367 // the cell centre. Set to very negative number (e.g. -1E30) to
369 // <0 = inside out tet,
374 //- Minimum face area. Set to <0 to disable.
377 //- Minimum face twist. Set to <-1 to disable. dot product of face normal
378 //- and face centre triangles normal
381 //- minimum normalised cell determinant
382 //- 1 = hex, <= 0 = folded or flattened illegal cell
383 minDeterminant 0.001;
385 //- minFaceWeight (0 -> 0.5)
388 //- minVolRatio (0 -> 1)
391 //must be >0 for Fluent compatibility
394 //- if >0 : preserve single cells with all points on the surface if the
395 // resulting volume after snapping (by approximation) is larger than
396 // minVolCollapseRatio times old volume (i.e. not collapsed to flat cell).
397 // If <0 : delete always.
398 //minVolCollapseRatio 0.5;
403 //- Number of error distribution iterations
405 //- amount to scale back displacement at error points
410 // Optional : some meshing phases allow usage of relaxed rules.
411 // See e.g. addLayersControls::nRelaxedIter.
414 //- Maximum non-orthogonality allowed. Set to 180 to disable.
422 // Flags for optional output
423 // 0 : only write final meshes
424 // 1 : write intermediate meshes
425 // 2 : write volScalarField with cellLevel for postprocessing
426 // 4 : write current intersections as .obj files
430 // Merge tolerance. Is fraction of overall bounding box of initial mesh.
431 // Note: the write tolerance needs to be higher than this.
435 // ************************************************************************* //