Fix tutorials: typo in tutorials/viscoelastic/viscoelasticFluidFoam/S-MDCPP/constant...
[OpenFOAM-1.6-ext.git] / src / engine / engineTopoChangerMesh / accordionEngineMesh / addValveFaceZonesAccordionEngineMesh.H
blobe71a13b2e18a4d372dcd04ccb5eb655e2c233643
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
11         
13         faceSet movingFaces(*this, valves_[valveI].movingFacesName());
14         
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         );
26         
27         nFaceZones++;
28         
29         faceSet staticFaces(*this, valves_[valveI].staticFacesName());
30         
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         );
42         
43         nFaceZones++;
46         cellSet movingCells(*this, valves_[valveI].movingCellsName());
47         
48         cz.append
49         (
50             new cellZone
51             (
52                 "movingCellsZoneV" + Foam::name(valveI + 1),
53                 movingCells.toc(),
54                 nCellZones,
55                 cellZones()
56             )
57         );
58         
59         nCellZones++;
60         
61         cellSet staticCells(*this, valves_[valveI].staticCellsName());
62         
63         cz.append
64         (
65             new cellZone
66             (
67                 "staticCellsZoneV" + Foam::name(valveI + 1),
68                 staticCells.toc(),
69                 nCellZones,
70                 cellZones()
71             )
72         );
73         
74         nCellZones++;
75         
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         );
89         
90         nPointZones++;        
91         
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         );
104         
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         );
119         
120         nPointZones++;     
121     }