blob: 1ef3d48796ff237be192455656438b3ae992f3a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Introduction to heat transfer by S.K.Som, Chapter 5, Example 8")
//Eletric current passes through a L=0.5m long horizontal wire of D=0.1mm diameter.
L=0.5;
D=0.1*10^-3;
//The wire is to be maintained at temprature,Twire=400K and the air is at temprature,Tair=300K.
Twire=400;
Tair=300;
//The resistance of the wire(R) is 0.012ohm per meter.Nusselt number(NuL) over the length of wire to be 0.4.
NuL=0.4;
R=0.012;
//At mean temprature of Tf=350K, The thermal conductivity of air is k=0.03W/(m*K)
k=0.03;
//Nusselt number is NuL=hbar*D/k
//hbar is the heat flux
disp("The heat flux in W/(m^2*K) is")
hbar=NuL*k/D
//Q is the heat loss from the wire
disp("The heat loss from the wire is Q=hbar*pi*D*L*(Twire-Tair) in Watt")
Q=hbar*%pi*D*L*(Twire-Tair)
//At steady state the ohmic loss in the wire equals the heat loss from its surface Therfore I^2*R=Q
//I is the current flow.
disp("The current in Ampere is")
I=(Q/(R*L))^0.5
|