A self-consistent model of a corotating Jovian magnetosphere