LALSimulation  5.4.0.1-fe68b98
LALSimInspiralEOBPostAdiabatic.h
Go to the documentation of this file.
1 /*
2  * LALSimInspiralEOBPostAdiabatic.h
3  */
4 
5 #include "LALSimIMRSpinEOB.h"
6 
7 #ifndef LALSimInspiralEOBPostAdiabatic_h
8 #define LALSimInspiralEOBPostAdiabatic_h
9 
10 int
12  REAL8Array **dynamics,
13  const REAL8 m1,
14  const REAL8 m2,
15  const REAL8 spin1z,
16  const REAL8 spin2z,
17  const REAL8Vector initVals,
18  UINT4 SpinAlignedEOBversion,
19  SpinEOBParams *seobParams,
20  EOBNonQCCoeffs *nqcCoeffs,
21  LALDict *PAParams
22 );
23 
24 REAL8
26  const REAL8 m1,
27  const REAL8 m2
28 );
29 
30 REAL8
32  const REAL8 q
33 );
34 
35 REAL8
37  const REAL8 nu
38 );
39 
40 REAL8
42  const REAL8 nu
43 );
44 
45 REAL8
47  REAL8 X,
48  REAL8 chi
49 );
50 
51 REAL8
53  REAL8 X1,
54  REAL8 X2,
55  REAL8 chi1,
56  REAL8 chi2
57 );
58 
59 REAL8
61  REAL8 a
62 );
63 
64 REAL8
66  REAL8 rStart,
67  REAL8 rFinal,
68  UINT4 rSize
69 );
70 
71 int
73  REAL8Vector *rVec,
74  LALDict *LALParams
75 );
76 
77 int
79  REAL8Vector *rVec,
80  REAL8Vector *phiVec,
81  REAL8Vector *prstarVec,
82  REAL8Vector *pphiVec,
83  REAL8Vector *pphi0Vec,
84  REAL8Vector *dpphiBydrVec,
85  REAL8Vector *csiVec,
86  REAL8Vector *omegaVec,
87  SpinEOBParams *seobParams,
88  LALDict *LALParams
89 );
90 
91 int
93  REAL8Vector *rVec,
94  REAL8Vector *phiVec,
95  REAL8Vector *dphiBydrVec,
96  REAL8Vector *prstarVec,
97  REAL8Vector *dprstarBydrVec,
98  REAL8Vector *pphiVec,
99  REAL8Vector *dpphiBydrVec,
100  REAL8Vector *dtBydrVec,
101  REAL8Vector *csiVec,
102  REAL8Vector *omegaVec,
103  SpinEOBParams *seobParams,
104  EOBNonQCCoeffs *nqcCoeffs,
105  LALDict *LALParams
106 );
107 
108 REAL8
110  REAL8 polarDynamics[],
111  REAL8 dr,
112  SpinEOBParams *seobParams,
113  LALDict *LALParams
114 );
115 
116 double
118  REAL8 prstar_sol,
119  void *params
120 );
121 
122 double
124  REAL8 pphi_sol,
125  void *params
126 );
127 
128 double
130  REAL8 j0_sol,
131  void *params
132 );
133 
134 struct
136 {
149  LALDict *LALParams;
150 };
151 
152 struct
154 {
158 };
159 
160 int
162  struct PostAdiabaticRoot *result,
163  double (*Func)(REAL8, void *),
165  REAL8 x_lower,
166  REAL8 x_upper,
167  REAL8 absTol,
168  REAL8 relTol,
169  INT2 parity
170 );
171 
172 int
174  REAL8Vector *Vec,
175  REAL8Vector *reverseVec
176 );
177 
178 int
180  REAL8Vector *Vec,
181  REAL8 offset,
182  REAL8Vector *offsetVec
183 );
184 
185 int
187  REAL8Vector *Vec,
188  REAL8 factor,
189  REAL8Vector *offsetVec
190 );
191 
192 int
194  REAL8Vector *XVec,
195  REAL8Vector *YVec,
196  REAL8Vector *derivativeVec
197 );
198 
199 int
201  REAL8Vector *XVec,
202  REAL8Vector *YVec,
203  REAL8Vector *derivativeVec
204 );
205 
206 int
208  REAL8Vector *XVec,
209  REAL8Vector *YVec,
210  REAL8Vector *derivativeVec
211 );
212 
213 int
215  REAL8Vector *XVec,
216  REAL8Vector *YVec,
217  REAL8Vector *derivativeVec
218 );
219 
220 int
222  REAL8Vector *XVec,
223  REAL8Vector *YVec,
224  REAL8Vector *integralVec
225 );
226 
227 REAL8
229  REAL8 r,
230  REAL8 prstar,
231  REAL8 pphi,
232  SpinEOBHCoeffs *seobCoeffs,
233  LALDict *LALParams
234 );
235 
236 REAL8
238  REAL8 h,
239  REAL8 r,
240  REAL8 prstar,
241  REAL8 pphi,
242  SpinEOBParams *seobParams,
243  LALDict *LALParams
244 );
245 
246 REAL8
248  REAL8 h,
249  REAL8 r,
250  REAL8 prstar,
251  REAL8 pphi,
252  SpinEOBParams *seobParams,
253  LALDict *LALParams
254 );
255 
256 int
258  REAL8Vector *inputVec,
259  REAL8Vector *meanVec
260 );
261 
262 REAL8
264  REAL8 r,
265  REAL8 prstar,
266  REAL8 pphi,
267  REAL8 omega,
268  SpinEOBParams *seobParams,
269  EOBNonQCCoeffs *nqcCoeffs,
270  LALDict *LALParams
271 );
272 
273 REAL8
275  REAL8 r
276 );
277 
278 #endif
int XLALSimInspiralEOBPAMeanValueOrder8(REAL8Vector *inputVec, REAL8Vector *meanVec)
Function which performs an 8-order mean smoothing of a vector.
int XLALSimInspiralEOBPostAdiabatic(REAL8Array **dynamics, const REAL8 m1, const REAL8 m2, const REAL8 spin1z, const REAL8 spin2z, const REAL8Vector initVals, UINT4 SpinAlignedEOBversion, SpinEOBParams *seobParams, EOBNonQCCoeffs *nqcCoeffs, LALDict *PAParams)
This function generates post-adiabatic inspiral for spin-aligned binary in the SEOB formalism.
REAL8 XLALSimInspiralEOBPAPartialHByPartialr(REAL8 h, REAL8 r, REAL8 prstar, REAL8 pphi, SpinEOBParams *seobParams, LALDict *LALParams)
Function which calculates the partial derivative dH/dr.
REAL8 XLALSimInspiralEOBPACalculateMassRatio(const REAL8 m1, const REAL8 m2)
Function which calculates the mass ratio q from the masses m1 and m2.
REAL8 XLALSimInspiralEOBPAFluxWrapper(REAL8 r, REAL8 prstar, REAL8 pphi, REAL8 omega, SpinEOBParams *seobParams, EOBNonQCCoeffs *nqcCoeffs, LALDict *LALParams)
A wrapper for the factorized flux, depending on the user choices.
double XLALSimInspiralEOBPostAdiabaticdpphiFunc(REAL8 pphi_sol, void *params)
Function which implements eq.
REAL8 XLALSimInspiralEOBPACalculatea(REAL8 X, REAL8 chi)
Function which calculates the spin parameter a.
REAL8 XLALSimIMRSpinAlignedEOBPACalculateOmega(REAL8 polarDynamics[], REAL8 dr, SpinEOBParams *seobParams, LALDict *LALParams)
Function which calculates the frequency Omega.
REAL8 XLALSimInspiralEOBPACalculatedr(REAL8 rStart, REAL8 rFinal, UINT4 rSize)
Function which calculates the spacing of the radial grid.
int XLALFDDerivative1Order6(REAL8Vector *XVec, REAL8Vector *YVec, REAL8Vector *derivativeVec)
Function which calculates the 6-order first finite difference derivative of a numerical function.
double XLALSimInspiralEOBPostAdiabaticdprstarFunc(REAL8 prstar_sol, void *params)
Function which implements eq.
int XLALSimInspiralEOBPACalculateRadialGrid(REAL8Vector *rVec, LALDict *LALParams)
Function which comstructs the radial grid on which the post-adiabatic approximation will be computed.
REAL8 XLALSimInspiralEOBPACalculateSymmetricMassRatio(const REAL8 q)
Function which calculates the symmetric mass ratio nu from the mass ratio q.
int XLALFDDerivative1Order2(REAL8Vector *XVec, REAL8Vector *YVec, REAL8Vector *derivativeVec)
Function which calculates the 2-order first finite difference derivative of a numerical function.
REAL8 XLALSimInspiralEOBPACalculateSstar(REAL8 X1, REAL8 X2, REAL8 chi1, REAL8 chi2)
Function which calculates the spin parameter Sstar (S*)
REAL8 XLALSimInspiralEOBPostAdiabaticFinalRadiusAlternative(REAL8 a)
Function which calculates the final radius at which the post-adiabatic routine stops.
int XLALFDDerivative1Order4(REAL8Vector *XVec, REAL8Vector *YVec, REAL8Vector *derivativeVec)
Function which calculates the 4-order first finite difference derivative of a numerical function.
REAL8 XLALSimInspiralEOBPAHamiltonianWrapper(REAL8 r, REAL8 prstar, REAL8 pphi, SpinEOBHCoeffs *seobCoeffs, LALDict *LALParams)
A wrapper for the SEOB Hamiltonian, depending on the user choices.
REAL8 XLALSimInspiralEOBPAPartialHByPartialprstar(REAL8 h, REAL8 r, REAL8 prstar, REAL8 pphi, SpinEOBParams *seobParams, LALDict *LALParams)
Function which calculates the partial derivative dH/dprstar.
int XLALSimInspiralEOBPACalculatePostAdiabaticDynamics(REAL8Vector *rVec, REAL8Vector *phiVec, REAL8Vector *dphiBydrVec, REAL8Vector *prstarVec, REAL8Vector *dprstarBydrVec, REAL8Vector *pphiVec, REAL8Vector *dpphiBydrVec, REAL8Vector *dtBydrVec, REAL8Vector *csiVec, REAL8Vector *omegaVec, SpinEOBParams *seobParams, EOBNonQCCoeffs *nqcCoeffs, LALDict *LALParams)
This function calculates the (n-th order) post-adiabatic approximation of the inspiral dynamics.
int XLALCumulativeIntegral3(REAL8Vector *XVec, REAL8Vector *YVec, REAL8Vector *integralVec)
Function which calculates the 3-order cumulative derivative of a numerical function.
int XLALOffsetREAL8Vector(REAL8Vector *Vec, REAL8 offset, REAL8Vector *offsetVec)
Function which add a constant to each element of an array.
int XLALSimInspiralEOBPACalculateAdiabaticDynamics(REAL8Vector *rVec, REAL8Vector *phiVec, REAL8Vector *prstarVec, REAL8Vector *pphiVec, REAL8Vector *pphi0Vec, REAL8Vector *dpphiBydrVec, REAL8Vector *csiVec, REAL8Vector *omegaVec, SpinEOBParams *seobParams, LALDict *LALParams)
This function calculates the adiabatic (0th order PA) approximation of the inspiral dynamics.
REAL8 XLALSimInspiralEOBPACalculateX1(const REAL8 nu)
Function which calculates the parameter X1 from the symmetric mass ratio nu.
int XLALReverseREAL8Vector(REAL8Vector *Vec, REAL8Vector *reverseVec)
Function which reverses a 1D array.
int XLALSimInspiralEOBPostAdiabaticRootFinder(struct PostAdiabaticRoot *result, double(*Func)(REAL8, void *), struct PostAdiabaticRootSolveParams *params, REAL8 x_lower, REAL8 x_upper, REAL8 absTol, REAL8 relTol, INT2 parity)
Root finder function which is used for computing the adiabatic and post-adiabatic approximations.
int XLALFDDerivative1Order8(REAL8Vector *XVec, REAL8Vector *YVec, REAL8Vector *derivativeVec)
Function which calculates the 8-order first finite difference derivative of a numerical function.
double XLALSimInspiralEOBPostAdiabaticj0Func(REAL8 j0_sol, void *params)
Function which implements eq.
int XLALRescaleREAL8Vector(REAL8Vector *Vec, REAL8 factor, REAL8Vector *offsetVec)
This function rescales each element of an array by a given factor.
REAL8 XLALSimInspiralEOBPACalculateNewtonianj0(REAL8 r)
Function which calculates the circular angular momentum j0.
REAL8 XLALSimInspiralEOBPACalculateX2(const REAL8 nu)
Function which calculates the parameter X2 from the symmetric mass ratio nu.
double REAL8
int16_t INT2
uint32_t UINT4
int32_t INT4
static const INT4 r
static const INT4 q
static const INT4 a
The coefficients which are used in calculating the non-quasicircular correction to the EOBNRv2 model.
REAL8 root
INT4 nIter
INT4 status
REAL8 dprstarBydr
REAL8 pphi
LALDict * LALParams
REAL8 prstar
REAL8 dprstar
REAL8 r
REAL8 phi
SpinEOBParams * seobParams
REAL8 dpphiBydr
REAL8 csi
REAL8 dr
REAL8 omega
EOBNonQCCoeffs * nqcCoeffs
Parameters for the spinning EOB model, used in calculating the Hamiltonian.
Parameters for the spinning EOB model.
Definition: burst.c:245