Está en la página 1de 4

TRANSFERENCIA DE MASA II – 2019

GRUPO 8
PROGRAMA PARA EL SIGUIENTE EJEMPLO DEL LIBRO WANKAT 2º EDICIÓN

CALCULAR CON LOS SIGUIENTES DATOS:

FRACCION PERMEABILIDADES ESPESOR DE LA


GRUPO MATERIAL
DE CORTE O2 N2 MEMBRANA
Copolimero de
8 silicon (57%) y 0.25 160 E-10 70 E-10 1.25
policarbonato

Esquema de Flujo Contracorriente para el Ejercicio

Para calcular yp
Para Calcular Fr

Para Calcular yr

Para Calcular el Área

Para calcular Área Total

RESULTADOS EN EXCEL
UNIDADES

Fent cm3/s Área cm2


Perm cm3.cm/cm2.s.cmHg yp Fracción mol
Fp cm3/s yr Fracción mol
Fr cm3/s

COMANDOS DEL VISUAL BASIC


Sub Main()
Dim N, M, k, j, i As Integer
Dim pr, pp, a, b, c, ConA, ConB, Cj, Cjant, df, Ft, Fp, Fpant, Fpsal, permA, permB, Fr, Frsal, Fent,
Area, Areatot, yt, yent, yr, yrsal, yrsalant, yrant, yp, ypant, alfa, thetatot, thetaj As Double
Sheets("Flujo contracorriente").Select
Range("B7", "GS19").Clear
Fent = Cells(2, 2).Value
thetatot = Cells(2, 6).Value
Fpsal = thetatot * Fent
Frsal = Fent - Fpsal
yent = Cells(2, 4).Value
yrsal = Cells(4, 6).Value
pr = Cells(3, 4).Value
pp = Cells(3, 6).Value
permA = Cells(3, 2).Value
permB = Cells(2, 8).Value
Fptotal = Ft * N
alfa = permA / permB
M = Cells(4, 2).Value
df = Cells(5, 2).Value
N = Cells(4, 4).Value
Ft = Fpsal / N
yentcalc = yent
yrsalant = yrsal
For k = 1 To M
yrsal = yrsalant + df * (yent - yentcalc)
yr = yrsal
Fr = Frsal
Fp = 0
Fpant = 0
yp = 0
Areatot = 0
For i = 1 To N
j=N-i+1
Cells(7, i + 1).Value = j
ypant = yp
Fpant = Fp
Fp = Fpant + Ft
a = (1 - alfa) * Fp * pp / pr
b = Fp * (1 - pp / pr) + (alfa - 1) * Fpant * ypant * pp / pr + alfa * Ft * pp / pr + Fp * (alfa - 1) * yr
c = Fpant * ypant * (-1 - (alfa - 1) * yr + pp / pr) - alfa * Ft * yr
yp = (-b + (b * b - 4 * a * c) ^ 0.5) / (2 * a)
Area = (Ft * yp / (permA * (pr * yr - pp * yp))) / 1000000
Areatot = Areatot + Area
Cells(8, i + 1).Value = Fr
Cells(9, i + 1).Value = yp
Cells(10, i + 1).Value = yr
Cells(11, i + 1).Value = Area
Cells(12, i + 1).Value = Fp
Fr = Fp + Frsal
thetaj = Fp / Fr
Cells(13, i + 1).Value = thetaj
yr = Fp * yp / Fr + yrsal * Frsal / Fr
Next i
yentcalc = yr
yrsalant = yrsal
Next k
Balmasa = yr * Fr - Fp * yp - yrsal * Frsal
Cells(18, 2).Value = Balmasa
Cells(14, 2).Value = yp
Cells(15, 2).Value = Areatot
Cells(16, 2).Value = yentcalc
Cells(17, 2).Value = Fr
Cells(19, 2).Value = yrsal
End Sub

También podría gustarte