stb-amorphize¶
Amorphous Structure Generator · menu code 4.11 · guide: 4.11 Amorphous Structure Generator
usage: stb-amorphize [-h] -f FILENAME [--melt-temp MELT_TEMP]
[--melt-steps MELT_STEPS] [--quench-temp QUENCH_TEMP]
[--quench-steps QUENCH_STEPS] [--timestep TIMESTEP] [--taut TAUT]
[--taup TAUP] [--compressibility COMPRESSIBILITY]
[--model {small,medium,large}] [--custom-model PATH]
[--custom-model-card JSON] [--device {cpu,cuda}] [--seed SEED]
[--no-final-relax] [--stride STRIDE] [--save-data] [--save-traj]
[--traj-format {pdb,xsf,xyz}] [-sp SYMPREC] [--view] [-o OUTPUT]
[-v] [--no-intro]
Melt-quench amorphous structure generator using the MACE-MP-0 potential.
Heats a crystalline structure above its melting point long enough to erase
crystalline memory, then cools it back down -- a fast heuristic starting
guess for an amorphous/glassy structure, meant to give SIESTA a much better
starting point than an ad-hoc random-displacement structure. NOT a
substitute for a slower, production-quality quench (more steps, slower
cooling) or DFT verification.
Bulk (3D periodic) structures only -- melting a vacuum-padded slab/wire/
molecule is physically meaningless. The input is rejected outright if any
vacuum-padded axis is detected.
options:
-h, --help show this help message and exit
-f FILENAME, --file FILENAME
Path to the input crystalline structure file (.fdf), typically a supercell (e.g. from stb-supercell). Must be bulk (3D periodic, no vacuum-padded axis).
--melt-temp MELT_TEMP
Melt temperature in K (default: 3000.0).
--melt-steps MELT_STEPS
MD steps held at --melt-temp (default: 500).
--quench-temp QUENCH_TEMP
Final target temperature in K (default: 300.0).
--quench-steps QUENCH_STEPS
MD steps for a linear cooling ramp from --melt-temp to --quench-temp (default: 1000).
--timestep TIMESTEP MD timestep in fs (default: 1.0).
--taut TAUT Berendsen temperature-coupling time constant, fs (default: 50.0).
--taup TAUP Berendsen pressure-coupling time constant, fs (default: 200.0).
--compressibility COMPRESSIBILITY
Compressibility in 1/bar for the Berendsen barostat (default: 4.57e-5, water's value -- a generic placeholder; override with your material's real compressibility if known, 1/(B[GPa] x 1e4) -- e.g. Si, B ~ 98 GPa: 1e-6).
--model {small,medium,large}
MACE-MP-0 model size: speed/accuracy tradeoff (default: medium).
--custom-model PATH Path to a custom fine-tuned .model file, 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 model on (default: cpu).
--seed SEED Seed for the initial Maxwell-Boltzmann velocities (default: not reproducible).
--no-final-relax Skip the final static (position+cell) relax. On by default: the MD quench alone leaves real residual thermal energy, not a clean local minimum.
--stride STRIDE Sample one diagnostics point / trajectory frame every Nth MD step, across both the melt and quench stages (default: 10). Only used if --save-data and/or --save-traj is given.
--save-data Write <stem>_md_diagnostics.dat + a companion .gplot (step, temperature, E_pot/E_kin/E_total, volume) for the whole melt-quench process, plottable with gnuplot. Off by default.
--save-traj Write a multi-frame trajectory of the melt-quench MD (see --traj-format) for viewing in OVITO/VMD. Off by default.
--traj-format {pdb,xsf,xyz}
Trajectory format for --save-traj (default: xsf). Same 3 choices as stb-ani2traj/stb-mlmd.
-sp SYMPREC, --symprec SYMPREC
Symmetry tolerance in Angstroms for the before/after symmetry analysis (default: 0.01).
--view Open an interactive 3D view (via ASE) comparing the input crystalline structure and the final amorphized structure (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: amorphous.fdf).
-v, --version show program's version number and exit
--no-intro Do not show the introduction
Usage examples:
stb-amorphize -f bulk_supercell.fdf
stb-amorphize -f bulk_supercell.fdf --melt-temp 4000 --quench-steps 2000
stb-amorphize -f bulk_supercell.fdf --view
stb-amorphize -f bulk_supercell.fdf --save-data --save-traj --traj-format xsf
Notes:
- Bulk (3D periodic) structures only -- see the description above.