I was able to calculate the number of contacts at a certain cut off using both NAMD and Gromacs. But I have no idea about calculating it on a certain direction (I want it on -Z direction) from a referenced atom.
Any help will be appreciated.
Thank you