Skip to content

rodlift.pvt.oil

rodlift.pvt.oil

Black-oil properties: solution GOR, bubble point, FVF, compressibility, viscosity.

Every correlation is implemented in the units of its original publication and wrapped so that the public functions take and return SI units:

  • pressure in Pa (absolute), temperature in K;
  • gas-oil ratios in standard m³ of gas per standard m³ of oil;
  • formation volume factors in m³/m³; compressibility in 1/Pa; viscosity in Pa·s.

Oil gravity is given in °API and gas gravity relative to air. All functions accept scalars or arrays (broadcast together).

References

.. [Standing1947] Standing, M.B. (1947). "A pressure-volume-temperature correlation for mixtures of California oils and gases." Drilling and Production Practice, API. .. [Standing1977] Standing, M.B. (1977). Volumetric and Phase Behavior of Oil Field Hydrocarbon Systems. SPE, Dallas. .. [Lasater1958] Lasater, J.A. (1958). "Bubble point pressure correlation." Trans. AIME, 213, 379-381. .. [VasquezBeggs1980] Vasquez, M. and Beggs, H.D. (1980). "Correlations for fluid physical property prediction." J. Pet. Technol., 32(6), 968-970. .. [Glaso1980] Glasø, Ø. (1980). "Generalized pressure-volume-temperature correlations." J. Pet. Technol., 32(5), 785-795. .. [Kartoatmodjo1994] Kartoatmodjo, T. and Schmidt, Z. (1994). "Large data bank improves crude physical property correlations." Oil & Gas J., 92(27), 51-55. .. [Trube1957] Trube, A.S. (1957). "Compressibility of undersaturated hydrocarbon reservoir fluids." Trans. AIME, 210, 341-344. .. [Katz1942] Katz, D.L. (1942). "Prediction of the shrinkage of crude oils." Drilling and Production Practice, API. .. [Beal1946] Beal, C. (1946). "The viscosity of air, water, natural gas, crude oil and its associated gases at oil field temperatures and pressures." Trans. AIME, 165. .. [BeggsRobinson1975] Beggs, H.D. and Robinson, J.R. (1975). "Estimating the viscosity of crude oil systems." J. Pet. Technol., 27(9), 1140-1141. .. [EgbogahNg1990] Egbogah, E.O. and Ng, J.T. (1990). "An improved temperature-viscosity correlation for crude oil systems." J. Pet. Sci. Eng., 4(3), 197-200. .. [ChewConnally1959] Chew, J. and Connally, C.A. (1959). "A viscosity correlation for gas-saturated crude oils." Trans. AIME, 216, 23-25. .. [Singh1993] Singh, B., Miadonye, A. and Puttagunta, V.R. (1993). "Heavy oil viscosity range from one test." Hydrocarbon Processing, 72(8), 157-162. .. [ASTMD341] ASTM D341. Standard Practice for Viscosity-Temperature Equations and Charts for Liquid Petroleum or Hydrocarbon Products. ASTM International. .. [BrillMukherjee1999] Brill, J.P. and Mukherjee, H. (1999). Multiphase Flow in Wells. SPE Monograph Vol. 17, Richardson, TX.

SolutionGORMethod module-attribute

SolutionGORMethod: TypeAlias = Literal[
    "standing",
    "lasater",
    "vasquez_beggs",
    "glaso",
    "kartoatmodjo_schmidt",
]

Correlations available for solution gas-oil ratio and bubble-point pressure.

OilFVFMethod module-attribute

OilFVFMethod: TypeAlias = Literal[
    "standing",
    "vasquez_beggs",
    "glaso",
    "kartoatmodjo_schmidt",
]

Correlations available for the saturated oil formation volume factor.

OilCompressibilityMethod module-attribute

OilCompressibilityMethod: TypeAlias = Literal[
    "trube", "vasquez_beggs"
]

Correlations available for undersaturated oil compressibility.

DeadOilViscosityMethod module-attribute

DeadOilViscosityMethod: TypeAlias = Literal[
    "astm_d341",
    "beal",
    "beggs_robinson",
    "egbogah_ng_pour_point",
    "egbogah_ng",
    "glaso",
    "singh",
]

Correlations available for dead-oil viscosity.

LiveOilViscosityMethod module-attribute

LiveOilViscosityMethod: TypeAlias = Literal[
    "chew_connally", "beggs_robinson"
]

Correlations available for the effect of dissolved gas on oil viscosity.

UndersaturatedViscosityMethod module-attribute

UndersaturatedViscosityMethod: TypeAlias = Literal[
    "beal", "vasquez_beggs"
]

Correlations available for oil viscosity above the bubble point.

Separator dataclass

Separator(
    pressure: float = 114.7 * units.PSI,
    temperature: float = units.T_STANDARD,
)

Separator conditions at which the gas gravity was measured.

Used by the Vasquez-Beggs and Kartoatmodjo-Schmidt correlations to normalise the gas gravity to a 100 psig separator. The defaults (114.7 psia, 60 °F) make that normalisation a no-op.

Attributes:

Name Type Description
pressure float

Separator pressure, Pa (absolute).

temperature float

Separator temperature, K. Must be above 0 °F for Kartoatmodjo-Schmidt.

solution_gor

solution_gor(
    pressure: ArrayLike,
    temperature: ArrayLike,
    api: ArrayLike,
    gas_sg: ArrayLike,
    *,
    method: SolutionGORMethod = "standing",
    separator: Separator = _DEFAULT_SEPARATOR,
) -> FloatOrArray

Solution gas-oil ratio of saturated oil, m³/m³.

The value is the gas in solution at pressure when the oil is saturated (i.e. for pressures at or below the bubble point). It is not limited by the producing GOR; :class:rodlift.pvt.BlackOil applies that limit.

Parameters:

Name Type Description Default
pressure ArrayLike

Absolute pressure, Pa.

required
temperature ArrayLike

Temperature, K.

required
api ArrayLike

Stock-tank oil gravity, °API.

required
gas_sg ArrayLike

Gas specific gravity (air = 1).

required
method SolutionGORMethod

"standing" [Standing1947], "lasater" [Lasater1958], "vasquez_beggs" [VasquezBeggs1980], "glaso" [Glaso1980] or "kartoatmodjo_schmidt" [Kartoatmodjo1994]_.

'standing'
separator Separator

Separator conditions (Vasquez-Beggs and Kartoatmodjo-Schmidt only).

_DEFAULT_SEPARATOR

Returns:

Type Description
float or ndarray

Solution GOR, standard m³ gas per standard m³ oil.

bubble_point_pressure

bubble_point_pressure(
    rs: ArrayLike,
    temperature: ArrayLike,
    api: ArrayLike,
    gas_sg: ArrayLike,
    *,
    method: BubblePointMethod = "standing",
    separator: Separator = _DEFAULT_SEPARATOR,
) -> FloatOrArray

Bubble-point pressure for a given solution GOR, Pa (absolute).

Each method is the exact inverse of the corresponding :func:solution_gor correlation.

Parameters:

Name Type Description Default
rs ArrayLike

Solution (or producing) gas-oil ratio, m³/m³.

required
temperature ArrayLike

Temperature, K.

required
api ArrayLike

Stock-tank oil gravity, °API.

required
gas_sg ArrayLike

Gas specific gravity (air = 1).

required
method BubblePointMethod

See :func:solution_gor.

'standing'
separator Separator

Separator conditions (Vasquez-Beggs and Kartoatmodjo-Schmidt only).

_DEFAULT_SEPARATOR

saturated_oil_fvf

saturated_oil_fvf(
    rs: ArrayLike,
    temperature: ArrayLike,
    api: ArrayLike,
    gas_sg: ArrayLike,
    *,
    method: OilFVFMethod = "standing",
    separator: Separator = _DEFAULT_SEPARATOR,
) -> FloatOrArray

Formation volume factor of saturated oil, m³/m³.

Results are floored at 1.0 (oil cannot shrink below stock-tank volume).

Parameters:

Name Type Description Default
rs ArrayLike

Solution gas-oil ratio, m³/m³.

required
temperature ArrayLike

Temperature, K.

required
api ArrayLike

Stock-tank oil gravity, °API.

required
gas_sg ArrayLike

Gas specific gravity (air = 1).

required
method OilFVFMethod

"standing" (form given by [BrillMukherjee1999]), "vasquez_beggs" [VasquezBeggs1980], "glaso" [Glaso1980]_ or "kartoatmodjo_schmidt" [Kartoatmodjo1994]_.

'standing'
separator Separator

Separator conditions (Vasquez-Beggs and Kartoatmodjo-Schmidt only).

_DEFAULT_SEPARATOR

oil_compressibility

oil_compressibility(
    pressure: ArrayLike,
    temperature: ArrayLike,
    api: ArrayLike,
    gas_sg: ArrayLike,
    rs: ArrayLike,
    *,
    method: OilCompressibilityMethod = "vasquez_beggs",
    separator: Separator = _DEFAULT_SEPARATOR,
) -> FloatOrArray

Isothermal compressibility of undersaturated oil, 1/Pa.

Parameters:

Name Type Description Default
pressure ArrayLike

Absolute pressure (above the bubble point), Pa.

required
temperature ArrayLike

Temperature, K.

required
api ArrayLike

Stock-tank oil gravity, °API.

required
gas_sg ArrayLike

Gas specific gravity (air = 1).

required
rs ArrayLike

Solution gas-oil ratio of the undersaturated oil (equal to the GOR at the bubble point), m³/m³.

required
method OilCompressibilityMethod

"trube" [Trube1957]_ (chart, with the Katz apparent gas density [Katz1942]) or "vasquez_beggs" [VasquezBeggs1980].

'vasquez_beggs'
separator Separator

Separator conditions (Vasquez-Beggs only).

_DEFAULT_SEPARATOR

dissolved_gas_sg_katz

dissolved_gas_sg_katz(
    api: ArrayLike, rs: ArrayLike
) -> FloatOrArray

Specific gravity of the gas dissolved in oil, after Katz [Katz1942]_.

γ_gd = (API + 12.5)/50 − 3.5715·10⁻⁶ · API · Rs with Rs in scf/STB. The caller is responsible for any lower bound (see :class:rodlift.pvt.BlackOil).

dead_oil_viscosity

dead_oil_viscosity(
    temperature: ArrayLike,
    api: ArrayLike,
    *,
    method: DeadOilViscosityMethod = "beggs_robinson",
    pour_point: ArrayLike | None = None,
    reference: tuple[tuple[float, float], ...]
    | None = None,
    kinematic: bool = False,
) -> FloatOrArray

Viscosity of gas-free (dead) oil at atmospheric pressure, Pa·s.

Parameters:

Name Type Description Default
temperature ArrayLike

Temperature, K.

required
api ArrayLike

Stock-tank oil gravity, °API.

required
method DeadOilViscosityMethod
  • "astm_d341" – interpolation/extrapolation between two measured points with the ASTM D341 viscosity-temperature equation [ASTMD341]_. Requires reference with two points.
  • "beal" – Beal's chart [Beal1946]_ as fitted by Standing [Standing1977]_.
  • "beggs_robinson" – [BeggsRobinson1975]_.
  • "egbogah_ng_pour_point" – Egbogah & Ng [EgbogahNg1990]_ correlation using the pour point; requires pour_point.
  • "egbogah_ng" – Egbogah & Ng's refit of Beggs-Robinson [EgbogahNg1990]_.
  • "glaso" – [Glaso1980]_.
  • "singh" – one-point method of Singh et al. [Singh1993]_. Requires reference with one point (only the first is used).
'beggs_robinson'
pour_point ArrayLike | None

Oil pour point, K ("egbogah_ng_pour_point" only).

None
reference tuple[tuple[float, float], ...] | None

Measured dead-oil viscosities as ((temperature_K, viscosity), ...). Viscosities are dynamic in Pa·s, or kinematic in m²/s when kinematic=True.

None
kinematic bool

Whether the reference viscosities are kinematic.

False

Warns:

Type Description
CorrelationRangeWarning

For the empirical correlations (Beal, Beggs-Robinson, Egbogah-Ng and Glasø) when API < 10; the value 11 °API is used instead.

Raises:

Type Description
ValueError

If required inputs are missing, or the temperature is not above the pour point.

live_oil_viscosity

live_oil_viscosity(
    dead_viscosity: ArrayLike,
    rs: ArrayLike,
    *,
    method: LiveOilViscosityMethod = "beggs_robinson",
) -> FloatOrArray

Viscosity of gas-saturated oil, Pa·s.

Parameters:

Name Type Description Default
dead_viscosity ArrayLike

Dead-oil viscosity at the same temperature, Pa·s.

required
rs ArrayLike

Solution gas-oil ratio, m³/m³.

required
method LiveOilViscosityMethod

"chew_connally" [ChewConnally1959]_ (tabulated A, B; Rs limited to 2500 scf/STB in the table look-up) or "beggs_robinson" [BeggsRobinson1975]_.

'beggs_robinson'

undersaturated_oil_viscosity

undersaturated_oil_viscosity(
    saturated_viscosity: ArrayLike,
    pressure: ArrayLike,
    bubble_point: ArrayLike,
    *,
    method: UndersaturatedViscosityMethod = "vasquez_beggs",
) -> FloatOrArray

Viscosity of oil above its bubble point, Pa·s.

For pressure <= bubble_point the saturated viscosity is returned unchanged.

Parameters:

Name Type Description Default
saturated_viscosity ArrayLike

Oil viscosity at the bubble point, Pa·s.

required
pressure ArrayLike

Absolute pressure, Pa.

required
bubble_point ArrayLike

Bubble-point pressure, Pa.

required
method UndersaturatedViscosityMethod

"beal" [Beal1946]_ (equation as given by [Standing1977]) or "vasquez_beggs" [VasquezBeggs1980].

'vasquez_beggs'