ScaledMDMaker#
- class autoplex.data.md.flows.ScaledMDMaker(name='ML-driven_MD', md_engine='ase', md_maker=None, temperature_list=<factory>, eqm_step_list=None, rate_list=None, ramp_step_list=None, volume_custom_scale_factors=None, supercell_matrix=None)[source]#
Bases:
MakerMaker to run the same MD on many cells, with an optional temperature profile.
The MD itself is run by the MD maker of the chosen engine. With
md_engine="ase"this is atomate2’s ForceFieldMDMaker (ASE MD with a machine-learned force field), see materialsproject/atomate2 Other engines are not implemented yet.Before the MD, every input structure can be turned into a supercell and into volume-scaled copies; one MD is run per resulting cell. The MD can follow any combination of quenching (cooling) and heating stages, such as:
isothermal equilibration
multi-stage quench (e.g., 3000 -> 1500 -> 300 K)
annealing or cyclic heating-cooling loops
- Parameters:
name (str) – Job name.
md_engine (str) – MD engine. Only “ase” (atomate2’s ForceFieldMDMaker) is implemented.
md_maker (ForceFieldMDMaker) – atomate2 MD maker with all MD settings (force field, ensemble, dynamics, time step, …). It is copied for every run and never modified. If its traj_file is None, “MD.traj” is used.
temperature_list (list[float]) – Stage temperatures of a multi-stage quench or anneal profile. If empty, md_maker’s own temperature and n_steps are used unchanged.
eqm_step_list (list[int] | None, optional) – Number of MD steps to hold each temperature (one entry per temperature). If None, every stage is held for md_maker.n_steps steps.
rate_list (list[float] | None, optional) – MD steps per kelvin for each ramp between stages (one entry per ramp, i.e. len(temperature_list) - 1). A rate of 0 jumps to the next temperature. None, [], or only zeros run without any ramps. With a 1 fs time step, rate=10 -> 10^14 K/s and rate=100 -> 10^13 K/s.
ramp_step_list (list[int] | None, optional) – MD steps for each ramp (one entry per ramp), like in LAMMPS; 0 jumps to the next temperature. Alternative to rate_list, used instead of it if both are given.
volume_custom_scale_factors (list[float] | None) – Volume scale factors applied to every structure, e.g. [0.95, 1.05] gives two MD runs per structure (-5 % and +5 % volume).
supercell_matrix (Matrix3D | None) – Matrix for obtaining the supercell, e.g.
[[2, 0, 0], [0, 2, 0], [0, 0, 2]]for a 2x2x2 supercell.
- make(structure)[source]#
Run one MD per structure (after supercell and volume scaling).
- Parameters:
structure (Structure | list[Structure]) – Pymatgen structure or a list of structures.
- Returns:
Replaces this job by the MD jobs. Its output is the list of trajectory file paths, one per MD run.
- Return type:
Response