2 forAll(valves(), valveI)
4 scalar valveDeltaZ = valves_[valveI].curVelocity()*engTime().deltaT().value() ;
7 if(mag(valves_[valveI].curVelocity()) > 0)
9 Info << "Valve n. " << valveI << " is moving" << endl;
13 if(valves_[valveI].poppetPatchID().active() && valves_[valveI].isOpen())
16 // if(valves_[valveI].curLift() > valves_[valveI].deformationLift())
18 const scalarField& movingPointsTop = movingPointsMaskTop(valveI);
22 List<bool> valveTopPoint(newPoints.size(), false);
24 label valveTopPtsIndex = pointZones().findZoneID("movingPointsTopZoneV"+ Foam::name(valveI+1));
25 const labelList& valveTopPoints = pointZones()[valveTopPtsIndex];
27 forAll(valveTopPoints, i)
29 label pointI = valveTopPoints[i];
30 valveTopPoint[pointI] = true;
33 Info << " valve Delta Z = " << valveDeltaZ << endl;
34 forAll(valveTopPoints, i)
37 point& p = newPoints[valveTopPoints[i]];
39 (valves_[valveI].cs().axis().z()/mag(valves_[valveI].cs().axis()))*
40 movingPointsTop[valveTopPoints[i]];
45 deleteDemandDrivenData(movingPointsMaskTopPtr_);
50 poppetDeformation = true;
56 Info << "Valve " << valveI << " is CLOSED!!!" << endl;