maroba / multipoles

A Python package for multipole expansions of electrostatic or gravitational potentials
MIT License
39 stars 10 forks source link

How would one adapt this to perform interior instead of exterior expansions? #2

Closed jdcolburn closed 1 year ago

jdcolburn commented 2 years ago

As stated in the title. I'm interested in expanding distributions from a central point r onto a spherical interior. Any help would be appreciated.

dmadisetti commented 2 years ago

Yes, the $$\frac{1}{r^{l+1}}$$ term becomes $$r^l$$ and the $$r'^l$$ term becomes $$\frac{1}{r'^{l+1}}$$

dmadisetti commented 2 years ago

See https://github.com/cemel-jhu/multipoles/pull/1

dmadisetti commented 2 years ago

Closed by #6