LALSimulation  5.4.0.1-fe68b98
LALSimNRSur3dq8Remnant.h
Go to the documentation of this file.
1 /* Copyright (C) 2019 Vijay Varma
2  * Evaluates NRSur3dq8Remnant model for remnant BH mass, spin and recoil kick
3  * for aligned-spin 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 NRSur3dq8Remnant model for remnant BH mass, spin and recoil kick for
27  * aligned-spin BBH.
28  *
29  * The binary data file is available at:
30  * https://dcc.ligo.org/LIGO-T1900034/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/1809.09125,
35  * https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.122.011101.
36  * The model is referred to as surfinBH3dq8 in the paper.
37  *
38  * **Parameter ranges**:
39  *
40  * q = [1, 9.1]
41  * \f$\chi_{1z}, \chi_{2z}\f$ = [-0.91, 0.91]
42  *
43  * OR
44  *
45  * q = [1, 10.1]
46  * \f$\chi_{1z}, \chi_{2z}\f$ = [-0.81, 0.81]
47  *
48  * **Training parameter ranges**:
49  *
50  * q = [1, 8]
51  * \f$\chi_{1z}, \chi_{2z}\f$ = [-0.81, 0.81]
52  *
53  * But extrapolates reasonably to the above mass ratios and spins. However,
54  * if a guarantee of accuracy is required, this model should be used within
55  * the training parameter range.
56  */
57 
58 // https://dcc.ligo.org/LIGO-T1900034/public, should be placed in $LAL_DATA_PATH
59 static const char NRSur3dq8Remnant_DATAFILE[] = "NRSur3dq8Remnant.h5";
60 
61 //*************************************************************************/
62 //************************* function declarations *************************/
63 //*************************************************************************/
64 
65 static bool NRSur3dq8Remnant_IsSetup(void);
66 
68 
70  gsl_vector* fit_params,
71  const REAL8 q,
72  const REAL8 chiAz,
73  const REAL8 chiBz,
74  LALDict* LALparams
75 );
static int NRSur3dq8Remnant_fitParams(gsl_vector *fit_params, const REAL8 q, const REAL8 chiAz, const REAL8 chiBz, LALDict *LALparams)
static const char NRSur3dq8Remnant_DATAFILE[]
static void NRSur3dq8Remnant_Init_LALDATA(void)
static bool NRSur3dq8Remnant_IsSetup(void)
double REAL8
static const INT4 q