Gradient Flows in Mechanics and Continuum Physics