InitialBinaryTable
-
class
cosmic.sample.initialbinarytable.
InitialBinaryTable
¶ Bases:
object
-
classmethod
InitialBinaries
(m1, m2, porb, ecc, tphysf, kstar1, kstar2, metallicity, **kwargs)¶ Create single binary
- Parameters
m1 : float
Primary mass [Msun]
m2 : float
Secondary mass [Msun]
porb : float
Orbital period [days]
ecc : float
Eccentricity
tphysf : float
Time to evolve the binary [Myr]
kstar1 : array
0-14 Initial stellar type of the larger object; main sequence stars are 0 if m < 0.7 Msun and 1 otherwise
kstar2 : array
0-14 Initial stellar type of the smaller object; main sequence stars are 0 if m < 0.7 Msun and 1 otherwise
metallicity : float
Metallicity of the binaries; Z_sun = 0.02
**kwargs
- binfracfloat
System-specific probability of the primary star being in a binary
mass0_1,mass0_2,rad1,rad2,lumin1,lumin2, massc1,massc2,radc1,radc2,menv1,menv2,renv1,renv2, ospin1,ospin2,b_0_1,b_0_2,bacc1,bacc2, tacc1,tacc2,epoch1,epoch2,tms1,tms2 bhspin1,bhspin2
- Returns
InitialBinaries : DataFrame
Single binary initial conditions
-
classmethod
sampler
(format_, *args, **kwargs)¶ Fetch a method to generate an initial binary sample
- Parameters
format : str
the method name; Choose from ‘independent’ or ‘multidim’
*args
the arguments necessary for the registered sample method; see help(InitialBinaryTable.sampler(‘independent’) to see the arguments necessary for the independent sample
- The available named formats are:
=========== …
Format …
- =========== …
independent …
multidim …
- =========== …
-
classmethod