A quasi-static magnetospheric convection model in two dimensions