Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please compute python code for the following problem: ( b ) Generate a new plot of P vs V ? for 4 5 0 K
Please compute python code for the following problem:
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 yvalues as the st argument, and the xvalues as then nd 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 notPGenerate a new plot of P vs V for K for the PR EOS Add to this plot a horizontal line at
P
vapK as predicted from the Antoine equation. Confirm that this value of P
vap crosses the
P vs V plot at points. You might need to tweak the range of your xaxis to see this. Then, using
the equalarea construction show that the P
vap obtained from the Antoine equation satisfies the
thermodynamic criteria for phase equilibrium T
L T
V P
L P
V and G
L G
V
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