Modelling and control of systems with flow door