harmonica.Sphere#
- class harmonica.Sphere(a, center, *, density=None, susceptibility=None, remanent_mag=None)[source]#
Homogeneous sphere.
Represent a sphere as a particular type of ellipsoid where
a == b == c.- Parameters:
- a
float Radius or semiaxes lengths in meters.
- center
tupleoffloat Coordinates of the center of the sphere in the following order: easting, northing, upward. All must be in meters.
- density
floatorNone,optional Density of the sphere in \(kg/m^3\).
- susceptibility
float, (3, 3)arrayorNone,optional Magnetic susceptibility of the sphere in SI units. A single float represents isotropic susceptibility in the body. A (3, 3) array represents the susceptibility tensor to account for anisotropy. If None, zero susceptibility will be assigned to the sphere.
- remanent_mag(3,)
arrayorNone,optional Remanent magnetization vector of the sphere in A/m units. Its components are defined in the easting-northing-upward coordinate system and should be passed in that order. If None, no remanent magnetization will be assigned to the sphere.
- a
Notes
All semiaxes (
a,bandc) are equal to each other. All rotation angles (yaw,pitchandroll) are equal to zero for the sphere, since sphere is invariant to rotations.- Attributes:
aLength of the first semiaxis.
bLength of the second semiaxis.
cLength of the third semiaxis.
densityDensity of the ellipsoid in \(kg/m^3\).
pitchPitch angle, equal to zero.
radiusSphere radius.
remanent_magRemanent magnetization of the ellipsoid in A/m.
rollRoll angle, equal to zero.
rotation_matrixCreate a rotation matrix for the sphere.
susceptibilityMagnetic susceptibility of the ellipsoid in SI units.
yawYaw angle, equal to zero.
Attributes#
- Sphere.a#
Length of the first semiaxis.
- Sphere.b#
Length of the second semiaxis.
- Sphere.c#
Length of the third semiaxis.
- Sphere.density#
Density of the ellipsoid in \(kg/m^3\).
- Sphere.pitch#
Pitch angle, equal to zero.
- Sphere.radius#
Sphere radius.
- Sphere.remanent_mag#
Remanent magnetization of the ellipsoid in A/m.
- Sphere.roll#
Roll angle, equal to zero.
- Sphere.rotation_matrix#
Create a rotation matrix for the sphere.
- Returns:
- rotation_matrix(3, 3)
array Identity matrix.
- rotation_matrix(3, 3)
- Sphere.susceptibility#
Magnetic susceptibility of the ellipsoid in SI units.
- Sphere.yaw#
Yaw angle, equal to zero.