You are on page 1of 1

8/7/09 6:54 AM

C:\MATLAB7\work\pr1.m

1 of 1

%for curve 1%
T=150;%150,120,80,30,21.2%
h_trial=370.87; %370.87,2901.15,8890.08,39340.74,58404.39%
theta_upper=0.3640; %0.3640,1.7629,2.2993,2.6599,2.7080%
delta_h=.95; %.99 to .95%
delta_time=0.99; %.99 to .95%
rho=7816;
c=511;
R=0.005;
A=4*pi*R^2;
V=4/3*pi*R^3;
G=A/(rho*V*c);
h=h_trial*delta_h;
epsilon=theta_upper*(1-delta_time);
T_0=153.107717 - 7.43541105*(theta_upper - epsilon) - 8.45876459*(theta_upper epsilon)^2 + 20.9216755*(theta_upper - epsilon)^3 - 21.3322525*(theta_upper - epsilon)
^4 + 7.72969747*(theta_upper - epsilon)^5 - 1.12553147*(theta_upper - epsilon)^6;
diffw = 1;
perterbationForNewSetOfCalculation=delta_h
ActualSuperheat=T
while diffw > 0.0001
h_new=h;
T_new=T_0*exp(-h_new*G*epsilon);
h=170457.326 - 8763.18651*T_new + 218.996745*T_new^2 - 3.05338563*T_new^3 +
0.0239527119*T_new^4 - 0.000098676448*T_new^5 + 1.65866544E-07*T_new^6;
diffw=abs(h-h_new);
HTCoefficient=h_new
DegreeOfSuperheat=T_new
end

You might also like