Forum Navigation
You need to log in to create posts and topics.

average displacement

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.

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

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

Hi Constanze

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