New pipe model with temperature plug flow

Start of a pipe model with temperature plug flow. Already works with pressure losses but hard to account temperature losses.