Modelling the common envelope phase in classical novae