Closed jcapriot closed 2 years ago
where do you think this should live @jcapriot? geoana/gravity.py
?
Sounds like a great place!
The only question is... do we decide the relationship between gravity and it's potential is g = -\nabla U
or g=\nabla U
...
I would be inclined to follow Blakely on this and use g = \nabla U
One other note is that scipy.constants
includes G, so we can make use of that: https://docs.scipy.org/doc/scipy/reference/constants.html
We should add the simple solutions for the gravitational potential, field, and even the gravity gradient due to a simple point mass. The formulas should be straightforward enough to implement!
etc..
This could then be extended for a sphere,