3 const faceZoneMesh& fZones = faceZones();
4 const pointZoneMesh& pZones = pointZones();
6 label constraintSize = 0;
8 forAll(valves_, valveI)
12 valves_[valveI].curVelocity()*valves_[valveI].cs().axis();
16 label movingPtsIndex = pZones.findZoneID("movingPointsV"+Foam::name(valveI + 1));
17 const labelList& movingPointsV = pZones[movingPtsIndex];
19 forAll(movingPointsV, mpI)
21 constrainedPoints.append(movingPointsV[mpI]);
22 constrainedVelocity.append(valveVel);
30 label staticPtsIndex = pZones.findZoneID("staticPointsV"+Foam::name(valveI + 1));
31 const labelList& staticPointsV = pZones[staticPtsIndex];
33 forAll(staticPointsV, spI)
35 constrainedPoints.append(staticPointsV[spI]);
36 constrainedVelocity.append(vector::zero);
44 label movingFacesIndex = fZones.findZoneID("movingFacesZoneV"+Foam::name(valveI + 1));
45 const labelList& movingFacesV = pZones[movingFacesIndex];
47 forAll(movingFacesV, mfI)
49 constrainedPoints.append(movingFacesV[mfI]+points().size());
50 constrainedVelocity.append(valveVel);
58 label staticFacesIndex = fZones.findZoneID("staticFacesZoneV"+Foam::name(valveI + 1));
59 const labelList& staticFacesV = pZones[staticFacesIndex];
61 forAll(staticFacesV, sfI)
63 constrainedPoints.append(staticFacesV[sfI]+points().size());
64 constrainedVelocity.append(vector::zero);