Skip to main content

A python data analysis library for computer simulations

Project description

pymattersim

Summary

Physics-driven data analyis of computer simulations for materials science, chemistry, physics, and beyond.

Installation [in a virtual environment]

  • python3.10 -m venv .venv
  • source .venv/bin/activate
  • pip install PyMatterSim
  • version upgrade pip install --upgrade pymattersim

Documentation

The documentation is now available online.

Requirements

  • python 3.6-3.11 (recommend 3.10)
  • numpy
  • pandas
  • freud-analysis (3.1.0, 3.2.0)
  • scipy
  • sympy
  • gsd (optional)
  • mdtraj (optional)
  • voro++ (optional, standalone binary)

Usage

Please refer to the /docs/ for documentation and examples. Some examples are provided from the unittest modules (tests/)

Types of computer simulations

  1. LAMMPS
    1. atom type & molecular type such as patchy particle, rigid body, molecules et al.
    2. x, xs, xu type particle positions
    3. orthagonal / triclinic box
  2. Hoomd-blue
    1. GSD for structure analysis (need gsd==3.2.0)
    2. GSD + DCD for dynamics analysis (need gsd==3.2.0 and mdtraj==1.9.9)
  3. VASP (to be added)
  4. Any type of simulators as long as the input were formatted well, modifying the reader module to use the computational modules.

Notes

Voro++ is recommend to install separately for specific Voronoi analysis. Some of the analysis from the original voro++ is maintained from the freud-analysis package developed by the Glozter group.

Citation

@article{hu2024pymattersimpythondataanalysis,
      title={PyMatterSim: a Python Data Analysis Library for Computer Simulations of Materials Science, Physics, Chemistry, and Beyond}, 
      author={Y. -C. Hu and J. Tian},
      year={2024},
      eprint={2411.17970},
      archivePrefix={arXiv},
      primaryClass={cond-mat.mtrl-sci},
      url={https://arxiv.org/abs/2411.17970}, 
}

References

UnitTest

Please run the bash scripts available from shell/ for unittests. As follows are test statistics:

Test # Tests and Runtime Status
test_dynamics Ran 15 tests in 10.303s OK
test_neighbors Ran 11 tests in 91.711s OK
test_reader Ran 11 tests in 0.270s OK
test_static Ran 28 tests in 298.248s OK
test_utils Ran 30 tests in 4.997s OK
test_writer Ran 3 tests in 0.005s OK

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyMatterSim-0.0.9.tar.gz (98.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyMatterSim-0.0.9-py3-none-any.whl (129.2 kB view details)

Uploaded Python 3

File details

Details for the file PyMatterSim-0.0.9.tar.gz.

File metadata

  • Download URL: PyMatterSim-0.0.9.tar.gz
  • Upload date:
  • Size: 98.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for PyMatterSim-0.0.9.tar.gz
Algorithm Hash digest
SHA256 ba5b4ec65c554ea354cdba025db29101b8e9a43fc0b9de74e154380790f3923c
MD5 28f4a562ab6ca8e5062e9b55c9f32f29
BLAKE2b-256 c1df147e3ddf5c447128de4f5750f0d42f83f0cb69b6221703a03093d75a547b

See more details on using hashes here.

File details

Details for the file PyMatterSim-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: PyMatterSim-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 129.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for PyMatterSim-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 77c2ed6c5b93a11d20a029e5fbc2fb7ac84a8db68807ebaab382c293c9e5b129
MD5 aab1e36912c7f50222c4c96a039314c3
BLAKE2b-256 6f17d5480fd7330b25b751f23c0923c2d1c6004012e7d68fac840b04463ae51b

See more details on using hashes here.

Supported by

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