Towards a new modelling of gas flows in a semi-analytical model of galaxy formation and evolution