A Lagrangian approach to classical thermodynamicsA. StokesEPL, 117 3 (2017) 30002DOI: https://doi.org/10.1209/0295-5075/117/30002