When applied to depletion forces , the grand canonical potential calculates the local particle densities in a solution . When applied to depletion forces , the canonical grand potential calculates the local particle densities in a solution .