Merge commit 'd3b269b7c6ffa0cd68845adfecdfb849316dba71' into nextRelease
[foam-extend-3.2.git] / src / engine / engineTopoChangerMesh / thoboisMesh / addValveFaceZonesThoboisMesh.H
blobbe15254028540a6726b9f2df55e41880864e4911
2     for (label valveI = 0; valveI < nValves(); valveI++)
3     {
5         // for each valve the following zones have to be created:
6         //
7         //  - movingFaceZone
8         //  - movingPointZone
9         //  - staticFaceZone
10         //  - staticPointZone
13         faceSet movingFaces(*this, valves_[valveI].movingFacesName());
15         fz.append
16         (
17             new faceZone
18             (
19                 "movingFacesZoneV" + Foam::name(valveI + 1),
20                 movingFaces.toc(),
21                 boolList(movingFaces.size(), false),
22                 nFaceZones,
23                 faceZones()
24             )
25         );
27         nFaceZones++;
29         faceSet staticFaces(*this, valves_[valveI].staticFacesName());
31         fz.append
32         (
33             new faceZone
34             (
35                 "staticFacesZoneV" + Foam::name(valveI + 1),
36                 staticFaces.toc(),
37                 boolList(staticFaces.size(), false),
38                 nFaceZones,
39                 faceZones()
40             )
41         );
43         nFaceZones++;
46         cellSet movingCells(*this, valves_[valveI].movingCellsName());
48         cz.append
49         (
50             new cellZone
51             (
52                 "movingCellsZoneV" + Foam::name(valveI + 1),
53                 movingCells.toc(),
54                 nCellZones,
55                 cellZones()
56             )
57         );
59         nCellZones++;
61         cellSet staticCells(*this, valves_[valveI].staticCellsName());
63         cz.append
64         (
65             new cellZone
66             (
67                 "staticCellsZoneV" + Foam::name(valveI + 1),
68                 staticCells.toc(),
69                 nCellZones,
70                 cellZones()
71             )
72         );
74         nCellZones++;
77         pointSet movingPoints(*this, valves_[valveI].movingPointsName());
79         pz.append
80         (
81             new pointZone
82             (
83                 "movingPointsV" + Foam::name(valveI + 1),
84                 movingPoints.toc(),
85                 nPointZones,
86                 pointZones()
87             )
88         );
90         nPointZones++;
92         pointSet staticPoints(*this, valves_[valveI].staticPointsName());
94         pz.append
95         (
96             new pointZone
97             (
98                 "staticPointsV" + Foam::name(valveI + 1),
99                 staticPoints.toc(),
100                 nPointZones,
101                 pointZones()
102             )
103         );
105         nPointZones++;
107         pointSet movingInternalPoints(*this, valves_[valveI].movingInternalPointsName());
109         pz.append
110         (
111             new pointZone
112             (
113                 "movingInternalPointsV" + Foam::name(valveI + 1),
114                 movingInternalPoints.toc(),
115                 nPointZones,
116                 pointZones()
117             )
118         );
120         nPointZones++;
121     }