Relativistic Hydrodynamics in One Dimension