Modelling the phase behaviour of a fluid within a pore