3 const pointZoneMesh& pZones = pointZones();
5 label constraintSize = 0;
7 forAll(valves_, valveI)
11 valves_[valveI].curVelocity()*valves_[valveI].cs().axis();
15 label movingPtsIndex = pZones.findZoneID("movingPointsV"+Foam::name(valveI + 1));
16 const labelList& movingPointsV = pZones[movingPtsIndex];
18 forAll(movingPointsV, mpI)
20 constrainedPoints.append(movingPointsV[mpI]);
21 constrainedVelocity.append(valveVel);
30 label movingInternalPtsIndex = pZones.findZoneID("movingInternalPointsV"+Foam::name(valveI + 1));
31 const labelList& movingInternalPointsV = pZones[movingInternalPtsIndex];
33 forAll(movingInternalPointsV, mipI)
35 constrainedPoints.append(movingInternalPointsV[mipI]);
36 constrainedVelocity.append(valveVel);
45 label staticPtsIndex = pZones.findZoneID("staticPointsV"+Foam::name(valveI + 1));
46 const labelList& staticPointsV = pZones[staticPtsIndex];
48 forAll(staticPointsV, spI)
50 constrainedPoints.append(staticPointsV[spI]);
51 constrainedVelocity.append(vector::zero);