Calculates the compressibility factor of natural gases for range of pressures 'minP' to 'maxP' in steps 'Pstep'(for a given temperature T and specific gravity sg) using the Dranchuk-Abbou Kassem equation of state. The input pressures and temperature are in Psia and degree Farenheit respectively. Average absolute error of 0.486% for 0.2<Ppr<30 and 1.0<Tpr<3.0 and for Ppr<1.0 with 0.7<Tpr<1.0. Poor results for Tpr = 1.0 and Ppr>1.0(Craft&Hawkins,1991)
Improved bisection algorithm to ensure high pressure values are properly handled
General in-code commentary
Updated commentary on range of validity
Restates that the input temperature is in degree Farenheit and not degree Rankine as previously stated. Code structure remains unchanged.
Update of Sutton's Correlation
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.