Modelling and control of systems with flow by