Additionally, the spherical_density_water class provides a customized version of this algorithm to investigate only the water density. It is a separate function because to properly calculate the distances of water with respect to the center of mass of the soft-matter ag-gregate, the water coordinates need to be wrapped around the coordinates of the aggregate while correctly making it whole through the periodic boundary conditions. Since this process is computationally more expensive, a different class was developed which works in exactly the same way as the spherical_density function, but the atom names of the solvent need to be inputted by the user. For water density calculations, only the oxygen atoms need to be selected.