Calculating Heat Loss in Long Pipe Transfer with Octave

Click For Summary
SUMMARY

This discussion focuses on calculating heat loss in a long pipe using Octave, with specific parameters including a lambda value of 0.02 (W/mK), an inner radius of 0.1m, an outer radius of 0.2m, and a total distance of 4000m. The user is attempting to determine a reasonable flow rate to minimize temperature loss from an initial inside temperature of 100°C to an outside temperature of 10°C, while assuming laminar flow and no vertical variations. The provided Octave code calculates heat loss but yields incorrect results, prompting the need for further assistance in relating heat loss to flow rate.

PREREQUISITES
  • Understanding of heat transfer principles, specifically conduction and convection.
  • Familiarity with Octave programming and syntax.
  • Knowledge of thermal resistance calculations in cylindrical coordinates.
  • Basic concepts of fluid dynamics, particularly laminar flow.
NEXT STEPS
  • Research "Octave numerical methods for heat transfer calculations".
  • Learn about "thermal resistance in cylindrical pipes".
  • Investigate "flow rate impact on heat loss in pipe systems".
  • Explore "heat transfer coefficients for laminar flow".
USEFUL FOR

This discussion is beneficial for mechanical engineers, thermal system designers, and students studying heat transfer and fluid dynamics, particularly those working with pipe systems and Octave for simulations.

Philip West
Messages
2
Reaction score
0

Homework Statement


Hello everyone, I hope that you guys could lend me a hand.
I need to calculate the heat loss at any point over a long pipe while considering lambda of the pipe. I am trying to use octave to find a reasonable flow-rate to keep the temperature loss to a minimum at a reasonable pressure.

lambda= 0.02
inner radius=0.1m
outer radius=0.2m
Distance=4000m
initial inside temperature 100C
outside temperature=10C

Assumptions:
laminar flow.
no vertical variations.

Homework Equations

The Attempt at a Solution


%Heat loss long distance transfer
%Initial Settings
PipeRadiusInside=0.1;
PipeRadiusOutside=0.2;
TotalPipeDistance=1000;
Time=1;
PipeSegmentLength=16;
OutsideTemperature=10;
InsulatingCapacity=0.020;
Temperature=[];
CurrentTemperature=100;
i=0;
%%
PipeThickness=PipeRadiusOutside-PipeRadiusInside;
Resistance=((PipeThickness*log(PipeRadiusOutside/PipeRadiusInside))/InsulatingCapacity); U=1/Resistance;
TemperatureDifference=CurrentTemperature-OutsideTemperature; SegmentVolume=2*pi*PipeSegmentLength; EnergyOfWater=4.2*TemperatureDifference*SegmentVolume*0.9982;
while i<TotalPipeDistance/Time i=i+PipeSegmentLength; Temperature=[Temperature CurrentTemperature]; HeatLoss=2*pi*PipeRadiusOutside*U*TemperatureDifference*PipeSegmentLength; EnergyOfWater=EnergyOfWater-HeatLoss; CurrentTemperature=((EnergyOfWater-HeatLoss)/(4.2*SegmentVolume*0.9982))+OutsideTemperature; TemperatureDifference=CurrentTemperature-OutsideTemperature;
end plot(Temperature)It gives me results which look like the could be right as it reacts to changes in variables correctly but it is definitely incorrect. Also I do not know how to relate it to flow rate.
I really need help and would be thankful for an example.

Thank you for your time.
 
Physics news on Phys.org
Does lambda have any units associated with it?
 
SteamKing said:
Does lambda have any units associated with it?
Yes. Sorry I forgot to mention that. (w/mK)
 

Similar threads

Replies
22
Views
4K
Replies
1
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
7
Views
2K
  • · Replies 21 ·
Replies
21
Views
6K
  • · Replies 13 ·
Replies
13
Views
11K
  • · Replies 3 ·
Replies
3
Views
3K