Visualizing Files

Structure

There is no GUI on the cluster itself. To view the outputs below, either run the copy the necessary files to your local machine and run the commands there or follow the Princeton Research Computing  instructions  for using GUI applications on the cluster.

Trajectory

To view an optimization trajectory (structure, energy, and forces vs. geometry step) using ASE:
from ase.io import read
from ase.visualize import view

atoms = read("OUTCAR", index=":")
view(atoms)
Alternatively, from the command-line on your local machine or a visualization node:
ase gui OUTCAR

Final Structure

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:
ase gui CONTCAR

Charge Density

Click-and-drag the CHGCAR into VESTA. That's it!

Density of States

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 # smooth out the DOS
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()