Numerical solutions of wave propagation in beams