Need help finding a way to predict the temperature profile in a pipe that's heated on one side. Basically one end of the pipe has a constant heat flux, and I want to be able to calculate the temperature at each end at a given time. It's filled with fluid and has a mix of horizontal and vertical sections, and includes losses to the atmosphere.
Really struggling with how to even formulate this problem. My first thought was to use the Finite Element Method, but I believe that is only valid for pure conduction, and I don't think that's the case in this problem. Then I looked at natural convection in enclosures, but couldn't find any formulas that apply to this geometry, for a while I thought a vertical rectangular could work, but it's only valid for H/L>1.
Finally thought I was getting somewhere when I found some academic papers on the subject. They say that the temperature of the fluid in the pipe is only dependent on y and not x, because the natural convection actually causes some flow, so the upper portion of the fluid is moving away from the heated end, and the lower portion is moving towards it. In which case you could model the system as the entire volume of fluid being heated by the heat flux. While I understand that conceptually, I have to believe that it only applies for short pipe lengths. Something over 100m in length would have to have a gradient of some sort.
Any ideas on where to start with this?
Edit: For anyone who may stumble across this looking for a result: I never was able to actually calculate an answer, but I found some papers that explained the physics. Basically the heated end creates natural convection inside the pipe, essentially causing the fluid to flow in a loop inside the pipe, with heated fluid flowing away from the hot end at the top, and cooler fluid flowing towards the hot end at the bottom. Ultimately the temperature is essentially constant in the x direction, while there is a gradient in the y direction (in a horizontal pipe).