Variational Principle in Fluid Dynamics