bluebonnet.fluids.water

PVT and viscosity for water from the correlations provided by McCain.

Functions

b_water_McCain(...)

Calculate the b-factor for water.

b_water_McCain_dp(...)

Calculate the derivative of the b-factor for water with respect to pressure.

compressibility_water_McCain(...)

Calculate the compressibility for water.

density_water_McCain(...)

Calculate the density for water.

viscosity_water_McCain(...)

Calculate the viscosity for water, Using McCain (1991).

Module Contents

bluebonnet.fluids.water.b_water_McCain(temperature: float, pressure: float | numpy.typing.NDArray[numpy.float64]) float | numpy.typing.NDArray[numpy.float64][source]

Calculate the b-factor for water.

Parameters:
  • temperature (float) – water temperature in Fahrenheit

  • pressure (np.ndarray) – water pressure in psia

Returns:

b_w – b-factor (reservoir bbl / standard bbl)

Return type:

float

Examples

>>> b_water_McCain(400, 3000)
bluebonnet.fluids.water.b_water_McCain_dp(temperature: float, pressure: float | numpy.typing.NDArray[numpy.float64]) float | numpy.typing.NDArray[numpy.float64][source]

Calculate the derivative of the b-factor for water with respect to pressure.

Parameters:
  • temperature (float) – water temperature in Fahrenheit

  • pressure (float | NDArray) – water pressure in psia

Returns:

b_w_dp – derivative of b-factor (reservoir bbl / standard bbl) / psi

Return type:

float

Examples

>>> b_water_McCain_dp(400, 3000)
bluebonnet.fluids.water.compressibility_water_McCain(temperature: float, pressure: float | numpy.typing.NDArray[numpy.float64], salinity: float) float | numpy.typing.NDArray[numpy.float64][source]

Calculate the compressibility for water.

Parameters:
  • temperature (float) – water temperature in Fahrenheit

  • pressure (float | NDArray) – water pressure in psia

  • salinity (float) – salinity in weight percent total dissolved solids

Returns:

c_w – compressibility of water in 1/psi

Return type:

float

Examples

>>> density_water_McCain(400, 3000, 15)
bluebonnet.fluids.water.density_water_McCain(temperature: float, pressure: float | numpy.typing.NDArray[numpy.float64], salinity: float) float | numpy.typing.NDArray[numpy.float64][source]

Calculate the density for water.

Parameters:
  • temperature (float) – water temperature in Fahrenheit

  • pressure (float | NDArray) – water pressure in psia

  • salinity (float) – salinity in weight percent total dissolved solids

Returns:

rho_w – density in lb-mass / cu ft, \(\rho_w\)

Return type:

float

Examples

>>> density_water_McCain(400, 3000, 15)
bluebonnet.fluids.water.viscosity_water_McCain(temperature: float, pressure: float | numpy.typing.NDArray[numpy.float64], salinity: float) float | numpy.typing.NDArray[numpy.float64][source]

Calculate the viscosity for water, Using McCain (1991).

Parameters:
  • temperature (float) – water temperature in Fahrenheit

  • pressure (float) – water pressure in psia

  • salinity (float) – salinity in weight percent total dissolved solids

Returns:

mu_w – viscosity in centipoise, \(\mu_w\)

Return type:

float

Examples

>>> viscosity_water_McCain(400, 3000, 15)
0.2627774655403418