I generated the elastic tensor (for Silicon) using ISIF=3 and IBRION=6 in both Vasp 5.4.4 and Vasp 6.3.2. I can see the elastic tensor being output in the OUTCAR file for both versions (see below). There is no problem with the elastic tensor in the output. On the other hand when using the Outcar class to read in the output using pymatgen (2023.3.10), the method Outcar.read_elastic_tensor() returns NoneType. It thus appears that the read_elastic_tensor() method is broken – or am I misunderstanding the use of the function. How does one read in the elastic tensor? The output below is for the Vasp 6 run, but the result is identical when trying to parse the Vasp 5 run.
In [1]: run = Vasprun("vasprun.xml")
In [2]: from pymatgen.io.vasp.outputs import Outcar
In [3]: outcar = Outcar("OUTCAR")
In [4]: outcar.read_elastic_tensor()
(blank output)
Vasp 5.4.4
ELASTIC MODULI (kBar)
Direction XX YY ZZ XY YZ ZX
--------------------------------------------------------------------------------
XX 1606.7175 634.6464 634.6464 0.0000 0.0000 0.0000
YY 637.9345 1607.6271 637.9345 0.0000 0.0000 0.0000
ZZ 636.3157 636.3157 1607.0401 0.0000 0.0000 0.0000
XY -6.8857 -6.9820 -4.9206 1039.8595 0.0000 0.0000
YZ 0.2226 0.1665 0.4836 0.0000 1039.4210 0.0000
ZX 0.8753 0.1857 0.3031 -0.0000 0.0000 1038.4366
--------------------------------------------------------------------------------
SYMMETRIZED ELASTIC MODULI (kBar)
Direction XX YY ZZ XY YZ ZX
--------------------------------------------------------------------------------
XX 1607.1282 636.2989 636.2989 0.0000 0.0000 0.0000
YY 636.2989 1607.1282 636.2989 0.0000 -0.0000 0.0000
ZZ 636.2989 636.2989 1607.1282 0.0000 0.0000 -0.0000
XY 0.0000 0.0000 0.0000 1039.2393 -0.0000 -0.0000
YZ 0.0000 -0.0000 0.0000 -0.0000 1039.2393 0.0000
ZX 0.0000 0.0000 -0.0000 -0.0000 0.0000 1039.2393
--------------------------------------------------------------------------------
and Vasp 6.3.2
ELASTIC MODULI (kBar)
Direction XX YY ZZ XY YZ ZX
--------------------------------------------------------------------------------
XX 1608.8387 631.6045 631.6045 -0.0000 -0.0000 -0.0000
YY 632.1761 1606.8207 632.1761 0.0000 -0.0000 -0.0000
ZZ 629.6030 629.6030 1606.6463 -0.0000 -0.0000 0.0000
XY -15.1798 -15.2782 -13.3931 1019.6901 0.0000 -0.0000
YZ 0.4596 -0.0631 -0.0568 0.0000 1025.7382 -0.0000
ZX 1.5293 -1.4897 -1.4680 0.0000 -0.0000 1013.2504
--------------------------------------------------------------------------------
SYMMETRIZED ELASTIC MODULI (kBar)
Direction XX YY ZZ XY YZ ZX
--------------------------------------------------------------------------------
XX 1607.4352 631.1279 631.1279 -0.0000 0.0000 0.0000
YY 631.1279 1607.4352 631.1279 -0.0000 0.0000 0.0000
ZZ 631.1279 631.1279 1607.4352 -0.0000 -0.0000 0.0000
XY -0.0000 -0.0000 -0.0000 1019.5661 0.0000 -0.0000
YZ 0.0000 0.0000 -0.0000 0.0000 1019.5661 -0.0000
ZX 0.0000 0.0000 0.0000 -0.0000 -0.0000 1019.5661
--------------------------------------------------------------------------------