sportran.i_o.read_lammps_dump

Functions

file_length(filename)

get_natoms(filename)

get_volume(filename)

is_string(string)

is_vector_variable(string)

Classes

LAMMPS_Dump(*args, **kwargs)

A LAMMPS_Dump file that can be read in blocks. example: traj = LAMMPS_Dump(filename, preload=False) -->> do not preload list of steps (suggested if the file is big) traj.read_timesteps(10, start_step=0, select_ckeys=['id,xu,yu,vu']) -->> Read first 10 timesteps, only the specified columns traj.read_timesteps(10, select_ckeys=['id,xu,yu,vu']) -->> Read the next 10 timesteps, only the specified columns (DELTA_TIMESTEP is assumed) traj.read_timesteps((10,30)) -->> Read from TIMESTEP 10 to 30 traj.read_timesteps((10,30,2)) -->> Read every 2 steps from TIMESTEP 10 to 30 print(traj.data).

sportran.i_o.read_lammps_dump.file_length(filename)
sportran.i_o.read_lammps_dump.get_natoms(filename)
sportran.i_o.read_lammps_dump.get_volume(filename)
sportran.i_o.read_lammps_dump.is_string(string)
sportran.i_o.read_lammps_dump.is_vector_variable(string)