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 autoHexMeshDict;
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
32 wigley-scaled-oriented.stl
67 // Settings for the castellatedMesh generation.
68 castellatedMeshControls
71 // Refinement parameters
72 // ~~~~~~~~~~~~~~~~~~~~~
74 // While refining maximum number of cells per processor. This is basically
75 // the number of cells that fit on a processor. If you choose this too small
76 // it will do just more refinement iterations to obtain a similar mesh.
77 maxLocalCells 1000000;
79 // Overall cell limit (approximately). Refinement will stop immediately
80 // upon reaching this number so a refinement level might not complete.
81 // Note that this is the number of cells before removing the part which
82 // is not 'visible' from the keepPoint. The final number of cells might
83 // actually be a lot less.
84 maxGlobalCells 2000000;
86 // The surface refinement loop might spend lots of iterations refining just a
87 // few cells. This setting will cause refinement to stop if <= minimumRefine
88 // are selected for refinement. Note: it will at least do one iteration
89 // (unless the number of cells to refine is 0)
92 // Number of buffer layers between different levels.
93 // 1 means normal 2:1 refinement restriction, larger means slower
95 nCellsBetweenLevels 3;
99 // Explicit feature edge refinement
100 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
102 // Specifies a level for any cell intersected by its edges.
103 // This is a featureEdgeMesh, read from constant/triSurface for now.
107 // file "wigley-scaled.eMesh";
114 // Surface based refinement
115 // ~~~~~~~~~~~~~~~~~~~~~~~~
117 // Specifies two levels for every surface. The first is the minimum level,
118 // every cell intersecting a surface gets refined up to the minimum level.
119 // The second level is the maximum level. Cells that 'see' multiple
120 // intersections where the intersections make an
121 // angle > resolveFeatureAngle get refined up to the maximum level.
127 // Surface-wise min and max refinement level
132 resolveFeatureAngle 45;
135 // Region-wise refinement
136 // ~~~~~~~~~~~~~~~~~~~~~~
138 // Specifies refinement level for cells in relation to a surface. One of
140 // - distance. 'levels' specifies per distance to the surface the
141 // wanted refinement level. The distances need to be specified in
143 // - inside. 'levels' is only one entry and only the level is used. All
144 // cells inside the surface get refined up to the level. The surface
145 // needs to be closed for this to be possible.
146 // - outside. Same but cells outside.
171 // After refinement patches get added for all refinementSurfaces and
172 // all cells intersecting the surfaces get put into these patches. The
173 // section reachable from the locationInMesh is kept.
174 // NOTE: This point should never be on a face, always inside a cell, even
176 locationInMesh (-0.7 0 0);
179 // Whether any faceZones (as specified in the refinementSurfaces)
180 // are only on the boundary of corresponding cellZones or also allow
181 // free-standing zone faces. Not used if there are no faceZones.
182 allowFreeStandingZoneFaces true;
187 // Settings for the snapping.
190 //- Number of patch smoothing iterations before finding correspondence
194 //- Relative distance for points to be attracted by surface feature point
195 // or edge. True distance is this factor times local
196 // maximum edge length.
200 //- Number of mesh displacement relaxation iterations.
203 //- Maximum number of snapping relaxation iterations. Should stop
204 // before upon reaching a correct mesh.
210 // Settings for the layer addition.
213 // Are the thickness parameters below relative to the undistorted
214 // size of the refined cell outside layer (true) or absolute sizes (false).
217 // Per final patch (so not geometry!) the layer information
227 // Expansion factor for layer mesh
231 //- Wanted thickness of final added cell layer. If multiple layers
232 // is the thickness of the layer furthest away from the wall.
233 // See relativeSizes parameter.
234 finalLayerThickness 0.3;
236 //- Minimum thickness of cell layer. If for any reason layer
237 // cannot be above minThickness do not add layer.
238 // See relativeSizes parameter.
241 //- If points get not extruded do nGrow layers of connected faces that are
242 // also not grown. This helps convergence of the layer addition process
243 // close to features.
244 // Note: changed(corrected) w.r.t 17x! (didn't do anything in 17x)
250 //- When not to extrude surface. 0 is flat surface, 90 is when two faces
251 // make straight angle.
254 //- Maximum number of snapping relaxation iterations. Should stop
255 // before upon reaching a correct mesh.
258 // Number of smoothing iterations of surface normals
259 nSmoothSurfaceNormals 1;
261 // Number of smoothing iterations of interior mesh movement direction
264 // Smooth layer thickness over surface patches
267 // Stop layer growth on highly warped cells
268 maxFaceThicknessRatio 0.5;
270 // Reduce layer growth where ratio thickness to medial
272 maxThicknessToMedialRatio 0.3;
274 // Angle used to pick up medial axis points
275 // Note: changed(corrected) w.r.t 17x! 90 degrees corresponds to 130 in 17x.
276 minMedianAxisAngle 90;
278 // Create buffer region for new layer terminations
279 nBufferCellsNoExtrude 0;
282 // Overall max number of layer addition iterations. The mesher will exit
283 // if it reaches this number of iterations; possibly with an illegal
287 // Max number of iterations after which relaxed meshQuality controls
288 // get used. Up to nRelaxIter it uses the settings in meshQualityControls,
289 // after nRelaxIter it uses the values in meshQualityControls::relaxed.
295 // Generic mesh quality settings. At any undoable phase these determine
299 //- Maximum non-orthogonality allowed. Set to 180 to disable.
302 //- Max skewness allowed. Set to <0 to disable.
303 maxBoundarySkewness 20;
304 maxInternalSkewness 4;
306 //- Max concaveness allowed. Is angle (in degrees) below which concavity
307 // is allowed. 0 is straight face, <0 would be convex face.
308 // Set to 180 to disable.
311 //- Minimum pyramid volume. Is absolute volume of cell pyramid.
312 // Set to a sensible fraction of the smallest cell volume expected.
313 // Set to very negative number (e.g. -1E30) to disable.
316 //- Minimum quality of the tet formed by the face-centre
317 // and variable base point minimum decomposition triangles and
318 // the cell centre. Set to very negative number (e.g. -1E30) to
320 // <0 = inside out tet,
325 //- Minimum face area. Set to <0 to disable.
328 //- Minimum face twist. Set to <-1 to disable. dot product of face normal
329 //- and face centre triangles normal
332 //- minimum normalised cell determinant
333 //- 1 = hex, <= 0 = folded or flattened illegal cell
334 minDeterminant 0.001;
336 //- minFaceWeight (0 -> 0.5)
339 //- minVolRatio (0 -> 1)
342 //must be >0 for Fluent compatibility
345 //- if >0 : preserve single cells with all points on the surface if the
346 // resulting volume after snapping (by approximation) is larger than
347 // minVolCollapseRatio times old volume (i.e. not collapsed to flat cell).
348 // If <0 : delete always.
349 //minVolCollapseRatio 0.5;
354 //- Number of error distribution iterations
356 //- amount to scale back displacement at error points
361 // Optional : some meshing phases allow usage of relaxed rules.
362 // See e.g. addLayersControls::nRelaxedIter.
365 //- Maximum non-orthogonality allowed. Set to 180 to disable.
373 // Flags for optional output
374 // 0 : only write final meshes
375 // 1 : write intermediate meshes
376 // 2 : write volScalarField with cellLevel for postprocessing
377 // 4 : write current intersections as .obj files
381 // Merge tolerance. Is fraction of overall bounding box of initial mesh.
382 // Note: the write tolerance needs to be higher than this.
386 // ************************************************************************* //