aiida_lammps.parsers.parse_raw.trajectory
#
Set of functions to parse the LAMMPS dump output.
Module Contents#
Functions#
|
Parse the lines containing the time step information |
|
Parse a given trajectory step |
|
Parse a LAMMPS Trajectory file, yielding data for each time step. |
|
Generate a structure from the atomic positions at a given step. |
Attributes#
- aiida_lammps.parsers.parse_raw.trajectory._iter_step_lines(file_obj)[source]#
Parse the lines containing the time step information
- aiida_lammps.parsers.parse_raw.trajectory.parse_step(lines, initial_line=0) collections.namedtuple [source]#
Parse a given trajectory step
- Parameters:
- Raises:
- Returns:
[description]
- Return type:
namedtuple
- aiida_lammps.parsers.parse_raw.trajectory.iter_trajectories(file_obj)[source]#
Parse a LAMMPS Trajectory file, yielding data for each time step.
- aiida_lammps.parsers.parse_raw.trajectory.create_structure(trajectory_block: collections.namedtuple, symbol_field: str = 'element', position_fields: tuple = ('x', 'y', 'z'), original_structure: aiida.orm.StructureData = None) aiida.orm.StructureData [source]#
Generate a structure from the atomic positions at a given step.
- Parameters:
trajectory_block (namedtuple) – block with the trajectory information
symbol_field (str, optional) – field name where the element symbols are found, defaults to ‘element’
position_fields (tuple, optional) – name of the files where the positions are found, defaults to (‘x’, ‘y’, ‘z’)
original_structure (orm.StructureData, optional) – original structure of the calculation, defaults to None
- Raises:
ValueError – if the symbols of the structure and of the trajectory info differ
NotImplementedError – If the boundary conditions are not periodic or free
- Returns:
structure of the current time step
- Return type:
orm.StructureData