Simulating The Interplay Between Plasma Transport, Electric Field, And Magnetic Field In The Near-Earth Nightside Magnetosphere