Interaction of hydrogen bond acceptor O and hydrogen bond donor, D. Unit vector
n⃗ is the vector from atom O to atom H. Unit vectors
e⃗1 and
e⃗2 are placed from atom O along each lone pair of electrons. Unit vector
e⃗0 connects the hydrogen bond donor D to the hydrogen atom.

is the angle between the D-H bond and the H…O vector and

is the angle between the O-lone pair and the O…H vector.