A python package to analyze XDATCAR files generated from VASP
Project description
xdatbus
xdatbus is a Python library designed specifically for VASP users engaged in research on ab-initio MD simulations, as well as biased MD simulations. The primary file addressed by the package is the XDATCAR, a trajectories file generated by the Vienna Ab-initio Simulation Package (VASP). The package documentation can be accessed here and the Jupyter Notebook tutorial is also available.
Installation
Make sure you have a Python interpreter, preferably version 3.10 or higher. Then, you can simply install xdatbus from pypi using pip
:
pip install xdatbus
If you'd like to use the latest unreleased version on the main branch, you can install it directly from GitHub:
pip install -U git+https://https://github.com/jcwang587/xdatbus
The package is also availabe from conda-based installation. It is generally recommended you first create a separate environment, then you can install xdatbus via conda as well via the xdatbus channel on Anaconda cloud:
conda install --channel xdatbus xdatbus
If you plan to use PLUMED to analyze biased MD sampling results, you can also install the conda version of PLUMED together:
conda install -c xdatbus -c conda-forge xdatbus plumed
Get Started
This is a brief example demonstrating how to use the basic function of xdatbus to aggregate multiple xdatcar files into one and unwrap the coordinates into an .xyz file:
import os
from xdatbus import xdc_aggregate, xdc_unwrap
xdc_dir = "./data"
xdb_path = os.path.dirname(xdc_dir)
xdc_aggregate(xdc_dir=xdc_dir, output_path=xdb_path)
xdc_unwrap(xdc_path=xdb_path)
Update log
0.0.6
first upload for test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for xdatbus-0.0.114-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 053ee473fc983fafbeba1575203a29ea98d69387fd86119f8a4fd0540c19ed3f |
|
MD5 | 0b1de02287f61e13ae2c4f4ffb904f76 |
|
BLAKE2b-256 | cc111ae33f04f9709151381500d6ac09f1287e7428d0bf8100411636b4f91ff5 |