WWW Site - Documentation - Tools

xyz tool


Convert LAMMPS snapshots to XYZ format.


The xyz tool converts atom snapshots in a LAMMPS dump or data file to the XYZ format used by various visualization packages.

The xyz constructor takes an object that stores atom snapshots (dump, data) as its first argument. The atom snapshots must have "id", "type", "x", "y", and "z" defined; see the map() methods of those tools.

The one(), many(), and single() methods convert specific snapshots to the XYZ format and write them out. Optionally, a file prefix for the XYZ output files can also be specified. A ".xyz" suffix will be appended to all output files.


x = xyz(d)		d = object containing atom coords (dump, data)                 write all snapshots to"new")            write all snapshots to
x.many()                write snapshots to,, etc
x.many("new")           write snapshots to,, etc
x.single(N)             write snapshot for timestep N to 
x.single(N,"file")      write snapshot for timestep N to  

Related tools:

cfg, data, dump, ensight, vtk

Prerequisites: none