SMS dit: Stochastic modelling of membrane filtration