dyad.Orbit
- class dyad.Orbit(m, a, e, Omega=0.0, i=0.0, omega=0.0)[source]
A class representing an elliptical orbit
Represents the bound orbit of a body in a gravitational central potential.
- Parameters:
- m: array-like
The mass of the body generating the central potential
- a: array-like
Semimajor axis.
- e: array-like
Eccentricity.
- Omega: array-like
Longitude of ascending node.
- i: array-like
Inclination.
- omega: array-like
Argument of pericentre.
- Attributes:
angular_momentumGet the body’s specific angular momentum
angular_momentum_magnitudeGet the magnitude of the body’s specific angular momentum
apoapsisGet the apoapsis of the orbit
areaGet the area contained by the orbit
argument_of_pericentreGet the orbit’s argument of pericentre
central_massGet the central mass
eccentricityGet the orbit’s eccentricity
eccentricity_vectorGet the eccentricity vector of the orbit
energyGet the body’s specific total energy
inclinationGet the inclination of the orbit
longitude_of_ascending_nodeGet the longitude of the ascending node of the orbit
lrl_vectorGet the Laplace-Runge-Lenz vector of the orbit
periapsisGet the periapsis of the orbit
periodGet the orbital period
semilatus_rectumGet the orbit’s semilatus rectum
semimajor_axisGet the orbit’s semimajor axis
semiminor_axisGet the orbit’s semiminor axis
Methods
delaunay_elements([theta])Get the Delaunay elements of the orbit
eccentric_anomaly(theta)Return the body's eccentric anomaly
kinetic_energy(theta)Return the body's specific kinetic energy
mean_anomaly(theta)Return the body's mean anomaly
modified_delaunay_elements([theta])Get the modified Delaunay elements of the orbit
orbital_elements([theta])Get the orbital elements of the orbit
potential(theta)Return the gravitational potential at the body's position
radius(theta)Return the body's radius
speed(theta)Return the body's speed
state(theta)Return the orbital state vector in Cartesian coordinates
Examples
Scalar parameters defining a single orbit in the perifocal plane.
>>> dyad.Orbit(1., 1., 0.) <dyad._core.Orbit object at 0x...>
Scalar parameters defining a single orbit in the observer’s frame.
>>> dyad.Orbit(1., 1., 0., 1., 1., 1.) <dyad._core.Orbit object at 0x...>
Array-like parameters defining multiple orbits.
>>> m, a, e = [1., 1.], [1., 1.], [0., 0.] >>> dyad.Orbit(m, a, e) <dyad._core.Orbit object at 0x...>
Methods
__init__(m, a, e[, Omega, i, omega])delaunay_elements([theta])Get the Delaunay elements of the orbit
eccentric_anomaly(theta)Return the body's eccentric anomaly
kinetic_energy(theta)Return the body's specific kinetic energy
mean_anomaly(theta)Return the body's mean anomaly
modified_delaunay_elements([theta])Get the modified Delaunay elements of the orbit
orbital_elements([theta])Get the orbital elements of the orbit
potential(theta)Return the gravitational potential at the body's position
radius(theta)Return the body's radius
speed(theta)Return the body's speed
state(theta)Return the orbital state vector in Cartesian coordinates
Attributes
angular_momentumGet the body's specific angular momentum
angular_momentum_magnitudeGet the magnitude of the body's specific angular momentum
apoapsisGet the apoapsis of the orbit
areaGet the area contained by the orbit
argument_of_pericentreGet the orbit's argument of pericentre
central_massGet the central mass
eccentricityGet the orbit's eccentricity
eccentricity_vectorGet the eccentricity vector of the orbit
energyGet the body's specific total energy
inclinationGet the inclination of the orbit
longitude_of_ascending_nodeGet the longitude of the ascending node of the orbit
lrl_vectorGet the Laplace-Runge-Lenz vector of the orbit
periapsisGet the periapsis of the orbit
periodGet the orbital period
semilatus_rectumGet the orbit's semilatus rectum
semimajor_axisGet the orbit's semimajor axis
semiminor_axisGet the orbit's semiminor axis