sailfish.physics.kepler.OrbitalElements

class sailfish.physics.kepler.OrbitalElements(semimajor_axis: float, total_mass: float, mass_ratio: float, eccentricity: float)[source]

Bases: NamedTuple

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

__init__()

Methods

__init__()

count(value, /)

Return number of occurrences of value.

eccentric_anomaly(time_since_periapse)

Compute the eccentric anomaly from the time since any periapse.

index(value[, start, stop])

Return first index of value.

orbital_state(time_since_periapse)

Compute the orbital state vector from the time since any periapse.

orbital_state_from_eccentric_anomaly(...)

Compute the orbital state, given the eccentric anomaly.

orbital_state_with_orientation(...)

Compute the orbital state from an absolute time and orientation.

Attributes

angular_momentum

The orbital angular momentum

eccentricity

Alias for field number 3

mass_ratio

Alias for field number 2

omega

The orbital angular frequency

period

The orbital period

semimajor_axis

Alias for field number 0

total_mass

Alias for field number 1

property angular_momentum: float

The orbital angular momentum

count(value, /)

Return number of occurrences of value.

eccentric_anomaly(time_since_periapse: float) float[source]

Compute the eccentric anomaly from the time since any periapse.

eccentricity: float

Alias for field number 3

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

mass_ratio: float

Alias for field number 2

property omega: float

The orbital angular frequency

orbital_state(time_since_periapse: float) OrbitalState[source]

Compute the orbital state vector from the time since any periapse.

orbital_state_from_eccentric_anomaly(eccentric_anomaly: float) OrbitalState[source]

Compute the orbital state, given the eccentric anomaly.

orbital_state_with_orientation(absolute_time, orientation: OrbitalOrientation) OrbitalState[source]

Compute the orbital state from an absolute time and orientation.

property period: float

The orbital period

semimajor_axis: float

Alias for field number 0

total_mass: float

Alias for field number 1