The correct quadrupole expansion for the softened potential may be derived by considering the potential contribution from the enclosed mass in a cubic cell of the octal-tree.
By Taylor expanding the softened potential,
,
around the cell's mass-center, we have:
The product-of-inertia tensor, with respect to the cell's mass-center, O, is defined as
Let
be the position vector of the cell's mass-center.
For notation saving, we introduce the softened mass-center distance:
The softened monopole-contribution to the cell's potential is written as
For convenience, we introduce the softened quadrupole mass,
The quadrupole correction is performed by applying Eqs. (A2),
(A7), (A8), and extracting the gradient, to obtain the quadrupole contribution to gravity-acceleration.
The six Cartesian components of the tensor
are stored in the tree data-structure along with a tree-descent, visiting all the cubic cells.
Copyright The European Southern Observatory (ESO)