The easiest option is to simply click-and-drag the structure into VESTA!
To view the final structure via Python using ASE:
from ase.io import read
from ase.visualize import view
atoms = read("CONTCAR")
view(atoms)
Alternatively, from the command-line:
To view the forces and several other useful properties:
from ase.io import read
from ase.visualize import view
atoms = read("OUTCAR")
view(atoms)
Alternatively, from the command-line:
To view an optimization trajectory using ASE:
from ase.io import read
from ase.visualize import view
atoms = read("OUTCAR", index=":")
view(atoms)
Alternatively, from the command-line:
Click-and-drag the CHGCAR
into VESTA. That's it!
Using sumo , run sumo-dosplot
in a folder containing the vasprun.xml
.
Alternatively, in Pymatgen, do the following:
import matplotlib.pyplot as plt
from pymatgen.io.vasp import Vasprun
from pymatgen.electronic_structure.plotter import DosPlotter
sigma = 0.1
vr = Vasprun("vasprun.xml")
dos = vr.complete_dos
dos.densities = dos.get_smeared_densities(0.1)
x = dos.energies - dos.efermi
y = dos.get_densities()
plt.plot(x, y, color="k")
plt.xlabel("E - Ef (eV)")
plt.ylabel("DOS (a.u.)")
plt.show()