Está en la página 1de 6

FACULTAD NACIONAL DE INGENIERIA

INGENIERIA QUIMICA -ALIMENTOS

PRQ-3232 AUX SIMULACION DE PROCESOS


MINI PRACTICA N°2
NOMBRE: Rolando Willson Rea Mamani
FECHA: 20 de mayo de 2021

PROBLEMA DE REEMPLAZO
*REEMPLACE EL EJERCICIO DE MINIPRACTICA 2 POR EL EJERCICIO N.2 DE LA
PRÁCTICA. COMO QUEDAMOS POR WHATSAPP GRACIAS POR LA COMPRENSION AUX.

P2.The mixing of two salt solutions of differing concentrations gives rise to a first-order
differential equation for the amount of salt contained in the mixture. Let us suppose
that a large mixing tank initially holds 300 gallons of brine (that is, water in which a
certain number of pounds of salt has been dissolved). Another brine solution is pumped
into the large tank at a rate of 3 gallons per minute; the concentration of the salt in this
inflow is 2 pounds per gallon. When the solution in the tank is well stirred, it is pumped
out at the same rate as the entering solution. If 50 pounds of salt were dissolved initially
in the 300 gallons, how much salt is in the tank after a 50 min? (Use step h=10 min).
 Develop a model for this phenomenon (ODE)
 Solve the initial boundary problem by Euler, Rk2 methods.
 Plot the amount of salt on the tank versus time at 50, 100, 150, 200, 300, 400,
500, 600 and 700 min using Heun’s method.

DESARROLLO DEL MODELO:


Para formular la ecuación diferencial
Debemos plantear primeramente un balance de materia
en el tanque :
𝐸±𝐺 =𝑆+𝐴
𝐴 =𝐸−𝑆

*No hay generacion


Para un balance de flujo volumetrico.
FACULTAD NACIONAL DE INGENIERIA

INGENIERIA QUIMICA -ALIMENTOS

𝑑𝑉 𝑔𝑎𝑙
= 𝑞𝑒𝑛𝑡𝑟𝑎𝑑𝑎 − 𝑞𝑠𝑎𝑙𝑖𝑑𝑎 [ ]
𝑑𝑡 𝑚𝑖𝑛
𝑚
Sabemos que 𝜌 = 𝑉
𝑚
𝑑( )
𝜌
= 𝑞𝑒𝑛𝑡𝑟𝑎𝑑𝑎 − 𝑞𝑠𝑎𝑙𝑖𝑑𝑎
𝑑𝑡

Como el Agua con la sal es un fluido incompresible (𝜌=ctte),


Expresando en términos de flujo másico:
𝑑𝑚
= 𝑄𝑒𝑛𝑡𝑟𝑎𝑑𝑎 ∗ 𝜌𝑒𝑛𝑡𝑟𝑎𝑑𝑎 − 𝑄𝑠𝑎𝑙𝑖𝑑𝑎 ∗ 𝜌𝑠𝑎𝑙𝑖𝑑𝑎
𝑑𝑡
Reescribiendo:
𝑑𝑚 𝐿𝑏 𝑠𝑎𝑙
= 𝑚𝑒𝑛𝑡𝑟𝑎𝑑𝑎 − 𝑚𝑠𝑎𝑙𝑖𝑑𝑎 [ ] … … . . (𝛼)
𝑑𝑡 𝑚𝑖𝑛
Donde:

𝑔𝑎𝑙 [𝐿𝑏 𝑠𝑎𝑙]


𝑚𝑒𝑛𝑡𝑟𝑎𝑑𝑎 = 𝑄𝑒𝑛𝑡𝑟𝑎𝑑𝑎 ∗ 𝜌𝑒𝑛𝑡𝑟𝑎𝑑𝑎 = 3 ∗2
𝑚𝑖𝑛 𝑔𝑎𝑙
𝑔𝑎𝑙 𝑚 [𝐿𝑏 𝑠𝑎𝑙]
𝑚𝑠𝑎𝑙𝑖𝑑𝑎 = 𝑄𝑠𝑎𝑙𝑖𝑑𝑎 ∗ 𝜌𝑠𝑎𝑙𝑖𝑑𝑎 = 3 ∗
𝑚𝑖𝑛 300 𝑔𝑎𝑙
Reemplazando en Ec (α):
𝑑𝑚 𝑚
=6−
𝑑𝑡 300

Ecuación a Introducir al MATLAB


DATOS DE ENTRADA
t=0 min m (0)=50 Lb de sal
t=50 min m(50) =?
¡PROBLEMA DE VALOR INICIAL!
FACULTAD NACIONAL DE INGENIERIA

INGENIERIA QUIMICA -ALIMENTOS

DIAGRAMA DE FLUJO

INICIO
METODO DE RK2

ENTRADA:

to=0 mo=50
tf=50 min
h=10; N= (tf-to)/h
Q=3 ; V=300;𝜌=Cs=2;

PROCESO
for con=1:N
k1=f(to,mo);
k2=f(to+h,mo+k1*h);
t1=to+h;
m1=mo+(h/2)*(k1+k2);
to=t1;
mo=m1;

FIN
t1, m1
FACULTAD NACIONAL DE INGENIERIA

INGENIERIA QUIMICA -ALIMENTOS

INICIO
METODO DE EULER

ENTRADA:

to=0 mo=50
tf=50 min
h=10; N= (tf-to)/h
Q=3 ; V=300;𝜌=Cs=2;

PROCESO
for con=1:N
t1=to+h;
m1=mo+h*f(to,mo);
to=t1;
mo=m1;

FIN
t1, m1
FACULTAD NACIONAL DE INGENIERIA

INGENIERIA QUIMICA -ALIMENTOS

GRAFICA : (Por método Heun)


INICIO

METODO DE HEUN

ENTRADA:

to=0 mo=50
tf=50 min
h=10; N= (tf-to)/h
Q=3 ; V=300;𝜌=Cs=2;

PROCESO
for con=1:N
mp=mo+h*f(to,mo);
t1=to+h;
m1=mo+(h/2)*(f(to,mo)+f(t1,mp));
to=t1;
mo=m1;

FIN
t1, m1

*En un vector se almacenan los valores de tiempo [50, 100, 150, 200, 300, 400, 500,
600 700]
Y en otro para las cantidades respectivas [m (5) m (100) m (150)………..];
Para posteriormente graficar ambos vectores,

CONCLUSIONES:
 Para el método Euler a 50 min la cantidad de sal que se tiene es de 275.23 [Lb]
y por RK-2 es de 266.11 [Lb] para un h=10.
FACULTAD NACIONAL DE INGENIERIA

INGENIERIA QUIMICA -ALIMENTOS

 Comparando ambos resultados:


|275.23 − 266.1|
%𝐸𝑟𝑟𝑜𝑟 = ∗ 100% = 3.32%
275.23
Entre las solución analítica y la de los métodos numéricos se tiene un error de 3,32%,
considerable.

 Sin embargo el método de RK-2 es más exacto que el de Euler


 Con el método de HEUN se obtuvieron los mismos resultados que RK-2.
 Con un h más pequeño podemos obtener resultados mas exactos.

También podría gustarte