On a dynamical system related to fluid mechanics