http://www.ciep.cl/ver-publicaciones/2014-variational-integrators-for-the-dynamics-of-thermo-elastic-1-1-07-08-2015-88551.pdf