Configuration
AmorphGen uses a nested dictionary for pipeline configuration. Default values are defined in default_config.py and can be overridden at runtime via CLI flags, YAML config files, or Python API.
Default configuration
amorphgen.configs.default_config
Central configuration for the melt-and-quench pipeline.
Override any value by passing cfg_override to
MeltQuenchPipeline or to
individual stage functions.
Configuration keys
Section |
Key |
Default |
Description |
|---|---|---|---|
top-level |
|
|
MLIP model name |
top-level |
|
|
Compute device ( |
top-level |
|
|
Precision ( |
|
|
|
Force convergence (eV/A) |
|
|
|
Max optimisation steps |
|
|
|
Cell filter: FrechetCellFilter, UnitCellFilter, ExpCellFilter, StrainFilter, cubic, none |
|
|
|
Start temperature (K) |
|
|
|
Melt temperature (K) |
|
|
|
Temperature step per segment (K) |
|
|
|
Heating rate (K/ps), auto-calculates steps_per_T |
|
|
|
MD steps per temperature step |
|
|
|
MD timestep (fs) |
|
|
|
Pre-melt equilibration T (K) |
|
|
|
Pre-melt equilibration steps (50 ps) |
|
|
|
High-T equilibration T (K) |
|
|
|
High-T equilibration steps (10 ps) |
|
|
|
Quench start T (K) |
|
|
|
Quench end T (K) |
|
|
|
Temperature step (K, negative for cooling) |
|
|
|
MD steps per temperature step |
|
|
|
Cooling rate (K/ps), auto-calculates steps_per_T |
|
|
|
Low-T equilibration T (K) |
|
|
|
Low-T equilibration steps (10 ps) |
Configuration precedence
CLI arguments > YAML config (--config) > DEFAULT_CONFIG
Override examples
Python API
from amorphgen import MeltQuenchPipeline
pipe = MeltQuenchPipeline(
input_file="POSCAR",
work_dir="my_run",
cfg_override={
"model": "mace-mpa-0",
"device": "cuda",
"opt": {"fmax": 0.05, "cell_filter": "none"},
"eq_high": {"T": 3000, "steps": 200000, "timestep": 0.5},
"quench": {"rate": 100, "timestep": 0.5},
},
)
atoms = pipe.run(stages=[1, 4, 5, 6, 7], resume=True)
YAML config
model: mace-mpa-0
device: cuda
opt:
fmax: 0.05
cell_filter: none
eq_high:
ensemble: NVT
T: 3000
steps: 200000
timestep: 0.5
quench:
ensemble: NVT
T_start: 3000
T_end: 300
T_step: -100
rate: 100
timestep: 0.5