Molecular Dynamics analysis
Project description
This is the documentation for the open-source Python project - polypy
,
A library designed to facilitate the analysis of DL_POLY and DL_MONTE calculations.
polypy is built on existing Python packages that those in the solid state physics/chemistry community should already be familiar with.
It is hoped that this tool will bring some benfits to the solid state community and facilitate data analysis and the generation of publication ready plots (powered by Matplotlib.)
The main features include:
-
Method to analyse the number denisty of a given species in one and two dimensions.
- Generate a plot of the total number of species in bins perpendicular to a specified direction.
- Generate a plot of the total number of species in cuboids parallel to a specified direction.
-
Method calculate the charge density from the number density.
- Convert number densities of all species in bins perpendicular to a specified direction into the charge density.
-
Calculate the electric field and electrostatic potential from the charge density.
- Solves the Poisson Boltzmann equation to convert the charge density into the electric field and the electrostatic potential.
-
Calculate the diffusion coefficient for a given species from a mean squared displacement.
- Carries out a mean squared displacement on an MD trajectory.
- Calculates the diffusion coefficient.
- Uses the density analysis and the diffusion coefficient to calculate the ionic conductivity.
The code has been developed to analyse DL_POLY and DL_MONTE calculations however other codes can be incorporated if there is user demand.
polypy
was developed during a PhD project and as such the functionality focuses on the research questions encountered during that project, which we should clarify are wide ranging. Code contributions aimed at expanding the code to new of problems are encouraged.
polypy
is free to use.
Usage
A full list of examples can be found in the examples folder of the git repository, these include both the Python scripts and jupyter notebook tutorials which combine the full theory with code examples. It should be noted however that DL_POLY HISTORY files and DL_MONTE ARCHIVE files are sizable (1-5GB) and as such only short example trajectories are included in this repository. Notebooks are provided here to illustrate the theory but are not practicle.
Installation
polypy
is a Python 3 package and requires a typical scientific Python stack. Use of the tutorials requires Anaconda/Jupyter to be installed.
To build from source:
pip install -r requirements.txt
python setup.py build
python setup.py install
python setup.py test
Or alternatively install with pip
pip install polypy
Documentation
To build the documentation from scratch
cd docs
make html
License
polypy
is made available under the MIT License.
Detailed requirements
polypy
is compatible with Python 3.5+ and relies on a number of open source Python packages, specifically:
- Numpy
- Scipy
- Matplotlib
- Seaborn
- Pandas
Contributing
Contact
If you have questions regarding any aspect of the software then please get in touch with the developer Adam Symington via email - ars44@bath.ac.uk. Alternatively you can create an issue on the Issue Tracker.
Bugs
There may be bugs. If you think you've caught one, please report it on the Issue Tracker.
This is also the place to propose new ideas for features or ask questions about the design of polypy
. Poor documentation is considered a bug
so feel free to request improvements.
Code contributions
We welcome help in improving and extending the package. This is managed through Github pull requests; for external contributions we prefer the "fork and pull" workflow while core developers use branches in the main repository:
- First open an Issue to discuss the proposed contribution. This discussion might include how the changes fit polypy's scope and a general technical approach.
- Make your own project fork and implement the changes there. Please keep your code style compliant with PEP8.
- Open a pull request to merge the changes into the main project. A more detailed discussion can take place there before the changes are accepted.
For further information please contact Adam Symington, ars44@bath.ac.uk
Author
- Adam R.Symington
Research
- Defect segregation facilitates oxygen transport at fluorite UO2 grain boundaries
- The role of dopant segregation on the oxygen vacancy distribution and oxygen diffusion in CeO2 grain boundaries
- Quantifying the impact of disorder on Li-ion and Na-ion transport in perovskite titanate solid electrolytes for solid-state batteries
Acknowledgements
This package was written during a PhD project that was funded by AWE and EPSRC (EP/R010366/1). The polypy
software package was developed to analyse data generated using the Balena HPC facility at the University of Bath. The author would like to thank Andrew R. McCluskey, Benjamin Morgan, Marco Molinari and Stephen C. Parker for their help and guidance during this PhD project.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file polypy-0.8-py3.7.egg
.
File metadata
- Download URL: polypy-0.8-py3.7.egg
- Upload date:
- Size: 40.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 550290994594b1b7178dff8aef8ff3560be4cee71148278a461df0b63a1d0531 |
|
MD5 | a7e2e05558d6fff3730d705c3d742de0 |
|
BLAKE2b-256 | 71478a6f5a2a67dd8bea9d9d9b8d5c25d6e4958936ccf48fe3eb3af9afc454c4 |
File details
Details for the file polypy-0.8-py3-none-any.whl
.
File metadata
- Download URL: polypy-0.8-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9afda7723acaa2e2dcf21d7e5631c4c0f4efe2b9136d62243e4deebc2dfcd5b |
|
MD5 | 994bc1fec992ff453af2e6d3a6e6d9d0 |
|
BLAKE2b-256 | c1c4940c6401d5cc4c1dc6f1b43dfdfbaef1972de1ccf59452763cf09c689739 |