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 // Settings for the castellatedMesh generation.
49 castellatedMeshControls
52 // Refinement parameters
53 // ~~~~~~~~~~~~~~~~~~~~~
55 // While refining maximum number of cells per processor. This is basically
56 // the number of cells that fit on a processor. If you choose this too small
57 // it will do just more refinement iterations to obtain a similar mesh.
58 maxLocalCells 1000000;
60 // Overall cell limit (approximately). Refinement will stop immediately
61 // upon reaching this number so a refinement level might not complete.
62 // Note that this is the number of cells before removing the part which
63 // is not 'visible' from the keepPoint. The final number of cells might
64 // actually be a lot less.
65 maxGlobalCells 2000000;
67 // The surface refinement loop might spend lots of iterations refining just a
68 // few cells. This setting will cause refinement to stop if <= minimumRefine
69 // are selected for refinement. Note: it will at least do one iteration
70 // (unless the number of cells to refine is 0)
71 minRefinementCells 10;
73 // Number of buffer layers between different levels.
74 // 1 means normal 2:1 refinement restriction, larger means slower
76 nCellsBetweenLevels 2;
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";
95 // Surface based refinement
96 // ~~~~~~~~~~~~~~~~~~~~~~~~
98 // Specifies two levels for every surface. The first is the minimum level,
99 // every cell intersecting a surface gets refined up to the minimum level.
100 // The second level is the maximum level. Cells that 'see' multiple
101 // intersections where the intersections make an
102 // angle > resolveFeatureAngle get refined up to the maximum level.
108 // Surface-wise min and max refinement level
113 // Resolve sharp angles
114 resolveFeatureAngle 30;
117 // Region-wise refinement
118 // ~~~~~~~~~~~~~~~~~~~~~~
120 // Specifies refinement level for cells in relation to a surface. One of
122 // - distance. 'levels' specifies per distance to the surface the
123 // wanted refinement level. The distances need to be specified in
125 // - inside. 'levels' is only one entry and only the level is used. All
126 // cells inside the surface get refined up to the level. The surface
127 // needs to be closed for this to be possible.
128 // - outside. Same but cells outside.
143 // After refinement patches get added for all refinementSurfaces and
144 // all cells intersecting the surfaces get put into these patches. The
145 // section reachable from the locationInMesh is kept.
146 // NOTE: This point should never be on a face, always inside a cell, even
148 locationInMesh (3 3 0.43);
153 // Settings for the snapping.
156 //- Number of patch smoothing iterations before finding correspondence
160 //- Relative distance for points to be attracted by surface feature point
161 // or edge. True distance is this factor times local
162 // maximum edge length.
165 //- Number of mesh displacement relaxation iterations.
168 //- Maximum number of snapping relaxation iterations. Should stop
169 // before upon reaching a correct mesh.
175 // Settings for the layer addition.
178 // Per final patch (so not geometry!) the layer information
185 motorBike_frt-fairing:001%1
189 motorBike_windshield:002%2
193 motorBike_rr-wh-rim:005%5
197 motorBike_rr-wh-rim:010%10
201 motorBike_fr-wh-rim:011%11
205 motorBike_fr-wh-brake-disk:012%12
209 motorBike_frame:016-shadow%13
213 motorBike_rear-susp:014%14
217 motorBike_rear-susp:014-shadow%15
221 motorBike_frame:016%16
225 motorBike_rr-wh-rim:005-shadow%17
229 motorBike_rr-wh-chain-hub:022%22
233 motorBike_rearseat%24
237 motorBike_frt-fairing%25
241 motorBike_windshield%26
245 motorBike_headlights%27
249 motorBike_driversseat%28
253 motorBike_rear-body%29
257 motorBike_fuel-tank%30
265 motorBike_rr-wh-rim%32
269 motorBike_fr-mud-guard%33
273 motorBike_fr-wh-rim%34
277 motorBike_fr-wh-brake-disk%35
281 motorBike_fr-brake-caliper%36
285 motorBike_fr-wh-tyre%37
293 motorBike_fr-forks%39
301 motorBike_rr-wh-tyre%41
305 motorBike_square-dial%42
309 motorBike_round-dial%43
313 motorBike_dial-holder%44
317 motorBike_rear-susp%45
321 motorBike_rear-brake-lights%46
325 motorBike_rear-light-bracket%47
333 motorBike_rear-mud-guard%49
337 motorBike_rear-susp-spring-damp%50
341 motorBike_fairing-inner-plate%51
345 motorBike_clutch-housing%52
349 motorBike_radiator%53
353 motorBike_water-pipe%54
357 motorBike_water-pump%55
365 motorBike_rear-shock-link%57
369 motorBike_rear-brake-fluid-pot-bracket%58
373 motorBike_rear-brake-fluid-pot%59
381 motorBike_rr-wh-chain-hub%61
385 motorBike_rear-brake-caliper%62
389 motorBike_rider-helmet%65
393 motorBike_rider-visor%66
397 motorBike_rider-boots%67
401 motorBike_rider-gloves%68
405 motorBike_rider-body%69
413 motorBike_frt-fairing:001-shadow%74
417 motorBike_windshield-shadow%75
421 motorBike_fr-mud-guard-shadow%81
425 motorBike_fr-wh-brake-disk-shadow%83
429 motorBike_rear-mud-guard-shadow%84
433 motorBike_rear-susp-spring-damp-shadow%85
437 motorBike_radiator-shadow%86
441 motorBike_rear-shock-link-shadow%87
445 motorBike_rear-brake-fluid-pot-bracket-shadow%88
449 motorBike_rr-wh-chain-hub-shadow%89
455 // Expansion factor for layer mesh
458 //- Wanted thickness of final added cell layer. If multiple layers
460 // thickness of the layer furthest away from the wall.
461 // Relative to undistorted size of cell outside layer.
464 //- Minimum thickness of cell layer. If for any reason layer
465 // cannot be above minThickness do not add layer.
466 // Relative to undistorted size of cell outside layer.
469 //- If points get not extruded do nGrow layers of connected faces that are
470 // also not grown. This helps convergence of the layer addition process
471 // close to features.
477 //- When not to extrude surface. 0 is flat surface, 90 is when two faces
478 // make straight angle.
481 //- Maximum number of snapping relaxation iterations. Should stop
482 // before upon reaching a correct mesh.
485 // Number of smoothing iterations of surface normals
486 nSmoothSurfaceNormals 1;
488 // Number of smoothing iterations of interior mesh movement direction
491 // Smooth layer thickness over surface patches
494 // Stop layer growth on highly warped cells
495 maxFaceThicknessRatio 0.5;
497 // Reduce layer growth where ratio thickness to medial
499 maxThicknessToMedialRatio 0.3;
501 // Angle used to pick up medial axis points
502 minMedianAxisAngle 130;
504 // Create buffer region for new layer terminations
505 nBufferCellsNoExtrude 0;
510 // Generic mesh quality settings. At any undoable phase these determine
514 //- Maximum non-orthogonality allowed. Set to 180 to disable.
517 //- Max skewness allowed. Set to <0 to disable.
518 maxBoundarySkewness 20;
519 maxInternalSkewness 4;
521 //- Max concaveness allowed. Is angle (in degrees) below which concavity
522 // is allowed. 0 is straight face, <0 would be convex face.
523 // Set to 180 to disable.
526 //- Minimum projected area v.s. actual area. Set to -1 to disable.
529 //- Minimum pyramid volume. Is absolute volume of cell pyramid.
530 // Set to very negative number (e.g. -1E30) to disable.
533 //- Minimum face area. Set to <0 to disable.
536 //- Minimum face twist. Set to <-1 to disable. dot product of face normal
537 //- and face centre triangles normal
540 //- minimum normalised cell determinant
541 //- 1 = hex, <= 0 = folded or flattened illegal cell
542 minDeterminant 0.001;
544 //- minFaceWeight (0 -> 0.5)
547 //- minVolRatio (0 -> 1)
550 //must be >0 for Fluent compatibility
556 //- Number of error distribution iterations
558 //- amount to scale back displacement at error points
565 // Flags for optional output
566 // 0 : only write final meshes
567 // 1 : write intermediate meshes
568 // 2 : write volScalarField with cellLevel for postprocessing
569 // 4 : write current intersections as .obj files
573 // Merge tolerance. Is fraction of overall bounding box of initial mesh.
574 // Note: the write tolerance needs to be higher than this.
577 // ************************************************************************* //