21 #define UNUSED __attribute__ ((unused))
31 #include <lal/LALStdlib.h>
32 #include <lal/Units.h>
33 #include <lal/LALConstants.h>
34 #include <lal/LALSimIMR.h>
52 window =0.5 * (1+sign*tanh(
x));
133 REAL8 MtotSI=m1_SI+m2_SI;
135 REAL8 nu = (MBH*MNS)/pow(MBH+MNS,2);
149 REAL8 RTidal=xiTide*RNS*(1-2*CNS) + ZERO;
159 REAL8 x1=-0.09236597801342522;
160 REAL8 x2=-0.1773927624795226;
161 REAL8 xND_C=-0.4865330927898738;
162 REAL8 xND_chi=-0.03143937714260868;
163 REAL8 xNDprime_C=0.4933764101669873;
164 REAL8 xNDprime_chi=0.05691547067814197;
165 REAL8 d1=0.01871545791809104;
166 REAL8 d2=0.771909557448921;
167 REAL8 dND=0.022500562246265655;
169 REAL8 fratio=(fTidal-fRD)/fRD;
170 REAL8 xND=pow(fratio,2)+xND_C*CNS+xND_chi*chi1;
171 REAL8 xNDprime=pow(fratio,2)+xNDprime_C*CNS+xNDprime_chi*chi1;
176 REAL8 sigma_ND=dND+sigma_tide;
180 REAL8 a1=1.2728043573489636;
184 REAL8 xD_C=0.8496732940251721;
185 REAL8 xD_nu=0.3022694700157108;
186 REAL8 xDprime_C=-0.9904717980366731;
187 REAL8 xDprime_nu=1.1227719410457802;
188 REAL8 xD_chi=-0.16594256718148745;
189 REAL8 xDprime_chi1=0.002986871614045452;
190 REAL8 xDprime_chi2=-0.07136411471590108;
191 REAL8 xDprime_chi3=-0.11261503453409044;
194 REAL8 xD=MbTorus + xD_C*CNS + xD_nu*pow(nu,0.5) + xD_chi*chi1;
195 REAL8 xDprime=MbTorus + xDprime_C*CNS + xDprime_nu*pow(nu,0.5)
196 + xDprime_chi1*chi1 + xDprime_chi2*pow(chi1,2)
197 + xDprime_chi3*pow(chi1,3);
202 REAL8 f0_D=eins*fTidal;
203 REAL8 sigma_D=sigma_tide2;
209 if (fTidal>=fRD && MbTorus==0){
214 else if (fTidal<fRD && MbTorus>0){
219 else if (fTidal<fRD && MbTorus==0){
220 f0 = (1-pow(
Q,-1))*f0_ND + pow(
Q,-1)*f0_D;
221 sigma=0.5*(sigma_ND+sigma_D);
224 else if (fTidal>=fRD && MbTorus>0){
232 for (
UINT8 ii=0;ii<(*fHz).length;ii++){
233 (*amp_tidal).data[ii] =
TanhWindow((*fHz).data[ii]/fmtotSI,-1,f0,
sigma)
REAL8 CalcRDFrequency(REAL8 MF, REAL8 chiF, REAL8 Mtot)
Returns ringdown frequency in units of the total mass using fits from gr-qc/0512160/.
REAL8 TanhWindow(const REAL8 f, const int sign, const REAL8 f0, const REAL8 sigma)
Tanh window function w^{+/-}_{f0,sigma}(f) = 0.5 * (1 +/- tanh(4*(f-f0)/sigma)) Auxiliary function us...
static double sigma(const double a, const double b, const sysq *system)
Internal function that computes the spin-spin couplings.
REAL8 XLALBHNS_spin_aligned(const REAL8 m1, const REAL8 m2, const REAL8 chi1, const REAL8 lam)
Compute final black hole spin for aligned black hole spin.
REAL8 XLALBHNS_mass_aligned(const REAL8 m1, const REAL8 m2, const REAL8 chi1, const REAL8 lam)
Compute final black hole mass for aligned black hole spin.
int XLALSEOBNRv4ROMNSBHAmplitudeCorrectionFrequencySeries(const REAL8Sequence *amp_tidal, const REAL8Sequence *fHz, REAL8 m1_SI, REAL8 m2_SI, REAL8 chi1, REAL8 lambda2)
Compute amplitude correction to SEOBNRv4_ROM_NRTidalv2 in LAL format at specified frequencies for the...
double XLALSimNSBH_compactness_from_lambda(const REAL8 Lambda)
Compactness as a function of tidal deformability.
double XLALSimNSBH_torus_mass_fit(const REAL8 q, const REAL8 a, const REAL8 C)
Baryonic mass of the torus remnant of a BH-NS merger.
double XLALSimNSBH_fGWinKerr(const REAL8 r, const REAL8 M, const REAL8 a)
GW frequency for a particle on Kerr.
double XLALSimNSBH_xi_tide(const REAL8 q, const REAL8 a, const REAL8 mu)
Relativistic correction to orbital radius at mass-shedding.