LALSimulation  5.4.0.1-fe68b98
LALSimIMRSpinEOBHcapNumericalDerivative.c File Reference

Prototypes

static double GSLSpinHamiltonianWrapper (double x, void *params)
 Wrapper for GSL to call the Hamiltonian function. More...
 
static int XLALSpinHcapNumericalDerivative (double t, const REAL8 values[], REAL8 dvalues[], void *funcParams) UNUSED
 
static REAL8 XLALSpinHcapNumDerivWRTParam (const INT4 paramIdx, const REAL8 values[], SpinEOBParams *funcParams)
 Calculate the derivative of the Hamiltonian w.r.t. More...
 
static int XLALSpinHcapNumericalDerivative (double UNUSED t, const REAL8 values[], REAL8 dvalues[], void *funcParams)
 Function to calculate numerical derivatives of the spin EOB Hamiltonian, which correspond to time derivatives of the dynamical variables in conservative dynamcis. More...
 

Go to the source code of this file.

Macros

#define _LALSIMIMRSPINEOBHCAPNUMERICALDERIVATIVE_C
 In newer versions of the EOBNR approximant, we do not have an analytic expression for the derivative of the waveform. As such, it is necessary to calculate the derivatives numerically. This function provides the means to do just that. More...
 

Macro Definition Documentation

◆ _LALSIMIMRSPINEOBHCAPNUMERICALDERIVATIVE_C

#define _LALSIMIMRSPINEOBHCAPNUMERICALDERIVATIVE_C

In newer versions of the EOBNR approximant, we do not have an analytic expression for the derivative of the waveform. As such, it is necessary to calculate the derivatives numerically. This function provides the means to do just that.

Author
Craig Robinson, Yi Pan

Definition at line 32 of file LALSimIMRSpinEOBHcapNumericalDerivative.c.

Function Documentation

◆ GSLSpinHamiltonianWrapper()

static double GSLSpinHamiltonianWrapper ( double  x,
void *  params 
)
static

Wrapper for GSL to call the Hamiltonian function.

Definition at line 457 of file LALSimIMRSpinEOBHcapNumericalDerivative.c.

◆ XLALSpinHcapNumericalDerivative() [1/2]

static int XLALSpinHcapNumericalDerivative ( double  t,
const REAL8  values[],
REAL8  dvalues[],
void *  funcParams 
)
static

◆ XLALSpinHcapNumDerivWRTParam()

static REAL8 XLALSpinHcapNumDerivWRTParam ( const INT4  paramIdx,
const REAL8  values[],
SpinEOBParams funcParams 
)
static

Calculate the derivative of the Hamiltonian w.r.t.

a specific parameter Used by generic spin EOB model, including initial conditions solver.

Parameters
paramIdx< Index of the parameters
values< Dynamical variables
funcParams< EOB Parameters

Definition at line 395 of file LALSimIMRSpinEOBHcapNumericalDerivative.c.

◆ XLALSpinHcapNumericalDerivative() [2/2]

static int XLALSpinHcapNumericalDerivative ( double UNUSED  t,
const REAL8  values[],
REAL8  dvalues[],
void *  funcParams 
)
static

Function to calculate numerical derivatives of the spin EOB Hamiltonian, which correspond to time derivatives of the dynamical variables in conservative dynamcis.

All derivatives, including those on two terms of the orbital phase, are returned together. The derivatives are combined with energy flux to give right hand side of the ODEs of a generic spin EOB model, as decribed in Eqs. 21, 22, 26 and 27 of Pan et al. PRD 81, 084041 (2010) This function is not used by the spin-aligned SEOBNRv1 model.

Parameters
t< UNUSED
values< Dynamical variables
dvalues< Time derivatives of variables (returned)
funcParams< EOB parameters

Definition at line 94 of file LALSimIMRSpinEOBHcapNumericalDerivative.c.