bilby.gw.eos.eos.EOSFamily

class bilby.gw.eos.eos.EOSFamily(eos, npts=500)[source]

Bases: object

Create a EOS family and get mass-radius information

Parameters:
eos: object

Supply a TabularEOS class (or subclass)

npts: float

Number of points to calculate for mass-radius relation. Default is 500.

Notes

The mass-radius and mass-k2 data should be populated here via the TOV solver upon object construction.

__init__(eos, npts=500)[source]
__call__(*args, **kwargs)

Call self as a function.

Methods

__init__(eos[, npts])

k2_from_mass(m)

param m:

mass of neutron star in solar masses.

lambda_from_mass(m)

Convert from equation of state model parameters to component tidal parameters.

plot(rep[, xlim, ylim, units])

Given a representation in the form 'm-r', plot the family in that space.

radius_from_mass(m)

param m:

mass of neutron star in solar masses

k2_from_mass(m)[source]
Parameters:

m – mass of neutron star in solar masses.

Returns:

dimensionless second tidal love number.

lambda_from_mass(m)[source]

Convert from equation of state model parameters to component tidal parameters.

Parameters:

m – Mass of neutron star in solar masses.

Returns:

Tidal parameter of neutron star of mass m.

plot(rep, xlim=None, ylim=None, units=None)[source]

Given a representation in the form ‘m-r’, plot the family in that space.

Parameters:
rep: str

Representation to plot. For example, plotting in mass-radius space, specify ‘m-r’

xlim: list

Plotting bounds for x-axis in the form [low, high]. Defaults to ‘None’ which will plot from 10% below min x value to 10% above max x value

ylim: list

Plotting bounds for y-axis in the form [low, high]. Defaults to ‘None’ which will plot from 10% below min y value to 10% above max y value

units: str

Specifies unit system to plot. Currently can plot in CGS:’cgs’, SI:’si’, or geometerized:’geom’

Returns:
fig: matplotlib.figure.Figure

EOS Family plot.

radius_from_mass(m)[source]
Parameters:

m – mass of neutron star in solar masses

Returns:

radius of neutron star in meters