Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / applications / utilities / mesh / advanced / autoRefineMesh / autoRefineMeshDict
blob0151cb388275d6924a14b220028d91f4a6a461a6
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========                 |                                                 |
3 | \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
4 |  \\    /   O peration     | Version:  2.0.0                                 |
5 |   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
6 |    \\/     M anipulation  |                                                 |
7 \*---------------------------------------------------------------------------*/
8 FoamFile
10     version     2.0;
11     format      ascii;
12     class       dictionary;
13     object      autoRefineMeshDict;
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17 // Surface to keep to
18 surface         "plexi.obj";
20 // What is outside. These points have to be inside a cell (so not on a face!)
21 outsidePoints   ((-0.99001 -0.99001 -0.99001));
24 // Selection of cells to refine
27 // If smallest edge of mesh > maxEdgeLen select all cut cells for refinement.
28 // If < maxEdgeLen select only those cut cells which are closer than
29 // curvatureDistance to surface
30 // and with cos of angle between normals on surface < curvature.
31 maxEdgeLen          0.1;
32 curvatureDistance   1.0;
33 curvature           0.9;
35 // if > 0: Remove inside cells at every step. Inside is given by number of
36 // layers separating outside from inside.
37 // (note that we cannot remove outside
38 // cells since these contain the outsidePoints)
39 // Do not use this option if you want mesh to spill through a hole which is
40 // not visible on the coarsest level but only becomes visible after refinement
41 nCutLayers 2;
43 // Refine until smallest edge of mesh < minEdgeLen
44 minEdgeLen      0.1;
46 // Or until the number of cells would become more than (stops one level before
47 // this)
48 cellLimit       2500000;
51 // Selection of final set
54 // Select based on side of surface. Usually select inside cells and project
55 // outwards or select outside cells and project inwards.
56 selectCut       false;
57 selectInside    false;
58 selectOutside   true;
59 // Leave out cell closer than nearDistance to the surface. Usually
60 // 0.5*minEdgeLen. Set to -1 to disable.
61 nearDistance    -1;
63 // Some cells on the surface of the selected cells might have all their
64 // points on the 'outside'. These would get flattened when projecting so
65 // are either kept and refined (selectHanging) or removed from the set
66 selectHanging   false;
69 // Refinement parameters
72 // Type of coordinate system
73 coordinateSystem global;
74 //coordinateSystem patchLocal;
76 // .. and its coefficients. x,y in this case. (normal = tan1^tan2)
77 globalCoeffs
79     tan1 (1 0 0);
80     tan2 (0 1 0);
83 patchLocalCoeffs
85     patch outside;  // Normal direction is facenormal of zero'th face of patch
86     tan1 (1 0 0);
90 // List of directions to refine
91 directions
93     tan1
94     tan2
95     normal
98 // refinement level difference between neighbouring cells. Set to large if
99 // there is no need for a limit.
100 splitLevel      2;
102 // Cut purely geometric (will cut hexes through vertices) or take topology
103 // into account.
104 geometricCut    false;
106 // Whether to use hex topology. This will never cut hex through vertices.
107 useHexTopology  yes;
109 // Write meshes from intermediate steps
110 writeMesh       true;
112 // ************************************************************************* //