40#include <lal/LALStdlib.h>
41#include <lal/LALInspiral.h>
42#include <lal/LALSimInspiral.h>
43#include <lal/GeneratePPNInspiral.h>
44#include <lal/GenerateInspiral.h>
45#include <lal/TimeSeries.h>
63 REAL8 dt,
m, m1, m2, nu, lambda1, lambda2;
66 memset( &mystatus, 0,
sizeof(
LALStatus) );
76 LALSimInspiralWaveformFlags *waveFlags;
95 length =
XLALSimInspiralTaylorT4PNRestricted(&hplus, &hcross, 0.,
dt,
params.mass1*
LAL_MSUN_SI,
params.mass2*
LAL_MSUN_SI,
params.fLower, 0.,
params.
distance, lambda1, lambda2,
XLALSimInspiralGetTidalOrder(waveFlags), 0, 7);
96 diff = clock() -
start;
97 msec = diff * 1000 / CLOCKS_PER_SEC;
98 printf(
"Time taken %d seconds %d milliseconds\n", msec/1000, msec%1000);
100 fprintf(stderr,
"length = %i\n", length);
101 fprintf(stderr,
"T = %f\n", (
float) length *
dt);
103 outputfile = fopen(
"T4wave1.dat",
"w");
107 for(
i = 0;
i < length;
i++) {
108 fprintf(outputfile,
"%e\t%e\t%e\n",
115 fprintf(stdout,
"waveform saved in T4wave1.dat\n" );
121 fprintf(stderr,
"Lower cut-off frequency used will be %fHz\n",
params.fLower);
125 diff = clock() -
start;
126 msec = diff * 1000 / CLOCKS_PER_SEC;
127 printf(
"Time taken %d seconds %d milliseconds\n", msec/1000, msec%1000);
131 fprintf( stderr,
"LALInspiralTaylorT4Test: error generating waveform\n" );
137 outputfile = fopen(
"T4wave2.dat",
"w");
141 for(
i = 0;
i < length;
i++) {
142 fprintf(outputfile,
"%e\t%e\t%e\n",
149 fprintf(stdout,
"waveform saved in T4wave2.dat\n" );
void LALTaylorT4WaveformTemplates(LALStatus *status, REAL4Vector *signalvec1, REAL4Vector *signalvec2, InspiralTemplate *params)
int main(void)
Create waveforms based on the TaylorT4 model.
LAL_PNORDER_THREE_POINT_FIVE
int XLALSimInspiralTaylorT4PNRestricted(REAL8TimeSeries **hplus, REAL8TimeSeries **hcross, REAL8 phiRef, REAL8 deltaT, REAL8 m1, REAL8 m2, REAL8 f_min, REAL8 fRef, REAL8 r, REAL8 i, REAL8 lambda1, REAL8 lambda2, LALSimInspiralTidalOrder tideO, int O)
REAL4TimeSeries * XLALCreateREAL4TimeSeries(const CHAR *name, const LIGOTimeGPS *epoch, REAL8 f0, REAL8 deltaT, const LALUnit *sampleUnits, size_t length)
const LALUnit lalDimensionlessUnit
The inspiral waveform parameter structure containing information about the waveform to be generated.