porosity

petrophys.workflow.steps.porosity

porosity(
method='neutron_density',
*,
matrix='sandstone',
matrix_density=None,
matrix_neutron=None,
matrix_slowness=None,
fluid_density=1.0,
fluid_slowness=189.0,
clay_porosity=0.15,
vcl_curve='VCL',
hc_type='oil',
name=None,
)[source]

Total (PHIT) and effective (PHIE) porosity.

method

PHIT

"density"

PHID = (rho_ma - RHOB) / (rho_ma - rho_fl)

"neutron_density"

Adaptive combination of PHID and the matrix-corrected neutron PHIN (in crossover, their root-mean-square for gas and PHID for oil), as petrophys.interpret()

"neutron"

PHIN = NPHI - nphi_ma

"sonic"

PHIS from the Wyllie time average

PHIE = PHIT - VCL * clay_porosity. The component curves (PHID, PHIN, PHIS) are written too. Uses density_porosity(), neutron_porosity(), total_porosity(), wyllie_time_average() and effective_porosity().

Parameters:
  • method ({"density", "neutron_density", "neutron", "sonic"}, default "neutron_density") – Porosity log(s) to use.

  • matrix (str, default "sandstone") – Mineral whose endpoints are used unless overridden, e.g. "limestone" or "dolomite"; see petrophys.model.constants.MatrixProperties.names().

  • matrix_density (float, optional) – Matrix density, g/cm3 (density methods). Defaults to the mineral’s apparent log density, which for evaporites differs from the grain density (get_log_density()).

  • matrix_neutron (float, optional) – Matrix neutron porosity, v/v (neutron methods).

  • matrix_slowness (float, optional) – Matrix slowness, us/ft (sonic).

  • fluid_density (float, default 1.0) – Pore-fluid density, g/cm3.

  • fluid_slowness (float, default 189.0) – Pore-fluid slowness, us/ft.

  • clay_porosity (float, default 0.15) – Clay-bound porosity removed per unit clay volume, v/v.

  • vcl_curve (str or None, default "VCL") – Clay volume curve for the PHIE correction; None writes PHIE = PHIT.

  • hc_type ({"oil", "gas"}, default "oil") – Hydrocarbon type. Where PHID > PHIN + 0.05 (crossover), "neutron_density" takes PHIT = sqrt((PHID^2 + PHIN^2) / 2) (Gaymard and Poupon, 1968) for gas and PHIT = PHID for oil, whose crossover comes from the matrix or shale endpoints rather than the fluid.

  • name (str, optional) – Step name; defaults to "porosity".

Returns:

Produces PHIT and PHIE (v/v) and the component curve(s).

Return type:

Step

Examples

>>> from petrophys.workflow import steps
>>> step = steps.porosity(method="density", matrix_density=2.65)
>>> step.requires, list(step.produces)
(('RHOB', 'VCL'), ['PHID', 'PHIT', 'PHIE'])