Simulation of complex free surface flows