LALSimulation  5.4.0.1-fe68b98
LALSimNRSur7dq4Remnant.h
Go to the documentation of this file.
1 /* Copyright (C) 2019 Vijay Varma
2  * Evaluates NRSur7dq4Remnant model for remnant BH mass, spin and recoil kick
3  * for generically precessing BBH.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with with program; see the file COPYING. If not, write to the
17  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18  * MA 02110-1301 USA
19  */
20 
21 /**
22  * \author Vijay Varma
23  *
24  * \file
25  *
26  * \brief NRSur7dq4Remnant model for remnant BH mass, spin and recoil kick for
27  * generically precessing BBH.
28  *
29  * The binary data file is available at:
30  * https://dcc.ligo.org/LIGO-T1900393/public.
31  * Get the lalsuite-extra repo or put the data into a location in your
32  * LAL_DATA_PATH.
33  *
34  * **Paper**: https://arxiv.org/abs/1905.09300,
35  * https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.1.033015
36  *
37  * **Parameter ranges**:
38  *
39  * q = [1, 6.01]
40  *
41  * \f$|\chi_{1}|, |\chi_{2}| \leq 1 \f$
42  *
43  * **Training parameter ranges**:
44  *
45  * q = [1, 4.01]
46  *
47  * \f$|\chi_{1}|, |\chi_{2}| \leq 0.81 \f$
48  *
49  * But extrapolates reasonably to the above mass ratios and spins. However,
50  * if a guarantee of accuracy is required, this model should be used within
51  * the training parameter range.
52  */
53 
54 // https://dcc.ligo.org/LIGO-T1900393/public, should be placed in $LAL_DATA_PATH
55 static const char NRSur7dq4Remnant_DATAFILE[] = "NRSur7dq4Remnant.h5";
56 
57 //*************************************************************************/
58 //************************* function declarations *************************/
59 //*************************************************************************/
60 
61 static bool NRSur7dq4Remnant_IsSetup(void);
62 
64 
66  gsl_vector* fit_params,
67  const REAL8 q,
68  const REAL8 chiAx,
69  const REAL8 chiAy,
70  const REAL8 chiAz,
71  const REAL8 chiBx,
72  const REAL8 chiBy,
73  const REAL8 chiBz,
74  LALDict* LALparams
75 );
static bool NRSur7dq4Remnant_IsSetup(void)
static int NRSur7dq4Remnant_fitParams(gsl_vector *fit_params, const REAL8 q, const REAL8 chiAx, const REAL8 chiAy, const REAL8 chiAz, const REAL8 chiBx, const REAL8 chiBy, const REAL8 chiBz, LALDict *LALparams)
static void NRSur7dq4Remnant_Init_LALDATA(void)
static const char NRSur7dq4Remnant_DATAFILE[]
double REAL8
static const INT4 q