geoana.gravity.Sphere#

Inheritance diagram of 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

Location of the point mass.

mass

Mass of sphere in kilograms.

radius

Radius of the sphere in meters.

rho

Density of the sphere in kilograms over meters cubed.

Methods

gravitational_field(xyz)

Gravitational field due to a sphere.

gravitational_gradient(xyz)

Gravitational gradient for a sphere.

gravitational_potential(xyz)

Gravitational potential due to a sphere.