Question: write python code to solve the below problem Problem 2 - Root-Finding: Equations of State It is proposed to use a steel tank to store

write python code to solve the below problem

write python code to solve the below problem Problem 2 - Root-Finding:

Problem 2 - Root-Finding: Equations of State It is proposed to use a steel tank to store carbon dioxide at 300K. The tank is 3.0m3 in volume (V) and the maximum pressure (p) it can safely withstand is 150atm. a) Using Python, determine the maximum number of moles (n) of CO2 that can be stored in the tank using the three equations of state given below (each uses the molar volume Vm=V). Use the Modified Secant method to solve the problem with a tolerance of 0.01 mol. For Beattie-Bridgeman, you will also use the Newton-Raphson method with the same tolerance. Report the maximum n for each equation of state and method (4 total). b) Assuming that the Beattie-Bridgeman equation is the most accurate, what is the percent error in the calculated number of moles n using the other two equations of state? Peng-Robinson (PR): p=VmBPRRTVm2+2BPRVmBPR2APRPR(T,) APR=Pc0.45724R2Tc2BPR=Pc0.07780RTcPR(T,)=(1+(0.37464+1.542260.269922)(1(TcT)0.5))2 For both PR and SRK, use: R=0.08205616Latm/molK,Tc=304.2K,Pc=72.9atm, and = 0.225 Beattie-Bridgeman: p=VmRT+Vm2+Vm3+Vm4=RTB0A0T2cR;=RTB0b+A0aT2cRB0;=T2cRB0b where A0=5.0065,a=0.07132,B0=0.10476,b=0.07235, and c=660,000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!