irradiapy.io.lammpsreader module
This module contains the LAMMPSReader class.
- class irradiapy.io.lammpsreader.LAMMPSReader(file_path, encoding='utf-8')[source]
Bases:
objectA class to read data from a LAMMPS dump file.
Note
Assumed orthogonal simulation box.
- Variables:
file_path (Path) – The path to the LAMMPS dump file.
encoding (str, optional (default="utf-8")) – The file encoding.
- Yields:
dict[str, Any] – A dictionary containing the timestep data with keys: ‘time’ (optional), ‘timestep’, ‘boundary’, ‘xlo’, ‘xhi’, ‘ylo’, ‘yhi’, ‘zlo’, ‘zhi’, and ‘atoms’ (as a numpy structured array).