4kbt / NewtonianEotWashToolkit

A simple point-wise Newtonian gravitational force calculator
GNU General Public License v3.0
6 stars 2 forks source link

Numerical Integration for common outer moments #12

Closed JGLee6 closed 4 years ago

JGLee6 commented 4 years ago

We do not currently know of any closed form expression for the outer moments of simple shapes centered about the origin to arbitrary order. A method to numerically integrate for the lowest order moments of several common shapes may allow for more precise calculations than available through PointGravity calculations of outer moments.

The same techniques could be applied to Yukawa moments or to shapes without analytical closed-form solutions.

JGLee6 commented 4 years ago

Some of this code has been added to the branch newtv2 on my fork, but has not been tested at all. It makes use of a cylindrical expansion for the irregular solid harmonics at any (l, m) allowing us to calculate out to any order we might want to burn CPU time on. It uses scipy.integrate.tplquad. Needs: