Learn R Programming

zFactor (version 0.1.9)

z.Shell: Shell correlation from Kumar thesis (2005)

Description

Shell correlation from Kumar thesis (2005)

Usage

z.Shell(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

Run this code
# NOT RUN {
# single z point and create a dataframe with info
ppr <- 1.5
tpr <- 1.1
z.calc <- z.Shell(pres.pr = ppr, temp.pr = tpr)
# From the Standing-Katz chart we obtain a digitized point:
z.chart <- getStandingKatzMatrix(tpr_vector = tpr,
                                 pprRange = "lp")[1, as.character(ppr)]
ape <- abs((z.calc - z.chart) / z.chart) * 100
df <- as.data.frame(list(Ppr = ppr,  z.calc =z.calc, z.chart = z.chart, ape=ape))
rownames(df) <- tpr
df
# }

Run the code above in your browser using DataLab