Question

In: Chemistry

Butane liquid and vapor coexist at 370.0K and 14.35 bar. The densities of the liquid and...

Butane liquid and vapor coexist at 370.0K and 14.35 bar. The densities of the liquid and vapor phases are 8.128 mol-L^-1 and 0.6313 mol-L^-1, respectively. Use the van der Waals equation, the Redlich-Kwong equation, and the Peng-Robinson equation to calculate these densities. Take alpha = 16.44 bar-L^2-mol^-2 and beta = 0.07245 L-mol^-1 for the Peng-Robinson equation.

(Chapter 16, problem 24 in the Physical Chemistry, a molecular approach book)

Solutions

Expert Solution

Program in scientific python:

# -*- coding: utf-8 -*-

"""

Created on Mon Oct 05 18:01:59 2015

@author: Sebastian

a) Van der Waals

b) Peng Robinson

c) Soave RK

"""

from scipy.constants import R as Rgi

from numpy import *

from scipy.optimize import fsolve

"""systems conditions"""

T = 370 #k

P = 1.435E6 #Pa

"""Critical conditions of butane"""#Cheric data base

Tc = 4.25120E+02 #K

Pc = 3.796000E+006 #Pa

omega = 1.99000E-01

def FunZVdWvap(T,P):

global r

a = (27*Rgi**2*Tc**2)/(64*Pc)

b = (Rgi*Tc)/(8*Pc)

A = (P*a)/((Rgi*T)**2)

B = (P*b)/(Rgi*T)

beta2 = -(B+1)

beta1 = A

beta0 = -A*B

pol = [1,beta2,beta1,beta0]

r = roots(pol)

Z = real(r[isreal(r)])[0]

return Z

def FunZVdWliq(T,P):

global r

a = (27*Rgi**2*Tc**2)/(64*Pc)

b = (Rgi*Tc)/(8*Pc)

A = (P*a)/((Rgi*T)**2)

B = (P*b)/(Rgi*T)

beta2 = -(B+1)

beta1 = A

beta0 = -A*B

pol = [1,beta2,beta1,beta0]

r = roots(pol)

Z = real(r[isreal(r)])[2]

return Z

Denvap = P/(Rgi*T*FunZVdWvap(T,P))*(1.0/1000)

Denliq = P/(Rgi*T*FunZVdWliq(T,P))*(1.0/1000)

print '{0}'.format('Van der Waals Equation')

print '{0}'.format('Vapor density (mol/L), Liquid density(mol/L) ')

print '{0} {1}'.format(Denvap,Denliq)

"""Peng Robinson EoS"""

def PR_EOSvap(T,P):

b = 0.07780*(Rgi*Tc)/(Pc)

kappa = 0.37464 + 1.54226*omega -0.26992*omega**2

alpha = (1 + kappa*(1-sqrt(T/Tc)))**2

a = 0.45724*alpha*((Rgi*Tc)**2)/Pc

B = (b*P)/(Rgi*T)

A = (a*P)/(Rgi*T)**2

beta2 = B-1

beta1 = A - 3*(B**2) -2*B

beta0 = B**3 + B**2 - A*B

pol = [1,beta2,beta1,beta0]

r = roots(pol)

Z = real(r[isreal(r)])[0] #plot for vapor

return Z

def PR_EOSliq(T,P):

b = 0.07780*(Rgi*Tc)/(Pc)

kappa = 0.37464 + 1.54226*omega -0.26992*omega**2

alpha = (1 + kappa*(1-sqrt(T/Tc)))**2

a = 0.45724*alpha*((Rgi*Tc)**2)/Pc

B = (b*P)/(Rgi*T)

A = (a*P)/(Rgi*T)**2

beta2 = B-1

beta1 = A - 3*(B**2) -2*B

beta0 = B**3 + B**2 - A*B

pol = [1,beta2,beta1,beta0]

r = roots(pol)

Z = real(r[isreal(r)])[2] #plot for liquid

return Z

Denvap2 = P/(Rgi*T*PR_EOSvap(T,P))*(1.0/1000)

Denliq2 = P/(Rgi*T*PR_EOSliq(T,P))*(1.0/1000)

print '{0}'.format('Peng Robinson EoS')

print '{0}'.format('Vapor density (mol/L), Liquid density(mol/L) ')

print '{0} {1}'.format(Denvap2,Denliq2)

"""SRK EoS"""

def SRK_EOSvap(T,P):

b = 0.07780*(Rgi*Tc)/(Pc)

kappa = 0.37464 + 1.54226*omega -0.26992*omega**2

alpha = (1 + kappa*(1-sqrt(T/Tc)))**2

a = 0.45724*alpha*((Rgi*Tc)**2)/Pc

B = (b*P)/(Rgi*T)

A = (a*P)/(Rgi*T)**2

beta2 = -1

beta1 = A - B - B**2

beta0 = -A*B

pol = [1,beta2,beta1,beta0]

r = roots(pol)

Z = real(r[isreal(r)])[0] #plot for vapor

return Z

def SRK_EOSliq(T,P):

b = 0.07780*(Rgi*Tc)/(Pc)

kappa = 0.37464 + 1.54226*omega -0.26992*omega**2

alpha = (1 + kappa*(1-sqrt(T/Tc)))**2

a = 0.45724*alpha*((Rgi*Tc)**2)/Pc

B = (b*P)/(Rgi*T)

A = (a*P)/(Rgi*T)**2

beta2 = -1

beta1 = A - B - B**2

beta0 = -A*B

pol = [1,beta2,beta1,beta0]

r = roots(pol)

Z = real(r[isreal(r)])[2] #plot for liquid

return Z

Denvap3 = P/(Rgi*T*SRK_EOSvap(T,P))*(1.0/1000)

Denliq3 = P/(Rgi*T*SRK_EOSliq(T,P))*(1.0/1000)

print '{0}'.format('Soave RK EoS')

print '{0}'.format('Vapor density (mol/L), Liquid density(mol/L) ')

print '{0} {1}'.format(Denvap3,Denliq3)

Program outputs:

Van der Waals Equation
Vapor density (mol/L), Liquid density(mol/L)
0.574120847444 4.78587403725
Peng Robinson EoS
Vapor density (mol/L), Liquid density(mol/L)
0.631976283254 8.11360467905
Soave RK EoS
Vapor density (mol/L), Liquid density(mol/L)
0.649763368867 9.20326108369
>>>


Related Solutions

Liquid benzene at 298K and 1.2 bar is converted to vapor at 473K and 5 bar...
Liquid benzene at 298K and 1.2 bar is converted to vapor at 473K and 5 bar in a two-step process. For compression to 5 bar by a pump, calculate the power requirement of the pump, if it is 70% efficient. Assume Cp of 105 j/mol.
A tank contains a two-phase liquid–vapor mixture of Refrigerant 22 at 10 bar. The mass of...
A tank contains a two-phase liquid–vapor mixture of Refrigerant 22 at 10 bar. The mass of saturated liquid in the tank is 25 kg and the quality is 30%. Determine the volume of the tank, in m3, and the percentage of the total volume occupied by saturated vapor.
Give an example of a vapor-liquid phase diagram and explain the difference in liquid and vapor...
Give an example of a vapor-liquid phase diagram and explain the difference in liquid and vapor composition at a given temperature during the distillation process.
A vapor mixture of -butane (B) and -heptane (H) contains 40.0 mole% butane at 80°C enters...
A vapor mixture of -butane (B) and -heptane (H) contains 40.0 mole% butane at 80°C enters a condenser at a rate 4 kg/s. Liquid and vapor product streams emerge from the process in equilibrium at 40◦C. The vapor product has a 45.0 mole% butane composition. Determine: a. The pressure in the condenser b. The composition and flowrate (mol/s) of the liquid stream c. During operation, the system contains a 3m depth of the liquid phase (S.G. = 1.41) at any...
At 300K, the vapor pressure of pure liquid A and liquid B are 37.33 kPa and...
At 300K, the vapor pressure of pure liquid A and liquid B are 37.33 kPa and 22.66 kPa respectively. If we mix 2 mol liquid A with 2 mol liquid B, the total vapor pressure above the solution is 50.66 kPa and the molar fraction of vapor A is 0.60. Assume the vapor is an ideal gas. Calculate (a) the activity of A and B in the solution (b) the Gibbs energy change of mixing ΔmixG (c) If the solution...
Find the compositon and temperature of a vapor in equilibrium with a liquid that is 0.400...
Find the compositon and temperature of a vapor in equilibrium with a liquid that is 0.400 mol acetic acid/mol and 0.600 mole water/mol at 1 atm. ya= yw= Tbp= Find the composition and temperature of a liquid in equilibrium with a gas that is at 1 atm and is composed of 0.500 mol acetic acid/mol, 0.300 mol water/mol, and the rest nitrogen. xa= xw= Tdp= A gas mixture of 0.230 mol acetic acid/mol, 0.200 mol water/mol, and 0.570 mol inerts/mol...
A sample of butane gas, C4H10, was slowly heated at constant pressure of .80 bar. The...
A sample of butane gas, C4H10, was slowly heated at constant pressure of .80 bar. The volume of the gas was measured a series of different temperatures and plot of volume vs. temperature was constructed. The slope of the line was .0208 L/K. What was the mass of the sample of butane? Please explain.
A sample of water in the vapor phase (no liquid present) in a flask of constant...
A sample of water in the vapor phase (no liquid present) in a flask of constant volume exerts a pressure of 403 mmHg at 99°C. The flask is slowly cooled. i) Assuming no condensation, use the Ideal Gas Law to calculate the pressure of the vapor at 91°C; at 75°C. ii) Will condensation occur at 91°C? 75°C? iii) On the basis of your answers in i) and ii), predict the pressure exerted by the water vapor in the flask at...
Can the quality be defined in the superheated vapor or compressed liquid regions?
Can the quality be defined in the superheated vapor or compressed liquid regions?
Determine the percent error in the vapor volume from the real value (experimental data) for n-butane...
Determine the percent error in the vapor volume from the real value (experimental data) for n-butane at 15 bar, 125oC using the follow equations of state: i) Ideal gas ii) Van der Waals iii) Peng Robinson.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT