i think you can use software " pipe flow expert " for solving this problem.