AlloMorph
Description
AlloMorph is a Python toolkit for generating initial structural models of monometallic, bimetallic, and trimetallic nanoparticles. It is designed to create large-scale datasets for atomistic simulations and machine learning applications.
Installation
This package uses uv for dependency management and packaging. For detailed information on external tool requirements (LAMMPS, NCPac, etc.), see DEPENDENCIES.md.
# Clone the repository
git clone https://github.com/jonathan-ting/allomorph.git
cd allomorph
# Create a virtual environment and install dependencies
uv venv
uv pip install -e ".[dev]"
Alternatively, you can install directly with pip:
pip install allomorph
Usage
The core allomorph command provides a streamlined interface for structure generation:
# Generate a full suite of nanoparticles (MNP, BNP, TNP)
allomorph init-struct --stage all
# Generate only monometallic nanoparticles
allomorph init-struct --stage mnp
# Generate bimetallic nanoparticles with visual check (ASE GUI)
allomorph init-struct --stage bnp --vis
Check out the basic demonstration notebook for further explanations and demonstrations!
Features
Core Package Structure
allomorph.init_struct— Generation logic for monometallic, bimetallic, and trimetallic structures.allomorph.constants— Physical constants, element properties, and global configuration.
Project Extras & Research Tools
While the core allomorph package focuses on structure generation, this repository includes additional tools and legacy resources used in the original research pipeline:
1. Research Extras (extras/)
These are standalone Python modules for managing the full simulation lifecycle:
extras/eam/— Creation of EAM alloy potential files.extras/md_sim/— Management of LAMMPS simulations and HPC job submission.extras/feat_ext_eng/— Integration with NCPac for structural feature extraction.
2. Physical Resources
- InitStruct: LAMMPS and Bash scripts for alternative structure generation workflows.
- EAM: Reference databases and tools for interatomic potentials.
- MDsim: LAMMPS templates and scripts for simulation orchestration.
- FeatExtEng: Source code and configuration for NCPac.
Degrees of Freedom
AlloMorph supports a wide range of configurable parameters:
- Elemental composition: Supports 1–3 arbitrary metallic elements (e.g., Au, Pt, Pd, Cu, Ni, Ag).
- Size: Configurable diameter range (default: 10–30 Å).
- Shape: CU (Cube), TH (Tetrahedron), RD (Rhombic Dodecahedron), OT (Octahedron), TO (Truncated Octahedron), CO (Cuboctahedron), DH (Decahedron), IC (Icosahedron), SP (Sphere).
- Ratio: Arbitrary stoichiometric ratios (e.g., 20:40:40).
- Atomic ordering:
- BNP: L10 (Ordered), RAL (Random), RCS (Random Core-Shell).
- TNP: L10R, CS, CL10S, CRALS, RRAL, CSRAL, CSL10, CRSR, LL10.
Future Enhancements
- Support >3 metals: Extend logic to quadrimetallic and beyond.
- Non-FCC lattice support: Support for BCC, HCP, and other lattices.
- Modern Formats: Support for HDF5 and ASE trajectory outputs.
Documentation
Detailed documentations are hosted by Read the Docs.
Contributing
Sphractal appreciates your enthusiasm and welcomes your expertise!
Please check out the contributing guidelines and code of conduct. By contributing to this project, you agree to abide by its terms.
License
The project is distributed under an MIT License.
Metadata
Release files for allomorph 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| allomorph-0.3.0.tar.gz | 18.4 kB | With provenance | Details for allomorph-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| allomorph-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for allomorph-0.3.0-py3-none-any.whl |
Total release size: 39.4 kB
Release files / allomorph-0.3.0.tar.gz
| Download URL | allomorph-0.3.0.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb95a9c30227710dc5f619427b8c2bc5734cdf7aee89ef452896d9ac1a960c80
|
|
BLAKE2b-256 checksum How to use checksums |
5f37935bf4a97fa4015b29b5f963abdee6897eea86a8bc7cb1021b9dabc858fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 25, 2026.
Transparency logRelease files / allomorph-0.3.0-py3-none-any.whl
| Download URL | allomorph-0.3.0-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb46b2ed163c5fb9cc19b683dc01f3d6c5fa7c3c90e37c09f03b4a62a293bd6b
|
|
BLAKE2b-256 checksum How to use checksums |
972ef1abe63cbff8824a7149a8a888c964105acb1b469f85bd19f708c877bcd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 25, 2026.
Transparency logSecurity for allomorph 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for allomorph-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.