You are on page 1of 5

Comprobación funciones

Ej1

clc,clear all
y=[0.5 0.2 0.3];
Tc=[369.9 425 469.8];
Pc=[42.5 38 33.6];
w=[0.153 0.199 0.251];
T=393;
P=40;
[ai,bi,thethaij,bmix,Thethamix,deltap,Bmix,Amix,epsilonp,np,pol,Zmix,Vmix]=VDWM(T,P,Pc,Tc,y)

ai = 1×3
9.3882 13.8611 19.1554
bi = 1×3
0.0905 0.1162 0.1453
thethaij = 3×3
9.3882 11.4075 13.4103
11.4075 13.8611 16.2946
13.4103 16.2946 19.1554
bmix = 0.1121
Thethamix = 12.8854
deltap = 0
Bmix = 0.1372
Amix = 0.4828
epsilonp = 0
np = 0.1372
pol = 1×4
1.0000 -1.1372 0.4828 -0.0662
Zmix = 0.2601
Vmix = 0.2125

Ej 2

clc,clear all
y=[0.5 0.2 0.3];
Tc=[369.9 425 469.8];
Pc=[42.5 38 33.6];
w=[0.153 0.199 0.251];
T=393;
P=40;
k=[0 0.003 0.027;0.003 0 0.017;0.027 0.017 0]

k = 3×3
0 0.0030 0.0270
0.0030 0 0.0170
0.0270 0.0170 0

[ai,bi,alfai,thethaij,bmix,Thethamix,deltap,Bmix,Amix,np,epsilonp,pol,Zmix,Vmix]=PRM(T,P,Pc,Tc,

ai = 1×3
10.1752 15.0231 20.7611
bi = 1×3
0.0563 0.0723 0.0904
alfai = 1×3

1
0.9632 1.0522 1.1312
thethaij = 3×3
9.8006 12.4091 14.7617
12.4091 15.8067 18.9397
14.7617 18.9397 23.4854
bmix = 0.0697
Thethamix = 14.3792
deltap = 0.1708
Bmix = 0.0854
Amix = 0.5388
np = 0.0854
epsilonp = -0.0073
pol = 1×4
1.0000 -0.9146 0.3461 -0.0381
Zmix = 0.1765
Vmix = 0.1441

Ej3

clc,clear all
y=0.35;
Tc=190.6;
Pc=46.1;
w=0.011;
T=373.15;
P=30;
[Z,fip,fugP,fugMI]=PRfugMI(T,P,Tc,Pc,y,w)

Z = 0.9734
fip = 0.9724
fugP = 29.1706
fugMI = 10.2097

y=0.65;
Tc=304.3;
Pc=49;
w=0.099;
T=373.15;
P=30;
[Z,fip,fugP,fugMI]=PRfugMI(T,P,Tc,Pc,y,w)

Z = 0.8717
fip = 0.8801
fugP = 26.4037
fugMI = 17.1624

Ej4

clc, clear all


y=[0.35 0.65];
Tc=[190.6 304.3];%K
Pc=[46.1 49];%BAR
w=[0.011 0.099];
T=373.15;%K
P=30;%BAR
k=[0 -0.003;-0.003 0];

2
[ai,bi,alfai,thethaij,bmix,Thethamix,deltap,Bmix,Amix,epsilonp,np,pol,Zmix,Vmix,Bi,Aij,termsum,

ai = 1×2
2.4906 5.9727
bi = 1×2
0.0267 0.0402
alfai = 1×2
0.7118 0.8905
thethaij = 2×2
1.7728 3.0799
3.0799 5.3188
bmix = 0.0355
Thethamix = 3.8657
deltap = 0.0686
Bmix = 0.0343
Amix = 0.1205
epsilonp = -0.0012
np = 0.0343
pol = 1×4
1.0000 -0.9657 0.0484 -0.0029
Zmix = 0.9164
Vmix = 0.9477
Bi = 1×2
0.0259 0.0388
Aij = 2×2
0.0553 0.0960
0.0960 0.1658
termsum = 1×2
0.0817 0.1414
fiMR = 1×2
0.9861 0.8841
fug = 1×2
10.3535 17.2395

Ej 5

clc,clear all
y=[0.5 0.2 0.3];
Tc=[369.9 425 469.8];
Pc=[42.5 38 33.6];
w=[0.153 0.199 0.251];
T=393;
P=40;
k=[0 -0.00207594 -0.00432789;-0.00207594 0 0.0381884;-0.00432789 0.0381884 0];
[Zmix,Vmix,thethaij,Thethamix,bmix,pol,alfai,Aij,Bi,fiMR,ai,bi,deltap,epsilonp,ethap,Amix,Bmix,

Zmix = 0.1942
Vmix = 0.1586
thethaij = 3×3
9.0953 11.6700 14.3345
11.6700 14.9115 17.5771
14.3345 17.5771 22.3973
Thethamix = 13.6296
bmix = 0.0777
pol = 1×4
1.0000 -1.0000 0.4065 -0.0486
alfai = 1×3
0.9561 1.0617 1.1539
Aij = 3×3
0.3408 0.4372 0.5371
0.4372 0.5587 0.6586

3
0.5371 0.6586 0.8392
Bi = 1×3
0.0768 0.0986 0.1233
fiMR = 1×3
0.8840 0.4821 0.2409
ai = 1×3
9.5130 14.0453 19.4099
bi = 1×3
0.0627 0.0806 0.1007
deltap = 0.0951
epsilonp = 0
ethap = 0.0951
Amix = 0.5107
Bmix = 0.0951
termsum = 1×3
0.4190 0.5279 0.6520

Ej 6

clc,clear all
y=[0.5 0.2 0.3];
Tc=[369.9 425 469.8];
Pc=[42.5 38 33.6];
w=[0.153 0.199 0.251];
T=393;
P=40;
k=zeros(3,3)

k = 3×3
0 0 0
0 0 0
0 0 0

[Zmix,Vmix,thethaij,Thethamix,bmix,pol,Aij,Bi,fiMR,ai,bi,deltap,epsilonp,ethap,Amix,Bmix,termsu

Zmix = 0.2002
Vmix = 0.1635
thethaij = 3×3
9.2291 11.6103 13.9950
11.6103 14.6059 17.6058
13.9950 17.6058 21.2218
Thethamix = 13.4347
bmix = 0.0777
pol = 1×4
1.0000 -1.0000 0.3992 -0.0479
Aij = 3×3
0.3458 0.4350 0.5244
0.4350 0.5472 0.6596
0.5244 0.6596 0.7951
Bi = 1×3
0.0768 0.0986 0.1233
fiMR = 1×3
0.8672 0.4804 0.2758
ai = 1×3
9.5130 14.0453 19.4099
bi = 1×3
0.0627 0.0806 0.1007
deltap = 0.0951
epsilonp = 0
ethap = 0.0951
Amix = 0.5034

4
Bmix = 0.0951
termsum = 1×3
0.4172 0.5248 0.6326

You might also like