Upgoing ion beams. II - Fluid analysis and magnetosphere-ionosphere coupling