Real time fluid simulation and control using the Navier-Stokes equations MSc thesis (2012)