Modelling the interaction of water and nitrogen