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
44 // Settings for the castellatedMesh generation.
45 castellatedMeshControls
48 // Refinement parameters
49 // ~~~~~~~~~~~~~~~~~~~~~
51 // If local number of cells is >= maxLocalCells on any processor
52 // switches from from refinement followed by balancing
53 // (current method) to (weighted) balancing before refinement.
54 maxLocalCells 1000000;
56 // Overall cell limit (approximately). Refinement will stop immediately
57 // upon reaching this number so a refinement level might not complete.
58 // Note that this is the number of cells before removing the part which
59 // is not 'visible' from the keepPoint. The final number of cells might
60 // actually be a lot less.
61 maxGlobalCells 2000000;
63 // The surface refinement loop might spend lots of iterations refining just a
64 // few cells. This setting will cause refinement to stop if <= minimumRefine
65 // are selected for refinement. Note: it will at least do one iteration
66 // (unless the number of cells to refine is 0)
67 minRefinementCells 10;
69 // Allow a certain level of imbalance during refining
70 // (since balancing is quite expensive)
71 // Expressed as fraction of perfect balance (= overall number of cells /
72 // nProcs). 0=balance always.
73 maxLoadUnbalance 0.10;
75 // Number of buffer layers between different levels.
76 // 1 means normal 2:1 refinement restriction, larger means slower
78 nCellsBetweenLevels 3;
80 // Explicit feature edge refinement
81 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
83 // Specifies a level for any cell intersected by its edges.
84 // This is a featureEdgeMesh, read from constant/triSurface for now.
88 // file "someLine.eMesh";
93 // Surface based refinement
94 // ~~~~~~~~~~~~~~~~~~~~~~~~
96 // Specifies two levels for every surface. The first is the minimum level,
97 // every cell intersecting a surface gets refined up to the minimum level.
98 // The second level is the maximum level. Cells that 'see' multiple
99 // intersections where the intersections make an
100 // angle > resolveFeatureAngle get refined up to the maximum level.
106 // Surface-wise min and max refinement level
111 // Resolve sharp angles
112 resolveFeatureAngle 30;
114 // Region-wise refinement
115 // ~~~~~~~~~~~~~~~~~~~~~~
117 // Specifies refinement level for cells in relation to a surface. One of
119 // - distance. 'levels' specifies per distance to the surface the
120 // wanted refinement level. The distances need to be specified in
122 // - inside. 'levels' is only one entry and only the level is used. All
123 // cells inside the surface get refined up to the level. The surface
124 // needs to be closed for this to be possible.
125 // - outside. Same but cells outside.
139 // After refinement patches get added for all refinementSurfaces and
140 // all cells intersecting the surfaces get put into these patches. The
141 // section reachable from the locationInMesh is kept.
142 // NOTE: This point should never be on a face, always inside a cell, even
144 locationInMesh (3 3 0.43);
147 // Settings for the snapping.
150 //- Number of patch smoothing iterations before finding correspondence
154 //- Relative distance for points to be attracted by surface feature point
155 // or edge. True distance is this factor times local
156 // maximum edge length.
159 //- Number of mesh displacement relaxation iterations.
162 //- Maximum number of snapping relaxation iterations. Should stop
163 // before upon reaching a correct mesh.
167 // Settings for the layer addition.
170 // Are the thickness parameters below relative to the undistorted
171 // size of the refined cell outside layer (true) or absolute sizes (false).
174 // Per final patch (so not geometry!) the layer information
181 motorBike_frt-fairing:001%1
185 motorBike_windshield:002%2
189 motorBike_rr-wh-rim:005%5
193 motorBike_rr-wh-rim:010%10
197 motorBike_fr-wh-rim:011%11
201 motorBike_fr-wh-brake-disk:012%12
205 motorBike_frame:016-shadow%13
209 motorBike_rear-susp:014%14
213 motorBike_rear-susp:014-shadow%15
217 motorBike_frame:016%16
221 motorBike_rr-wh-rim:005-shadow%17
225 motorBike_rr-wh-chain-hub:022%22
229 motorBike_rearseat%24
233 motorBike_frt-fairing%25
237 motorBike_windshield%26
241 motorBike_headlights%27
245 motorBike_driversseat%28
249 motorBike_rear-body%29
253 motorBike_fuel-tank%30
261 motorBike_rr-wh-rim%32
265 motorBike_fr-mud-guard%33
269 motorBike_fr-wh-rim%34
273 motorBike_fr-wh-brake-disk%35
277 motorBike_fr-brake-caliper%36
281 motorBike_fr-wh-tyre%37
289 motorBike_fr-forks%39
297 motorBike_rr-wh-tyre%41
301 motorBike_square-dial%42
305 motorBike_round-dial%43
309 motorBike_dial-holder%44
313 motorBike_rear-susp%45
317 motorBike_rear-brake-lights%46
321 motorBike_rear-light-bracket%47
329 motorBike_rear-mud-guard%49
333 motorBike_rear-susp-spring-damp%50
337 motorBike_fairing-inner-plate%51
341 motorBike_clutch-housing%52
345 motorBike_radiator%53
349 motorBike_water-pipe%54
353 motorBike_water-pump%55
361 motorBike_rear-shock-link%57
365 motorBike_rear-brake-fluid-pot-bracket%58
369 motorBike_rear-brake-fluid-pot%59
377 motorBike_rr-wh-chain-hub%61
381 motorBike_rear-brake-caliper%62
385 motorBike_rider-helmet%65
389 motorBike_rider-visor%66
393 motorBike_rider-boots%67
397 motorBike_rider-gloves%68
401 motorBike_rider-body%69
409 motorBike_frt-fairing:001-shadow%74
413 motorBike_windshield-shadow%75
417 motorBike_fr-mud-guard-shadow%81
421 motorBike_fr-wh-brake-disk-shadow%83
425 motorBike_rear-mud-guard-shadow%84
429 motorBike_rear-susp-spring-damp-shadow%85
433 motorBike_radiator-shadow%86
437 motorBike_rear-shock-link-shadow%87
441 motorBike_rear-brake-fluid-pot-bracket-shadow%88
445 motorBike_rr-wh-chain-hub-shadow%89
451 // Expansion factor for layer mesh
454 //- Wanted thickness of final added cell layer. If multiple layers
455 // is the thickness of the layer furthest away from the wall.
456 // See relativeSizes parameter.
457 finalLayerThickness 0.3;
459 //- Minimum thickness of cell layer. If for any reason layer
460 // cannot be above minThickness do not add layer.
461 // Relative to undistorted size of cell outside layer.
464 //- If points get not extruded do nGrow layers of connected faces that are
465 // also not grown. This helps convergence of the layer addition process
466 // close to features.
471 //- When not to extrude surface. 0 is flat surface, 90 is when two faces
472 // make straight angle.
475 //- Maximum number of snapping relaxation iterations. Should stop
476 // before upon reaching a correct mesh.
479 // Number of smoothing iterations of surface normals
480 nSmoothSurfaceNormals 1;
482 // Number of smoothing iterations of interior mesh movement direction
485 // Smooth layer thickness over surface patches
488 // Stop layer growth on highly warped cells
489 maxFaceThicknessRatio 0.5;
491 // Reduce layer growth where ratio thickness to medial
493 maxThicknessToMedialRatio 0.3;
495 // Angle used to pick up medial axis points
496 minMedianAxisAngle 130;
498 // Create buffer region for new layer terminations
499 nBufferCellsNoExtrude 0;
501 // Overall max number of layer addition iterations
505 // Generic mesh quality settings. At any undoable phase these determine
509 //- Maximum non-orthogonality allowed. Set to 180 to disable.
512 //- Max skewness allowed. Set to <0 to disable.
513 maxBoundarySkewness 20;
514 maxInternalSkewness 4;
516 //- Max concaveness allowed. Is angle (in degrees) below which concavity
517 // is allowed. 0 is straight face, <0 would be convex face.
518 // Set to 180 to disable.
521 //- Minimum projected area v.s. actual area. Set to -1 to disable.
524 //- Minimum pyramid volume. Is absolute volume of cell pyramid.
525 // Set to a sensible fraction of the smallest cell volume expected.
526 // Set to very negative number (e.g. -1E30) to disable.
529 //- Minimum face area. Set to <0 to disable.
532 //- Minimum face twist. Set to <-1 to disable. dot product of face normal
533 //- and face centre triangles normal
536 //- minimum normalised cell determinant
537 //- 1 = hex, <= 0 = folded or flattened illegal cell
538 minDeterminant 0.001;
540 //- minFaceWeight (0 -> 0.5)
543 //- minVolRatio (0 -> 1)
546 //must be >0 for Fluent compatibility
551 //- Number of error distribution iterations
553 //- amount to scale back displacement at error points
559 // Flags for optional output
560 // 0 : only write final meshes
561 // 1 : write intermediate meshes
562 // 2 : write volScalarField with cellLevel for postprocessing
563 // 4 : write current intersections as .obj files
566 // Merge tolerance. Is fraction of overall bounding box of initial mesh.
567 // Note: the write tolerance needs to be higher than this.
570 // ************************************************************************* //