Numerical water tunnel in two and three dimensions