Geometry of fluid motion