da21b56914701d9596c05cf19076596521d72b3f
[alexxy/gromacs.git] / docs / reference-manual / mean-square-displacement.rst
1 .. _msd:
2
3 Mean Square Displacement
4 ------------------------
5
6 | :ref:`gmx msd <gmx msd>`
7 | To determine the self diffusion
8   coefficient :math:`D_A` of
9   particles of type :math:`A`, one can use the Einstein
10   relation :ref:`108 <refAllen87>`:
11
12   .. math::
13
14      \lim_{t \rightarrow \infty} \langle
15      \|{\bf r}_i(t) - {\bf r}_i(0)\|^2 \rangle_{i \in A} ~=~ 6 D_A t
16
17 | This *mean square displacement* and :math:`D_A` are calculated by the
18   program :ref:`gmx msd <gmx msd>`. Normally
19   an index file containing atom numbers is used and the MSD is averaged
20   over these atoms. For molecules consisting of more than one atom,
21   :math:`{\bf r}_i` can be taken as the center of mass positions of the
22   molecules. In that case, you should use an index file with molecule
23   numbers. The results will be nearly identical to averaging over atoms,
24   however. The :ref:`gmx msd <gmx msd>` program can also be used for
25   calculating diffusion in one or two dimensions. This is useful for
26   studying lateral diffusion on interfaces.
27
28 An example of the mean square displacement of SPC water is given in
29 :numref:`Fig. %s <fig-msdwater>`.
30
31 .. _fig-msdwater:
32
33 .. figure:: plots/msdwater.*
34     :width: 8.00000cm
35
36     Mean Square Displacement of SPC-water.
37
38