API/Reference
Index
Orbits.KeplerianOrbitOrbits.SimpleOrbitOrbits.flipOrbits.position_angleOrbits.relative_positionOrbits.separation
Orbits.SimpleOrbit — TypeSimpleOrbit(; period, duration, t0=0, b=0.0)Circular orbit parameterized by the basic observables of a transiting system.
Parameters
period- The orbital period of the planets, nominally in daysduration- The duration of the transit, similar units asperiod.t0- The midpoint time of the reference transit, similar units asperiodb- The impact parameter of the orbit, unitless
Orbits.KeplerianOrbit — TypeKeplerianOrbit(; kwargs...)Keplerian orbit parameterized by the basic observables of a transiting 2-body system.
The following units are used by default: * d: Days * R⊙: Solar radius * M⊙: Solar mass * M⊙/R⊙³: Solar density * rad: Radians
Parameters
period/P– The orbital period of the planet [d].t0/t_0– The midpoint time of the reference transit [d].tp/t_p– The time of periastron [d].duration/τ/T– The transit duration [d].a– The semi-major axis [R⊙].aR_star/aRs– The ratio of the semi-major axis to star radius.R_planet/Rp– The radius of the planet [R⊙].R_star/Rs– The radius of the star [R⊙].rho_star/ρ_star– The spherical star density [M⊙/R⊙³].r/RpRs– The ratio of the planet radius to star radius.b– The impact parameter, bounded between 0 ≤ b ≤ 1.ecc/e– The eccentricity of the closed orbit, bounded between 0 ≤ ecc < 1.incl– The inclination of the orbital plane relative to the axis perpendicular to the reference plane [rad]omega/ω– The argument of periapsis [rad].cos_omega/cos_ω– The cosine of the argument of periapsis.sin_omega/sin_ω– The sine of the argument of periapsis.Omega/Ω– The longitude of the ascending node [rad].M_planet/Mp– The mass of the planet [M⊙].M_star/Ms– The mass of the star [M⊙].
Valid combinations
The following flowchart can be used to determine which parameters can define a KeplerianOrbit:
- The
periodoramust be given. If both given, then neitherM_starorrho_starcan be defined because the stellar density is now implied. - Only
inclorbcan be given. - If
eccis given, thenomegamust also be given. - If no stellar parameters are given, the central body is assumed to be the Sun. If only
rho_staris given, thenR_staris defined to be 1 solar radius. Otherwise, at most two ofM_star,R_star, andrho_starcan be given. - Either
t0ortpmust be given, but not both.
Orbits.relative_position — Functionrelative_position(::AbstractOrbit, t)The relative position, [x, y, z], of the companion compared to the host at time t. In other words, this is the vector pointing from the host to the companion along the line of sight. Nominally, the units of this distance are relative to the host's radius. For example, a distance of 2 is 2 stellar radii.
Orbits.separation — Functionseparation(::AbstractOrbit, t)Calculates the separation of the companion at time t
Orbits.position_angle — Functionposition_angle(::AbstractOrbit, t)Calculates the position angle (in degrees) of the companion at time t
Orbits.flip — Functionflip(::AbstractOrbit)Return a new orbit with the primary and secondary swapped.