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 cellSet movingCellsTop(*this, valves_[valveI].movingCellsTopName());
138 "movingCellsTopZoneV" + Foam::name(valveI + 1),
139 movingCellsTop.toc(),
148 pointSet movingPointsTop(*this, valves_[valveI].movingPointsTopName());
154 "movingPointsTopZoneV" + Foam::name(valveI + 1),
155 movingPointsTop.toc(),
164 cellSet movingCells(*this, valves_[valveI].movingCellsName());
170 "movingCellsZoneV" + Foam::name(valveI + 1),
179 cellSet staticCells(*this, valves_[valveI].staticCellsName());
185 "staticCellsZoneV" + Foam::name(valveI + 1),
195 pointSet movingPoints(*this, valves_[valveI].movingPointsName());
201 "movingPointsV" + Foam::name(valveI + 1),
212 pointSet staticPoints(*this, valves_[valveI].staticPointsName());
218 "staticPointsV" + Foam::name(valveI + 1),