In this paper we consider thermodynamics of a moving medium. We expand thermodynamic phase space with two additional quantities: deformation and stress. A geometrical interpretation of such thermodynamics as Lagrangian manifolds is given. With a pseudo-Riemannian
structure arising on such manifolds, a co-existence curve of phases is found. An example regarding
the van der Waals state equation is considered.