geoana.gravity.Sphere#
- class geoana.gravity.Sphere(radius, rho, location=None, **kwargs)#
Class for gravitational solutions for a sphere.
The
Sphere
class is used to analytically compute the gravitational potentials, fields, and gradients for a sphere.- Parameters:
- rhofloat
Density of sphere (\(\frac{kg}{m^3}\)).
- radiusfloat
Radius of sphere (m).
- massfloat
Mass of the sphere (kg). Default is \(m = \frac{4}{3} \pi R^3 \rho\) kg.
- locationarray_like, optional
Center of the sphere (m). Default is (0, 0, 0).
Attributes
Location of the point mass.
Mass of sphere in kilograms.
Radius of the sphere in meters.
Density of the sphere in kilograms over meters cubed.
Methods
gravitational_field
(xyz)Gravitational field due to a sphere.
Gravitational gradient for a sphere.
Gravitational potential due to a sphere.