Hall-Yarborough correlation

z.HallYarborough(pres.pr, temp.pr, tolerance = 1e-13, verbose = FALSE)

Arguments

pres.pr

pseudo-reduced pressure

temp.pr

pseudo-reduced temperature

tolerance

controls the iteration accuracy

verbose

print internal

Examples

# get z value from a Tpr at Ppr z.HallYarborough(pres.pr = 1.5, temp.pr = 2.0)
#> [1] 0.9580002
z.HallYarborough(pres.pr = 1.5, temp.pr = 1.1)
#> [1] 0.4732393
# for two given Tpr and Ppr vectors, find the calculated z points ppr <- c(0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5) tpr <- c(1.3, 1.5, 1.7, 2) hy <- z.HallYarborough(pres.pr = ppr, temp.pr = tpr) print(hy)
#> 0.5 1.5 2.5 3.5 4.5 5.5 6.5 #> 1.3 0.9176300 0.7534433 0.6399020 0.6323003 0.6881127 0.7651710 0.8493794 #> 1.5 0.9496855 0.8581232 0.7924067 0.7687902 0.7868071 0.8316848 0.8906351 #> 1.7 0.9682547 0.9134862 0.8756412 0.8605668 0.8694525 0.8978885 0.9396353 #> 2 0.9838234 0.9580002 0.9426939 0.9396286 0.9490995 0.9697839 0.9994317