Simulation of microfluid systems