Answered step by step
Verified Expert Solution
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 vs for for the PR EOS Add to this plot a horizontal line at as predicted from the Antoine equation. Confirm that this value of crosses the vs plot at points. You might need to tweak the range of your axis to see this. Then, using the equalarea construction show that the obtained from the Antoine equation satisfies the thermodynamic criteria for phase equilibrium and
Hints:
Be careful with your units. You might also need to tweak the range of to see the three intersections.
As discussed in class, you will want to divide your vs curve into two regions, one part of the "loop" that is less than and another part of the "loop" that is greater than
To calculate the area of each region numerically use the numpy trapz function. Note that this function takes the values as the st argument, and the values as then If you're having trouble with numpy. trapz try using it to calculate the area beneath a simple curve ie or and then move onto calculating the area within the "loop".
Don't forget to addsubtract the value of prior to performing the integration. The "height" of your trapezoids in the integration step should be relative to notP
c Determine the vapor pressure of pure benzene at and using only the PengRobinson equation of state. For iterations, use a convergence criterion of for the iteration error. Next, use the Antoine equation to predict at these temperatures, and generate a plot comparing the predictions from the PR EOS and the Antoine equation. How do the predictions of obtained from each method compare for each of these temperatures?
Hint: Use the Python from the VaporLiquid Phase Equilibrium class example as a starting point for these calculations.
Note: This problem should be solved entirely with Python andor a Jupyter notebook.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started