atomsk --unfold <file> [<prefix>] <formats> [options]
In this mode, Atomsk will read one file containing several configurations (or snapshots), and output each configuration into a separate file.
The input formats supported in this mode are:
Each snapshot can be output to one or several <formats>.
If you use this mode with one or several options, then these options will be applied to each snapshot.
For the opposite operation (gather several snapshots into a single file), see the mode --gather
.
atomsk --unfold dump.lmc cfg
This will read the LAMMPS dump file dump.lmc
and output each snapshot to CFG format: dump1.cfg
, dump2.cfg
, etc.
atomsk --unfold myfile.xyz xsf
This will read myfile.xyz
and output each snapshot to XSF format: myfile1.xsf
, myfile2.xsf
, etc.
atomsk --unfold scf.out -unit B A xsf
This will read the Quantum Espresso PWscf output file scf.out
, convert the unit of cell vectors and atom coordinates from Bohrs to Angströms, and output each snapshot to the XSF format: scf1.xsf
, scf2.xsf
, etc.
atomsk --unfold HISTORY xsf cfg
This will read the DL_POLY file HISTORY
, and output each snapshot to XSF and CFG formats: HISTORY1.xsf
and HISTORY1.cfg
, HISTORY2.xsf
and HISTORY2.cfg
, etc.
atomsk --unfold myfile.xsf new_ xsf cfg
This example uses a prefix ("new_"). It will read the "animated XSF" file myfile.xsf
and output each snapshot to the XSF and CFG formats: new_1.xsf
and new_1.cfg
, new_2.xsf
and new_2.cfg
, etc..