Ethene's ELF with VASP

This example of generating ethene's ELF with VASP is very similar to the ethene orbitals with VASP example. This example requires c2x version 2.41c or better.

POSCAR
comment
   1.0000000000000000
    8.000000     0.000000     0.000000
    0.000000     8.000000     0.000000
    0.000000     0.000000     7.000000
   C   H
  2  4
Direct
 0.587320   0.500000   0.500
 0.412680   0.500000   0.500
 0.658860   0.615490   0.500
 0.341140   0.384510   0.500
 0.341140   0.615490   0.500
 0.658860   0.384510   0.500
KPOINTS
comment
0
M
1 1 1
0.25 0.25 0.25
INCAR
PREC = High
ISMEAR = 0
ISYM = 0
LELF = .TRUE.

And suitable pseudopotentials should be obtained from one's VASP distribution.

The differences are that LELF is set in INCAR, and that VASP recommends at least "High" for the value of PREC when performing ELF calculations.

With c2x version 2.41c or better one can simply type

$ c2x ELFCAR elf.xsf

With earlier versions, given that they can read CHGCAR files, and the format of ELFCAR and CHGCAR are identical, one can try

$ mkdir t
$ ln -s ../ELFCAR t/CHGCAR
$ c2x -cRv t/CHGCAR elf.xsf

Using "R" prevents any rescaling the the data.

Ethene ELF from VASP