Simulation of ultra-short pulses in a storage ring