2 // adding face zones for the vertical valves
4 for (label valveI = 0; valveI < nValves(); valveI++)
6 // If both sides of the interface exist, add sliding interface
10 valves_[valveI].curtainInCylinderPatchID().active()
11 && valves_[valveI].curtainInPortPatchID().active()
14 Info<< "Adding sliding interface zones for curtain of valve "
15 << valveI + 1 << endl;
21 "cutPointsV" + Foam::name(valveI + 1),
30 const polyPatch& cylCurtain =
32 [valves_[valveI].curtainInCylinderPatchID().index()];
34 labelList cylCurtainLabels(cylCurtain.size(), cylCurtain.start());
36 forAll (cylCurtainLabels, i)
38 cylCurtainLabels[i] += i;
45 "curtainCylZoneV" + Foam::name(valveI + 1),
47 boolList(cylCurtainLabels.size(), false),
55 const polyPatch& portCurtain =
57 [valves_[valveI].curtainInPortPatchID().index()];
59 labelList portCurtainLabels
65 forAll (portCurtainLabels, i)
67 portCurtainLabels[i] += i;
74 "curtainPortZoneV" + Foam::name(valveI + 1),
76 boolList(portCurtainLabels.size(), false),
84 // Add empty zone for cut faces
90 "cutFaceZoneV" + Foam::name(valveI + 1),
103 Info << "No valve curtain for valve " << valveI + 1 << endl;
108 // for each valve the following zones have to be created:
116 faceSet layeringFacesTop(*this, valves_[valveI].layeringFacesTopName());
122 "layeringFacesTopZoneV" + Foam::name(valveI + 1),
123 layeringFacesTop.toc(),
124 boolList(layeringFacesTop.size(), true),
132 faceSet layeringFacesBottom(*this, valves_[valveI].layeringFacesBottomName());
138 "layeringFacesBottomZoneV" + Foam::name(valveI + 1),
139 layeringFacesBottom.toc(),
140 boolList(layeringFacesBottom.size(), true),
148 cellSet movingCellsTop(*this, valves_[valveI].movingCellsTopName());
154 "movingCellsTopZoneV" + Foam::name(valveI + 1),
155 movingCellsTop.toc(),
163 cellSet movingCellsBottom(*this, valves_[valveI].movingCellsBottomName());
169 "movingCellsBottomZoneV" + Foam::name(valveI + 1),
170 movingCellsBottom.toc(),
177 cellSet movingCells(*this, valves_[valveI].movingCellsName());
183 "movingCellsZoneV" + Foam::name(valveI + 1),
192 cellSet staticCells(*this, valves_[valveI].staticCellsName());
198 "staticCellsZoneV" + Foam::name(valveI + 1),