Models of ionospheric ion motions in the magnetosphere