Computer Simulation of Reconnection in Planetary Magnetospheres