meepmeep.numba3d.pos_od#
- meepmeep.numba3d.pos_od(t, tpa, p, dt, ep_table, ep_times, coeffs, dcoeffs)[source]#
Planet (x, y, z) position and orbital-parameter derivatives for any orbital phase.
Accepts a scalar time
tor a 1-D array of times and dispatches to the scalar (_pos_osd()) or vector (pos_ovd()) kernel at compile time (inside@njit) or at call time (pure Python).- Parameters:
- t
floatorndarray Time at which to evaluate the position and gradient.
- tpa
float Periastron time anchoring the expansion-point grid. Note the convention difference: the high-level
OrbitAPI takes the transit-center time astcand converts it to periastron time before calling functions in this module (seeOrbit.__init__).- p
float Orbital period [days].
- dt
float ep_tablebucket width in fraction of the period.- ep_table
ndarrayofint Time-to-expansion-point lookup table.
- ep_times
ndarray, shape (npt,) Normalised expansion-point phases in
[0, 1].- coeffs
ndarray, shape (npt, 3, 5) Per-expansion-point Taylor coefficient matrices from
solve3d_orbit_d().- dcoeffs
ndarray, shape (npt, 7, 3, 5) Per-expansion-point derivative-coefficient tensors from
solve3d_orbit_d().
- t
- Returns: