An application of group theory to hydrodynamics