Numerical Simulation of a Complete Generator - Rail Launch System