The goal of rNodal is to provide nodal analysis for oil and gas wells.

Installation

You can install rNodal from github with:

# install.packages("devtools")
devtools::install_github("f0nzie/rNodal")

Example

This is a basic example which shows you how to solve a common problem:

## basic example code

Using zFactor

# use the new library zFactor
library(zFactor)

z.HallYarborough(pres.pr = 4.5, temp.pr = 1.4)
#> [1] 0.7373812
z.DranchukAbuKassem(pres.pr = 4.5, temp.pr = 1.4)
#> [1] 0.7396345
z.BeggsBrill(pres.pr = 4.5, temp.pr = 1.4)
#> [1] 0.7343367
z.Ann10(pres.pr = 4.5, temp.pr = 1.4)
#> [1] 0.736032
z.Papp(pres.pr = 4.5, temp.pr = 1.4)
#> [1] 0.7299354