meepmeep.numba3d.rv_o

Contents

meepmeep.numba3d.rv_o#

meepmeep.numba3d.rv_o(t, k, tpa, p, a, i, e, dt, ep_table, ep_times, coeffs)[source]#

Radial velocity at an array of times (Perryman 2018, Eq. 2.23).

Accepts a scalar time t or a 1-D array of times and dispatches to the scalar (_rv_os()) or vector (rv_ov()) kernel at compile time (inside @njit) or at call time (pure Python).

Converts the internal line-of-sight velocity (in \(R_\star/\mathrm{day}\)) to an observed radial velocity by multiplying with the closed-form scale factor \(K / [(2\pi/p)(a\sin i)/\sqrt{1-e^2}]\).

Parameters:
tfloat or ndarray

Time(s) at which to evaluate the radial velocity.

kfloat

Radial-velocity semi-amplitude [m s-1].

tpafloat

Periastron time.

pfloat

Orbital period [days].

afloat

Scaled semi-major axis \(a/R_\star\).

ifloat

Inclination [radians].

efloat

Eccentricity.

dt, ep_table, ep_times, coeffs

Multi-expansion-point dispatch arrays from solve3d_orbit() / create_expansion_points().

Returns:
rvfloat or ndarray

Radial velocity [m s-1]. Arrays of shape (N,) for an array t.