total_porosity

petrophys.interpretation.porosity.total_porosity

total_porosity(nphi, phi_d, method='adaptive', gas_method='rms')[source]

Calculate total porosity from neutron and density.

The adaptive method uses different weightings based on neutron-density separation:

  • If phiD > phiN + 0.05 (density reads higher than neutron, a gas effect): PHIT = sqrt((phiD**2 + phiN**2) / 2), the gas-zone approximation of Gaymard and Poupon (1968), which balances the density reading too high against the neutron reading too low. A negative phiN counts as 0 there, so squaring cannot turn it into porosity. gas_method="density" takes PHIT = phiD instead, which overstates porosity in gas.

  • Else: PHIT = 0.6*phiD + 0.4*phiN (density-weighted average)

Where only one of the two has a value, the adaptive method takes it. The adaptive result is limited to 0-0.5; “average” and “rms” are not limited. “rms” counts a negative neutron or density porosity as 0, so squaring cannot turn it into porosity.

Parameters:
  • nphi (float or np.ndarray) – Neutron porosity

  • phi_d (float or np.ndarray) – Density porosity

  • method (str, optional) – Method: “adaptive”, “average”, “rms”

  • gas_method (str, optional) – Adaptive method in gas crossover: “rms” (default) or “density”

Returns:

Total porosity

Return type:

float or np.ndarray

Examples

>>> float(total_porosity(0.25, 0.20))
0.22