Skip to content

pywellgeo.well_data

pywellgeo.well_data.water_properties

WaterProperties

This module contains functions to calculate various properties of water, such as viscosity, heat capacity, and density, based on temperature, pressure, and salinity.

Functions

viscosity(T, S) Calculate water viscosity based on temperature and salinity.

viscosityKestin(P, T, S) Calculate water viscosity based on pressure, temperature, and salinity using Kestin's correlation.

heatcapacity(T, S) Calculate water heat capacity based on temperature and salinity.

density(P, T, S) Calculate water density based on pressure, temperature, and salinity.

getWellPres(depth, T, S) Calculate the bottom hole well pressure based on depth, temperature, and salinity.

viscosity

viscosity(T, S)

Calculate water viscosity.

Parameters

T : float Reservoir temperature in degrees Celsius. S : float Salinity in ppm * 1e-6.

Returns

float Viscosity in Pa s.

viscosityKestin

viscosityKestin(P, T, S)

Calculate water viscosity using Kestin's correlation.

Parameters

P : float Pressure in Pascal. T : float Reservoir temperature in degrees Celsius. S : float Salinity in ppm * 1e-6.

Returns

float Viscosity in Pa s.

heatcapacity

heatcapacity(T: Series, S: float) -> Series

Calculate water heat capacity.

Parameters

T : float Reservoir temperature in degrees Celsius. S : float Salinity in ppm * 1e-6.

Returns

float Heat capacity in J kg-1 K-1.

density

density(P: Series, T: Series, S: float) -> Series

Calculate water density.

Parameters

P : float Reservoir pressure in Pascal. T : float Reservoir temperature in degrees Celsius. S : float Salinity in ppm * 1e-6.

Returns

float Density in kg m-3.

getWellPres

getWellPres(depth, T, S)

Calculate the bottom hole well pressure.

Parameters

depth : float TVD of well in meters. T : float Well temperature in degrees Celsius. S : float Brine salinity in ppm * 1e-6.

Returns

float Bottom hole well pressure in bars.