irradiapy.io.bzip2lammpswritermpi module
This module contains the BZIP2LAMMPSWriterMPI class.
- class irradiapy.io.bzip2lammpswritermpi.BZIP2LAMMPSWriterMPI(file_path, mode='wb', encoding=<factory>, comm=<factory>, compresslevel=9, int_format=<factory>, float_format=<factory>, excluded_items=<factory>)[source]
Bases:
MPIExceptionHandlerMixinA class to write data like a LAMMPS dump bzip2 compressed file in parallel using MPI.
Note
Assumed orthogonal simulation box.
Note
All ranks compute their local subdomain of atoms, then rank 0 collects and writes the data.
- Parameters:
file_path (
Path) – Output .bz2 path.mode (
str) – File mode for the container file opened on rank 0 (default: ‘wb’).encoding (
str) – The file encoding.comm (
Comm) – The MPI communicator.compresslevel (
int) – Compression level for bzip2.int_format (
str) – The format for integers.float_format (
str) – The format for floats.excluded_items (
list[str]) – Atom fields to exclude from output.
- comm: Comm