Numerical simulation of long rods impacted by particle beams