JFunctionModel

petrophys.interpretation.saturation.height.JFunctionModel

class JFunctionModel(
a,
b,
swir=0.0,
form='power',
ift=30.0,
theta=30.0,
sg_water=1.0,
sg_hc=0.8,
r2=None,
points=None,
)[source]

Sw = a * J^b (optionally above an irreducible floor Swir).

form is "power" (Sw = a * J^b) or "power_swir" (Sw = Swir + (1 - Swir) * a * J^b). ift (dyne/cm) and theta (degrees) are the interfacial tension and contact angle J is computed with, sg_water and sg_hc the specific gravities that convert height to capillary pressure, and r2 the fit’s R2 on Sw.

Attributes

form

ift

points

sw, perm (mD) and phi, with height (ft above the FWL) from fit_j_function_from_well() or j from fit_j_function_from_core().

r2

sg_hc

sg_water

swir

theta

a

b

Methods

plot

Sw against height above the FWL: the fitted samples coloured by permeability and the model's curve for each of perms (mD), each at the median porosity of the samples near that permeability.

sw_from_height

Water saturation (v/v) at a height above the free-water level.

sw_from_j

Water saturation (v/v) at Leverett J values.

sw_from_pc

Water saturation (v/v) at a capillary pressure, for a rock's permeability and porosity.

Parameters:
a: float
b: float
swir: float = 0.0
form: str = 'power'
ift: float = 30.0
theta: float = 30.0
sg_water: float = 1.0
sg_hc: float = 0.8
r2: float | None = None
points: Dict[str, ndarray] | None = None

sw, perm (mD) and phi, with height (ft above the FWL) from fit_j_function_from_well() or j from fit_j_function_from_core().

Type:

The samples the fit used

plot(perms=(1.0, 10.0, 100.0), ax=None)[source]

Sw against height above the FWL: the fitted samples coloured by permeability and the model’s curve for each of perms (mD), each at the median porosity of the samples near that permeability. Each curve has the colour of its permeability on the colour bar of the samples.

A model fitted from core plugs is drawn as Sw against J, with the fitted curve. Returns the figure. A model without its fitted samples (points) raises ValueError.

Parameters:
Return type:

Any

sw_from_j(j)[source]

Water saturation (v/v) at Leverett J values.

Parameters:

j (float or array) – Leverett J-function, dimensionless.

Returns:

Sw between swir and 1; 1 where J is zero or negative (at or below the free-water level) and NaN where J is not finite.

Return type:

float or array

sw_from_pc(pc_psi, perm_md, phi)[source]

Water saturation (v/v) at a capillary pressure, for a rock’s permeability and porosity.

Parameters:
  • pc_psi (float or array) – Capillary pressure at reservoir conditions, psi.

  • perm_md (float or array) – Permeability, mD.

  • phi (float or array) – Porosity, v/v.

Returns:

Sw from sw_from_j() at the J of each sample, computed with the model’s ift and theta; NaN where the permeability or porosity is not positive.

Return type:

float or array

sw_from_height(height_ft, perm_md, phi)[source]

Water saturation (v/v) at a height above the free-water level.

Parameters:
  • height_ft (float or array) – Height above the free-water level, ft; a negative height counts as zero.

  • perm_md (float or array) – Permeability, mD.

  • phi (float or array) – Porosity, v/v.

Returns:

Sw from sw_from_pc() at the capillary pressure 0.433 * (sg_water - sg_hc) * height_ft psi; 1 at and below the free-water level.

Return type:

float or array