Question about force on a atom

Dear all,

I write a script to output the force on each atoms of my system. The script has been shown below:

g.png

The output is the total force of an atom. That is to say, I have got Fi. How can I get Fij (the force between each two atoms)?

Thanks.

Yours

CHENG Xu