stb-molecule¶
Reference Molecule Builder · menu code 4.10 · guide: 4.10 Reference Molecule Builder
usage: stb-molecule [-h] [--name NAME] [--list] [--vacuum VACUUM] [--ml-relax]
[--model {small,medium,large}] [--custom-model PATH]
[--custom-model-card JSON] [--device {cpu,cuda}] [--view]
[-o OUTPUT] [-v] [--no-intro]
Builds a reference molecule from ASE's G2 database.
Places the molecule in a vacuum box, ready as an isolated-molecule
reference (e.g. for stb-cohesive) or a quick starting structure.
options:
-h, --help show this help message and exit
--name NAME Exact (case-sensitive) name from ASE's G2 database, e.g. 'H2O', 'CO2', 'C6H6'. See --list for all names. Required unless --list is given.
--list Print all available molecule names and exit.
--vacuum VACUUM Vacuum padding in Angstrom, added in every direction around the molecule (default: 10.0).
--ml-relax Pre-relax the molecule's geometry with a MACE potential (needs the optional 'ml' extra: pip install stb_suite[ml]) before writing it out. Positions only -- there is no physically meaningful periodic cell to relax for an isolated molecule, so no --ml-relax-cell option exists here. Off by default.
--model {small,medium,large}
MACE-MP-0 foundation model size for --ml-relax (default: medium).
--custom-model PATH Path to a custom fine-tuned .model file for --ml-relax, instead of a MACE-MP-0 foundation size.
--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.
--device {cpu,cuda} Device to run the MACE model on (default: cpu).
--view Open an interactive 3D view (via ASE) comparing the as-built and final molecule (page through frames in ase-gui) after writing the output file. Needs a display. Off by default.
-o OUTPUT, --output OUTPUT
Output .fdf file name (default: molecule.fdf).
-v, --version show program's version number and exit
--no-intro Do not show the introduction
Usage examples:
stb-molecule --name H2O
stb-molecule --name CH3OH --vacuum 12 -o methanol.fdf
stb-molecule --name H2O --ml-relax --view
stb-molecule --list