Mass enclosed within a radius
The layer densities set how much mass lies inside each radius. Shells outside that radius exert no net force there.
M071 · Spherical gravity
Inside a hollow shell, where does the shell's gravity go? Nowhere; it cancels. Inside a uniform spherical shell, the near side pulls harder but has less mass, the far side pulls more weakly but has more, and the two balance exactly. The field is zero everywhere inside. The potential is not zero, though: it is constant, equal to its value at the shell's surface.
Set the densities of three spherical layers, move a probe along the radius to read the field, and drop a particle through a tunnel along a diameter. Compare a hollow cavity with a uniform sphere, then weigh the source from accelerations measured outside it.
Physics tutorial
BackgroundA spherical source pulls straight toward its centre, and how hard it pulls depends on how its mass is arranged.
Why it mattersLink what you see in the scene to the computed trajectory and to sensor readings taken separately.
Start with the essentials
The layer densities set how much mass lies inside each radius. Shells outside that radius exert no net force there.
Outer shells exert no force inside their cavity but still add a constant to the potential there. At the centre the limiting value is used, so nothing is divided by zero.
A particle released from rest inside a uniform sphere oscillates harmonically. The force stays finite as it passes the centre.
In this idealization the tunnel runs along a diameter and removes none of the source mass.
Fit a line through zero to the raw accelerations measured outside the source, using the calibrated radii. The fit is never given the source mass.
Typical misconceptionAn ideal model like this automatically describes a real planet or a relaxed star cluster.
Better mental modelThe source is fixed in advance, the test particle does not pull back on it, and the effects left out are listed.
Drag the blue handle from the centre to the exterior. Compare the solid field with the dashed exterior point-mass reference.
What to observe: Inside the cavity the acceleration is zero while the potential remains negative.Try Uniform sphere, Dense core and Rest inside a hollow shell, and change all three densities.
What to observe: Where the density changes affects the field inside, but outside the sphere the field depends only on the total mass.Compare Rest inside a hollow shell with Cross the empty cavity, and drag the gold time handle.
What to observe: A particle that enters the field-free cavity keeps the velocity it had on entry.Acquire a radial field scan, add noise and export the raw CSV.
What to observe: The mass fitted from the outside readings is shown separately from the exact source mass.