LALSimulation  5.4.0.1-fe68b98
LALSimSGWB.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2011 Jolien Creighton
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with with program; see the file COPYING. If not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 * MA 02110-1301 USA
18 */
19 
20 #ifndef _LALSIMSGWB_H
21 #define _LALSIMSGWB_H
22 
23 #include <stddef.h>
24 #include <gsl/gsl_rng.h>
25 #include <lal/LALDatatypes.h>
26 #include <lal/LALDetectors.h>
27 
28 #if defined(__cplusplus)
29 extern "C" {
30 #elif 0
31 } /* so that editors will match preceding brace */
32 #endif
33 
34 /**
35  * @defgroup LALSimSGWB_h Header LALSimSGWB.h
36  * @ingroup lalsimulation_stochastic
37  * @author Jolien Creighton
38  * @brief Routines for simulating a stochastic gravitational-wave background.
39  *
40  * @{
41  * @defgroup LALSimSGWB_c Module LALSimSGWB.c
42  * @defgroup LALSimSGWBORF_c Module LALSimSGWBORF.c
43  * @}
44  */
45 
46 /*
47  * OVERLAP REDUCTION FUNCTION ROUTINE
48  * in module LALSimSGWBORF.c
49  */
50 
51 double XLALSimSGWBOverlapReductionFunction(double f, const LALDetector *detector1, const LALDetector *detector2);
52 
53 
54 /*
55  * ROUTINES TO GENERATE SGWB SPECTRA
56  * in module LALSimSGWB.c
57  */
58 
59 REAL8FrequencySeries *XLALSimSGWBOmegaGWFlatSpectrum(double Omega0, double flow, double deltaF, size_t length);
60 REAL8FrequencySeries *XLALSimSGWBOmegaGWPowerLawSpectrum(double Omegaref, double alpha, double fref, double flow, double deltaF, size_t length);
61 REAL8FrequencySeries *XLALSimSGWBOmegaGWNumericalSpectrumFromFile(const char *fname, size_t length);
62 
63 /*
64  * SGWB GENERATION ROUTINES
65  * in module LALSimSGWB.c
66  */
67 
68 int XLALSimSGWB(REAL8TimeSeries **h, const LALDetector *detectors, size_t numDetectors, size_t stride, const REAL8FrequencySeries *OmegaGW, double H0, gsl_rng *rng);
69 int XLALSimSGWBFlatSpectrum(REAL8TimeSeries **h, const LALDetector *detectors, size_t numDetectors, size_t stride, double Omega0, double flow, double H0, gsl_rng *rng);
70 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);
71 
72 #if 0
73 { /* so that editors will match succeeding brace */
74 #elif defined(__cplusplus)
75 }
76 #endif
77 
78 #endif /* _LALSIMSGWB_H */
double flow
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 ...
Definition: LALSimSGWB.c:529
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 ...
Definition: LALSimSGWB.c:429
REAL8FrequencySeries * XLALSimSGWBOmegaGWPowerLawSpectrum(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 ...
Definition: LALSimSGWB.c:178
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 ...
Definition: LALSimSGWB.c:276
REAL8FrequencySeries * XLALSimSGWBOmegaGWFlatSpectrum(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 s...
Definition: LALSimSGWB.c:147
REAL8FrequencySeries * XLALSimSGWBOmegaGWNumericalSpectrumFromFile(const char *fname, size_t length)
Definition: LALSimSGWB.c:558
double XLALSimSGWBOverlapReductionFunction(double f, const LALDetector *detector1, const LALDetector *detector2)
Computes the overlap reduction function between two detectors at a specified frequency.
Definition: LALSimSGWBORF.c:40
LALDetector detectors[LAL_NUM_DETECTORS]
Definition: sgwb.c:112
double alpha
Definition: sgwb.c:106
double fref
Definition: sgwb.c:107
double Omega0
Definition: sgwb.c:105
size_t numDetectors
Definition: sgwb.c:113