Pipe flow simulation