In most of the lagrangian co-ordinates formulations of fluid dynamics in 1D, a function h is used as a co-ordinate defined as:
h_x=rho
Integrating this up shows that h is the mass contained in the interval integrated over.
So my question is this:
1) Do I need to change h at each timestep?
2) How do I compute the length of my domain at each timestep?