3 const faceZoneMesh& fZones = faceZones();
4 const pointZoneMesh& pZones = pointZones();
5 const cellZoneMesh& cZones = cellZones();
7 label constraintSize = 0;
9 forAll(valves_, valveI)
13 valves_[valveI].curVelocity()*valves_[valveI].cs().axis();
17 label movingPtsIndex = pZones.findZoneID("movingPointsV"+Foam::name(valveI + 1));
18 const labelList& movingPointsV = pZones[movingPtsIndex];
20 forAll(movingPointsV, mpI)
22 constrainedPoints.append(movingPointsV[mpI]);
23 constrainedVelocity.append(valveVel);
32 label movingInternalPtsIndex = pZones.findZoneID("movingInternalPointsV"+Foam::name(valveI + 1));
33 const labelList& movingInternalPointsV = pZones[movingInternalPtsIndex];
35 forAll(movingInternalPointsV, mipI)
37 constrainedPoints.append(movingInternalPointsV[mipI]);
38 constrainedVelocity.append(valveVel);
47 label staticPtsIndex = pZones.findZoneID("staticPointsV"+Foam::name(valveI + 1));
48 const labelList& staticPointsV = pZones[staticPtsIndex];
50 forAll(staticPointsV, spI)
52 constrainedPoints.append(staticPointsV[spI]);
53 constrainedVelocity.append(vector::zero);
63 label movingCellsIndex = cZones.findZoneID("movingCellsZoneV"+Foam::name(valveI + 1));
64 const labelList& movingCellsV = pZones[movingCellsIndex];
66 forAll(movingCellsV, mcI)
68 constrainedPoints.append(movingCellsV[mcI]+points().size());
69 constrainedVelocity.append(valveVel);
75 Info << "movingFacesIndex" << endl;
79 label staticCellsIndex = cZones.findZoneID("staticCellsZoneV"+Foam::name(valveI + 1));
80 const labelList& staticCellsV = pZones[staticCellsIndex];
82 forAll(staticCellsV, scI)
84 constrainedPoints.append(staticCellsV[scI]+points().size());
85 constrainedVelocity.append(vector::zero);