This function samples the density inside and outside of the pore.
All atoms are sampled each frame if they are inside or outside the bounds of the pore minus an optional entry length on both sides.
Inside the pore the atom instances will be added to radial cylindric slices \(r_i-r_{i-1}\) and outside to rectangular slices \(z_j-z_{j-1}\) with pore radius \(r_i\) of radial slice \(i\) and length \(z_j\) of slice \(j\).
Data dictionary containing bins for the pore interior and exterior
Indicator wether molecule is inside or outside pore
Distance of center of mass to pore surface area
Center of mass of current molecule