Monte Carlo workflows for alloy and adsorbate sampling on ASE-compatible atomistic models.
- Configuration overview:
docs/configuration.md - Shared workflow keys:
docs/configuration/shared.md - Adsorbate workflow keys:
docs/configuration/adsorbate.md - Alloy workflow keys:
docs/configuration/alloy.md - Adsorption-motif analysis:
docs/adsorption_motifs.md
The codebase supports:
- canonical alloy Monte Carlo on substitutional sublattices
- fixed-loading canonical adsorbate Monte Carlo with replica exchange support
- site-based grand-canonical adsorbate MC (
AdsorbateGCMC) - legacy grand-canonical adsorbate MC (
GCMC) - semi-grand alloy MC (
SemiGrandAlloyMC) - local relaxation and short hybrid MC/MD proposals
- local multiprocessing and Ray-backed distributed replica exchange
- YAML-driven workflow wrappers for alloy and adsorbate runs
- MXene-oriented analysis utilities for ordering, adsorption sites, surface motifs, and SRO
Base install:
pip3 install .Optional extras:
pip3 install .[speedups]
pip3 install '.[active-learning]'
pip3 install rayNotes:
mace-torchis a package dependency and enables the MACE examples.- The repository also works with other ASE-compatible calculators. Several production examples use
Symmetrix, which is not bundled here.
AlloyCMC- canonical swap MC for substitutional alloys
- neighbor-aware proposals
- optional relaxation and hybrid MC/MD
ReplicaExchange- parallel tempering for alloy and fixed-loading adsorbate MC
multiprocessingandraybackends
AdsorbateCMC- fixed-loading MC for atomic and rigid molecular adsorbates
displacement,site_hop,reorientation, andhybridmove modes
AdsorbateGCMC- site-based grand-canonical MC
- single-
mu,mu-scan, and fixed-Tmu-replica-exchange workflows
gcmc.analysis- MXene ordering, motif, adsorption-site, and SRO analysis utilities
- auxiliary active-learning tools
- committee/SOAP trajectory selection and VASP input preparation
- committee validation with persistent error histories
gcmc/
workflows.py
replica.py
execution_backends.py
alloy_cmc.py
adsorbate_cmc.py
adsorbate_gcmc.py
analysis/
docs/
configuration.md
configuration/
examples/
alloy/
adsorbate/
tools/
active_learning/
scripts/
slurm/
tests/
The recommended entry points are installed YAML-driven commands. In practice, edit the YAML and keep the command unchanged.
Alloy CMC:
gcmc-run-alloy-cmc --config examples/alloy/configs/alloy_cmc.yamlAlloy replica exchange:
gcmc-run-alloy-pt --config examples/alloy/configs/alloy_pt.yamlRay-backed alloy replica exchange:
gcmc-run-alloy-pt --config examples/alloy/configs/alloy_pt_ray.yamlAdsorbate CMC:
gcmc-run-adsorbate-cmc --config examples/adsorbate/configs/adsorbate_cmc.yamlAdsorbate GCMC:
gcmc-run-adsorbate-gcmc --config examples/adsorbate/configs/adsorbate_gcmc.yamlAdsorbate GCMC scan or mu exchange:
gcmc-run-adsorbate-gcmc-scan --config examples/adsorbate/configs/adsorbate_gcmc_scan.yamlActive-learning selection and committee evaluation:
gcmc-active-learning-select --help
gcmc-active-learning-evaluate --helpAdsorption motifs in tagged adsorbate CMC/PT trajectories:
gcmc-analyze-adsorption-motifs --traj <run-directory> --out-dir motif_analysisThese are auxiliary tools rather than part of the core gcmc namespace. See
docs/active_learning.md for their workflow and defaults.
The workflow loaders accept both:
- nested YAML sections:
system,cmc/gcmc/pt,backend,calculator,output - flat legacy YAML for backward compatibility
Use the docs for the actual keyword reference:
docs/configuration.mddocs/configuration/shared.mddocs/configuration/adsorbate.mddocs/configuration/alloy.md
- example layouts:
examples/alloy/README.mdexamples/adsorbate/README.md
- shared Slurm helper for Ray jobs:
scripts/slurm/ray_slurm_common.sh
The workflows expect ASE-compatible calculators.
Repository examples use:
- ASE
LennardJones mace.calculators.MACECalculatorSymmetrix
Symmetrix is not bundled with this repository.
pyproject.toml currently declares version 0.9.0.