calculating angles between three points and distribution of them

Skip to first unread message

roja rahmani

Jun 10, 2022, 12:31:05 PMJun 10
to MDnalysis discussion

I have a nanoparticle and I would like to calculate the distribution of water orientations around nanoparticle. There are two types of angles:

1---  I want to claculate the angle consisting 3 points : first one is the center of mass of nanoparticle second one is the oxygen atom of water molecule and third is H atom of water.
So I need to claculate this angle for all water molecules in the box (or at least to the last spherical shell) and then get the distribution of angles.

2-- this time instead of considering H atom as one point I'd like to calculate the angle between dipole vector of molecule and another vector(one point is again center of mass of nanoparticle another one is oxygen atom). and again get the distribution of this angle as well.

I have looked up for angle module MDAnalysis.analysis.bat module but I don't know exactly it works for what I want or not. And how does it work when you have long trajectories? because I couldn't do some analysis and the kernel crashed probably because of long trajectory in jupyter notebook.

I would be appreciated if you have any solution.


Hugo Macdermott-Opeskin

Jul 23, 2022, 1:49:02 AMJul 23
to MDnalysis discussion
Hi Roja, 

Hopefully this tutorial will help : In it a variety of angles are calculated. To get the distributions you can get the timeseries of the angles and plot a histogram.



Reply all
Reply to author
0 new messages