2 forAll(valves(), valveI)
5 valves_[valveI].curVelocity()*engTime().deltaT().value() ;
9 if(mag(valves_[valveI].curVelocity()) > 0)
11 Info << "Valve n. " << valveI << " is moving" << endl;
17 valves_[valveI].poppetPatchID().active()
18 && valves_[valveI].isOpen()
21 if (valves_[valveI].curLift() > valves_[valveI].deformationLift())
23 const scalarField& movingPointsTop =
24 movingPointsMaskTop(valveI);
27 List<bool> valveTopPoint(newPoints.size(), false);
29 label valveTopPtsIndex =
30 pointZones().findZoneID("movingPointsTopZoneV"
31 + Foam::name(valveI+1));
33 const labelList& valveTopPoints =
34 pointZones()[valveTopPtsIndex];
36 forAll (valveTopPoints, i)
38 label pointI = valveTopPoints[i];
39 valveTopPoint[pointI] = true;
42 Info << " valve Delta Z = " << valveDeltaZ << endl;
44 forAll(valveTopPoints, i)
46 point& p = newPoints[valveTopPoints[i]];
50 valves_[valveI].cs().axis().z()/
51 mag(valves_[valveI].cs().axis())
52 )*movingPointsTop[valveTopPoints[i]];
56 deleteDemandDrivenData(movingPointsMaskTopPtr_);
60 // poppetDeformation = true;
65 Info << "Valve " << valveI << " is CLOSED!!!" << endl;