its working right now , anyway I messed around with it a bit and I input 4000 kg as mass B and 100 as mass A
and the elasticity as 1

I used 4000 kg because mass B (the pipe) would have
4000 kg m/s
1000 kg x 4 m/s = 4000 kg m/s

and the result is
-38.049 m/s for va
and
1.951 m/s for vb

I believe that if mass B were traveling towards A at 4 m/s
then mass B would stop and mass A would double velocity to
-80 m/s

the resultant movement of the
4000 kg mass B to 1.951 m/s = 7804 kg m/s
we might as well say there was 8000 N.s in the collision
and 8000 N.s would accelerate the 100 kg mass to -80 m/s

of course with multiple pipe and mass sets you wouldnt even stop the pipe at all.

because there would always be say 20 masses accelerating and 1 mass in 1 of the 1st turns and 1 mass in 1 of the 2nd turns and 20 masses would be free floating to the 2nd turns.

the array would consist of 42 sets of pipes and masses.
each pipe with a mass of 1000 kg
each mass with a mass of 100 kg

so you would actually have

100 kg x 40 m/s = 4000 kg m/s , each mass
4000 kg m/s x 20 = 80,000 kg m/s , array of 20 sets accelerating
or 80,000 N.s

vs

nothing because there is 1 mass in the 1st and 2nd turns.
and they cancel each other out.





3/4 inch of dust build up on the moon in 4.527 billion years,LOL and QM is fantasy science.