Flow in pipe simulation