irradiapy.io.lammpswriter module
This module contains the LAMMPSWriter class.
- class irradiapy.io.lammpswriter.LAMMPSWriter(file_path, mode='w', encoding=<factory>, newline=<factory>, int_format=<factory>, float_format=<factory>, excluded_items=<factory>)[source]
Bases:
objectA class to write data like a LAMMPS dump file.
Note
Assumed orthogonal simulation box.
- Variables:
file_path (Path) – The path to the LAMMPS dump file.
mode (str, optional (default="w")) – The file open mode.
encoding (str, optional (default=irradiapy.config.ENCODING)) – The file encoding.
newline (str, optional (default=irradiapy.config.NEWLINE)) – The newline character for the file.
int_format (str, optional (default=irradiapy.config.INT_FORMAT)) – The format for integers.
float_format (str, optional (default=irradiapy.config.FLOAT_FORMAT)) – The format for floats.
excluded_items (list[str], optional (default=irradiapy.config.EXCLUDED_ITEMS)) – Atom fields to exclude from output.