LALSimulation  5.4.0.1-fe68b98
LALSimSGWB.c File Reference

Prototypes

static int XLALSimSGWBSegment (REAL8TimeSeries **h, const LALDetector *detectors, size_t numDetectors, const REAL8FrequencySeries *OmegaGW, double H0, gsl_rng *rng)
 
REAL8FrequencySeriesXLALSimSGWBOmegaGWFlatSpectrum (double Omega0, double flow, double deltaF, size_t length)
 Creates a frequency series that contains a flat SGWB spectrum with the specified power Omega0 above some low frequency cutoff flow. More...
 
REAL8FrequencySeriesXLALSimSGWBOmegaGWPowerLawSpectrum (double Omegaref, double alpha, double fref, double flow, double deltaF, size_t length)
 Creates a frequency series that contains a power law SGWB spectrum with the specified power Omegaref at reference frequency fref and specified power law power alpha above some low frequency cutoff flow. More...
 
int XLALSimSGWB (REAL8TimeSeries **h, const LALDetector *detectors, size_t numDetectors, size_t stride, const REAL8FrequencySeries *OmegaGW, double H0, gsl_rng *rng)
 Routine that may be used to generate sequential segments of stochastic background gravitational wave signals for a network of detectors with a specified stride from one segment to the next. More...
 
int XLALSimSGWBFlatSpectrum (REAL8TimeSeries **h, const LALDetector *detectors, size_t numDetectors, size_t stride, double Omega0, double flow, double H0, gsl_rng *rng)
 Routine that may be used to generate sequential segments of stochastic background gravitational wave signals for a network of detectors with a specified stride from one segment to the next. More...
 
int XLALSimSGWBPowerLawSpectrum (REAL8TimeSeries **h, const LALDetector *detectors, size_t numDetectors, size_t stride, double Omegaref, double alpha, double fref, double flow, double H0, gsl_rng *rng)
 Routine that may be used to generate sequential segments of stochastic background gravitational wave signals for a network of detectors with a specified stride from one segment to the next. More...
 
REAL8FrequencySeriesXLALSimSGWBOmegaGWNumericalSpectrumFromFile (const char *fname, size_t length)
 

Go to the source code of this file.

Macros

#define CLEANUP_AND_RETURN(errnum)
 
#define CLEANUP_AND_RETURN(errnum)
 

Macro Definition Documentation

◆ CLEANUP_AND_RETURN [1/2]

#define CLEANUP_AND_RETURN (   errnum)
Value:
do { \
if (htilde) for (i = 0; i < numDetectors; ++i) XLALDestroyCOMPLEX16FrequencySeries(htilde[i]); \
XLALFree(htilde); XLALDestroyREAL8FFTPlan(plan); gsl_matrix_free(R); \
if (errnum) XLAL_ERROR(errnum); else return 0; \
} while (0)
double i
Definition: bh_ringdown.c:118
void XLALDestroyCOMPLEX16FrequencySeries(COMPLEX16FrequencySeries *series)
void XLALDestroyREAL8FFTPlan(REAL8FFTPlan *plan)
#define XLAL_ERROR(...)
size_t numDetectors
Definition: sgwb.c:113

◆ CLEANUP_AND_RETURN [2/2]

#define CLEANUP_AND_RETURN (   errnum)
Value:
do { \
if (overlap) for (i = 0; i < numDetectors; ++i) XLALDestroyREAL8Sequence(overlap[i]); \
XLALFree(overlap); \
if (errnum) XLAL_ERROR(errnum); else return 0; \
} while (0)
void XLALDestroyREAL8Sequence(REAL8Sequence *sequence)

Function Documentation

◆ XLALSimSGWBSegment()

static int XLALSimSGWBSegment ( REAL8TimeSeries **  h,
const LALDetector detectors,
size_t  numDetectors,
const REAL8FrequencySeries OmegaGW,
double  H0,
gsl_rng *  rng 
)
static

Definition at line 43 of file LALSimSGWB.c.