This function uses the desnity slope obtained from function
poreana.density.bins()
to calculate a weighted density inside the pore
In a discrete form, following formula is evaluated
with the partial area
of radial bin \(i\).
Density object from the density calculation bins()
True to print result
Upper integration limit
Weighted mean density in \(\frac{\text{#}}{\text{nm}^3}\) num_dens and \(\frac{\text{kg}}{\text{m}^3}\) dens