PorosityModule¶
petrophys.interpretation.porosity.PorosityModule
Also available as petrophys.interpretation.PorosityModule
- class PorosityModule(
- matrix='sandstone',
- rhob_fluid=DefaultParameters.FLUID_DENSITY,
- phi_clay=DefaultParameters.CLAY_POROSITY,
Comprehensive porosity calculator.
- Parameters:
matrix (str, optional) – Matrix type (default: “sandstone”). It gives the matrix density of PHID, the matrix slowness of PHIS and the matrix neutron reading (
nphi_matrix, on the limestone scale: sandstone -0.02, limestone 0, dolomite 0.02) that NPHI is referred to,NPHI - nphi_matrix, before it is combined with PHID into PHIT, aspetrophys.interpret()does.rhob_fluid (float, optional) – Fluid density (default: 1.0 g/cc)
phi_clay (float, optional) – Clay-bound porosity used in effective porosity (default: 0.15)
Notes
The curves are read in g/cm3 (RHOB), v/v (NPHI) and us/ft (DTC), and are not converted: a curve labelled in another unit raises
ValueError(seecheck_standard_units()).Examples
>>> import petrophys as pp >>> well = pp.read(pp.sample("30_6-5")) >>> poro = PorosityModule(matrix="sandstone") >>> result = poro.calculate(well) >>> well["PHIE"] = result.phie
Methods
Add porosity curves to well.
Calculate all porosity types.
- calculate(well, vcl=None)[source]¶
Calculate all porosity types.
- Parameters:
well (Well) – Well with RHOB required; NPHI and DTC optional but recommended
vcl (np.ndarray, optional) – Clay volume array (uses VCL curve from well if not provided). Without either, no clay correction is possible: PHIE is written equal to PHIT, with a
UserWarning.
- Return type:
PorosityResult
- Raises:
ValueError – Without RHOB, or when RHOB, NPHI or the sonic is labelled with another unit than g/cm3, v/v and us/ft (kg/m3, pu, us/m …): the module does not convert units.