code for potential flow solvers