NS code for solving flow problems