I have simulated a lipid bilayer. The trajectory has about 20000 frames. Each frame contains 128 lipids where 64 lipids reside in the upper layer and the rest in the lower layer. I want to calculate an average vector representing all the head-groups of the lipid in only on the upper layer. Something like P-N vector in DPPC molecule.

My doubt is in calculating the average vector in only one frame. I can calculate the P-N vector for each lipid in upper layer from one frame. For these vectors I want to get an average vector.

How I shall go about this?

I have tried to add each component of the vectors and divide with the total number of lipids in one layer (64). Like sum up all the 64 Vx, Vy, and Vz and divide with 64. But this way misleading from what I want.

Is there any rational way to get the average vector?

I have thought about using unit vector. But I am not so sure if this would give the average vector either.

I hope to get some help to this simple conceptual question.

Many thanks in advance.

Regards

More Vijay Manickam Achari's questions See All
Similar questions and discussions