38#include <lal/LALStdlib.h>
39#include <lal/LALInspiral.h>
40#include <lal/GeneratePPNInspiral.h>
41#include <lal/GenerateInspiral.h>
43#include <lal/LALSTPNWaveform2.h>
46#define UNUSED __attribute__ ((unused))
53int main(
int argc,
char UNUSED **argv) {
66 memset( &mystatus, 0,
sizeof(
LALStatus) );
73 injParams.
mass1 = 10.;
74 injParams.
mass2 = 10.;
99 ppnParams.
deltaT = 1.0 / 4096.0;
101 fprintf(stderr,
"Lower cut-off frequency used will be %fHz\n", injParams.
f_lower);
108 fprintf( stderr,
"LALSTPNWaveformTest: error generating waveform %d\n", mystatus.
statusCode );
121 for(
i = 0;
i < length;
i++) {
127 fprintf(outputfile,
"%e\t%e\t%e\n",
129 a1*cos(shift)*cos(phi) -
a2*sin(shift)*sin(phi),
130 a1*sin(shift)*cos(phi) +
a2*cos(shift)*sin(phi));
134 fprintf(stderr,
"waveform saved in wave1.dat\n" );
void LALGenerateInspiral(LALStatus *status, CoherentGW *waveform, SimInspiralTable *thisEvent, PPNParamStruc *ppnParams)
REAL4TimeVectorSeries * a
This structure stores the parameters for constructing a restricted post-Newtonian waveform.
REAL8 deltaT
The requested sampling interval of the waveform, in s.
REAL4VectorSequence * data
CHAR waveform[LIGOMETA_WAVEFORM_MAX]