1 /*--------------------------------*- C++ -*----------------------------------*\
3 | \\ / F ield | foam-extend: Open Source CFD |
4 | \\ / O peration | Version: 3.2 |
5 | \\ / A nd | Web: http://www.foam-extend.org |
6 | \\/ M anipulation | |
7 \*---------------------------------------------------------------------------*/
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17 // Name of set to operate on
20 // One of clear/new/invert/add/delete|subset/list
23 // Actions to apply to cellSet. These are all the topoSetSource's ending
24 // in ..ToCell (see the meshTools library).
28 // Select by explicitly providing cell labels
31 value (12 13 56); // labels of cells
34 // Copy elements from cellSet
43 name ".*Zone"; // Name of cellZone, regular expressions allowed
46 // Cells on master or slave side of faceZone
49 name ".*Zone"; // Name of faceZone, regular expressions allowed
50 option master; // master/slave
53 // Select based on faceSet
56 set f0; // Name of faceSet
58 //option neighbour; // cell with neighbour in faceSet
59 //option owner; // ,, owner
60 option any; // cell with any face in faceSet
61 //option all; // cell with all faces in faceSet
64 // Select based on pointSet
68 option any; // cell with any point in pointSet
69 //option all; // cell with all points in pointSet
72 // Select based on cellShape
75 type hex; // hex/wedge/prism/pyr/tet/tetWedge/splitHex
78 // Cells with cell centre within box
84 // Cells with cell centre within box
85 // Is skewed, rotated box. Given as origin and three spanning vectors.
94 // Cells with centre within cylinder
97 p1 (0.2 0.2 -10); // start point on cylinder axis
98 p2 (0.2 0.2 0); // end point on cylinder axis
102 // Cells with centre within sphere
105 centre (0.2 0.2 -10);
109 // Cells with cellCentre nearest to coordinates
112 points ((0 0 0) (1 1 1)(2 2 2));
115 // Select based on surface
118 file "www.avl.com-geometry.stl";
119 outsidePoints ((-99 -99 -59)); // definition of outside
120 includeCut false; // cells cut by surface
121 includeInside false; // cells not on outside of surf
122 includeOutside false; // cells on outside of surf
123 nearDistance -1; // cells with centre near surf
124 // (set to -1 if not used)
125 curvature 0.9; // cells within nearDistance
126 // and near surf curvature
127 // (set to -100 if not used)
130 // values of field within certain range
133 fieldName U; // Note: uses mag(U) since volVectorField
138 // Mesh region (non-face connected part of (subset of)mesh)
141 set c0; // name of cellSet giving mesh subset
142 insidePoint (1 2 3); // point inside region to select
147 // ************************************************************************* //