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();
15 if(valves_[valveI].curLift() > valves_[valveI].deformationLift())
17 valveVel = vector::zero;
21 label movingPtsIndex =
22 pZones.findZoneID("movingPointsV"+Foam::name(valveI + 1));
24 const labelList& movingPointsV = pZones[movingPtsIndex];
26 forAll(movingPointsV, mpI)
28 constrainedPoints.append(movingPointsV[mpI]);
29 constrainedVelocity.append(valveVel);
36 label staticPtsIndex =
37 pZones.findZoneID("staticPointsV"+Foam::name(valveI + 1));
39 const labelList& staticPointsV = pZones[staticPtsIndex];
41 forAll(staticPointsV, spI)
43 constrainedPoints.append(staticPointsV[spI]);
44 constrainedVelocity.append(vector::zero);
52 label movingBottomPtsIndex =
55 "movingPointsBottomZoneV"
56 + Foam::name(valveI + 1)
59 const labelList& movingBottomPointsV =
60 pZones[movingBottomPtsIndex];
62 forAll(movingBottomPointsV, mbpI)
64 constrainedPoints.append(movingBottomPointsV[mbpI]);
65 constrainedVelocity.append(valveVel);