FlowUnitModule

petrophys.evaluation.flow_units.FlowUnitModule

Also available as petrophys.evaluation.FlowUnitModule

class FlowUnitModule(n_units=None, method='kmeans', fzi_cutoffs=None, max_units=6)[source]

Hydraulic-flow-unit calculator (Amaefule FZI method).

Methods

add_to_well

Add the flow-unit curves to the well.

calculate

Determine the well's hydraulic flow units.

Parameters:
calculate(well, perm=None, phi_e=None)[source]

Determine the well’s hydraulic flow units.

Parameters:
  • well (Well) – Well whose permeability and porosity curves are read when perm or phi_e is not given.

  • perm (array, optional) – Permeability per depth sample, mD. By default, at each depth the first of PERM_CC, PERM, PERM_CORE and PERM_TIMUR with a value.

  • phi_e (array, optional) – Effective porosity per depth sample, v/v. By default, at each depth the first of PHIE_CC, PHIE and PHIT with a value.

Returns:

Per sample, the flow unit (hfu, 0 without data), RQI, phi_z, FZI and the permeability predicted from its unit’s mean FZI; and the units’ mean FZI and boundaries.

Return type:

FlowUnitResult

Raises:

ValueError – If the well has no permeability or no porosity curve with finite samples and none is given.

add_to_well(well, result=None)[source]

Add the flow-unit curves to the well.

Parameters:
  • well (Well) – Well to add the curves to.

  • result (FlowUnitResult, optional) – Result of calculate() for this well; calculated from the well’s curves when omitted.

Returns:

well, with RQI (microns), PHI_Z (v/v), FZI (microns), HFU (flow unit number, 0 without data) and PERM_HFU (mD) added or replaced.

Return type:

Well