The BinaryStar object
The BinaryStar
object is composed of two SingleStar
objects (see The SingleStar object) and contains the current and past states of the binary.
Only parameters in the BINARYPROPERTIES
list are stored in the history.
The current parameter value of the star object is accessed with, e.g. binary.orbital_period
and the past history via binary.orbital_period_history
.
The two stars are accessed with, e.g. (for star 1), binary.star_1.mass
and the past history via binary.star_1.mass_history
.
To use BinaryStar object import it using:
from posydon.binary_evol.singlestar import SingleStar
from posydon.binary_evol.binarystar import BinaryStar
Creating a BinaryStar object
BINARYPROPERTIES
The binary properties are defined as follows
Properties |
Descriptions |
---|---|
|
The state of the binary, see state options. |
|
The event of the binary, see event options. |
|
Age of the binary system in yr. |
|
Orbital separation in R_sun. |
|
Orbital period in days. |
|
Orbital eccentricity. |
|
Velocity of the centre of mass of the binary [Vx, Vy, Vz] in km/s. |
|
Mass transfer case, see MT case options. |
|
The logarithm of the mass transfer rate in Msun/yr. |
|
Names of the steps in the evolution. |
|
Time spent in the steps in the evolution. |
|
The relative overflow of the Roche Lobe of star 1. |
|
The relative overflow of the Roche Lobe of star 2. |
|
The trapping radius of the binary in R_sun. |
|
The accretion radius of the binary in R_sun. |
|
The synchronization time of the radiative zone of star 1 in yr. |
|
The synchronization time of the convective zones of star 1 in yr. |
|
The synchronization time of the radiative zone of star 2 in yr. |
|
The synchronization time of the convective zones of star 2 in yr. |
|
The distance to the nearest neighbour for NN interpolation |
Additional scalar properties can be added during the evolution.
Since they do not change over time, they are not stored in the history. These can be requested and will be stored in the output oneline (See the Synthetic Population and Population Parameter Guide for more information).
Additional columns
The additional columns are defined as follows:
Properties |
Descriptions |
---|---|
|
The interpolation class for the HMS_HMS phase. |
|
The interpolation class for the CO_HMS_RLO phase. |
|
The interpolation class for the CO_HeMS phase. |
|
The interpolation class for the CO_HeMS_RLO phase. |
|
The mass transfer history for the HMS_HMS phase. |
|
The mass transfer history for the CO_HMS_RLO phase. |
|
The mass transfer history for the CO_HeMS phase. |
|
The mass transfer history for the CO_HeMS_RLO phase. |
State options
Binary states are defined according to the following table:
State |
Description |
---|---|
|
The binary was initially a single star. |
|
The stars in the binary are in a detached state. |
|
The binary is Roche Lobe overflowing, star 1 is overfilling the RL. |
|
The binary is Roche Lobe overflowing, star 2 is overfilling the RL. |
|
The stars in the binary are in contact. |
|
The binary was disrupted. |
|
The stars in the binary merged. |
|
The binary is in the initial Roche Lobe overflow. |
|
Max time of the evolution was reached. |
|
The evolution failed. |
Event options
Binary events are defined according to the following table:
Mass Transfer case
The mass transfer cases are stored in mt_history_GRIDTYPE and are defined according to the following table: TODO: add the table below
Case |
Description |
---|---|
|
The binary is not Roche Lobe overflowing. |
TODO: update properties
Basic example
The simplest method is to provide the two star objects and kwargs of the initial binary parameters.
kwargs1 = {'state' : 'MS',
'mass' : 20.0,
'metallicity' : 0.014}
star_1 = SingleStar(**kwargs1)
kwargs2 = {'state' : 'MS',
'mass' : 10.0,
'metallicity' : 0.014}
star_2 = SingleStar(**kwargs2)
kwargs3 = {'state' : 'detached',
'event' : None,
'time' : 0.,
'orbital_period' : 3.,
'eccentricity' : 0.}
binary = BinaryStar(star_1, star_2, **kwargs3)