Real-time Magnetosphere Simulation