arsenal_gear.dist_funcs.binaries.BinaryDistribution

class arsenal_gear.dist_funcs.binaries.BinaryDistribution(model: str, m_inner: Annotated[Quantity, PhysicalType('mass')], bpass_dir: str)[source]

Bases: object

This class is the superclass of all distributions of binary properties in which the binary fraction and distributions of orbtial periods and mass ratios are not independent. This samples from a 3D probability distribution that incldues both binaries and single stars. This can also include a user-specified mass limit above which all binaries have orbital periods log(P/days) <= 3.8, to account for the inner companion in hierarchical systems.

Parameters:
  • model (str) – BPASS model, see BPASS manual for details

  • m_inner (astropy mass unit) – Mass above which log(P/days) <= 3.8

  • model – BPASS directory (likely on scratch, given the size)

discrete_sampling(mtot: Annotated[Quantity, PhysicalType('mass')]) tuple[Annotated[Quantity, PhysicalType('mass')], Annotated[Quantity, PhysicalType('mass')], Annotated[Quantity, PhysicalType('mass')], Annotated[Quantity, PhysicalType('time')]][source]

Draw individual binaries and single stars from a BPASS input file with a given IMF slope and upper mass cut-off, with a target total mass

Parameters:

mtot (Quantity["mass"]) – Target total mass of the sample

Returns:

Single stars’ masses

Return type:

Quantity[“mass”]

Returns:

Primary masses

Return type:

Quantity[“mass”]

Returns:

Orbital periods

Return type:

Quantity[“time”]

generate_probabilities()[source]

Generate the appropriate 3D grid of probabilities from the BPASS input file.