Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Codigos Graficas 1
Codigos Graficas 1
Codigos Graficas 1
VAPOR DE AGUA
clear, clc
disp ('***********************************************');
disp ('***********************************************');
Ps=P;
TMax=T;
else
TMax=(B2/(A2-log (Ps)))-C2;
end
TF=floor(TMax)-1;
for i=1:1:TF+1
U(i)=(i-1); /// Donde U es el vector que me permite recorrer el eje de T y va desde 0 hasta TMax
end
T=0;
Ps=exp(A1-(B1/(C1+T)));
for Fi=1:1:10
if Fi==1
A(1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==2
B(1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==3
C(1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==4
D(1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==5
E(1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==6
F(1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==7
G(1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==8
H(1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==9
I(1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==10
J(1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
end
for T=1:1:TF
if T>=57
Ps=exp(A2-(B2/(C2+T)));
else
Ps=exp(A1-(B1/(C1+T)));
end
end
for Fi=1:1:10
if Fi==1
A(T+1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==2
B(T+1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==3
C(T+1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==4
D(T+1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==5
E(T+1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==6
F(T+1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==7
G(T+1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==8
H(T+1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==9
I(T+1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==10
J(T+1)=(MA/MB)*(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
end
end
////
plot(U,Z,'b')
plot(U,A,'b')
plot(U,B,'b')
plot(U,C,'b')
plot(U,D,'b')
plot(U,E,'b')
plot(U,F,'b')
plot(U,G,'b')
plot(U,H,'b')
plot(U,I,'b')
plot(U,J,'b')
square(0,0,TF,0.12)
set(gca(),"auto_clear","off")
a=gca();
a.grid=[1,1];
a.y_location="right";
a.title.font_style=5;
a.title.font_size=5;
t=a.title;
t.foreground=9;
t.font_size=5;
t.font_style=5;
xlabel=a.x_label;
xlabel.font_style= 5;
xlabel.font_size=3;
ylabel=a.y_label;
ylabel.font_style= 5;
ylabel.font_size=3;
a.y_label.foreground = 1;
a.x_label.foreground = 1;
Eti=101325;
Eti1=569*(101325/760);
xstring (43.0,0.074,["Fi=0.90"],300,0)
xstring (45.2,0.072,["Fi=0.80"],300,0)
xstring (47.0,0.07,["Fi=0.70"],300,0)
xstring (50.2,0.069,["Fi=0.60"],300,0)
xstring (53.0,0.068,["Fi=0.50"],300,0)
xstring (57.0,0.067,["Fi=0.40"],300,0)
xstring (64.0,0.065,["Fi=0.30"],300,0)
xstring (70.5,0.06,["Fi=0.20"],300,0)
xstring (87.0,0.058,["Fi=0.10"],300,0)
xstring (101,-0.001,["Fi=0.00"],0,0)
end
//
//Eti2=670*(101325/760);
//Eti3=590*(101325/760);
//xstring (40,0.06,["Fi=1.00"],300,0)
//xstring (42,0.06,["Fi=0.90"],300,0)
//xstring (44,0.06,["Fi=0.80"],300,0)
//xstring (46.5,0.06,["Fi=0.70"],300,0)
//xstring (49.5,0.06,["Fi=0.60"],300,0)
//xstring (53,0.06,["Fi=0.50"],300,0)
//xstring (58,0.06,["Fi=0.40"],300,0)
//xstring (64,0.06,["Fi=0.30"],300,0)
//xstring (78,0.06,["Fi=0.20"],300,0)
//xstring (93.5,0.06,["Fi=0.10"],300,0)
//xstring (99.5,0,["Fi=0.00"],0,0)
//end
/////////////////////////////
//Explicación de algunos valores ---> La matrices desde la A hasta la J poseen información desde
T=0 hasta TMax para
//////////////////////////////
//PARTE 2: Gráfica de líneas de saturación adibáticas que en caso de sistema aire-vapor de agua es
se superponen con las curvas de temperatura húmeda.
CpA=1.8723;CpB=1.0035;
Tsai=5;
Tsaf=55;
L(1)=2501.4; L(20)=2456.5;
L(2)=2499.0; L(21)=2454.1;
L(3)=2496.7; L(22)=2451.8;
L(4)=2494.3; L(23)=2449.4;
L(5)=2491.9; L(24)=2447.0;
L(6)=2489.6; L(25)=2444.7;
L(7)=2487.2; L(26)=2442.3;
L(8)=2484.8; L(27)=2439.9;
L(9)=2482.5; L(28)=2437.6;
L(10)=2480.1; L(29)=2435.2;
L(11)=2477.7; L(30)=2432.8;
L(12)=2475.4; L(31)=2430.5;
L(13)=2473.0; L(32)=2428.1;
L(14)=2470.7; L(33)=2425.7;
L(15)=2468.3; L(34)=2423.4;
L(16)=2465.9; L(35)=2421.0;
L(17)=2463.6; L(36)=2418.6;
L(18)=2461.2; L(37)=2416.2;
L(19)=2458.8; L(38)=2413.9;
L(39)=2411.5; L(71)=2333.8;
L(40)=2409.1; L(72)=2331.4;
L(41)=2406.7; L(73)=2328.9;
L(42)=2404.3; L(74)=2326.4;
L(43)=2401.9; L(75)=2323.9;
L(44)=2399.5; L(76)=2321.4;
L(45)=2397.2; L(77)=2318.9;
L(46)=2394.8; L(78)=2316.3;
L(47)=2392.4; L(79)=2312.8;
L(48)=2390.0; L(80)=2311.3;
L(49)=2387.6; L(81)=2308.8;
L(50)=2385.2; L(82)=2306.2;
L(51)=2382.7; L(83)=2303.7;
L(53)=2377.9; L(85)=2298.6;
L(54)=2375.5; L(86)=2296.0;
L(55)=2373.1; L(87)=2293.5;
L(56)=2370.7; L(88)=2290.9;
L(57)=2368.2; L(89)=2288.3;
L(58)=2365.8; L(90)=2285.8;
L(59)=2363.4; L(91)=2283.2;
L(60)=2360.9; L(92)=2280.6;
L(61)=2358.5; L(93)=2278.0;
L(62)=2356.0; L(94)=2275.4;
L(63)=2353.6; L(95)=2272.8;
L(64)=2351.1; L(96)=2270.2;
L(65)=2348.7; L(97)=2267.6;
L(66)=2346.2; L(98)=2264.9;
L(67)=2343.7; L(99)=2262.3;
L(68)=2341.3; L(100)=2259.7;
L(69)=2338.8; L(101)=2257.0;
L(70)=2336.3; ///////////////////////////////
for Tsa=Tsai:5:Tsaf
if Tsa<57
Ps=exp(A1-(B1/(C1+Tsa)));
elseif Tsa>=57
Ps=exp(A2-(B2/(C2+Tsa)));
end
for i=1:1:101
T(i)=(i-1);////// vector que permite recorre las posiciones desde o hasta TMax
end
T1=floor(Tsa);
T2=T1+1;
L1=L(T1+1);
L2=L(T1+2);
Lsa=L2+((L1-L2)*((Tsa-T2)/(T1-T2)));
Ysa=(MA/MB)*(Ps/(P-Ps));
Tgmax=Tsa+((Lsa*Ysa)/CpB);
k=1;
Tg(k)=Tsa;
Y(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
while Tg(k)<Tgmax
k=k+1;
Tg(k)=Tg(k-1)+dt;
Y(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
end
plot(Tg,Y,'r')
square(0,0,TF,0.12)
clear Tg;clear Y;
end
Tsa=0;
Ps=exp(A1-(B1/(C1+Tsa)));
T1=floor(Tsa);
T2=T1+1;
L1=L(T1+1);
L2=L(T1+2);
Lsa=L2+((L1-L2)*((Tsa-T2)/(T1-T2)));
Ysa=(MA/MB)*(Ps/(P-Ps));
Tgmax=Tsa+((Lsa*Ysa)/CpB);
k=1;
Tg(k)=Tsa;
Y1(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
while Tg(k)<Tgmax
k=k+1;
Tg(k)=Tg(k-1)+dt;
Y1(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
end
plot(Tg,Y1,'r')
square(0,0,TF,0.12)
clear Tg;clear Y;
xstring (0.21,0.0046,["T=0ºC"],360,0)
xstring (3.38,0.0058,["T=5ºC"],360,0)
xstring (6.5,0.0076,["T=10ºC"],360,0)
xstring (10.6,0.0105,["T=15ºC"],360,0)
xstring (15.3,0.0143,["T=20ºC"],360,0)
xstring (20.4,0.02,["T=25ºC"],360,0)
xstring (25.4,0.0268,["T=30ºC"],360,0)
xstring (30.6,0.037,["T=35ºC"],360,0)
xstring (35.5,0.05,["T=40ºC"],360,0)
xstring (40.5,0.066,["T=45ºC"],360,0)
xstring (45.5,0.087,["T=50ºC"],360,0)
xstring (50.6,0.117,["T=55ºC"],360,0)
clear, clc
disp ('***********************************************');
disp ('***********************************************');
Ps=P;
TMax=T;
else
TMax=(B2/(A2-log (Ps)))-C2;
end
TF=floor(TMax)-1;
for i=1:1:TF+1
U(i)=(i-1); /// Donde U es el vector que me permite recorrer el eje de T y va desde 0 hasta TMax
end
T=0;
Ps=exp(A1-(B1/(C1+T)));
for Hp=1:1:10
if Hp==1
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
A(1)=(MA/MB)*((Fi*Ps)/(P-(Fi*Ps)));
end
if Hp==2
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
B(1)=(MA/MB)*((Fi*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ps));
D(T+1)=(MA/MB)*((Fi*Ps)/(P-(Fi*Ps)));
end
if Hp==5
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
E(T+1)=(MA/MB)*((Fi*Ps)/(P-(Fi*Ps)));
end
if Hp==6
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
F(T+1)=(MA/MB)*((Fi*Ps)/(P-(Fi*Ps)));
end
if Hp==7
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
G(T+1)=(MA/MB)*((Fi*Ps)/(P-(Fi*Ps)));
end
if Hp==8
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
H(T+1)=(MA/MB)*((Fi*Ps)/(P-(Fi*Ps)));
end
if Hp==9
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
I(T+1)=(MA/MB)*((Fi*Ps)/(P-(Fi*Ps)));
end
if Hp==10
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
J(T+1)=(MA/MB)*((Fi*Ps)/(P-(Fi*Ps)));
end
end
end
plot(U,Z,'k') plot(U,D,'k')
plot(U,A,'k') plot(U,E,'k')
plot(U,B,'k') plot(U,F,'k')
plot(U,C,'k') plot(U,G,'k')
plot(U,H,'k') plot(U,J,'k')
plot(U,I,'k')
square(0,0,TF,0.12)
set(gca(),"auto_clear","off")
a=gca();
a.grid=[1,1];
a.y_location="right";
a.title.font_style=5;
a.title.font_size=5;
t=a.title;
t.foreground=9;
t.font_size=5;
t.font_style=5;
xlabel=a.x_label;
xlabel.font_style= 5;
xlabel.font_size=3;
ylabel=a.y_label;
ylabel.font_style= 5;
ylabel.font_size=3;
a.y_label.foreground = 1;
a.x_label.foreground = 1;
/////////////////colocar etiqueta para Hp -----------> hay que transladarlas según la presión dada
xstring (41.0,0.075,["Hp=1.00"],300,0)
xstring (43.0,0.074,["Hp=0.90"],300,0)
xstring (45.0,0.073,["Hp=0.80"],300,0)
xstring (47.0,0.073,["Hp=0.70"],300,0)
xstring (49.0,0.072,["Hp=0.60"],300,0)
xstring (52.0,0.072,["Hp=0.50"],300,0)
xstring (56.0,0.07,["Hp=0.40"],300,0)
xstring (60,0.064,["Hp=0.30"],300,0)
xstring (64.5,0.063,["Hp=0.20"],300,0)
xstring (72,0.055,["Hp=0.10"],300,0)
xstring (101,-0.001, ["Hp=0.00"],0,0)
/////////////////////////////
//PARTE 2: en esta parte se graficas las lineas de saturacion adiabatica que para el sistema aire-
vapor de agua,
//PARTE 2: Gráfica de líneas de saturación adibáticas que en caso de sistema aire-vapor de agua es
se superponen con las curvas de temperatura húmeda.
CpA=1.8723;CpB=1.0035;
Tsai=5;
Tsaf=55;
for Tsa=Tsai:5:Tsaf
if Tsa<57
Ps=exp(A1-(B1/(C1+Tsa)));
elseif Tsa>=57
Ps=exp(A2-(B2/(C2+Tsa)));
end
L(1)=2501.4; L(14)=2470.7;
L(2)=2499.0; L(15)=2468.3;
L(3)=2496.7; L(16)=2465.9;
L(4)=2494.3; L(17)=2463.6;
L(5)=2491.9; L(18)=2461.2;
L(6)=2489.6; L(19)=2458.8;
L(7)=2487.2; L(20)=2456.5;
L(8)=2484.8; L(21)=2454.1;
L(9)=2482.5; L(22)=2451.8;
L(10)=2480.1; L(23)=2449.4;
L(11)=2477.7; L(24)=2447.0;
L(12)=2475.4; L(25)=2444.7;
L(13)=2473.0; L(26)=2442.3;
L(27)=2439.9; L(64)=2351.1;
L(28)=2437.6; L(65)=2348.7;
L(29)=2435.2; L(66)=2346.2;
L(30)=2432.8; L(67)=2343.7;
L(31)=2430.5; L(68)=2341.3;
L(32)=2428.1; L(69)=2338.8;
L(33)=2425.7; L(70)=2336.3;
L(34)=2423.4; L(71)=2333.8;
L(35)=2421.0; L(72)=2331.4;
L(36)=2418.6; L(73)=2328.9;
L(37)=2416.2; L(74)=2326.4;
L(38)=2413.9; L(75)=2323.9;
L(39)=2411.5; L(76)=2321.4;
L(40)=2409.1; L(77)=2318.9;
L(41)=2406.7; L(78)=2316.3;
L(42)=2404.3; L(79)=2312.8;
L(43)=2401.9; L(80)=2311.3;
L(44)=2399.5; L(81)=2308.8;
L(45)=2397.2; L(82)=2306.2;
L(46)=2394.8; L(83)=2303.7;
L(47)=2392.4; L(84)=2301.1;
L(48)=2390.0; L(85)=2298.6;
L(49)=2387.6; L(86)=2296.0;
L(50)=2385.2; L(87)=2293.5;
L(51)=2382.7; L(88)=2290.9;
L(53)=2377.9; L(90)=2285.8;
L(54)=2375.5; L(91)=2283.2;
L(55)=2373.1; L(92)=2280.6;
L(56)=2370.7; L(93)=2278.0;
L(57)=2368.2; L(94)=2275.4;
L(58)=2365.8; L(95)=2272.8;
L(59)=2363.4; L(96)=2270.2;
L(60)=2360.9; L(97)=2267.6;
L(61)=2358.5; L(98)=2264.9;
L(62)=2356.0; L(99)=2262.3;
L(63)=2353.6; L(100)=2259.7;
L(101)=2257.0;
for i=1:1:101
T(i)=(i-1);////// vector que permite recorre las posiciones desde o hasta TMax
end
T1=floor(Tsa);
T2=T1+1;
L1=L(T1+1);
L2=L(T1+2);
Lsa=L2+((L1-L2)*((Tsa-T2)/(T1-T2)));
Ysa=(MA/MB)*(Ps/(P-Ps));
Tgmax=Tsa+((Lsa*Ysa)/CpB);
k=1;
Tg(k)=Tsa;
Y(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
while Tg(k)<Tgmax
k=k+1;
Tg(k)=Tg(k-1)+dt;
Y(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
end
plot(Tg,Y,'r')
square(0,0,TF,0.12)
clear Tg;clear Y;
end
Tsa=0;
Ps=exp(A1-(B1/(C1+Tsa)));
T1=floor(Tsa);
T2=T1+1;
L1=L(T1+1);
L2=L(T1+2);
Lsa=L2+((L1-L2)*((Tsa-T2)/(T1-T2)));
Ysa=(MA/MB)*(Ps/(P-Ps));
Tgmax=Tsa+((Lsa*Ysa)/CpB);
k=1;
Tg(k)=Tsa;
Y1(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
while Tg(k)<Tgmax
k=k+1;
Tg(k)=Tg(k-1)+dt;
Y1(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
end
plot(Tg,Y1,'r')
square(0,0,TF,0.12)
clear Tg;clear Y;
xstring (0.0,0.00,["T=0ºC"],360,0)
xstring (0.0,0.0046,["T=5ºC"],360,0)
xstring (5.2,0.0076,["T=10ºC"],360,0)
xstring (10.6,0.0105,["T=15ºC"],360,0)
xstring (15.3,0.0143,["T=20ºC"],360,0)
xstring (20.4,0.02,["T=25ºC"],360,0)
xstring (25.4,0.0268,["T=30ºC"],360,0)
xstring (30.6,0.037,["T=35ºC"],360,0)
xstring (35.5,0.05,["T=40ºC"],360,0)
xstring (42.5,0.069,["T=45ºC"],360,0)
xstring (45.5,0.091,["T=50ºC"],360,0)
xstring (50.6,0.117,["T=55ºC"],360,0)
clear, clc
disp ('***********************************************');
disp ('***********************************************');
Ps=P;
TMax=T;
else
TMax=(B2/(A2-log (Ps)))-C2;
end
TF=floor(TMax)-1;
for i=1:1:TF+1
U(i)=(i-1); /// Donde U es el vector que me permite recorrer el eje de T y va desde 0 hasta TMax
end
T=0;
Ps=exp(A1-(B1/(C1+T)));
for Hp=1:1:10
if Hp==1
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
A(1)=((Fi*Ps)/(P-(Fi*Ps)));
end
if Hp==2
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
B(1)=((Fi*Ps)/(P-(Fi*Ps)));
end
if Hp==3
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
C(1)=((Fi*Ps)/(P-(Fi*Ps)));
end
if Hp==4
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
D(1)=((Fi*Ps)/(P-(Fi*Ps)));
end
if Hp==5
Fi=(Hp/10)*(P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10)*(P/(P+((Hp/10)-1)*Ps));
H(T+1)=((Fi*Ps)/(P-(Fi*Ps)));
end
if Hp==9
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
I(T+1)=((Fi*Ps)/(P-(Fi*Ps)));
end
if Hp==10
Fi=(Hp/10)*(P/(P+((Hp/10)-1)*Ps));
J(T+1)=((Fi*Ps)/(P-(Fi*Ps)));
end
end
end
plot(U,Z,'k') plot(U,D,'k')
plot(U,A,'k') plot(U,E,'k')
plot(U,B,'k') plot(U,F,'k')
plot(U,C,'k') plot(U,G,'k')
plot(U,H,'k') plot(U,J,'k')
plot(U,I,'k')
square(0,0,TF,0.12)
set(gca(),"auto_clear","off")
a=gca();
a.grid=[1,1];
a.y_location="right";
a.title.font_style=5;
a.title.font_size=5;
t=a.title;
t.foreground=9;
t.font_size=5;
t.font_style=5;
xlabel=a.x_label;
xlabel.font_style= 5;
xlabel.font_size=3;
ylabel=a.y_label;
ylabel.font_style= 5;
ylabel.font_size=3;
a.y_label.foreground = 1;
a.x_label.foreground = 1;
/////////////////colocar etiqueta para Hp -----------> hay que transladarlas según la presión dada
xstring (36.4,0.091,["Hp=1.00"],300,0)
xstring (38.0,0.09,["Hp=0.90"],300,0)
xstring (40.0,0.089,["Hp=0.80"],300,0)
xstring (42.3,0.09,["Hp=0.70"],300,0)
xstring (44.9,0.09,["Hp=0.60"],300,0)
xstring (47.3,0.087,["Hp=0.50"],300,0)
xstring (51.5,0.088,["Hp=0.40"],300,0)
xstring (55.8,0.086,["Hp=0.30"],300,0)
xstring (61,0.082,["Hp=0.20"],300,0)
xstring (70,0.075,["Hp=0.10"],300,0)
/////////////////////////////
//PARTE 2: en esta parte se graficas las lineas de saturacion adiabatica que para el sistema aire-
vapor de agua,
//PARTE 2: Gráfica de líneas de saturación adibáticas que en caso de sistema aire-vapor de agua es
se superponen con las curvas de temperatura húmeda.
CpA=1.8723;CpB=1.0035;
Tsai=5;
Tsaf=55;
for Tsa=Tsai:5:Tsaf
if Tsa<57
Ps=exp(A1-(B1/(C1+Tsa)));
elseif Tsa>=57
Ps=exp(A2-(B2/(C2+Tsa)));
end
L(1)=2501.4; L(11)=2477.7;
L(2)=2499.0; L(12)=2475.4;
L(3)=2496.7; L(13)=2473.0;
L(4)=2494.3; L(14)=2470.7;
L(5)=2491.9; L(15)=2468.3;
L(6)=2489.6; L(16)=2465.9;
L(7)=2487.2; L(17)=2463.6;
L(8)=2484.8; L(18)=2461.2;
L(9)=2482.5; L(19)=2458.8;
L(10)=2480.1; L(20)=2456.5;
L(21)=2454.1; L(58)=2365.8;
L(22)=2451.8; L(59)=2363.4;
L(23)=2449.4; L(60)=2360.9;
L(24)=2447.0; L(61)=2358.5;
L(25)=2444.7; L(62)=2356.0;
L(26)=2442.3; L(63)=2353.6;
L(27)=2439.9; L(64)=2351.1;
L(28)=2437.6; L(65)=2348.7;
L(29)=2435.2; L(66)=2346.2;
L(30)=2432.8; L(67)=2343.7;
L(31)=2430.5; L(68)=2341.3;
L(32)=2428.1; L(69)=2338.8;
L(33)=2425.7; L(70)=2336.3;
L(34)=2423.4; L(71)=2333.8;
L(35)=2421.0; L(72)=2331.4;
L(36)=2418.6; L(73)=2328.9;
L(37)=2416.2; L(74)=2326.4;
L(38)=2413.9; L(75)=2323.9;
L(39)=2411.5; L(76)=2321.4;
L(40)=2409.1; L(77)=2318.9;
L(41)=2406.7; L(78)=2316.3;
L(42)=2404.3; L(79)=2312.8;
L(43)=2401.9; L(80)=2311.3;
L(44)=2399.5; L(81)=2308.8;
L(45)=2397.2; L(82)=2306.2;
L(46)=2394.8; L(83)=2303.7;
L(47)=2392.4; L(84)=2301.1;
L(48)=2390.0; L(85)=2298.6;
L(49)=2387.6; L(86)=2296.0;
L(50)=2385.2; L(87)=2293.5;
L(51)=2382.7; L(88)=2290.9;
L(53)=2377.9; L(90)=2285.8;
L(54)=2375.5; L(91)=2283.2;
L(55)=2373.1; L(92)=2280.6;
L(56)=2370.7; L(93)=2278.0;
L(57)=2368.2; L(94)=2275.4;
L(95)=2272.8; L(99)=2262.3;
L(96)=2270.2; L(100)=2259.7;
L(97)=2267.6; L(101)=2257.0;
L(98)=2264.9;
for i=1:1:101
T(i)=(i-1);////// vector que permite recorre las posiciones desde o hasta TMax
end
T1=floor(Tsa);
T2=T1+1;
L1=L(T1+1);
L2=L(T1+2);
Lsa=L2+((L1-L2)*((Tsa-T2)/(T1-T2)));
Ysa=(Ps/(P-Ps));
Tgmax=Tsa+((Lsa*Ysa)/CpB);
k=1;
Tg(k)=Tsa;
Y(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
while Tg(k)<Tgmax
k=k+1;
Tg(k)=Tg(k-1)+dt;
Y(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
end
plot(Tg,Y,'g')
square(0,0,TF,0.12)
clear Tg;clear Y;
end
Tsa=0;
Ps=exp(A1-(B1/(C1+Tsa)));
T1=floor(Tsa);
T2=T1+1;
L1=L(T1+1);
L2=L(T1+2);
Lsa=L2+((L1-L2)*((Tsa-T2)/(T1-T2)));
Ysa=(Ps/(P-Ps));
Tgmax=Tsa+((Lsa*Ysa)/CpB);
k=1;
Tg(k)=Tsa;
Y1(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
while Tg(k)<Tgmax
k=k+1;
Tg(k)=Tg(k-1)+dt;
Y1(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
end
plot(Tg,Y1,'b')
square(0,0,TF,0.12)
clear Tg;clear Y;
xstring (0.1,0.001,["T=0ºC"],360,0)
xstring (3.0,0.003,["T=5ºC"],360,0)
xstring (6.5,0.005,["T=10ºC"],360,0)
xstring (10.6,0.009,["T=15ºC"],360,0)
xstring (15.3,0.0143,["T=20ºC"],360,0)
xstring (23.4,0.02,["T=25ºC"],360,0)
xstring (28.5,0.029,["T=30ºC"],360,0)
xstring (33.5,0.041,["T=35ºC"],360,0)
xstring (38.5,0.057,["T=40ºC"],360,0)
xstring (44.0,0.078,["T=45ºC"],360,0)
xstring (46.5,0.107,["T=50ºC"],360,0)
xstring (48.6,0.116,["T=55ºC"],360,0)
clear, clc
disp ('***********************************************');
disp ('***********************************************');
P=660.60 *(101325/760); //P=660.60 mmHg
//-->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.>>>>>>>>>>>>>('Digite el valor de la
presión en Pa: ');
Ps=P;
TMax=T;
else
TMax=(B2/(A2-log (Ps)))-C2;
end
TF=floor(TMax)-1;
for i=1:1:TF+1
U(i)=(i-1); /// Donde U es el vector que me permite recorrer el eje de T y va desde 0 hasta TMax
end
T=0;
Ps=exp(A1-(B1/(C1+T)));
for Fi=1:1:10
if Fi==1
A(1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==2
B(1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==3
C(1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==4
D(1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==5
E(1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==6
F(1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==7
G(1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==8
H(1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==9
I(1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==10
J(1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
end
for T=1:1:TF
if T>=57
Ps=exp(A2-(B2/(C2+T)));
else
Ps=exp(A1-(B1/(C1+T)));
end
end
for Fi=1:1:10
if Fi==1
A(T+1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==2
B(T+1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==3
C(T+1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==4
D(T+1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==5
E(T+1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==6
F(T+1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==7
G(T+1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==8
H(T+1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==9
I(T+1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
if Fi==10
J(T+1)=(((Fi*Ps)/10)/(P-((Fi*Ps)/10)));
end
end
end
////
plot(U,Z,'k') plot(U,E,'k')
plot(U,A,'k') plot(U,F,'k')
plot(U,B,'k') plot(U,G,'k')
plot(U,C,'k') plot(U,H,'k')
plot(U,D,'k') plot(U,I,'k')
plot(U,J,'k')
square(0,0,TF,0.12)
set(gca(),"auto_clear","off")
a=gca();
a.grid=[1,1];
a.y_location="right";
a.title.font_style=5;
a.title.font_size=5;
t=a.title;
t.foreground=9;
t.font_size=5;
t.font_style=5;
xlabel=a.x_label;
xlabel.font_style= 5;
xlabel.font_size=3;
ylabel=a.y_label;
ylabel.font_style= 5;
ylabel.font_size=3;
a.y_label.foreground = 1;
a.x_label.foreground = 1;
Eti=101325;
Eti1=555.3114591*(101325/760);
xstring (36.6,0.091,["Fi=1.00"],300,0)
xstring (38.2,0.09,["Fi=0.90"],300,0)
xstring (40.3,0.089,["Fi=0.80"],300,0)
xstring (43.3,0.09,["Fi=0.70"],300,0)
xstring (46,0.09,["Fi=0.60"],300,0)
xstring (49.0,0.089,["Fi=0.50"],300,0)
xstring (53.9,0.088,["Fi=0.40"],300,0)
xstring (59.5,0.085,["Fi=0.30"],300,0)
xstring (67.5,0.082,["Fi=0.20"],300,0)
xstring (82.0,0.075,["Fi=0.10"],300,0)
xstring (101,-0.001,["Fi=0.00"],0,0)
end
//
//Eti2=670*(101325/760);
//Eti3=590*(101325/760);
//xstring (40,0.06,["Fi=1.00"],300,0)
//xstring (42,0.06,["Fi=0.90"],300,0)
//xstring (44,0.06,["Fi=0.80"],300,0)
//xstring (46.5,0.06,["Fi=0.70"],300,0)
//xstring (49.5,0.06,["Fi=0.60"],300,0)
//xstring (53,0.06,["Fi=0.50"],300,0)
//xstring (58,0.06,["Fi=0.40"],300,0)
//xstring (64,0.06,["Fi=0.30"],300,0)
//xstring (78,0.06,["Fi=0.20"],300,0)
//xstring (93.5,0.06,["Fi=0.10"],300,0)
//xstring (99.5,0,["Fi=0.00"],0,0)
//end
/////////////////////////////
//Explicación de algunos valores ---> La matrices desde la A hasta la J poseen información desde
T=0 hasta TMax para
//////////////////////////////
//PARTE 2: Gráfica de líneas de saturación adibáticas que en caso de sistema aire-vapor de agua es
se superponen con las curvas de temperatura húmeda.
CpA=1.8723;CpB=1.0035;
Tsai=5;
Tsaf=55;
L(1)=2501.4; L(36)=2418.6;
L(2)=2499.0; L(37)=2416.2;
L(3)=2496.7; L(38)=2413.9;
L(4)=2494.3; L(39)=2411.5;
L(5)=2491.9; L(40)=2409.1;
L(6)=2489.6; L(41)=2406.7;
L(7)=2487.2; L(42)=2404.3;
L(8)=2484.8; L(43)=2401.9;
L(9)=2482.5; L(44)=2399.5;
L(10)=2480.1; L(45)=2397.2;
L(11)=2477.7; L(46)=2394.8;
L(12)=2475.4; L(47)=2392.4;
L(13)=2473.0; L(48)=2390.0;
L(14)=2470.7; L(49)=2387.6;
L(15)=2468.3; L(50)=2385.2;
L(16)=2465.9; L(51)=2382.7;
L(18)=2461.2; L(53)=2377.9;
L(19)=2458.8; L(54)=2375.5;
L(20)=2456.5; L(55)=2373.1;
L(21)=2454.1; L(56)=2370.7;
L(22)=2451.8; L(57)=2368.2;
L(23)=2449.4; L(58)=2365.8;
L(24)=2447.0; L(59)=2363.4;
L(25)=2444.7; L(60)=2360.9;
L(26)=2442.3; L(61)=2358.5;
L(27)=2439.9; L(62)=2356.0;
L(28)=2437.6; L(63)=2353.6;
L(29)=2435.2; L(64)=2351.1;
L(30)=2432.8; L(65)=2348.7;
L(31)=2430.5; L(66)=2346.2;
L(32)=2428.1; L(67)=2343.7;
L(33)=2425.7; L(68)=2341.3;
L(34)=2423.4; L(69)=2338.8;
L(35)=2421.0; L(70)=2336.3;
L(71)=2333.8; L(87)=2293.5;
L(72)=2331.4; L(88)=2290.9;
L(73)=2328.9; L(89)=2288.3;
L(74)=2326.4; L(90)=2285.8;
L(75)=2323.9; L(91)=2283.2;
L(76)=2321.4; L(92)=2280.6;
L(77)=2318.9; L(93)=2278.0;
L(78)=2316.3; L(94)=2275.4;
L(79)=2312.8; L(95)=2272.8;
L(80)=2311.3; L(96)=2270.2;
L(81)=2308.8; L(97)=2267.6;
L(82)=2306.2; L(98)=2264.9;
L(83)=2303.7; L(99)=2262.3;
L(84)=2301.1; L(100)=2259.7;
L(85)=2298.6; L(101)=2257.0;
L(86)=2296.0;
///////////////////////////////
for Tsa=Tsai:5:Tsaf
if Tsa<57
Ps=exp(A1-(B1/(C1+Tsa)));
elseif Tsa>=57
Ps=exp(A2-(B2/(C2+Tsa)));
end
for i=1:1:101
T(i)=(i-1);////// vector que permite recorre las posiciones desde o hasta TMax
end
T1=floor(Tsa);
T2=T1+1;
L1=L(T1+1);
L2=L(T1+2);
Lsa=L2+((L1-L2)*((Tsa-T2)/(T1-T2)));
Ysa=(Ps/(P-Ps));
Tgmax=Tsa+((Lsa*Ysa)/CpB);
k=1;
Tg(k)=Tsa;
Y(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
while Tg(k)<Tgmax
k=k+1;
Tg(k)=Tg(k-1)+dt;
Y(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
end
plot(Tg,Y,'b')
square(0,0,TF,0.12)
clear Tg;clear Y;
end
Tsa=0;
Ps=exp(A1-(B1/(C1+Tsa)));
T1=floor(Tsa);
T2=T1+1;
L1=L(T1+1);
L2=L(T1+2);
Lsa=L2+((L1-L2)*((Tsa-T2)/(T1-T2)));
Ysa=(Ps/(P-Ps));
Tgmax=Tsa+((Lsa*Ysa)/CpB);
k=1;
Tg(k)=Tsa;
Y1(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
while Tg(k)<Tgmax
k=k+1;
Tg(k)=Tg(k-1)+dt;
Y1(k)=((Lsa*Ysa)-((Tg(k)-Tsa)*CpB))/(Lsa+((Tg(k)-Tsa)*CpA));
end
plot(Tg,Y1,'b')
square(0,0,TF,0.12)
clear Tg;clear Y;