Simulating separation processes by separation function