 The 11-component of stress on that interface is the sum of all pairwise forces between atoms on the two sides.The volume averaged virial stress is then the ensemble average of the instantaneous volume averaged virial stress.In a three dimensional, isotropic system, at equilibrium the "instantaneous" atomic pressure is usually defined as the average over the diagonals of the negative stress tensor