temperature

Temperature Calculations

Temperature related calculations

pypetrophysics.temperature.formation_temperature(surface_temperature, gradient, depth)

Calculates formation temperature based on a gradient.

Parameters:
  • surface_temperature (float) – Surface temperature (deg F or deg C)
  • gradient (float) – Temperature gradient (degF/ft or degC/m)
  • depth (float) – Depth at which temperature is required (ft or m)
Returns:

Returns formation temperature at a entered depth

Return type:

float

pypetrophysics.temperature.temp_gradient(bottom_hole_temperature, surface_temperature, bottom_hole_depth)

Temperature gradient calculation.

Parameters:
  • bottom_hole_temperature (float) – Bottom hole temperature (deg F or deg C)
  • surface_temperature (float) – Surface temperature (deg F or deg C)
  • bottom_hole_depth (float) – Bottom hole depth (ft or m)
Returns:

Returns temperature gradient in deg per depth unit (degF/ft or deg C/m)

Return type:

float