GremlinEq
CEDR.h
1 //---------------------------------------------------------------------------
2 //
3 // $Id: CEDR.h,v 1.2 2018/08/04 15:55:13 sahughes Exp $
4 //
5 //---------------------------------------------------------------------------
6 //
7 // HDF5 format data reader for circular equatorial case
8 //
9 #ifndef _CEDR_H
10 #define _CEDR_H
11 
12 #include <hdf5_hl.h>
13 #include "Globals.h"
14 
16 
17 class CEDR {
18 public:
19  CEDR(char inname[]);
20  ~CEDR();
21  //
22  hid_t infile;
23  //
24  // Once the class is constructed, this will read the data set
25  // for the mode pair (l,m). Returns 1 if the file contains
26  // this dataset, returns 0 if it does not.
27  //
28  int ReadData(const int l, const int m);
29  //
30  //
31  // Data sets in circular equatorial files:
32  // * Properties of the orbit
33  // * Index range for the modes that are stored
34  // * SWSH eigenvalue lambda, mode amplitudes, value of the
35  // inhomogeneous solution at the orbit, mode fluxes.
36  //
37  Real r, a, E, Lz, Om_phi;
38  //
39  int lmin, lmax, mmin, mmax;
40  //
41  Real lambda;
42  Complex ZI, ZH;
43  Complex Rin, dRin, Rup, dRup;
44  Real EdotI, EdotH, LzdotI, LzdotH, rdotI, rdotH;
45 
46  bool exists;
47 
48 private:
49  bool fileExists(const std::string& filename);
50 
51 };
52 #endif
Circular Equatorial Data Reader Class.
Definition: CEDR.h:17
Real lambda
spin-weighted spheroidal eigenvalue
Definition: CEDR.h:41