Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALSimulation 6.2.0.1-8a6b96f
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Header LALSimInspiralWaveformCache.h

Detailed Description

Routines for saving previously-computed waveforms for reuse.

Prototypes

int XLALSimInspiralChooseTDWaveformFromCache (REAL8TimeSeries **hplus, REAL8TimeSeries **hcross, REAL8 phiRef, REAL8 deltaT, REAL8 m1, REAL8 m2, REAL8 S1x, REAL8 S1y, REAL8 S1z, REAL8 S2x, REAL8 S2y, REAL8 S2z, REAL8 f_min, REAL8 f_ref, REAL8 r, REAL8 i, LALDict *LALpars, Approximant approximant, LALSimInspiralWaveformCache *cache)
 Chooses between different approximants when requesting a waveform to be generated Returns the waveform in the time domain. More...
 
int XLALSimInspiralChooseFDWaveformFromCache (COMPLEX16FrequencySeries **hptilde, COMPLEX16FrequencySeries **hctilde, REAL8 phiRef, REAL8 deltaF, REAL8 m1, REAL8 m2, REAL8 S1x, REAL8 S1y, REAL8 S1z, REAL8 S2x, REAL8 S2y, REAL8 S2z, REAL8 f_min, REAL8 f_max, REAL8 f_ref, REAL8 r, REAL8 i, LALDict *LALpars, Approximant approximant, LALSimInspiralWaveformCache *cache, REAL8Sequence *frequencies)
 Chooses between different approximants when requesting a waveform to be generated Returns the waveform in the frequency domain. More...
 
LALSimInspiralWaveformCacheXLALCreateSimInspiralWaveformCache (void)
 Construct and initialize a waveform cache. More...
 
void XLALDestroySimInspiralWaveformCache (LALSimInspiralWaveformCache *cache)
 Destroy a waveform cache. More...
 

Data Structures

struct  LALSimInspiralWaveformCacheOld
 Stores previously-computed waveforms and parameters to take advantage of approximant- and parameter-specific opportunities for accelerating waveform computation. More...
 
struct  LALSimInspiralWaveformCache
 

Function Documentation

◆ XLALSimInspiralChooseTDWaveformFromCache()

int XLALSimInspiralChooseTDWaveformFromCache ( REAL8TimeSeries **  hplus,
REAL8TimeSeries **  hcross,
REAL8  phiRef,
REAL8  deltaT,
REAL8  m1,
REAL8  m2,
REAL8  S1x,
REAL8  S1y,
REAL8  S1z,
REAL8  S2x,
REAL8  S2y,
REAL8  S2z,
REAL8  f_min,
REAL8  f_ref,
REAL8  r,
REAL8  i,
LALDict *  LALpars,
Approximant  approximant,
LALSimInspiralWaveformCache cache 
)

Chooses between different approximants when requesting a waveform to be generated Returns the waveform in the time domain.

The parameters passed must be in SI units.

This version allows caching of waveforms. The most recently generated waveform and its parameters are stored. If the next call requests a waveform that can be obtained by a simple transformation, then it is done. This bypasses the waveform generation and speeds up the code.

Parameters
hplus+-polarization waveform
hcrossx-polarization waveform
phiRefreference orbital phase (rad)
deltaTsampling interval (s)
m1mass of companion 1 (kg)
m2mass of companion 2 (kg)
S1xx-component of the dimensionless spin of object 1
S1yy-component of the dimensionless spin of object 1
S1zz-component of the dimensionless spin of object 1
S2xx-component of the dimensionless spin of object 2
S2yy-component of the dimensionless spin of object 2
S2zz-component of the dimensionless spin of object 2
f_minstarting GW frequency (Hz)
f_refreference GW frequency (Hz)
rdistance of source (m)
iinclination of source (rad)
LALparsLALDictionary containing non-mandatory variables/flags
approximantpost-Newtonian approximant to use for waveform production
cachewaveform cache structure; use NULL for no caching

Definition at line 109 of file LALSimInspiralWaveformCache.c.

◆ XLALSimInspiralChooseFDWaveformFromCache()

int XLALSimInspiralChooseFDWaveformFromCache ( COMPLEX16FrequencySeries **  hptilde,
COMPLEX16FrequencySeries **  hctilde,
REAL8  phiRef,
REAL8  deltaF,
REAL8  m1,
REAL8  m2,
REAL8  S1x,
REAL8  S1y,
REAL8  S1z,
REAL8  S2x,
REAL8  S2y,
REAL8  S2z,
REAL8  f_min,
REAL8  f_max,
REAL8  f_ref,
REAL8  r,
REAL8  i,
LALDict *  LALpars,
Approximant  approximant,
LALSimInspiralWaveformCache cache,
REAL8Sequence frequencies 
)

Chooses between different approximants when requesting a waveform to be generated Returns the waveform in the frequency domain.

The parameters passed must be in SI units.

This version allows caching of waveforms. The most recently generated waveform and its parameters are stored. If the next call requests a waveform that can be obtained by a simple transformation, then it is done. This bypasses the waveform generation and speeds up the code.

Parameters
hptilde+-polarization waveform
hctildex-polarization waveform
phiRefreference orbital phase (rad)
deltaFsampling interval (Hz)
m1mass of companion 1 (kg)
m2mass of companion 2 (kg)
S1xx-component of the dimensionless spin of object 1
S1yy-component of the dimensionless spin of object 1
S1zz-component of the dimensionless spin of object 1
S2xx-component of the dimensionless spin of object 2
S2yy-component of the dimensionless spin of object 2
S2zz-component of the dimensionless spin of object 2
f_minstarting GW frequency (Hz)
f_maxending GW frequency (Hz)
f_refReference GW frequency (Hz)
rdistance of source (m)
iinclination of source (rad)
LALparsLALDictionary containing non-mandatory variables/flags
approximantpost-Newtonian approximant to use for waveform production
cachewaveform cache structure
frequenciessequence of frequencies for which the waveform will be computed. Pass in NULL (or None in python) for standard f_min to f_max sequence.

Definition at line 436 of file LALSimInspiralWaveformCache.c.

◆ XLALCreateSimInspiralWaveformCache()

LALSimInspiralWaveformCache * XLALCreateSimInspiralWaveformCache ( void  )

Construct and initialize a waveform cache.

Caches are used to avoid re-computation of waveforms that differ only by simple scaling relations in extrinsic parameters.

Definition at line 631 of file LALSimInspiralWaveformCache.c.

◆ XLALDestroySimInspiralWaveformCache()

void XLALDestroySimInspiralWaveformCache ( LALSimInspiralWaveformCache cache)

Destroy a waveform cache.

Definition at line 642 of file LALSimInspiralWaveformCache.c.