1 /*--------------------------------*- C++ -*----------------------------------*\
3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4 | \\ / O peration | Version: 1.5 |
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
48 type searchableSphere;
56 // Settings for the castellatedMesh generation.
57 castellatedMeshControls
60 // Refinement parameters
61 // ~~~~~~~~~~~~~~~~~~~~~
63 // While refining maximum number of cells per processor. This is basically
64 // the number of cells that fit on a processor. If you choose this too small
65 // it will do just more refinement iterations to obtain a similar mesh.
66 maxLocalCells 1000000;
68 // Overall cell limit (approximately). Refinement will stop immediately
69 // upon reaching this number so a refinement level might not complete.
70 // Note that this is the number of cells before removing the part which
71 // is not 'visible' from the keepPoint. The final number of cells might
72 // actually be a lot less.
73 maxGlobalCells 2000000;
75 // The surface refinement loop might spend lots of iterations refining just a
76 // few cells. This setting will cause refinement to stop if <= minimumRefine
77 // are selected for refinement. Note: it will at least do one iteration
78 // (unless the number of cells to refine is 0)
81 // Number of buffer layers between different levels.
82 // 1 means normal 2:1 refinement restriction, larger means slower
84 nCellsBetweenLevels 1;
88 // Explicit feature edge refinement
89 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91 // Specifies a level for any cell intersected by its edges.
92 // This is a featureEdgeMesh, read from constant/triSurface for now.
103 // Surface based refinement
104 // ~~~~~~~~~~~~~~~~~~~~~~~~
106 // Specifies two levels for every surface. The first is the minimum level,
107 // every cell intersecting a surface gets refined up to the minimum level.
108 // The second level is the maximum level. Cells that 'see' multiple
109 // intersections where the intersections make an
110 // angle > resolveFeatureAngle get refined up to the maximum level.
116 // Surface-wise min and max refinement level
121 // Surface-wise min and max refinement level
126 // Surface-wise min and max refinement level
131 // Resolve sharp angles on fridges
132 resolveFeatureAngle 60;
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.
156 // After refinement patches get added for all refinementSurfaces and
157 // all cells intersecting the surfaces get put into these patches. The
158 // section reachable from the locationInMesh is kept.
159 // NOTE: This point should never be on a face, always inside a cell, even
161 locationInMesh (3 0.28 0.43);
166 // Settings for the snapping.
169 //- Number of patch smoothing iterations before finding correspondence
173 //- Relative distance for points to be attracted by surface feature point
174 // or edge. True distance is this factor times local
175 // maximum edge length.
178 //- Number of mesh displacement relaxation iterations.
181 //- Maximum number of snapping relaxation iterations. Should stop
182 // before upon reaching a correct mesh.
188 // Settings for the layer addition.
191 // Per final patch (so not geometry!) the layer information
208 // Expansion factor for layer mesh
211 //- Wanted thickness of final added cell layer. If multiple layers
213 // thickness of the layer furthest away from the wall.
214 // Relative to undistorted size of cell outside layer.
217 //- Minimum thickness of cell layer. If for any reason layer
218 // cannot be above minThickness do not add layer.
219 // Relative to undistorted size of cell outside layer.
222 //- If points get not extruded do nGrow layers of connected faces that are
223 // also not grown. This helps convergence of the layer addition process
224 // close to features.
230 //- When not to extrude surface. 0 is flat surface, 90 is when two faces
231 // make straight angle.
234 //- Maximum number of snapping relaxation iterations. Should stop
235 // before upon reaching a correct mesh.
238 // Number of smoothing iterations of surface normals
239 nSmoothSurfaceNormals 1;
241 // Number of smoothing iterations of interior mesh movement direction
244 // Smooth layer thickness over surface patches
247 // Stop layer growth on highly warped cells
248 maxFaceThicknessRatio 0.5;
250 // Reduce layer growth where ratio thickness to medial
252 maxThicknessToMedialRatio 0.3;
254 // Angle used to pick up medial axis points
255 minMedianAxisAngle 130;
257 // Create buffer region for new layer terminations
258 nBufferCellsNoExtrude 0;
263 // Generic mesh quality settings. At any undoable phase these determine
267 //- Maximum non-orthogonality allowed. Set to 180 to disable.
270 //- Max skewness allowed. Set to <0 to disable.
271 maxBoundarySkewness 20;
272 maxInternalSkewness 4;
274 //- Max concaveness allowed. Is angle (in degrees) below which concavity
275 // is allowed. 0 is straight face, <0 would be convex face.
276 // Set to 180 to disable.
279 //- Minimum projected area v.s. actual area. Set to -1 to disable.
282 //- Minimum pyramid volume. Is absolute volume of cell pyramid.
283 // Set to very negative number (e.g. -1E30) to disable.
286 //- Minimum face area. Set to <0 to disable.
289 //- Minimum face twist. Set to <-1 to disable. dot product of face normal
290 //- and face centre triangles normal
293 //- minimum normalised cell determinant
294 //- 1 = hex, <= 0 = folded or flattened illegal cell
295 minDeterminant 0.001;
297 //- minFaceWeight (0 -> 0.5)
300 //- minVolRatio (0 -> 1)
303 //must be >0 for Fluent compatibility
309 //- Number of error distribution iterations
311 //- amount to scale back displacement at error points
318 // Flags for optional output
319 // 0 : only write final meshes
320 // 1 : write intermediate meshes
321 // 2 : write volScalarField with cellLevel for postprocessing
322 // 4 : write current intersections as .obj files
326 // Merge tolerance. Is fraction of overall bounding box of initial mesh.
327 // Note: the write tolerance needs to be higher than this.
330 // ************************************************************************* //