I want to model a heating system in an industrial hall. The system consists of: a heating plant, a pump, 2 pipes (each pipe is 500meters long) and a machine tool. The required heat for the machine-tool is given. I assume the heating plant and the pump as ideal (input to the pump = mass flow). The return-temperature from the plant is also constant. In a first test I want to set the delay of the pipe to a constant time (not depending on the mass flow).
The goal is to write this system as set of differential and algebraic equations with the inputs "Tin and mass flow". My question: Is this even a system of differential-equations? How could I include the delay of the pipe into the equations? Is there (in a next step) a simple equation for the pipe to catch the following behavior: If there is a change on the Temperature at the inlet, the outlet-temperature should change as a function of: geometry of the pipe and mass flow.
Thank you very much for your help.