msd.out

This file contains the mean-square displacement (MSD) and self diffusion coefficient (SDC). It is generated when invoking the compute_msd keyword.

File format

Each run appends a block beginning with comment lines marked by #. These record the command parameters, format version, atom and group counts, atom counts per group, initial cell vectors, sampling time interval, and column labels. The header is followed by Nc data rows. Intermediate files named msd_step[step].out, produced with save_every, use the same format.

The data columns are organized as follows:

  • column 1: correlation time (in units of ps)

  • column 2: MSD (in units of Å2) in the \(x\) direction

  • column 3: MSD (in units of Å2) in the \(y\) direction

  • column 4: MSD (in units of Å2) in the \(z\) direction

  • column 5: SDC (in units of Å2/ps) in the \(x\) direction

  • column 6: SDC (in units of Å2/ps) in the \(y\) direction

  • column 7: SDC (in units of Å2/ps) in the \(z\) direction

For a constant MD time step \(\Delta t\), the correlation times are \(0, s\Delta t, \ldots, (N_c-1)s\Delta t\), where \(s\) is sample_interval. Without a grouping option, the output covers all atoms; with group, it covers only the selected group.

With all_groups, one set of six MSD and SDC columns is written for each group in ascending group-index order, starting from group 0, with a shared time column. For example, in a system with three groups, a total of 19 columns will be written. The first column is the time, columns 2-7 are the MSD and SDC for group 0, columns 8-13 for group 1, and columns 14-19 for group 2.