Models of global electric fields within the magnetosphere