Introduction to GEMDAT¶
This notebook as an introduction to GEMDAT.
Gemdat is a Python library for the analysis of diffusion in solid-state electrolytes from Molecular Dynamics simulations. Gemdat is built on top of Pymatgen, making it straightforward to integrate it into your Pymatgen-based workflows.
To start using GEMDAT, you will need some molecular dynamics data, e.g. from VASP. We import here some default data, but feel free to use your own:
In [1]:
Copied!
from gemdat.utils import VASPRUN
# Use your own data:
# VASPRUN = 'path/to/your/vasprun.xml'
from gemdat.utils import VASPRUN
# Use your own data:
# VASPRUN = 'path/to/your/vasprun.xml'
Trajectory¶
The entry point to GEMDAT is via a Trajectory. It is an extension of the pymatgen Trajectory class.
In [2]:
Copied!
from gemdat import Trajectory
trajectory = Trajectory.from_vasprun(VASPRUN)
trajectory
from gemdat import Trajectory
trajectory = Trajectory.from_vasprun(VASPRUN)
trajectory
Out[2]:
Full Formula (Li48 P8 S40 Br8) Reduced Formula: Li6PS5Br abc : 19.873726 9.919447 9.916454 angles: 90.214114 90.859135 89.950474 pbc : True True True Constant lattice (True) Sites (104) Time steps (5000)
With a trajectory, you can plot various statistics.
In [3]:
Copied!
trajectory.plot_displacement_per_atom()
trajectory.plot_displacement_per_atom()