Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInspiral 5.0.3.1-ea7c608
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
LALInspiralSpinningBHBinariesTest.c File Reference

Test routine for spin-modulted inspiral waveform generation code. More...

Prototypes

void printf_timeseries (int n, float *sig, double delta, double t0)
 
int main (void)
 

Detailed Description

Test routine for spin-modulted inspiral waveform generation code.

Author
Sathyaprakash, B. S.

First set the InspiralTemplate structure (example given below). Then call the function LALInspiralWaveLength (&status, &n, params) to measure the length n of the array required. Then call the function LALInspiralWave(&status, signal1, params); to generate the wave, which will be returned in signal. Example values of the parameters that can be set (with options in brackets):

params.OmegaS = 0.; (Unknown 3PN parameter in energy shown to be zero by DJS)
params.ieta=1; (1 for comparable masses model, 0 for test mass model)
params.mass1=1.4; (masses of the component stars in solar masses)
params.mass2=1.4;
params.startTime=0.0; (in sec. Defined so that the instantaneous GW frequency
is params.fLower at params.startTime)
params.startPhase=0.0; (0 to LAL_PI_2)
params.fLower=40.0; (in Hz)
params.fCutoff=1000.0; (in Hz)
params.tSampling=4000.; (in Hz; should be larger than 2*fCutoff or 2*flso,
whichever is smaller)
params.signalAmplitude=1.0;
params.nStartPad=0; (number of leading zero bins)
params.nEndPad=0; (number of trailing zero bins)
params.approximant=SpinTaylorT3;
params.order=twoPN; (also newtonian, onePN, oneAndHalfPN, twoPN,
twoAndHalfPN, threePN, threeAndHalfPN)
params.massChoice=m1Andm2; (also t0t2, t0t3, t0t4, totalMassAndEta,totalMassAndMu)
params.Theta = 0.;
params.distance = 1.e8 * LAL_PC_SI/LAL_C_SI; (distance in sec)
params.sourceTheta = LAL_PI/6.L; (Source co-latitute)
params.sourcePhi = LAL_PI/6.L; (Source azimuth)
mass1Sq = pow(params.mass1*LAL_MTSUN_SI,2.L); (mass of the 1st body in sec.)
mass2Sq = pow(params.mass2*LAL_MTSUN_SI,2.L); (mass of the 2nd body in sec.)
spin1Frac = 0.9; (spin of body 1 in units of its mass)
spin2Frac = 0.3; (spin of body 2 in units of its mass)
params.orbitTheta0 = LAL_PI_2/3.; (initial co-latitute orientation of the orbit)
params.orbitPhi0 = LAL_PI/6.; (initial azimuth orientation of the orbit)
(spin of body 1)
params.spin1[0] = mass1Sq * spin1Frac * sin(spin1Theta) * cos(spin1Phi);
params.spin1[1] = mass1Sq * spin1Frac * sin(spin1Theta) * sin(spin1Phi);
params.spin1[2] = mass1Sq * spin1Frac * cos(spin1Theta);
(spin of body 2)
params.spin2[0] = mass2Sq * spin2Frac * sin(spin2Theta) * cos(spin2Phi);
params.spin2[1] = mass2Sq * spin2Frac * sin(spin2Theta) * sin(spin2Phi);
params.spin2[2] = mass2Sq * spin2Frac * cos(spin2Theta);
static INT4 test(REAL4, REAL4, REAL4, REAL4, REAL4, REAL4, REAL4, REAL4)
#define LAL_PI_2
#define LAL_C_SI
#define LAL_PI
#define LAL_PC_SI
@ totalMassAndMu
total mass and reduced mass
Definition: LALInspiral.h:182
@ totalMassAndEta
total mass and symmetric mass ratio
Definition: LALInspiral.h:180
@ m1Andm2
component masses
Definition: LALInspiral.h:179
SpinTaylorT3
double distance

Definition in file LALInspiralSpinningBHBinariesTest.c.

Go to the source code of this file.

Function Documentation

◆ printf_timeseries()

void printf_timeseries ( int  n,
float *  sig,
double  delta,
double  t0 
)

Definition at line 88 of file LALInspiralSpinningBHBinariesTest.c.

◆ main()

int main ( void  )

Definition at line 104 of file LALInspiralSpinningBHBinariesTest.c.