Phase Change in Mechanics