Numerical Simulations of a Flux Rope Ejection