You are on page 1of 4

alpha = [0,0.2,0.2;0.2,0,0.2;0.2,0.

2,0];
A = [0,-624.48,352.24;1585.1,0,1313.3;2115.4,-737.53,0];
T = 298.15;
xg = [0.000499966
0.240702466 0.758797568; 0.000782409
0.349511685
0.649705906; 0.001301873 0.447998527 0.5506996; 0.002322981 0.537063359
0.460613659; 0.003281255 0.608428964 0.388289781; 0.005116127
0.670549514 0.324334359; 0.007173415 0.731493332 0.261333252];
xg = xg.';
xb = [0.772545845, 0.177495642,
0.049958513; 0.692971221,
0.265522817,
0.041505963; 0.623659809,
0.340525776,
0.035814415;
0.546742391,
0.422633039,
0.030624569; 0.489489813,
0.482824941,
0.027685246; 0.433515126,
0.541089406,
0.025395468; 0.381274393,
0.594541766,
0.024183841];
xb = xb.';
G = exp((-(alpha*A))/T);
lambda = (A*G)/T;
for i = 1:7;
E = lambda*diag((1./(G.'*xb(:,i))));
L = G*diag((1./(G.'*xb(:,i))));
lNphi = ((E + E.') - (L*diag(xb(:,i))*E.'))*xb(:,i);
PHIxb(:,i) = exp(lNphi);
end
PHIxb

Para a fase biodiesel:
PHIxb =
Columns 1 through 4
0.961129472247431
60929.682622926
0.00947827887009364

1.75951390689812
8537.11119321678
0.00695559497590399

2.81841316228288
2912.15090098583

4.40326150210996
1368.49707650677

0.00969515877150202

0.0201155080616873

216245536153 648.0234187340032305 0.0.0.15.068902937. A = [0.468049184562 0.4193841827135 Columns 5 through 7 0.') .'*z))). Exl = lambda*diag((1.0].-624. lNphixl = ((Exl + Exl.'))*xl.2.0.991355245119 0.2115./(PHIz. alpha = [0.252937407505 24.'*xl))).4774853358013 24.1.216388880707 484.3. Lz = G*diag((1.352.00770797932904329 547. 0. Lxl = G*diag((1. lNphiz = ((Ez + Ez.') .24.2.(Lz*diag(z)*Ez.218491809].0400074454908165 0.'*z))).2.8181452788 470.246293798811 24. xl = (1.143433985237334 470.2.'))*z.962996439434078 473.0.0./(G.0614837939054 23.0].903332544756 23.5297502278963 Flash LL z = [0./(G.79097378884541 7. G = exp((-(alpha*A))/T).Columns 5 through 7 5.4.2.-737./(G.53.22587257052674 8. T = 298.778827482095 487.0.49947812689779 955.'*z))*(diag(PHIz)*z). 0.768905149596 479.0.48. lambda = (A*G)/T.0833189172600538 0.1585.284009087104227 0. .4008927079974 22.712605254./(G.0.170504068274346 0.1313.522826451545729 0.061093731281491 Para a fase glicerol: PHIxg = Columns 1 through 4 0. Ez = lambda*diag((1.2.(Lxl*diag(xl)*Exl.119749168873 22.083314871389 752.'*xl))). PHIz = exp(lNphiz).

'))*x2. dK = K . N2 = diag(kl-(klmin*(ones(3. BETA1 = BETA./(z.'*x2))).0]. dBETA = BETA . x1 = 1./(G. while dBETA > 0. a = diag(1. XII = diag(K1)*XI.01. dBETA = BETA . BETA1 = BETA.') .PHIxl = exp(lNphixl). lNphix1 = ((Ex1 + Ex1.1)))-kl)*z. LXII = G*diag((1. LXI = G*diag((1. x2 = 1.1)))))*(K1-(ones(3. BETA1 = 0./((ones(3. end BETA1 while dK > 0. K = exp((lNphiXI)-(lNphiXII)).0.01. EXI = lambda*diag((1. lNphix2 = ((Ex2 + Ex2. BETA = BETA1 + (1. Lx1 = G*diag((1. dK = K .BETA1.'*diag(a)*a))*(z.'*a).'))*XII.1))))*z.(LXI*diag(XI)*EXI. N1 = diag((klmax*(ones(3. klmax = max(kl(:)). XI = diag(1.1)))))*z. K1 = [0.3))*N2)./((ones(3.') . K1 = K.1))+BETA1*(K1-(ones(3./(G./(G.'*XII))). lNphiXI = ((EXI + EXI./((ones(1./((ones(1. kl = diag(1.'*XII))).K1. Lx2 = G*diag((1.'*XI))).') . end K1 XI XII ./(G.'))*x1.(Lx2*diag(x2)*Ex2./PHIxl)*PHIz.'*x2)))./(G. Ex1 = lambda*diag((1. EXII = lambda*diag((1.K1.'))*XI. BETA = (1.') . K1 = K. Ex2 = lambda*diag((1.'*x1))).3))*N2)*N2. lNphiXII = ((EXII + EXII.'*XI))).1))).3))*N1)*N1.'*x1)))./(G. klmin = min(kl(:)).klmin))*((ones(1./(G./(klmax .BETA1./(G.1))+BETA1*(K1-(ones(3. K = exp((lNphix1)-(lNphix2)).(LXII*diag(XII)*EXII.(Lx1*diag(x1)*Ex1.

5585 0.0092 0.5616 XII = 0.4247 0.8564 K1 = 0.0139 0.1610 .0373 54.2492 XI = 0.BETA1 = 0.8298 0.