Skip to main content

star_eclipse

Function star_eclipse 

Source
pub fn star_eclipse(
    q: f64,
    spin: f64,
    r: f64,
    ffac: f64,
    iangle: f64,
    posn: &Vec3,
    delta: f64,
    roche: bool,
    star: Star,
    eclipses: &mut Etype,
) -> Result<(), RocheError>
Expand description

Covenience routine which wraps up the code to compute a star eclipse allowing for roche-dirstortion or not.

Arguments:

  • q: mass ratio
  • r: radius of star
  • spin: spin/orbital frequency factor
  • ffac: roche filling factor
  • iangle: inclination angle
  • posn: position of point
  • delta: accuracy in phase
  • roche: account for roche distortion or not
  • eclipses: set of ingress/egress pairs