3 const pointZoneMesh& pZones = pointZones();
5 label constraintSize = 0;
7 forAll(valves_, valveI)
10 valves_[valveI].curVelocity()*valves_[valveI].cs().axis();
13 label movingPtsIndex =
14 pZones.findZoneID("movingPointsV"+Foam::name(valveI + 1));
15 const labelList& movingPointsV = pZones[movingPtsIndex];
17 forAll(movingPointsV, mpI)
19 constrainedPoints.append(movingPointsV[mpI]);
20 constrainedVelocity.append(valveVel);
28 label movingInternalPtsIndex =
31 "movingInternalPointsV"
32 + Foam::name(valveI + 1)
35 const labelList& movingInternalPointsV =
36 pZones[movingInternalPtsIndex];
38 forAll(movingInternalPointsV, mipI)
40 constrainedPoints.append(movingInternalPointsV[mipI]);
41 constrainedVelocity.append(valveVel);
49 label staticPtsIndex =
50 pZones.findZoneID("staticPointsV" + Foam::name(valveI + 1));
51 const labelList& staticPointsV = pZones[staticPtsIndex];
53 forAll(staticPointsV, spI)
55 constrainedPoints.append(staticPointsV[spI]);
56 constrainedVelocity.append(vector::zero);
63 if (piston().patchID().active())
66 piston().cs().axis()*engineTime_.pistonSpeed().value();
68 label pistonPtsIndex = pZones.findZoneID("movingPistonPoints");
69 const labelList& movingPointsP = pZones[pistonPtsIndex];
71 forAll(movingPointsP, mpI)
73 constrainedPoints.append(movingPointsP[mpI]);
74 constrainedVelocity.append(pistonVel);
75 // constrainedVelocity.append(vector::zero);
82 Info << "constraintSize = " << constraintSize << endl;