Create your own computer tool (e.g., spreadsheet or Matlab) that calculates the specific volume (m3/kmol) of a gas or vapor as a function of T and P using the ideal gas law, Virial Equation of State and the SRK Equation of State. Use your spreadsheet calculate the specific volume of nitrogen (N2) and ammonia (NH3) at two conditions:
a. STP
b. 400 ?C and 20 MPa
In addition, calculate the specific volume using the generalized compressibility charts on pages 208-211). For each specific volume, calculate the percent deviation from the ideal gas law. Present your final results in a table and include a copy of your program with your assignment. (A: ideal gas comparison will serve as guide, deviations are <10%