I'm currently trying to design a bulk-handling system which minimizes the distance from the bulk material pile(s) where the material is loaded (the volume) to the unloading platform(s) (the point), but I have many possible combinations on the volume shape and the number of unloading point. I would ideally like to iterate through various designs in order to find the most feasible one, and a useful parameter to get from each design would be to get this average travel distance from the pile to the platform.
I have toyed around with the idea of using the centroid as the average distance to a point, but the problem is that the directional component of the centroid makes it such that it doesn't truly represent the average distance. For example, a disk with a radius of 10 meters might have the same centroid as a disk with a radius of 100 meters, but the average distance from the center would be different.
$$\int_{V}r\text{ d}V$$
A slightly better representation would be the moment of inertia, since the squared component better represents average distance (so that opposite directions don't cancel out).
$$\int_V r^2\text{ d}V$$
However, to truly get the average distance, I would need something that looks more like this:
$$\int_V \lvert r\rvert\text{ d}V$$
Is there any simple way of getting this value from a CAD software package, or is it derivable from any other existing mathematical definitions like the centroid or the moment of inertia? Similarly, if this average distance is obtained only relative to the centroid, how could I extrapolate it to another arbitrary point?