kaitiaki.helpers
Classes
Functions
|
Computes the roche lobe radius of a star in a binary. |
|
|
|
|
|
Find runs of consecutive items in an array. |
Module Contents
- kaitiaki.helpers.RL(q, a, lobe='L1')
Computes the roche lobe radius of a star in a binary.
Uses the approximation by P. Eggleton for L1, and P. Marchant for L2. - Eggleton (1983): https://ui.adsabs.harvard.edu/abs/1983ApJ…268..368E/abstract - Marchant et al (2016): https://ui.adsabs.harvard.edu/abs/2016A%26A…588A..50M/abstract
Note that Eggleton takes q=m2/m1, whereas Marchant takes m1/m2. For consistency, we have elected to take q=m2/m1.
- Parameters:
q (float) – The mass ratio to compute for. Note that q=m2/m1.
a (float) – The binary separation
lobe (str) – Whether to compute L1 or L2 (default: ‘L1’)
- Returns:
The roche lobe radius (in real units)
- Return type:
float
- kaitiaki.helpers.roche_lobes(donor_plotfile, accretor_plotfile)
- kaitiaki.helpers.contact_phases(donor_plotfile, accretor_plotfile)
- kaitiaki.helpers.find_runs(x)
Find runs of consecutive items in an array.
https://gist.github.com/alimanfoo/c5977e87111abe8127453b21204c1065