-
Notifications
You must be signed in to change notification settings - Fork 2
/
heat_transfer_unc2.m
51 lines (51 loc) · 1.94 KB
/
heat_transfer_unc2.m
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
function [Tinsg,Twi,Two,q,hg]=heat_transfer_unc2(materials,...
geom,engine,comb_chamb_st,axialvariations)
%%
% This function calculates heat transfer coefficients and temperatures
%%
x=axialvariations.x;
d=axialvariations.d;%diameters of engine
Mx=axialvariations.M;
P=axialvariations.P;%Pressure
gam=axialvariations.gam;
vis=axialvariations.vis;
Pr=axialvariations.pran;%Prandtl number
Cpg=axialvariations.Cpg;
cs=engine.cstar;
Tc=comb_chamb_st.t;%stagnation temperature in chamber, K
dt=geom.nozzle.throat.dia;
rtc=geom.throatcurv.radius;%radius of curvature at throat;
%%
%Calculate Adiabatic Temperature of the gas, near the wall
recov=Pr.^0.33;%recovery factor for turbulent flow, p 85 of Huzel 1992
k=(gam-1)/2;
Taw=Tc*(1+k.*recov.*Mx.^2)./(1+k.*Mx.^2);
%Calculate forced convection heat transfer from gas to wall
C=0.0417/dt^0.2*(vis(1)^0.2*Cpg(1)/Pr(1)^0.6)*(P(1)/cs)^0.8...
*(dt/rtc)^0.1*(dt./d).^1.8;
param.ha=engine.outside.h;%heat transfer coefficient of free convection from nozzle outer boundary
% param.cond=materials.wall.cond*materials.insert.cond;
hiw=materials.wall.cond*materials.insert.cond./...
(geom.tw*materials.insert.cond+...
materials.wall.cond*axialvariations.tins);
param.Ta=engine.outside.Ta;%ambient temperature, K
param.Tc=Tc;
for ind=1:length(x)
param.hiw=hiw(ind);
param.C=C(ind);
param.Taw=Taw(ind);
param.k=k(ind);
param.Mx=Mx(ind);
Tfun = @(Tinsg,param) param.C*(Tinsg/param.Tc*...
(1+param.k*param.Mx^2)+1)^(-0.68)*(param.Taw-Tinsg)-...
param.ha*param.hiw+param.ha*param.Ta;
fun = @(Tinsg) Tfun(Tinsg,param); % function of T alone
Tinsg(ind) = fzero(fun,axialvariations.Twg.unc1(ind));
hg(ind)=param.C*(Tinsg(ind)/param.Tc*...
(1+param.k*param.Mx^2)+1)^(-0.68);
q(ind)=hg(ind)*(param.Taw-Tinsg(ind));
Twi(ind)=Tinsg(ind)-...
q(ind)*axialvariations.tins(ind)/materials.insert.cond;
Two(ind)=Twi(ind)-...
q(ind)*geom.tw/materials.wall.cond;
end