IMRPhenomP_version_typeIMRPhenomP_version,/**< IMRPhenomPv1 uses IMRPhenomC, IMRPhenomPv2 uses IMRPhenomD, IMRPhenomPv2_NRTidal is a tidal version of IMRPhenomPv2 */
LALDict*extraParams/**< linked list containing the extra testing GR parameters */
);
...
...
@@ -105,9 +105,6 @@ static int PhenomPCore(
staticintPhenomPCoreOneFrequency(
constREAL8fHz,/**< Frequency (Hz) */
constREAL8eta,/**< Symmetric mass ratio */
constREAL8chi1_l,/**< Dimensionless aligned spin on companion 1 */
constREAL8chi2_l,/**< Dimensionless aligned spin on companion 2 */
constREAL8chip,/**< Dimensionless spin in the orbital plane */
constREAL8distance,/**< Distance of source (m) */
constREAL8M,/**< Total mass (Solar masses) */
constREAL8phic,/**< Orbital phase at the peak of the underlying non precessing model (rad) */
...
...
@@ -115,18 +112,30 @@ static int PhenomPCoreOneFrequency(
* @remarks Implemented in lalsimulation (frequency domain). */
IMRPhenomPv2,/**< Frequency domain (generic spins) inspiral-merger-ringdown templates of Hannam et al., arXiv:1308.3271 [gr-qc]. Based on IMRPhenomD, arXiv:1508.07250 and arXiv:1508.07253.
* @remarks Implemented in lalsimulation (frequency domain). */
IMRPhenomPv2_NRTidal,/**< Frequency domain tidal version of IMRPhenomPv2, using NRTidal framework from arXiv:1706.02969 */
IMRPhenomFC,/**< Frequency domain (non-precessing spins) inspiral-merger-ringdown templates of Santamaria et al [Santamaria:2010yb] with phenomenological coefficients defined in the Table II of [Santamaria:2010yb]
XLALPrintError("XLAL Error - %s: Equation of state %s not recognized.",__func__,eos_name);
XLAL_ERROR(XLAL_EINVAL);
}
returneos;
}
REAL8XLALSimInspiralEOSLambda(LALEquationOfStateeos_type,REAL8m_intr_msun){/** this must be fed the INTRINSIC mass */
/* this is fed the intrinsic masses and then computes the value of \Lambda(m) See Hinderer et al ( http://arxiv.org/abs/0911.3535 ) for details of the EOSes*/
XLALPrintError("XLAL Error - %s: Tidal deformability is negative. Only positive values are acceptable.",__func__);
XLAL_ERROR_REAL8(XLAL_EDOM);
}
/* Check that radius is larger than Schwarzschild radius */
if(compactness>0.5){
XLALPrintWarning("XLAL Warning - %s: Neutron Star is calculated to have compactness larger than a black hole (C = %f, lambda = %f, m = %f).\n Setting C=0.5 ...",__func__,compactness,barlambda,m_intr_msun);
compactness=0.5;
}
if(compactness<0.0){
XLALPrintError("XLAL Error - %s: Neutron Star is calculated to have negative compactness (C = %f, lambda = %f, m = %f).",__func__,compactness,barlambda,m_intr_msun);
XLAL_ERROR_REAL8(XLAL_ERANGE);
}
radius=LAL_MRSUN_SI*m_intr_msun/compactness;
returnradius;
}
/**
* This function estimates the radius for a binary of given masses and
* tidal deformability parameters.
* It uses XLALSimInspiralNSRadiusOfLambdaM() to calculate radii (see above).
* The arguments are:
* m1_intr, m2_intr the intrinsic masses in solar masses
* barlambda1, barlambda2 the dimensionless tidal deformabilities (lambda_i/m_i^5)
* The return value is the GW contact frequency in Hz.