tgr package
Submodules
tgr.birefringence module
tgr.dipole module
tgr.fta module
- tgr.fta.gen_waveform(**kwds)[source]
Generate waveform with FTA (flexible theory agnostic) correction. Described in https://arxiv.org/pdf/1811.00364.pdf “Tests of General Relativity with GW170817”
Parameters
- kwds: dict
Only support dchi2 atm.
Returns
- hp: pycbc.types.FrequencySeries
Plus polarization time series
- hc: pycbc.types.FrequencySeries
Cross polarization time series
tgr.lineofsight module
tgr.massive_graviton module
- tgr.massive_graviton.effective_distance(luminosity_distance, cosmology=None, **kwargs)[source]
Calculate effective distance D_eff for massive graviton phase correction. D_eff = (1+z) * c / H0 * integral_0^z dz’ / ((1+z’)^2 * E(z’))
Parameters
- luminosity_distancefloat
Luminosity distance to the source in Mpc
Returns
- defffloat
Effective distance in Mpc
- tgr.massive_graviton.gen_mg_waveform(**kwds)[source]
Generate frequency-domain waveform with massive graviton phase correction. Based on Will (1997) PRD 57, 2061. Assumes no modification to binary dynamics.
Parameters
- kwdsdict
Must contain
base_gr_approximantfor the GR approximant name,mgfor the graviton mass in eV/c^2, anddistancefor the luminosity distance in Mpc.Other parameters (masses, spins, etc.) passed to get_fd_waveform.
Returns
- hp: pycbc.types.FrequencySeries
Plus polarization time series
- hc: pycbc.types.FrequencySeries
Cross polarization time series
- tgr.massive_graviton.lambda_g_to_mg(lambda_g)[source]
Convert graviton Compton wavelength to mass.
Parameters
- lambda_gfloat
Compton wavelength of graviton in km
Returns
- mgfloat
Graviton mass in eV/c^2
- tgr.massive_graviton.mg_phase_correction(mg, distance, frequencies, cosmology=None, **kwargs)[source]
Calculate the massive graviton phase correction for given frequencies. delta_phi = -pi * D_eff * c^3 * m_g^2 / h^2 / (1 + z) / f
Parameters
- mgfloat
Graviton mass in eV/c^2
- distancefloat
Luminosity distance to the source in Mpc
- frequenciesarray-like
Array of frequencies in Hz
Returns
- delta_phiarray-like
Phase correction for each frequency in radians
tgr.nr module
tgr.nrsurqnm module
- tgr.nrsurqnm.gen_nrsur_remove_qqnm(**kwds)[source]
Generate a NRSur7dq4 waveform with quadratic modes being removed from (4,4) mode. The quadratic modes are constructed from (2,2) mode with amplitude ratio from theory predictions. The ringdown part of (4,4) mode is then replaced by the residual after subtracting the quadratic modes.
kwds should contain: - mass1, mass2, spin1x, spin1y, spin1z, spin2x, spin2y, spin2z, distance, delta_t, f_lower, f_ref, inclination, coa_phase, - mode22: the overtone mode used for quadratic mode), - mode_quadratic: the list of quadratic modes to be removed, e.g. “220220 220221” - toffset: the start time for ringdown treatment, e.g. 0.002 - quadratic_tgr: the amplitude deviation parameter for quadratic modes, e.g. 0. Optional - quadratic_tgr_phase: the phase deviation (in radians) for quadratic modes, e.g. 0. Optional - qqnm_deltaf: the fractional deviation in frequency for the nonGR quadratic modes, e.g. 0. Optional - qqnm_deltatau: the fractional deviation in damping time for the nonGR quadratic modes, e.g. 0. Optional
- tgr.nrsurqnm.get_qnmpar(qnm_modes, **kwds)[source]
Get the QNM parameters (frequency and damping time) for the given modes based on the remnant black hole properties predicted by NRSur7dq4. The remnant properties are calculated from the initial binary parameters using NRSur7dq4 fits.
The input kwds should contain the initial binary parameters and f_ref for NRSur7dq4. The qnm_modes should be a list of mode labels, e.g. [“220”,”221”] for linear modes, or [“220220”, “220221”] for quadratic modes.
tgr.ppe module
- tgr.ppe.gen_ppe_waveform(**kwds)[source]
Parameterized Post Einstein
Parameters
- kwds: dict
Supports original ppE-like phase coefficients
ppebetaN. The integer suffixNfollows the PN phase index, soppebeta2has exponentb = -1and contributesppebeta2 / uwithu = pi * detector_chirp_mass * f.
Returns
- hp: pycbc.types.FrequencySeries
Plus polarization time series
- hc: pycbc.types.FrequencySeries
Cross polarization time series