Loading [MathJax]/extensions/TeX/AMSsymbols.js
LAL 7.7.0.1-3a66518
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
LALTAMAPsd.c
Go to the documentation of this file.
1/*
2* Copyright (C) 2007 Bernd Machenschalk, David Churches, Duncan Brown, 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
21#include <lal/LALNoiseModels.h>
22
23#ifdef __GNUC__
24#define UNUSED __attribute__ ((unused))
25#else
26#define UNUSED
27#endif
28
29/**
30 * \author Sathyaprakash, B. S.
31 * \ingroup LALNoiseModels_h
32 * \brief Function to calculate the noise power spectral density for the TAMA detector.
33 *
34 * ### Description ###
35 *
36 * The module takes as an input a frequency \f$f\f$ in Hz, and it
37 * calculates the noise spectral density (per Hz) \f$S_{h}(f)\f$
38 * for that frequency. The noise PSD is based on data provided by
39 * M.-K Fujimoto (see T. Damour, B.R. Iyer and B.S. Sathyaprakash,
40 * Phys. Rev. D 63, 044023 (2001)) and is approximated by
41 * the following:
42 * \f{equation}{
43 * S_h(f) = \left ( \frac{f}{f_0} \right )^{-5} + 13 \frac{f_0}{f} +
44 * 9 \left [1 + \left( \frac{f}{f_0} \right)^2 \right ].
45 * \f}
46 * The returned value is scaled up by \f$s_0 = 10^{46}/75.\f$ In otherwords,
47 * the expected noise PSD is \f$75 \times 10^{-46}\f$ times the returned value.
48 */
49void LALTAMAPsd(LALStatus UNUSED *status, REAL8 *psd, REAL8 f)
50{
51
52 REAL8 seismic, thermal, shot, x;
53
54 x = f/400.;
55 seismic = pow(x,-5);
56 thermal = 13. / x;
57 shot = 9. * (1. + x*x);
58 *psd = seismic + thermal + shot;
59}
static double f(double theta, double y, double xi)
Definition: XLALMarcumQ.c:258
double REAL8
Double precision real floating-point number (8 bytes).
void LALTAMAPsd(LALStatus UNUSED *status, REAL8 *psd, REAL8 f)
Function to calculate the noise power spectral density for the TAMA detector.
Definition: LALTAMAPsd.c:49
LAL status structure, see The LALStatus structure for more details.
Definition: LALDatatypes.h:947