Mathematical modelling of the overflowing cylinder experiment