stb-mladsorb¶
ML Adsorption-Site Screening · menu code 7.6 · guide: 7.6 ML Adsorption-Site Screening
usage: stb-mladsorb [-h] --slab SLAB --adsorbate ADSORBATE
[--model {small,medium,large}] [--custom-model PATH]
[--custom-model-card JSON] [--skip-foundation-comparison]
[--mlff-workflow JSON] [--no-committee]
[--committee-models PATH [PATH ...]]
[--site-type {all,ontop,bridge,hollow}] [--height HEIGHT]
[--start-heights H [H ...]] [--height-sweep MIN MAX STEP]
[--relax-depth ANG] [--bulk-reference FDF [FDF ...]]
[--temperature TEMPERATURE] [--n-orientations N_ORIENTATIONS]
[--seed SEED] [--symprec SYMPREC] [--vacuum-gap VACUUM_GAP]
[--vacuum-box VACUUM_BOX] [--fmax FMAX] [--max-steps MAX_STEPS]
[--top-k TOP_K] [--device {cpu,cuda}] [-o OUTPUT_DIR] [--show]
[--save-data] [--save-gnuplot] [--save-xyz] [--no-intro] [-v]
Adsorption-site screening driven entirely by a MACE potential -- the MACE-MP-0 foundation model, or a model fine-tuned on your own SIESTA data with the 7.1 workflow (--custom-model, always with its model card). Finds the candidate ontop/bridge/hollow sites of the slab (symmetry-reduced, each described by the atom below it), relaxes the adsorbate on each (and the top layers of the slab with --relax-depth), reports where each run ENDED (a bridge start that slides into a hollow is a hollow), groups the runs into distinct minima with their multiplicity and Boltzmann population, and the adsorption energy relative to the isolated adsorbate and, with --bulk-reference, to the elements' bulk, and how far the other minima are from the most stable one (the input of a diffusion barrier with stb-mlneb, 7.5). Optional: binding curves at fixed height, the committee's spread on every minimum and the same screening with the foundation model. Every structure is checked against the model card's trained range; all warnings in the last section. No SIESTA input is written; for the DFT pipeline use stb-adsorb (5.8).
options:
-h, --help show this help message and exit
--slab SLAB Slab/2D-material structure (.fdf), vacuum along one axis.
--adsorbate ADSORBATE
Adsorbate(s): an ASE G2 molecule name (e.g. 'H2O') or an element symbol, comma-separated for several (e.g. 'H,O').
--model {small,medium,large}
MACE-MP-0 model size (default: medium). With --custom-model, the foundation model of the comparison.
--custom-model PATH A custom MACE model file instead of the MACE-MP-0 foundation potential -- e.g. one fine-tuned via stb-mlffAnalysis. Overrides --model.
--custom-model-card JSON
Model card of the --custom-model file: the mlff_model_card.json that stb-mlffAnalysis wrote next to it (training data, level of theory, accuracy, energy scale). Required with --custom-model -- the card is checked against the model file and used to warn when a structure is outside what the model was trained on.
--skip-foundation-comparison
With --custom-model, do not repeat the screening with the foundation model (--model). The comparison is on by default: it shows whether the fine-tuning changed the site ranking.
--mlff-workflow JSON The mlff_workflow.json of the 7.1 run that trained --custom-model: locates its committee.
--no-committee Do not evaluate the committee of the custom model on the minima. On by default when the card records a committee whose model files are found (next to the card's run folder, or in --mlff-workflow's).
--committee-models PATH [PATH ...]
The committee's model files explicitly (each with its mlff_model_card.json next to it).
--site-type {all,ontop,bridge,hollow}
Which candidate site type(s) to screen (default: all).
--height HEIGHT Starting distance of the adsorbate from the surface, Ang -- pymatgen's AdsorbateSiteFinder definition (default: 2.0).
--start-heights H [H ...]
Several starting distances (each one a run per site), e.g. 1.5 2.0 2.5: a relaxation can end in a different minimum depending on where it starts. Default: --height only.
--height-sweep MIN MAX STEP
Binding curve per site: the adsorbate's lowest atom held at each height (the rest relaxes), E_ads(h) and its minimum. On top of the free relaxations.
--relax-depth ANG Substrate atoms within this depth (Ang) of the top surface relax -- in the clean slab first, then with the adsorbate; deeper atoms stay fixed (default: 0 = the substrate is fixed as given and only the adsorbate moves). A slab cut from the bulk is not at the model's minimum: use the top layers (3-5 Ang).
--bulk-reference FDF [FDF ...]
Bulk structure(s) of the adsorbate's element(s), one element per file: mu = E/N after relaxing positions and cell with the model, and E_form = E(slab+ads) - E(slab) - sum mu is reported next to E_ads.
--temperature TEMPERATURE
Temperature of the site populations, K (default: 300).
--n-orientations N_ORIENTATIONS
For a multi-atom adsorbate, screen this many random orientations per site by a single-point energy and relax the best (default: 1 = the G2 orientation). No effect on a single atom.
--seed SEED Random seed of --n-orientations (default: unseeded).
--symprec SYMPREC Symmetry tolerance of the site reduction (default: 0.01).
--vacuum-gap VACUUM_GAP
Gap (Ang) that identifies the slab's vacuum axis (default: 10.0).
--vacuum-box VACUUM_BOX
Cubic box (Ang) of the isolated-adsorbate reference (default: 20.0).
--fmax FMAX Force convergence of every relaxation and of the NEB, eV/Ang (default: 0.05).
--max-steps MAX_STEPS
Optimizer steps per relaxation (default: 300).
--top-k TOP_K Write only the N most stable minima as .fdf (default: all minima).
--device {cpu,cuda} Device of the model (default: cpu).
-o OUTPUT_DIR, --output-dir OUTPUT_DIR
Output directory (default: mladsorb_out).
--show Open the figure on screen at the end (needs a display). mladsorb.png is written either way.
--save-data Write the tables as .dat: every relaxation (mladsorb_configs.dat), the minima (mladsorb_minima.dat, with the committee spread) and the binding curves. Off by default.
--save-gnuplot Write .dat + .gplot into <output-dir>/plot/ (top view, site energies, binding curve) and run gnuplot there when it is installed. Off by default.
--save-xyz Write extended XYZ files: every relaxed run (mladsorb_runs.xyz), the minima (mladsorb_minima.xyz), the clean slab and the binding curves -- energy, forces, fixed atoms, per-atom 'adsorbate' and 'layer', and the run's data in each frame's comment line. Off by default.
--no-intro Do not show the introduction
-v, --version show program's version number and exit
Example usage:
stb-mladsorb --slab slab.fdf --adsorbate H
stb-mladsorb --slab slab.fdf --adsorbate O,H --site-type hollow --relax-depth 3
stb-mladsorb --slab si111.fdf --adsorbate Si --relax-depth 4 --bulk-reference si_bulk.fdf --custom-model best_model/mlff_model_compiled.model --custom-model-card best_model/mlff_model_card.json --device cuda --show --save-data --save-gnuplot --save-xyz
stb-mladsorb --slab slab.fdf --adsorbate H2O --n-orientations 8 --seed 1