LALSimulation  5.4.0.1-fe68b98
LALSimIMRPhenomX_AntisymmetricWaveform.h
Go to the documentation of this file.
1 #ifndef _LALSIM_IMR_PHENOMX_ANTISYMMETRICWAVEFORM_H
2 #define _LALSIM_IMR_PHENOMX_ANTISYMMETRICWAVEFORM_H
3 /*
4  * Copyright (C) 2022 Cardiff University
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with with program; see the file COPYING. If not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301 USA
20  */
21 
22 /**
23  * \author Shrobana Ghosh
24  *
25  */
26 
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif
31 
32 #include <lal/LALStdlib.h>
33 #include <lal/LALSimIMR.h>
34 #include <lal/LALConstants.h>
35 #include <lal/LALDatatypes.h>
36 #include <lal/Sequence.h>
37 #include <lal/LALDict.h>
38 #include <lal/XLALError.h>
39 
40 #include <lal/FrequencySeries.h>
41 #include <lal/LALSimInspiral.h>
42 
43 #include <math.h>
44 #include <gsl/gsl_spline.h>
45 #include <gsl/gsl_integration.h>
46 
47 
49  REAL8Sequence *kappa,
50  const REAL8Sequence *freqs, /**< input frequency array (Hz) */
51  IMRPhenomXWaveformStruct *pWF, /**< waveform struct */
52  IMRPhenomXPrecessionStruct *pPrec /**< precession struct **/
53 );
54 
55 double GetKappa_at_frequency(REAL8 v,REAL8 delta,REAL8 Chi,REAL8 theta,REAL8 eta,double b);
56 
57 
58 
60  REAL8 *A0, /**< UNDOCUMENTED */
61  REAL8 *phi_A0, /**< UNDOCUMENTED */
62  REAL8 *phi_B0, /**< UNDOCUMENTED */
63  const double MfT, /**< UNDOCUMENTED */
64  double lina, /**< UNDOCUMENTED */
65  double linb, /**< UNDOCUMENTED */
66  double inveta, /**< UNDOCUMENTED */
67  IMRPhenomXWaveformStruct *pWF, /**< waveform struct */
68  IMRPhenomXPrecessionStruct *pPrec, /**< precession struct **/
69  IMRPhenomXPhaseCoefficients *pPhase22 /**< symmetric phase coefficients struct */
70 );
71 
73  REAL8Sequence *antisymamp, /**< [out] Amplitude of antisymmetric (2,2) waveform */
74  REAL8Sequence *antisymphase, /**< [out] Phase of antisymmetric (2,2) waveform */
75  const REAL8Sequence *freqs, /**< input frequency array (Hz) */
76  IMRPhenomXWaveformStruct *pWF, /**< waveform struct */
77  IMRPhenomXPrecessionStruct *pPrec, /**< precession struct **/
78  LALDict *lalparams /**< UNDOCUMENTED */
79 );
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 
85 #endif // of #ifndef _LALSIM_IMR_PHENOMX_ANTISYMMETRICWAVEFORM_H
static double double delta
int IMRPhenomX_PNR_GenerateAntisymmetricPhaseCoefficients(REAL8 *A0, REAL8 *phi_A0, REAL8 *phi_B0, const double MfT, double lina, double linb, double inveta, IMRPhenomXWaveformStruct *pWF, IMRPhenomXPrecessionStruct *pPrec, IMRPhenomXPhaseCoefficients *pPhase22)
Anti-symmetric phase coefficients/offsets.
int IMRPhenomX_PNR_GenerateAntisymmetricAmpRatio(REAL8Sequence *kappa, const REAL8Sequence *freqs, IMRPhenomXWaveformStruct *pWF, IMRPhenomXPrecessionStruct *pPrec)
GENERATE Antisymmetric amplitude ratio.
double GetKappa_at_frequency(REAL8 v, REAL8 delta, REAL8 Chi, REAL8 theta, REAL8 eta, double b)
int IMRPhenomX_PNR_GenerateAntisymmetricWaveform(REAL8Sequence *antisymamp, REAL8Sequence *antisymphase, const REAL8Sequence *freqs, IMRPhenomXWaveformStruct *pWF, IMRPhenomXPrecessionStruct *pPrec, LALDict *lalparams)
double theta
Definition: bh_sphwf.c:118
double REAL8