1 /*--------------------------------*- C++ -*----------------------------------*\
3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4 | \\ / O peration | Version: 1.6 |
5 | \\ / A nd | Web: http://www.OpenFOAM.org |
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
43 // Per region the patchname. If not provided will be <name>_<region>.
55 type searchableSphere;
63 // Settings for the castellatedMesh generation.
64 castellatedMeshControls
67 // Refinement parameters
68 // ~~~~~~~~~~~~~~~~~~~~~
70 // While refining maximum number of cells per processor. This is basically
71 // the number of cells that fit on a processor. If you choose this too small
72 // it will do just more refinement iterations to obtain a similar mesh.
73 maxLocalCells 1000000;
75 // Overall cell limit (approximately). Refinement will stop immediately
76 // upon reaching this number so a refinement level might not complete.
77 // Note that this is the number of cells before removing the part which
78 // is not 'visible' from the keepPoint. The final number of cells might
79 // actually be a lot less.
80 maxGlobalCells 2000000;
82 // The surface refinement loop might spend lots of iterations refining just a
83 // few cells. This setting will cause refinement to stop if <= minimumRefine
84 // are selected for refinement. Note: it will at least do one iteration
85 // (unless the number of cells to refine is 0)
88 // Number of buffer layers between different levels.
89 // 1 means normal 2:1 refinement restriction, larger means slower
91 nCellsBetweenLevels 1;
95 // Explicit feature edge refinement
96 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
98 // Specifies a level for any cell intersected by its edges.
99 // This is a featureEdgeMesh, read from constant/triSurface for now.
103 // file "someLine.eMesh";
110 // Surface based refinement
111 // ~~~~~~~~~~~~~~~~~~~~~~~~
113 // Specifies two levels for every surface. The first is the minimum level,
114 // every cell intersecting a surface gets refined up to the minimum level.
115 // The second level is the maximum level. Cells that 'see' multiple
116 // intersections where the intersections make an
117 // angle > resolveFeatureAngle get refined up to the maximum level.
123 // Surface-wise min and max refinement level
126 // Optional region-wise level specification
135 // Optional angle to detect small-large cell situation perpendicular
136 // to the surface. Is the angle of face w.r.t the local surface
137 // normal. Use on flat(ish) surfaces only. Otherwise
138 // leave out or set to negative number.
139 //perpendicularAngle 10;
143 resolveFeatureAngle 30;
146 // Region-wise refinement
147 // ~~~~~~~~~~~~~~~~~~~~~~
149 // Specifies refinement level for cells in relation to a surface. One of
151 // - distance. 'levels' specifies per distance to the surface the
152 // wanted refinement level. The distances need to be specified in
154 // - inside. 'levels' is only one entry and only the level is used. All
155 // cells inside the surface get refined up to the level. The surface
156 // needs to be closed for this to be possible.
157 // - outside. Same but cells outside.
169 // levels ((1.0 5) (2.0 3));
177 // After refinement patches get added for all refinementSurfaces and
178 // all cells intersecting the surfaces get put into these patches. The
179 // section reachable from the locationInMesh is kept.
180 // NOTE: This point should never be on a face, always inside a cell, even
182 locationInMesh (5 0.28 0.43);
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.
199 //- Number of mesh displacement relaxation iterations.
202 //- Maximum number of snapping relaxation iterations. Should stop
203 // before upon reaching a correct mesh.
209 // Settings for the layer addition.
212 // Are the thickness parameters below relative to the undistorted
213 // size of the refined cell outside layer (true) or absolute sizes (false).
216 // Per final patch (so not geometry!) the layer information
219 sphere.stl_firstSolid
230 // Expansion factor for layer mesh
234 //- Wanted thickness of final added cell layer. If multiple layers
235 // is the thickness of the layer furthest away from the wall.
236 // See relativeSizes parameter.
237 finalLayerThickness 0.3;
239 //- Minimum thickness of cell layer. If for any reason layer
240 // cannot be above minThickness do not add layer.
241 // See relativeSizes parameter.
244 //- If points get not extruded do nGrow layers of connected faces that are
245 // also not grown. This helps convergence of the layer addition process
246 // close to features.
252 //- When not to extrude surface. 0 is flat surface, 90 is when two faces
253 // make straight angle.
256 //- Maximum number of snapping relaxation iterations. Should stop
257 // before upon reaching a correct mesh.
260 // Number of smoothing iterations of surface normals
261 nSmoothSurfaceNormals 1;
263 // Number of smoothing iterations of interior mesh movement direction
266 // Smooth layer thickness over surface patches
269 // Stop layer growth on highly warped cells
270 maxFaceThicknessRatio 0.5;
272 // Reduce layer growth where ratio thickness to medial
274 maxThicknessToMedialRatio 0.3;
276 // Angle used to pick up medial axis points
277 minMedianAxisAngle 130;
279 // Create buffer region for new layer terminations
280 nBufferCellsNoExtrude 0;
283 // Overall max number of layer addition iterations
286 // Max number of iterations after which relaxed meshQuality controls
293 // Generic mesh quality settings. At any undoable phase these determine
297 //- Maximum non-orthogonality allowed. Set to 180 to disable.
300 //- Max skewness allowed. Set to <0 to disable.
301 maxBoundarySkewness 20;
302 maxInternalSkewness 4;
304 //- Max concaveness allowed. Is angle (in degrees) below which concavity
305 // is allowed. 0 is straight face, <0 would be convex face.
306 // Set to 180 to disable.
309 //- Minimum projected area v.s. actual area. Set to -1 to disable.
312 //- Minimum pyramid volume. Is absolute volume of cell pyramid.
313 // Set to a sensible fraction of the smallest cell volume expected.
314 // Set to very negative number (e.g. -1E30) to disable.
317 //- Minimum face area. Set to <0 to disable.
320 //- Minimum face twist. Set to <-1 to disable. dot product of face normal
321 //- and face centre triangles normal
324 //- minimum normalised cell determinant
325 //- 1 = hex, <= 0 = folded or flattened illegal cell
326 minDeterminant 0.001;
328 //- minFaceWeight (0 -> 0.5)
331 //- minVolRatio (0 -> 1)
334 //must be >0 for Fluent compatibility
337 //- if >0 : preserve single cells with all points on the surface if the
338 // resulting volume after snapping (by approximation) is larger than
339 // minVolCollapseRatio times old volume (i.e. not collapsed to flat cell).
340 // If <0 : delete always.
341 //minVolCollapseRatio 0.5;
346 //- Number of error distribution iterations
348 //- amount to scale back displacement at error points
353 // Optional : some meshing phases allow usage of relaxed rules.
354 // See e.g. addLayersControls::nRelaxedIter.
357 //- Maximum non-orthogonality allowed. Set to 180 to disable.
365 // Flags for optional output
366 // 0 : only write final meshes
367 // 1 : write intermediate meshes
368 // 2 : write volScalarField with cellLevel for postprocessing
369 // 4 : write current intersections as .obj files
373 // Merge tolerance. Is fraction of overall bounding box of initial mesh.
374 // Note: the write tolerance needs to be higher than this.
378 // ************************************************************************* //