initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / applications / utilities / mesh / advanced / autoRefineMesh / autoRefineMeshDict
blob1edf2946d6c4a64b8b2e0f841b21cd289b20966d
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========                 |                                                 |
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 \*---------------------------------------------------------------------------*/
8 FoamFile
10     version     2.0;
11     format      ascii;
12     class       dictionary;
13     object      autoRefineMeshDict;
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
19 // Surface to keep to
20 surface         "plexi.ftr";
22 // What is outside. These points have to be inside a cell (so not on a face!)
23 outsidePoints   ((-0.99001 -0.99001 -0.99001));
27 // Selection of cells to refine
30 // If smallest edge of mesh > maxEdgeLen select all cut cells for refinement.
31 // If < maxEdgeLen select only those cut cells which are closer than
32 // curvatureDistance to surface
33 // and with cos of angle between normals on surface < curvature.
34 maxEdgeLen          0.1;
35 curvatureDistance   1.0;
36 curvature           0.9;
38 // if > 0: Remove inside cells at every step. Inside is given by number of
39 // layers separating outside from inside.
40 // (note that we cannot remove outside
41 // cells since these contain the outsidePoints)
42 // Do not use this option if you want mesh to spill through a hole which is
43 // not visible on the coarsest level but only becomes visible after refinement
44 nCutLayers 2;
46 // Refine until smallest edge of mesh < minEdgeLen
47 minEdgeLen      0.1;
49 // Or until the number of cells would become more than (stops one level before
50 // this)
51 cellLimit       2500000;
55 // Selection of final set
58 // Select based on side of surface. Usually select inside cells and project
59 // outwards or select outside cells and project inwards.
60 selectCut       false;
61 selectInside    false;
62 selectOutside   true;
63 // Leave out cell closer than nearDistance to the surface. Usually
64 // 0.5*minEdgeLen. Set to -1 to disable.
65 nearDistance    -1;
67 // Some cells on the surface of the selected cells might have all their
68 // points on the 'outside'. These would get flattened when projecting so
69 // are either kept and refined (selectHanging) or removed from the set
70 selectHanging   false;
75 // Refinement parameters
78 // Type of coordinate system
79 coordinateSystem global;
80 //coordinateSystem patchLocal;
83 // .. and its coefficients. x,y in this case. (normal = tan1^tan2)
84 globalCoeffs
86     tan1 (1 0 0);
87     tan2 (0 1 0);
90 patchLocalCoeffs
92     patch outside;  // Normal direction is facenormal of zero'th face of patch
93     tan1 (1 0 0);
97 // List of directions to refine
98 directions
100     tan1
101     tan2
102     normal
105 // refinement level difference between neighbouring cells. Set to large if
106 // there is no need for a limit.
107 splitLevel      2;
109 // Cut purely geometric (will cut hexes through vertices) or take topology
110 // into account.
111 geometricCut    false;
113 // Whether to use hex topology. This will never cut hex through vertices.
114 useHexTopology  yes;
116 // Write meshes from intermediate steps
117 writeMesh       true;
119 // ************************************************************************* //