atomistics.calculators.lammps.helpers.lammps_calc_md_step#
- atomistics.calculators.lammps.helpers.lammps_calc_md_step(lmp_instance: LammpsASELibrary, run_str: str, run: int, output_keys: Iterable[str] = ('positions', 'cell', 'forces', 'temperature', 'energy_pot', 'energy_tot', 'pressure', 'velocities', 'volume')) dict[source]#
Execute a single MD run segment and collect output quantities.
Renders
run_strwith the givenruncount, sends it to the LAMMPS instance, and queries the instance for all requested output quantities.- Parameters:
lmp_instance (LammpsASELibrary) – An active LAMMPS library instance.
run_str (str) – Jinja2 template string for the LAMMPS
runcommand (receivesrun).run (int) – Number of timesteps to advance in this segment.
output_keys (Iterable[str]) – Names of the output quantities to collect.
- Returns:
Collected output quantities for this MD segment keyed by quantity name.
- Return type:
dict