PetroCalcHub
All workflow tools

DAK and Hall-Yarborough Gas Z-Factor Solver

Solve DAK and Hall-Yarborough gas compressibility factors from reduced pressure and temperature, with checked residuals and a pressure comparison curve.

Inputs

Results

Calculate to view linked results. Default values are examples, not recommended operating inputs.

Learn, compare and practice

Worked explanations, controlled studies and printable exercises connected to this calculation.

Calculation sequence

  1. Enter P_pr = absolute pressure / pseudo-critical pressure and T_pr = absolute temperature / pseudo-critical temperature. These are dimensionless ratios, not psi and degrees Fahrenheit. Select pseudo-critical properties using a method appropriate to the composition before forming the ratios. The tool does not estimate gas gravity, composition or sour-gas corrections, and it does not accept a gauge-pressure ratio.
  2. The DAK branch uses all eleven published coefficients to evaluate its density-dependent Z expression. Bisection solves rho_r times Z minus 0.27 P_pr/T_pr on a positive-density bracket. Hall-Yarborough separately solves its rational density residual between zero and a point below the y = 1 pole. Their density variables have different definitions and must not be compared as if they were the same physical density.
  3. Each result is checked against its original pressure-balance residual, normalized by the pressure-dependent term; a relative residual above 1e-9 is rejected. The output reports function evaluations, including bracket and final checks, rather than calling those counts Newton iterations. Twenty-five independently solved pressure points run from P_pr = 0.2 to the selected pressure at the same temperature; an unsupported point fails instead of being silently skipped.
  4. Compare both Z values and their signed percentage difference relative to DAK. A small residual establishes that the numerical equation was solved, not that the correlation agrees with your gas sample. Both correlations approximate related reduced-property data, so agreement is not independent validation of the pseudo-critical properties or phase state. Use measured PVT or an appropriate compositional EOS for decisions outside this screening workflow.

Worked check

At P_pr = 3 and T_pr = 1.5, the two independently solved correlations give approximately Z_DAK = 0.776128 and Z_HY = 0.774828. The default inputs are synthetic reduced-property values, not a measured fluid. The source's DAK example A-4 uses rounded P_pr = 3.016 and T_pr = 1.849 and reports Z = 0.9076; the numerical regressions reproduce that rounded published check separately from the default comparison.

Synthetic examples for reproducibility, not measured field results.

Assumptions and limitations

  • This comparison deliberately supports only 0.2 <= P_pr <= 15 and 1.2 <= T_pr <= 3. The software envelope is narrower than the cited DAK range; near-critical, subcritical and higher-pressure extensions are not implemented. Bounds are enforced, not treated as extrapolation warnings.
  • Single gas-phase correlation evaluation only. No dew-point or phase-equilibrium test, composition adjustment, sour-gas correction, density in mass units, gas compressibility derivative or fluid flash is performed. Passing an envelope check does not establish that a supplied fluid is in one phase.
  • Brackets, a bounded iteration count and final residual tests prevent an unverified number being returned. The chart shows correlation sensitivity within the selected interval, not measured error bars. Correlation difference and solver residual are different diagnostics and must not be presented as guaranteed accuracy.

Implemented equations

Dranchuk-Abou-Kassem density solve

ρrZDAK(ρr,Tpr)=0.27PprTprZ=0.27PprρrTpr\begin{aligned}\rho_r Z_{DAK}(\rho_r,T_{pr})&=\frac{0.27P_{pr}}{T_{pr}}\\Z&=\frac{0.27P_{pr}}{\rho_r T_{pr}}\end{aligned}

Hall-Yarborough density solve

F(y)=0,0<y<1Z=APpryA=0.06125te−1.2(1−t)2t=1/Tpr\begin{aligned}F(y)&=0,\quad 0<y<1\\Z&=\frac{AP_{pr}}{y}\\A&=0.06125t e^{-1.2(1-t)^2}\\t&=1/T_{pr}\end{aligned}

DAK density-dependent expression

ZDAK=1+c1ρr+c2ρr2−c3ρr5+c4c1=A1+A2Tpr+A3Tpr3+A4Tpr4+A5Tpr5c2=A6+A7Tpr+A8Tpr2c3=A9(A7Tpr+A8Tpr2)c4=A10ρr2Tpr3(1+A11ρr2)⋅e−A11ρr2\begin{aligned}Z_{DAK}&=1+c_1\rho_r+c_2\rho_r^2\\&\quad-c_3\rho_r^5+c_4\\c_1&=A_1+\frac{A_2}{T_{pr}}+\frac{A_3}{T_{pr}^3}\\&\quad+\frac{A_4}{T_{pr}^4}+\frac{A_5}{T_{pr}^5}\\c_2&=A_6+\frac{A_7}{T_{pr}}+\frac{A_8}{T_{pr}^2}\\c_3&=A_9\left(\frac{A_7}{T_{pr}}+\frac{A_8}{T_{pr}^2}\right)\\c_4&=\frac{A_{10}\rho_r^2}{T_{pr}^3}(1+A_{11}\rho_r^2)\\&\quad\cdot e^{-A_{11}\rho_r^2}\end{aligned}

Hall-Yarborough residual and coefficients

F(y)=−APpr+H(y)−By2+CyDH(y)=y+y2+y3−y4(1−y)3B=14.76t−9.76t2+4.58t3C=90.7t−242.2t2+42.4t3D=2.18+2.82t\begin{aligned}F(y)&=-AP_{pr}+H(y)-By^2+Cy^D\\H(y)&=\frac{y+y^2+y^3-y^4}{(1-y)^3}\\B&=14.76t-9.76t^2+4.58t^3\\C&=90.7t-242.2t^2+42.4t^3\\D&=2.18+2.82t\end{aligned}
DAK coefficientValue
A10.3265
A2-1.0700
A3-0.5339
A40.01569
A5-0.05165
A60.5475
A7-0.7361
A80.1844
A90.1056
A100.6134
A110.7210

Sources and maintenance

Published by PetroCalcHub Team. Implementation and source checks: . This does not claim independent expert review.

Report a correction

Related tools and references