28#include <lal/LALInspiral.h>
29#include <lal/SeqFactories.h>
30#include <lal/FindRoot.h>
82 REAL8 v, v2, v3, v4, v5, v6, v9, eta, eta2, fourpi;
112 + v2*(-2.2113095238095237 - 2.75*eta) + v3*fourpi
113 + v4*(1.8795745149911816 + 6.77628968*eta + 3.27777778*eta2));
125 REAL8 v, v2, v3, v4, v5, v6, v9, eta, eta2, fourpi;
155 + v2*(-2.2113095238095237 - 2.75*eta) + v3*fourpi
156 + v4*(1.8795745149911816 + 6.77628968*eta + 3.27777778*eta2)
169 REAL8 v, v2, v3, v4, v5, v6, v9, eta, eta2, eta3, pisq, fourpi;
201 + v2*(-2.2113095238095237 - 2.75*eta) + v3*fourpi
202 + v4*(1.8795745149911816 + 6.77628968*eta + 3.27777778*eta2)
204 + v6*(117.72574285227559 - 16.3047619*0.577215664901
205 + 5.3333333*pisq - 258.114202*eta
206 + 9.39583333*pisq*eta + 0.603794643*eta2
207 - 2.16242284*eta3 - 8.15238095*log(16*v2)));
219 REAL8 v, v2, v3, v4, v5, v6, v7, v9, eta, eta2, eta3, pisq, fourpi;
252 + v2*(-2.2113095238095237 - 2.75*eta)
254 + v4*(1.8795745149911816 + 6.77628968*eta
257 + v6*(117.72574285227559 - 16.3047619*0.577215664901
258 + 5.3333333*pisq - 258.114202*eta
259 + 9.39583333*pisq*eta + 0.603794643*eta2
260 - 2.16242284*eta3 - 8.15238095*log(16*v2))
262 + 60.5125661*
LAL_PI*eta2));
307 NULL, NULL, NULL, NULL, &count,
params, ¶msInit);
350 NULL, &count,
params, ¶msInit);
394 if (paramsInit.
nbins == 0)
396 XLALPrintError(
"Error: Estimated length of injection is zero.\n" );
404 if ( !ff || !
a || !phi )
417 phi, &count,
params, ¶msInit);
427 phiC = phi->
data[count-1] ;
428 for (
i = 0;
i < count;
i++)
441 LALINSPIRALH_MSGEMEM );
446 LALFree( waveform->
a ); waveform->
a = NULL;
451 LALINSPIRALH_MSGEMEM );
456 LALFree( waveform->
a ); waveform->
a = NULL;
457 LALFree( waveform->
f ); waveform->
f = NULL;
462 LALINSPIRALH_MSGEMEM );
471 if ( waveform->
a->
data )
473 if ( waveform->
f->
data )
477 LALFree( waveform->
a ); waveform->
a = NULL;
478 LALFree( waveform->
f ); waveform->
f = NULL;
496 waveform->
psi = ppnParams->
psi;
503 ppnParams->
tc = (double)(count-1) /
params->tSampling ;
504 ppnParams->
length = count;
539 UINT4 length=0, count, ndx;
541 REAL8 omega, omegaMax, t,
dt,
m, phi, v;
542 REAL8Vector dummy, values, dvalues, newvalues, yt, dym, dyt;
560 REAL8 apFac = 0, acFac = 0;
609 apFac *= 1.0 + cosI*cosI;
617 func = paramsInit->
func;
620 length = signalvec1->
length;
632 v = pow(
m*omega,1./3.);
657 snprintf(message, 256,
"There are no T4 waveforms at order %d\n",
params->order);
681 funcParams = (
void *) &in2;
683 in4.
function(&values, &dvalues, funcParams);
687 omegaMax = 1./(pow(6.,1.5)*
m);
696 while (omega<omegaMax)
708 signalvec1->
data[ndx] = apFac * v*v * cos(2.*phi);
711 signalvec2->
data[ndx] = apFac * v*v * cos(2.*phi +
LAL_PI_2);
722 f2a = pow (f2aFac * omega, 2./3.);
723 a->data[ice] = (
REAL4)(4.*apFac * f2a);
724 a->data[ico] = (
REAL4)(4.*acFac * f2a);
725 phiVec->
data[count] = (
REAL8)(2.0 * phi);
741 v = values.
data[0] = newvalues.
data[0];
742 phi = values.
data[1] = newvalues.
data[1];
745 in4.
function(&values, &dvalues, funcParams);
746 omega = dvalues.
data[1];
748 t = (++count-
params->nStartPad) *
dt;
756 v = pow(
m*omega, 1./3.);
void XLALRungeKutta4Free(rk4GSLIntegrator *integrator)
void LALInspiralSetup(LALStatus *status, expnCoeffs *ak, InspiralTemplate *params)
void LALInspiralInit(LALStatus *status, InspiralTemplate *params, InspiralInit *paramsInit)
void LALInspiralChooseModel(LALStatus *status, expnFunc *func, expnCoeffs *ak, InspiralTemplate *params)
void LALRungeKutta4(LALStatus *, REAL8Vector *, rk4GSLIntegrator *, void *)
rk4GSLIntegrator * XLALRungeKutta4Init(INT4 n, rk4In *input)
#define ABORT(statusptr, code, mesg)
#define CHECKSTATUSPTR(statusptr)
#define ENDFAIL(statusptr)
#define ATTATCHSTATUSPTR(statusptr)
#define ASSERT(assertion, statusptr, code, mesg)
#define DETATCHSTATUSPTR(statusptr)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
#define BEGINFAIL(statusptr)
void XLALDestroyREAL4VectorSequence(REAL4VectorSequence *vecseq)
REAL4VectorSequence * XLALCreateREAL4VectorSequence(UINT4 length, UINT4 veclen)
#define GENERATEPPNINSPIRALH_EFSTOP
Reached requested termination frequency.
int LALError(LALStatus *status, const char *statement)
#define LALINSPIRALH_ECHOICE
Invalid choice for an input parameter.
#define LALINSPIRALH_EMEM
Memory allocation error.
#define LALINSPIRALH_ENULL
Arguments contained an unexpected null pointer.
#define LALINSPIRALH_EDIV0
Division by zero.
#define LALINSPIRALH_ESIZE
Invalid input range.
LAL_PNORDER_TWO_POINT_FIVE
LAL_PNORDER_THREE_POINT_FIVE
const LALUnit lalStrainUnit
const LALUnit lalHertzUnit
const LALUnit lalDimensionlessUnit
REAL4Vector * XLALCreateREAL4Vector(UINT4 length)
void XLALDestroyREAL4Vector(REAL4Vector *vector)
REAL8Vector * XLALCreateREAL8Vector(UINT4 length)
void XLALDestroyREAL8Vector(REAL8Vector *vector)
int int int XLALPrintInfo(const char *fmt,...) _LAL_GCC_PRINTF_FORMAT_(1
int XLALPrintError(const char *fmt,...) _LAL_GCC_PRINTF_FORMAT_(1
REAL4TimeVectorSeries * a
REAL4TimeVectorSeries * h
Structure used as an input to compute the derivatives needed in solving the phasing formula when the ...
The inspiral waveform parameter structure containing information about the waveform to be generated.
This structure stores the parameters for constructing a restricted post-Newtonian waveform.
const CHAR * termDescription
The termination code description (above)
INT4 termCode
The termination condition (above) that stopped computation of the waveform.
REAL4 dfdt
The maximum value of encountered over any timestep used in generating the waveform.
REAL4 phi
The phase at coalescence (or arbitrary reference phase for a post -Newtonian approximation),...
REAL4 psi
polarization angle (radians)
REAL4 fStart
The actual starting frequency of the waveform, in Hz (normally close but not identical to fStartIn)
SkyPosition position
location of source on sky
UINT4 length
The length of the generated waveform.
REAL4 fStop
The frequency at the termination of the waveform, in Hz.
REAL8 tc
The time from the start of the waveform to coalescence (in the point-mass approximation),...
REAL4 fStartIn
The requested starting frequency of the waveform, in Hz.
REAL8 deltaT
The requested sampling interval of the waveform, in s.
REAL4VectorSequence * data
This structure contains various post-Newtonian and P-approximant expansion coefficients; the meanings...
Structure to hold the pointers to the generic functions defined above.
Structure containing steps and controls for the GSL Runge-Kutta solver.
Structure used as an input to Runge-Kutta solver.