Skip to main content

Workflows for atomistic modeling of oxide glasses

Project description

amorphouspy

PyPI Documentation codecov

amorphouspy logo

[!WARNING] This project is under active development and is not yet ready for production use. APIs and functionality may change without notice. Contributions and feedback are very welcome — feel free to open an issue or submit a pull request!

A Python package for atomistic simulations of glasses.

amorphouspy provides capabilities in the form of Python functions from generating initial structural models through running molecular dynamics simulations with LAMMPS, all the way to computing material properties and performing detailed structural analysis.

amorphouspy_api strings these Python functions together to end-to-end workflows using executorlib. It then exposes these workflows through web endpoints, which can e.g. be used by an agent powered by a large language model.

Find the documentation at glasagent.github.io/amorphouspy.

Key Features

amorphouspy

  • Structure Generation: Create random oxide glass structures from composition dicts (e.g. {"SiO2": 75, "Na2O": 15, "CaO": 10}) with automatic density estimation using Fluegel's empirical model.
  • Interatomic Potentials: Built-in support for PMMCS (Pedone), BJP (Bouhadja), and SHIK (Sundararaman) classical force fields with automatic LAMMPS input generation. Support for machine-learning interatomic potentials will come later.
  • Melt-Quench Simulations: Multi-stage heating/cooling protocols with potential-specific temperature programs and ensemble control.
  • Structural Analysis: RDFs, coordination numbers, Qn distributions, bond angle distributions, ring statistics, cavity analysis.
  • Property Calculations: Elastic moduli (stress-strain finite differences), viscosity (Green-Kubo formalism), coefficient of thermal expansion (NPT fluctuations).

amorphouspy_api

  • End-to-end Workflows: Submit a composition, get back the glass structure and all of its predicted properties
  • Job management API: Fully fledged job management API, including results database
  • Visualization: Interactive Plotly-based visualizations of glass structure and properties

Installation

Install the bleeding edge version via

# Install pixi (if not already installed)
curl -fsSL https://pixi.sh/install.sh | bash

# Clone repo and install environment from PyPI/conda-forge
git clone https://github.com/glasagent/amorphouspy.git
cd amorphouspy
pixi install

You can also install the amorphouspy package into existing environments from PyPI or conda-forge, see the Installation guide for details.

Quick Start

See the Tutorial for a step-by-step introduction.

Authors

Developed at the Bundesanstant für Materialforschung und -prüfung (BAM) in collaboration with SCHOTT AG and the Max Planck Institute for Sustainable Materials.

  • Achraf Atila — BAM — Core framework, analysis tools, potentials
  • Marcel Sadowski — Schott AG — CTE simulation module
  • Jan Janssen — MPIE — pyiron integration, lammpsparser
  • Leopold Talirz — Schott AG — API layer, project coordination

Acknowledgement

Supported by the Federal Ministry of Research, Technology and Space via the GlasAgent MaterialDigital 3 project.

BMFTR logo     MaterialDigital logo     GlasAgent logo

License

BSD 3-Clause. See LICENSE.

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

amorphouspy-0.5.1.tar.gz (16.6 MB view details)

Uploaded Source

Built Distribution

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

amorphouspy-0.5.1-py2.py3-none-any.whl (1.8 MB view details)

Uploaded Python 2Python 3

File details

Details for the file amorphouspy-0.5.1.tar.gz.

File metadata

  • Download URL: amorphouspy-0.5.1.tar.gz
  • Upload date:
  • Size: 16.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for amorphouspy-0.5.1.tar.gz
Algorithm Hash digest
SHA256 0a437728a55289d835e67b9cb4c82c25937e094e6e88ff33306cf86a22df43bf
MD5 3c344f2ae862386bc2588ed1ddb8254f
BLAKE2b-256 16fdbb265e949ac24402f148bc6b8aabc5358231583138676766cb9384418432

See more details on using hashes here.

Provenance

The following attestation bundles were made for amorphouspy-0.5.1.tar.gz:

Publisher: publish_pypi.yml on glasagent/amorphouspy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file amorphouspy-0.5.1-py2.py3-none-any.whl.

File metadata

  • Download URL: amorphouspy-0.5.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for amorphouspy-0.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 67781877d8fbf2226704d43fa3a8fa4b4d223a8092e342a0ca11d7923f10112e
MD5 00095fd1ec65f2702684ff2fa1f2172b
BLAKE2b-256 dc91c12d3f81d67386d14648dc1b73f2ed74f2241c4c715604cc4a007b3db794

See more details on using hashes here.

Provenance

The following attestation bundles were made for amorphouspy-0.5.1-py2.py3-none-any.whl:

Publisher: publish_pypi.yml on glasagent/amorphouspy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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