Question: (2) [20 pt] Write a Matlab function called Prk.m that calculates the pressure of a gas using the RedlichKwong equation of state. It should take
![(2) [20 pt] Write a Matlab function called Prk.m that calculates](https://s3.amazonaws.com/si.experts.images/answers/2024/09/66df74134fe62_27466df7412c61f6.jpg)
(2) [20 pt] Write a Matlab function called Prk.m that calculates the pressure of a gas using the RedlichKwong equation of state. It should take as arguments T,Tc,Pc and (vector) V. It should return the pressure (which may also be a vector). Use this function to generate plots of P vs. V for ethane (Tc= 305.3K,Pc=48.72 bar) at temperatures of 1.1Tc,1.0Tc and 0.9Tc. P=VbRTV(V+b)aa=0.42748PcR2Tc2b=0.08664PcRTc=(T/Tc)1/2 (2) [20 pt] Write a Matlab function called Prk.m that calculates the pressure of a gas using the RedlichKwong equation of state. It should take as arguments T,Tc,Pc and (vector) V. It should return the pressure (which may also be a vector). Use this function to generate plots of P vs. V for ethane (Tc= 305.3K,Pc=48.72 bar) at temperatures of 1.1Tc,1.0Tc and 0.9Tc. P=VbRTV(V+b)aa=0.42748PcR2Tc2b=0.08664PcRTc=(T/Tc)1/2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
