sailfish.physics.kepler

Code to solve the Kepler two-body problem, and its inverse.

Functions

clamp_between_zero_and_one(x)

solve_newton_rapheson(f, g, x)

Classes

OrbitalElements(semimajor_axis, total_mass, ...)

The orbital elements of a two-body system on a bound orbit

OrbitalOrientation(cm_position_x, ...)

The position, velocity, and orientation of a two-body orbit

OrbitalState(primary, secondary)

PointMass(mass, position_x, position_y, ...)

The mass, 2D position, and 2D velocity of a point-like particle