Skip to main content

A simple and fast python library to handle the data generated from molecular dynamics simulations

Project description

https://img.pterclub.com/images/2023/01/06/logo.png

mdapy : Molecular Dynamics Analysis with Python

Overview

The mdapy is a python library providing a set of simple, flexible and powerful tools to analyze the atomic trajectories generated from Molecular Dynamics (MD) simulations. Benefit by the TaiChi project, we can effectively accelerate the pure python code close to those written in C++. Moreover, mdapy is highly parallelized to make full use of resources of both multicore CPU and GPU. mdapy can directly handle the DUMP and DATA format in LAMMPS. All data in mdapy is stored in NDARRAY format in NumPy, enabling integration with the scientific ecosystem in python and corporation with other post-progressing codes, such as OVITO and freud.

Resources

Dependencies

Optional Dependencies

Installation

Install from source code.

  • You should install pybind11 and have a C++ compilation environment.

    pip install pybind11
  • Download source code

    git clone https://github.com/mushroomfire/mdapy.git
    cd mdapy
    python setup.py install

Usage

import mdapy as mp
mp.init('cpu') # use cpu, mp.init('gpu') will use gpu to compute.

system = mp.System('./example/CoCuFeNiPd-4M.dump') # read dump file to generate a system class
system.cal_centro_symmetry_parameter() # calculate the centrosymmetry parameters
system.cal_atomic_entropy() # calculate the atomic entropy
system.write_dump() # save results to a new dump file

Release Notes

V0.7.9

  • Fix bug of create_polycrystalline module in Linux.

V0.7.8

  • Update TaiChi version to 1.4.0.

  • Set SciencePlots as a optional package.

  • Fix bug in create_polycrystalline.

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

mdapy-0.7.9-cp310-cp310-win_amd64.whl (306.3 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

mdapy-0.7.9-cp310-cp310-manylinux1_x86_64.whl (549.4 kB view hashes)

Uploaded CPython 3.10

mdapy-0.7.9-cp39-cp39-win_amd64.whl (306.7 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

mdapy-0.7.9-cp39-cp39-manylinux1_x86_64.whl (547.2 kB view hashes)

Uploaded CPython 3.9

mdapy-0.7.9-cp38-cp38-win_amd64.whl (302.8 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

mdapy-0.7.9-cp38-cp38-manylinux1_x86_64.whl (585.5 kB view hashes)

Uploaded CPython 3.8

mdapy-0.7.9-cp37-cp37m-win_amd64.whl (307.9 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

mdapy-0.7.9-cp37-cp37m-manylinux1_x86_64.whl (355.4 kB view hashes)

Uploaded CPython 3.7m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page