# average displacement

Quote from Mohammad Zahidul Khan on July 21, 2020, 8:24 pmDear Sir

I want to calculate the average displacement of Total number of atoms N. The equation is average displacement = ((dx^2(i)+dy^2(i)+dz^2(i))^0.5)/N.

where dx, dy, and dz change in atomic position.

Dear Sir

I want to calculate the average displacement of Total number of atoms N. The equation is average displacement = ((dx^2(i)+dy^2(i)+dz^2(i))^0.5)/N.

where dx, dy, and dz change in atomic position.

Quote from Mohammad Zahidul Khan on July 21, 2020, 11:45 pmSorry for asking this question. I think this is same as mean square displacement (msd).

Sorry for asking this question. I think this is same as mean square displacement (msd).

Quote from Constanze Kalcher on July 22, 2020, 11:42 amHi,

you might find this code example helpful, which explains how to write a user-defined modifier function for calculating the mean square displacement (MSD).

https://www.ovito.org/docs/current/python/introduction/examples/modifiers/msd_calculation.php

-Constanze

Hi,

you might find this code example helpful, which explains how to write a user-defined modifier function for calculating the mean square displacement (MSD).

https://www.ovito.org/docs/current/python/introduction/examples/modifiers/msd_calculation.php

-Constanze

Quote from Mohammad Zahidul Khan on July 22, 2020, 6:59 pmHi Constanze

Thank you very much for your reply. Yes, I am already using that code. It is really helpful for me.

Hi Constanze

Thank you very much for your reply. Yes, I am already using that code. It is really helpful for me.