LALSimulation  5.4.0.1-fe68b98
LALSimSphHarmMode.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 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 _LALSIMSPHHARMMODE_H
21 #define _LALSIMSPHHARMMODE_H
22 
23 #include <lal/LALDatatypes.h>
24 #include <lal/LALSimSphHarmSeries.h>
25 
26 #if defined(__cplusplus)
27 extern "C" {
28 #elif 0
29 } /* so that editors will match preceding brace */
30 #endif
31 
32 /**
33  * @defgroup LALSimSphHarmMode_h Header LALSimSphHarmMode.h
34  * @ingroup lalsimulation_general
35  * @brief Routines to construct waveforms from spherical harmonic mode
36  * decompositions.
37  * @details
38  * The gravitational wave polarizations depend on the location of the
39  * observer relative to the source frame, defined by the spherical-polar
40  * coordinates @p theta and @p phi (equivalently, inclination and azimuthal
41  * phase). Waveforms are sometimes decomposed into spin -2 weighted
42  * spherical harmonics, indexed with mode quantum numbers @p l and @p m,
43  * with the resulting waveform modes stored as COMPLEX16TimeSeries.
44  * These routines reconstruct a waveform from these mode decompositions
45  * for a given inclination and azimuthal phase.
46  */
47 
48 int XLALSimAddMode(REAL8TimeSeries *hplus, REAL8TimeSeries *hcross, COMPLEX16TimeSeries *hmode, REAL8 theta, REAL8 phi, int l, int m, int sym);
55 
56 #if 0
57 { /* so that editors will match succeeding brace */
58 #elif defined(__cplusplus)
59 }
60 #endif
61 
62 #endif /* _LALSIMSPHHARMMODE_H */
int l
Definition: bh_qnmode.c:135
double theta
Definition: bh_sphwf.c:118
double REAL8
int32_t INT4
int XLALSimAddModeAngleTimeSeries(REAL8TimeSeries *hplus, REAL8TimeSeries *hcross, COMPLEX16TimeSeries *hmode, REAL8TimeSeries *theta, REAL8TimeSeries *phi, int l, int m, int sym)
Multiplies a mode h(l,m) by a spin-2 weighted spherical harmonic to obtain hplus - i hcross,...
int XLALSimAddModeFromModesAngleTimeSeries(REAL8TimeSeries *hplus, REAL8TimeSeries *hcross, SphHarmTimeSeries *hmode, REAL8TimeSeries *theta, REAL8TimeSeries *phi)
For all valid TimeSeries contained within hmode structure, multiplies a mode h(l,m) by a spin-2 weigh...
int XLALSimAddModeFD(COMPLEX16FrequencySeries *hptilde, COMPLEX16FrequencySeries *hctilde, COMPLEX16FrequencySeries *hlmtilde, REAL8 theta, REAL8 phi, INT4 l, INT4 m, INT4 sym)
Helper function to add a mode to hplus, hcross in Fourier domain copies the function XLALSimAddMode,...
int XLALSimNewTimeSeriesFromModesAngleTimeSeries(REAL8TimeSeries **hplus, REAL8TimeSeries **hcross, SphHarmTimeSeries *hmode, REAL8TimeSeries *theta, REAL8TimeSeries *phi)
Returns the h+, hx waveforms constructed from all valid TimeSeries contained within hmode structure.
int XLALSimAddMode(REAL8TimeSeries *hplus, REAL8TimeSeries *hcross, COMPLEX16TimeSeries *hmode, REAL8 theta, REAL8 phi, int l, int m, int sym)
Multiplies a mode h(l,m) by a spin-2 weighted spherical harmonic to obtain hplus - i hcross,...
int XLALSimNewTimeSeriesFromModes(REAL8TimeSeries **hplus, REAL8TimeSeries **hcross, SphHarmTimeSeries *hmode, REAL8 theta, REAL8 phi)
Returns the h+, hx waveforms constructed from all valid TimeSeries contained within hmode structure.
int XLALSimAddModeFromModes(REAL8TimeSeries *hplus, REAL8TimeSeries *hcross, SphHarmTimeSeries *hmode, REAL8 theta, REAL8 phi)
For all valid TimeSeries contained within hmode structure, multiplies a mode h(l,m) by a spin-2 weigh...
static const INT4 m
Structure to carry a collection of spherical harmonic modes in COMPLEX16 time series.