Ab-Initio elastic constants calculation