site-analysis
site-analysis is a Python module for analysing molecular dynamics simulations of solid-state ion transport, by assigning positions of mobile ions to specific “sites” within the host structure.
The code is built on top of pymatgen and operates on molecular dynamics trajectories represented as lists of pymatgen Structure objects. Any trajectory source that can produce pymatgen structures can be used as input.
Site Types
The package offers several approaches for defining sites:
Spherical sites: Simple spherical volumes defined by a center position and radius
Polyhedral sites: Sites defined by polyhedra with vertices at specified atomic positions
Voronoi sites: Sites defined by Voronoi decomposition of the lattice
Dynamic Voronoi sites: Sites using Voronoi decomposition but with centers calculated dynamically based on framework atom positions
Documentation Structure
Getting Started
Concepts
Guides
Tutorials
Resources
API Reference
Code Requirements
Python 3.10 or later
Dependencies: pymatgen, numpy, scipy, tqdm
Development
For development or to access the latest features:
# Clone the repository
git clone https://github.com/bjmorgan/site-analysis.git
cd site-analysis
# Install in development mode with dev dependencies
pip install -e ".[dev]"