add a method to compute the energy of the stvk elastic model.