Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( b ) Generate a new plot of P vs V ? for 4 5 0 K ( for the PR EOS ) . Add

(b) Generate a new plot of P vs V? for 450K(for the PR EOS). Add to this plot a horizontal line at Pvap(450K) as predicted from the Antoine equation. Confirm that this value of Pvap crosses the P vs V? plot at 3 points. You might need to tweak the range of your x-axis to see this. Then, using the equal-area construction show that the Pvap obtained from the Antoine equation satisfies the thermodynamic criteria for phase equilibrium TL=TV,PL=PV, and G??(L)=G??(V).
Hints:
Be careful with your units. You might also need to tweak the range of V? to see the three intersections.
As discussed in class, you will want to divide your P vs V? curve into two regions, one part of the "loop" that is less than Pvap and another part of the "loop" that is greater than Pvap.
To calculate the area of each region numerically use the numpy . trapz() function. Note that this function takes the y-values as the 1st argument, and the x-values as then 2nd. If you're having trouble with numpy. trapz try using it to calculate the area beneath a simple curve (i.e.y=x or y=sin(x) and then move onto calculating the area within the "loop".
Don't forget to add/subtract the value of Pvap prior to performing the integration. The "height" of your trapezoids in the integration step should be relative to Pvap, notP=0.
(c) Determine the vapor pressure of pure benzene at 300K,350K,400K,450K and 500K using only the Peng-Robinson equation of state. For iterations, use a convergence criterion of 10-5 for the iteration error. Next, use the Antoine equation to predict Pvap at these temperatures, and generate a plot comparing the predictions from the PR EOS and the Antoine equation. How do the predictions of Pvap obtained from each method compare for each of these temperatures?
Hint: Use the Python from the Vapor-Liquid Phase Equilibrium class example as a starting point for these calculations.
Note: This problem should be solved entirely with Python and/or a Jupyter notebook.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Thermodynamics Concepts And Applications

Authors: Stephen R. Turns, Laura L. Pauley

2nd Edition

1107179718, 9781107179714

More Books

Students also viewed these Chemical Engineering questions

Question

explain what is meant by the terms unitarism and pluralism

Answered: 1 week ago