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 snappyHexMeshDict;
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17 // Which of the steps to run
23 // Geometry. Definition of all surfaces. All surfaces are of class
26 // - to specify refinement for any mesh cell intersecting it
27 // - to specify refinement for any mesh cell inside/outside/near
28 // - to 'snap' the mesh boundary to the surface
47 // Settings for the castellatedMesh generation.
48 castellatedMeshControls
51 // Refinement parameters
52 // ~~~~~~~~~~~~~~~~~~~~~
54 // If local number of cells is >= maxLocalCells on any processor
55 // switches from from refinement followed by balancing
56 // (current method) to (weighted) balancing before refinement.
57 maxLocalCells 1000000;
59 // Overall cell limit (approximately). Refinement will stop immediately
60 // upon reaching this number so a refinement level might not complete.
61 // Note that this is the number of cells before removing the part which
62 // is not 'visible' from the keepPoint. The final number of cells might
63 // actually be a lot less.
64 maxGlobalCells 2000000;
66 // The surface refinement loop might spend lots of iterations refining just a
67 // few cells. This setting will cause refinement to stop if <= minimumRefine
68 // are selected for refinement. Note: it will at least do one iteration
69 // (unless the number of cells to refine is 0)
70 minRefinementCells 10;
72 // Allow a certain level of imbalance during refining
73 // (since balancing is quite expensive)
74 // Expressed as fraction of perfect balance (= overall number of cells /
75 // nProcs). 0=balance always.
76 maxLoadUnbalance 0.10;
79 // Number of buffer layers between different levels.
80 // 1 means normal 2:1 refinement restriction, larger means slower
82 nCellsBetweenLevels 3;
86 // Explicit feature edge refinement
87 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
89 // Specifies a level for any cell intersected by its edges.
90 // This is a featureEdgeMesh, read from constant/triSurface for now.
94 // file "someLine.eMesh";
101 // Surface based refinement
102 // ~~~~~~~~~~~~~~~~~~~~~~~~
104 // Specifies two levels for every surface. The first is the minimum level,
105 // every cell intersecting a surface gets refined up to the minimum level.
106 // The second level is the maximum level. Cells that 'see' multiple
107 // intersections where the intersections make an
108 // angle > resolveFeatureAngle get refined up to the maximum level.
114 // Surface-wise min and max refinement level
119 // Resolve sharp angles
120 resolveFeatureAngle 30;
123 // Region-wise refinement
124 // ~~~~~~~~~~~~~~~~~~~~~~
126 // Specifies refinement level for cells in relation to a surface. One of
128 // - distance. 'levels' specifies per distance to the surface the
129 // wanted refinement level. The distances need to be specified in
131 // - inside. 'levels' is only one entry and only the level is used. All
132 // cells inside the surface get refined up to the level. The surface
133 // needs to be closed for this to be possible.
134 // - outside. Same but cells outside.
149 // After refinement patches get added for all refinementSurfaces and
150 // all cells intersecting the surfaces get put into these patches. The
151 // section reachable from the locationInMesh is kept.
152 // NOTE: This point should never be on a face, always inside a cell, even
154 locationInMesh (3 3 0.43);
159 // Settings for the snapping.
162 //- Number of patch smoothing iterations before finding correspondence
166 //- Relative distance for points to be attracted by surface feature point
167 // or edge. True distance is this factor times local
168 // maximum edge length.
171 //- Number of mesh displacement relaxation iterations.
174 //- Maximum number of snapping relaxation iterations. Should stop
175 // before upon reaching a correct mesh.
181 // Settings for the layer addition.
184 // Are the thickness parameters below relative to the undistorted
185 // size of the refined cell outside layer (true) or absolute sizes (false).
188 // Per final patch (so not geometry!) the layer information
195 motorBike_frt-fairing:001%1
199 motorBike_windshield:002%2
203 motorBike_rr-wh-rim:005%5
207 motorBike_rr-wh-rim:010%10
211 motorBike_fr-wh-rim:011%11
215 motorBike_fr-wh-brake-disk:012%12
219 motorBike_frame:016-shadow%13
223 motorBike_rear-susp:014%14
227 motorBike_rear-susp:014-shadow%15
231 motorBike_frame:016%16
235 motorBike_rr-wh-rim:005-shadow%17
239 motorBike_rr-wh-chain-hub:022%22
243 motorBike_rearseat%24
247 motorBike_frt-fairing%25
251 motorBike_windshield%26
255 motorBike_headlights%27
259 motorBike_driversseat%28
263 motorBike_rear-body%29
267 motorBike_fuel-tank%30
275 motorBike_rr-wh-rim%32
279 motorBike_fr-mud-guard%33
283 motorBike_fr-wh-rim%34
287 motorBike_fr-wh-brake-disk%35
291 motorBike_fr-brake-caliper%36
295 motorBike_fr-wh-tyre%37
303 motorBike_fr-forks%39
311 motorBike_rr-wh-tyre%41
315 motorBike_square-dial%42
319 motorBike_round-dial%43
323 motorBike_dial-holder%44
327 motorBike_rear-susp%45
331 motorBike_rear-brake-lights%46
335 motorBike_rear-light-bracket%47
343 motorBike_rear-mud-guard%49
347 motorBike_rear-susp-spring-damp%50
351 motorBike_fairing-inner-plate%51
355 motorBike_clutch-housing%52
359 motorBike_radiator%53
363 motorBike_water-pipe%54
367 motorBike_water-pump%55
375 motorBike_rear-shock-link%57
379 motorBike_rear-brake-fluid-pot-bracket%58
383 motorBike_rear-brake-fluid-pot%59
391 motorBike_rr-wh-chain-hub%61
395 motorBike_rear-brake-caliper%62
399 motorBike_rider-helmet%65
403 motorBike_rider-visor%66
407 motorBike_rider-boots%67
411 motorBike_rider-gloves%68
415 motorBike_rider-body%69
423 motorBike_frt-fairing:001-shadow%74
427 motorBike_windshield-shadow%75
431 motorBike_fr-mud-guard-shadow%81
435 motorBike_fr-wh-brake-disk-shadow%83
439 motorBike_rear-mud-guard-shadow%84
443 motorBike_rear-susp-spring-damp-shadow%85
447 motorBike_radiator-shadow%86
451 motorBike_rear-shock-link-shadow%87
455 motorBike_rear-brake-fluid-pot-bracket-shadow%88
459 motorBike_rr-wh-chain-hub-shadow%89
465 // Expansion factor for layer mesh
468 //- Wanted thickness of final added cell layer. If multiple layers
469 // is the thickness of the layer furthest away from the wall.
470 // See relativeSizes parameter.
471 finalLayerThickness 0.3;
473 //- Minimum thickness of cell layer. If for any reason layer
474 // cannot be above minThickness do not add layer.
475 // Relative to undistorted size of cell outside layer.
478 //- If points get not extruded do nGrow layers of connected faces that are
479 // also not grown. This helps convergence of the layer addition process
480 // close to features.
486 //- When not to extrude surface. 0 is flat surface, 90 is when two faces
487 // make straight angle.
490 //- Maximum number of snapping relaxation iterations. Should stop
491 // before upon reaching a correct mesh.
494 // Number of smoothing iterations of surface normals
495 nSmoothSurfaceNormals 1;
497 // Number of smoothing iterations of interior mesh movement direction
500 // Smooth layer thickness over surface patches
503 // Stop layer growth on highly warped cells
504 maxFaceThicknessRatio 0.5;
506 // Reduce layer growth where ratio thickness to medial
508 maxThicknessToMedialRatio 0.3;
510 // Angle used to pick up medial axis points
511 minMedianAxisAngle 130;
513 // Create buffer region for new layer terminations
514 nBufferCellsNoExtrude 0;
516 // Overall max number of layer addition iterations
522 // Generic mesh quality settings. At any undoable phase these determine
526 //- Maximum non-orthogonality allowed. Set to 180 to disable.
529 //- Max skewness allowed. Set to <0 to disable.
530 maxBoundarySkewness 20;
531 maxInternalSkewness 4;
533 //- Max concaveness allowed. Is angle (in degrees) below which concavity
534 // is allowed. 0 is straight face, <0 would be convex face.
535 // Set to 180 to disable.
538 //- Minimum projected area v.s. actual area. Set to -1 to disable.
541 //- Minimum pyramid volume. Is absolute volume of cell pyramid.
542 // Set to a sensible fraction of the smallest cell volume expected.
543 // Set to very negative number (e.g. -1E30) to disable.
546 //- Minimum face area. Set to <0 to disable.
549 //- Minimum face twist. Set to <-1 to disable. dot product of face normal
550 //- and face centre triangles normal
553 //- minimum normalised cell determinant
554 //- 1 = hex, <= 0 = folded or flattened illegal cell
555 minDeterminant 0.001;
557 //- minFaceWeight (0 -> 0.5)
560 //- minVolRatio (0 -> 1)
563 //must be >0 for Fluent compatibility
569 //- Number of error distribution iterations
571 //- amount to scale back displacement at error points
578 // Flags for optional output
579 // 0 : only write final meshes
580 // 1 : write intermediate meshes
581 // 2 : write volScalarField with cellLevel for postprocessing
582 // 4 : write current intersections as .obj files
586 // Merge tolerance. Is fraction of overall bounding box of initial mesh.
587 // Note: the write tolerance needs to be higher than this.
591 // ************************************************************************* //