# What is meant by "reference points" in an MSD calculation?

**URL:** <https://gromacs.bioexcel.eu/t/what-is-meant-by-reference-points-in-an-msd-calculation/1037>\
**Category:** User discussions\
**Created:** [November 2, 2020, 9:27pm UTC](https://gromacs.bioexcel.eu/t/what-is-meant-by-reference-points-in-an-msd-calculation/1037 "2020-11-02T21:27:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tfjermestad](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@tfjermestad](https://gromacs.bioexcel.eu/u/tfjermestad)\
**Post date:** [November 2, 2020, 9:27pm UTC](https://gromacs.bioexcel.eu/t/what-is-meant-by-reference-points-in-an-msd-calculation/1037/1 "2020-11-02T21:27:27Z")

</div>

GROMACS version:2020.3  
GROMACS modification: No

I would like to compute the diffusivity of methanol in a zeolite using the gmx msd command, but I am confused about the concept of “reference points”

In the first paragraph of the description of the command ([http://manual.gromacs.org/documentation/current/onlinehelp/gmx-msd.html#gmx-msd](http://manual.gromacs.org/documentation/current/onlinehelp/gmx-msd.html#gmx-msd)), it says: "

> The time between the reference points for the MSD calculation is set with `-trestart`

."

**What are these “reference points”?**

Furthermore, it says:

> The diffusion constant is calculated by least squares fitting a straight line (D\*t + c) through the MSD(t) from `-beginfit` to `-endfit` (note that t is time from the reference positions, not simulation time)

Before I read this, I thought that t was the simulation time, but clearly it is not. However, I don’t understand what it is because I don’t get the concept of “reference points/positions” :(

In the penultimate paragraph of the Description section, it says:

> The diffusion coefficient is determined by linear regression of the MSD, where, unlike for the normal output of D, the times are weighted according to the number of reference points, i.e. short times have a higher weight.

I am not able to understand this sentence, because I don’t get the concept of “reference points”  
Furthermore, it says that the “diffusion coefficient” is different from “the normal output of D”.  
What is “normal output of D”? Where can I find it?

Thanks for your help.  
I think that once I understand the concept of “reference points”, I will be able to make some progress.

---

<div class="post-metadata">

**Author:** ![cintia.vequi](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/cintia.vequi/32/374_2.png) [@cintia.vequi](https://gromacs.bioexcel.eu/u/cintia.vequi)\
**Post date:** [November 3, 2020, 2:45pm UTC](https://gromacs.bioexcel.eu/t/what-is-meant-by-reference-points-in-an-msd-calculation/1037/2 "2020-11-03T14:45:41Z")

</div>

I also have the same question. I am doing some calculation with a large number of frames and changing the dt between frames and the trestart changes a lot.  
And I think I have reached the maximum value allowed for it…  
But since I also do not understand the concept of “reference points”, it is very difficult to evaluate what is going on.

I will also wait for the reply to this question.  
Thank you for formulating it.

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [November 3, 2020, 2:58pm UTC](https://gromacs.bioexcel.eu/t/what-is-meant-by-reference-points-in-an-msd-calculation/1037/3 "2020-11-03T14:58:19Z")

</div>

For a detailed explanation of how this program works, please see [https://mailman-1.sys.kth.se/pipermail/gromacs.org\_gmx-users/2010-July/052512.html](https://mailman-1.sys.kth.se/pipermail/gromacs.org_gmx-users/2010-July/052512.html)

---

<div class="post-metadata">

**Author:** ![cintia.vequi](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/cintia.vequi/32/374_2.png) [@cintia.vequi](https://gromacs.bioexcel.eu/u/cintia.vequi)\
**Post date:** [November 3, 2020, 3:58pm UTC](https://gromacs.bioexcel.eu/t/what-is-meant-by-reference-points-in-an-msd-calculation/1037/4 "2020-11-03T15:58:34Z")

</div>

Thank you so much for the reference.  
If I do not set up a trestart, what is the default for gmx msd?

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [November 3, 2020, 4:09pm UTC](https://gromacs.bioexcel.eu/t/what-is-meant-by-reference-points-in-an-msd-calculation/1037/5 "2020-11-03T16:09:24Z")

</div>

Check the help info :)

---

<div class="post-metadata">

**Author:** ![tfjermestad](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@tfjermestad](https://gromacs.bioexcel.eu/u/tfjermestad)\
**Post date:** [November 5, 2020, 11:56am UTC](https://gromacs.bioexcel.eu/t/what-is-meant-by-reference-points-in-an-msd-calculation/1037/6 "2020-11-05T11:56:40Z")

</div>

Thanks for the information :)  
I found a very clear explanation of the concept in the methodology section of this paper:

J. Phys. Chem. C 2015, 119, 23721−23734
