simpeg / geoana

Interactive geoscience (mostly) analytic functions.
MIT License
22 stars 9 forks source link

sphere in a uniform magnetostatic field #36

Closed lheagy closed 2 years ago

lheagy commented 2 years ago

In geoana/geoana/em/static/sphere.py we should also include the solution for a permeable sphere in a uniform magnetostatic field. The solution for the magnetic field is in Ward and Hohmann (6.69). The derivation follows the conducting sphere in a uniform electrostatic field.

image

The implementation should include methods to compute:

lheagy commented 2 years ago

A couple of minor suggestions based on @dccowan's implementation of the sphere in a uniform electrostatic field...

jcapriot commented 2 years ago

In my opinion there's a lot of redundant functions in that spatial module that are handled with simple operations... i.e. just call xyz - self.location instead of defining a function to just subtract two things... when calling for the distance, just use np.linalg.norm. My point is, there are already plenty of functions that already do these operations, and it's needless to wrap them.

lheagy commented 2 years ago

sounds good