orbital_time

eridanus_pbh.utils.orbital_time(system, part='cluster')[source]

Calculate orbital time.

\[ \begin{align}\begin{aligned}t_{orb} = 2 pi * R / v\\R = \sqrt{\sum{||position||^2}} v = \sqrt{\sum{||velocity||^2}}\end{aligned}\end{align} \]
Parameters
system: datamodel.System object

a dataclass object with parameters

  • particles

  • evolution

  • gravity

  • converter

  • channel_attrs

will try to automatically make channels to/from all things the amuse particles / evolution / gravity classes are proxied with the AmuseContainer

part: str

{particles, evolution, gravity}

Returns
t_orb: amuse time quantity

orbital time (Myr)