calculate_phid¶ petrophys.interpretation.porosity.calculate_phid calculate_phid(rhob, matrix='sandstone', rhob_fluid=1.0)[source]¶ Calculate density porosity using matrix type. Parameters: rhob (float or np.ndarray) – Bulk density matrix (str) – Matrix type (“sandstone”, “limestone”, “dolomite”) rhob_fluid (float) – Fluid density Returns: Density porosity Return type: float or np.ndarray