1 /*--------------------------------*- C++ -*----------------------------------*\
3 | \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
4 | \\ / O peration | Version: 1.6-ext |
5 | \\ / A nd | Web: www.extend-project.de |
6 | \\/ M anipulation | |
7 \*---------------------------------------------------------------------------*/
13 object snappyHexMeshDict;
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17 // Which of the steps to run
22 // Geometry. Definition of all surfaces. All surfaces are of class
25 // - to specify refinement for any mesh cell intersecting it
26 // - to specify refinement for any mesh cell inside/outside/near
27 // - to 'snap' the mesh boundary to the surface
32 type searchableSphere;
46 type searchableSurfaceCollection;
78 type searchableSurfaceCollection;
109 // Settings for the castellatedMesh generation.
110 castellatedMeshControls
113 // Refinement parameters
114 // ~~~~~~~~~~~~~~~~~~~~~
116 // If local number of cells is >= maxLocalCells on any processor
117 // switches from from refinement followed by balancing
118 // (current method) to (weighted) balancing before refinement.
119 maxLocalCells 1000000;
121 // Overall cell limit (approximately). Refinement will stop immediately
122 // upon reaching this number so a refinement level might not complete.
123 // Note that this is the number of cells before removing the part which
124 // is not 'visible' from the keepPoint. The final number of cells might
125 // actually be a lot less.
126 maxGlobalCells 2000000;
128 // The surface refinement loop might spend lots of iterations refining just a
129 // few cells. This setting will cause refinement to stop if <= minimumRefine
130 // are selected for refinement. Note: it will at least do one iteration
131 // (unless the number of cells to refine is 0)
132 minRefinementCells 100;
134 // Number of buffer layers between different levels.
135 // 1 means normal 2:1 refinement restriction, larger means slower
137 nCellsBetweenLevels 1;
139 // Explicit feature edge refinement
140 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
142 // Specifies a level for any cell intersected by its edges.
143 // This is a featureEdgeMesh, read from constant/triSurface for now.
147 file "fridgeA.eMesh";
152 // Surface based refinement
153 // ~~~~~~~~~~~~~~~~~~~~~~~~
155 // Specifies two levels for every surface. The first is the minimum level,
156 // every cell intersecting a surface gets refined up to the minimum level.
157 // The second level is the maximum level. Cells that 'see' multiple
158 // intersections where the intersections make an
159 // angle > resolveFeatureAngle get refined up to the maximum level.
165 // Surface-wise min and max refinement level
170 // Region-wise override
180 // Surface-wise min and max refinement level
185 // Resolve sharp angles on fridges
186 resolveFeatureAngle 60;
188 // Region-wise refinement
189 // ~~~~~~~~~~~~~~~~~~~~~~
191 // Specifies refinement level for cells in relation to a surface. One of
193 // - distance. 'levels' specifies per distance to the surface the
194 // wanted refinement level. The distances need to be specified in
196 // - inside. 'levels' is only one entry and only the level is used. All
197 // cells inside the surface get refined up to the level. The surface
198 // needs to be closed for this to be possible.
199 // - outside. Same but cells outside.
208 // After refinement patches get added for all refinementSurfaces and
209 // all cells intersecting the surfaces get put into these patches. The
210 // section reachable from the locationInMesh is kept.
211 // NOTE: This point should never be on a face, always inside a cell, even
213 locationInMesh (3 0.28 0.43);
216 // Settings for the snapping.
219 //- Number of patch smoothing iterations before finding correspondence
223 //- Relative distance for points to be attracted by surface feature point
224 // or edge. True distance is this factor times local
225 // maximum edge length.
228 //- Number of mesh displacement relaxation iterations.
231 //- Maximum number of snapping relaxation iterations. Should stop
232 // before upon reaching a correct mesh.
236 // Settings for the layer addition.
239 // Are the thickness parameters below relative to the undistorted
240 // size of the refined cell outside layer (true) or absolute sizes (false).
243 // Per final patch (so not geometry!) the layer information
256 // Expansion factor for layer mesh
259 //- Wanted thickness of final added cell layer. If multiple layers
260 // is the thickness of the layer furthest away from the wall.
261 // See relativeSizes parameter.
262 finalLayerThickness 0.5;
264 //- Minimum thickness of cell layer. If for any reason layer
265 // cannot be above minThickness do not add layer.
266 // See relativeSizes parameter.
269 //- If points get not extruded do nGrow layers of connected faces that are
270 // also not grown. This helps convergence of the layer addition process
271 // close to features.
276 //- When not to extrude surface. 0 is flat surface, 90 is when two faces
277 // make straight angle.
280 //- Maximum number of snapping relaxation iterations. Should stop
281 // before upon reaching a correct mesh.
284 // Number of smoothing iterations of surface normals
285 nSmoothSurfaceNormals 1;
287 // Number of smoothing iterations of interior mesh movement direction
290 // Smooth layer thickness over surface patches
293 // Stop layer growth on highly warped cells
294 maxFaceThicknessRatio 0.5;
296 // Reduce layer growth where ratio thickness to medial
298 maxThicknessToMedialRatio 0.3;
300 // Angle used to pick up medial axis points
301 minMedianAxisAngle 130;
303 // Create buffer region for new layer terminations
304 nBufferCellsNoExtrude 0;
306 // Overall max number of layer addition iterations. The mesher will exit
307 // if it reaches this number of iterations; possibly with an illegal
312 // Generic mesh quality settings. At any undoable phase these determine
316 //- Maximum non-orthogonality allowed. Set to 180 to disable.
319 //- Max skewness allowed. Set to <0 to disable.
320 maxBoundarySkewness 20;
321 maxInternalSkewness 4;
323 //- Max concaveness allowed. Is angle (in degrees) below which concavity
324 // is allowed. 0 is straight face, <0 would be convex face.
325 // Set to 180 to disable.
328 //- Minimum projected area v.s. actual area. Set to -1 to disable.
331 //- Minimum pyramid volume. Is absolute volume of cell pyramid.
332 // Set to a sensible fraction of the smallest cell volume expected.
333 // Set to very negative number (e.g. -1E30) to disable.
336 //- Minimum face area. Set to <0 to disable.
339 //- Minimum face twist. Set to <-1 to disable. dot product of face normal
340 //- and face centre triangles normal
343 //- minimum normalised cell determinant
344 //- 1 = hex, <= 0 = folded or flattened illegal cell
345 minDeterminant 0.001;
347 //- minFaceWeight (0 -> 0.5)
350 //- minVolRatio (0 -> 1)
353 //must be >0 for Fluent compatibility
358 //- Number of error distribution iterations
360 //- amount to scale back displacement at error points
366 // Flags for optional output
367 // 0 : only write final meshes
368 // 1 : write intermediate meshes
369 // 2 : write volScalarField with cellLevel for postprocessing
370 // 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.
377 // ************************************************************************* //