Kinetic simulation of plasma flows in the inner magnetosphere