calculate_porosity

petrophys.interpretation.porosity.calculate_porosity

Also available as petrophys.interpretation.calculate_porosity

calculate_porosity(
well,
matrix='sandstone',
rhob_fluid=1.0,
phi_clay=0.15,
vcl=None,
**kwargs,
)[source]

Calculate porosity for a well.

Convenience wrapper for PorosityModule.

Parameters:
  • well (Well)

  • matrix (str, optional)

  • rhob_fluid (float, optional)

  • phi_clay (float, optional)

  • vcl (np.ndarray, optional)

Return type:

PorosityResult

Raises:
  • TypeError – For an unknown keyword argument (for example a misspelt rhobfluid).

  • ValueError – For an unknown matrix, a fluid density that is not in g/cm3 or a clay porosity that is not a fraction.