Collisionless gas flows over a cylinder or a sphere