HARM
harm and utilities
 All Data Structures Files Functions Variables Typedefs Macros Pages
metric.h
Go to the documentation of this file.
1 
7 #define PRIMECOORDS -1 // whatever the prime coordinate/metric is, used in transforms.c
8 #define CARTMINKMETRIC 0 // cartesian that is
9 #define BLCOORDS 1 // just set Rin oustide horizon for normal star
10 #define KSCOORDS 2 // as with BLCOORDS
11 #define HTMETRIC 3 // this defines exterior only, need specific Rin[\theta]
12 #define CYLMINKMETRIC 4 // cylindrical minkowski
13 #define HTMETRICACCURATE 5 // consistent expansion form of HT metric
14 #define SPCMINKMETRIC 6
15 #define UNIGRAVITY 7 // for RT test problem
16 #define KS_BH_TOV_COORDS 8 // KS BH+TOV mixed metric
17 #define KS_TOV_COORDS 9 // KS TOV metric
18 #define BL_TOV_COORDS 10 // BL TOV metric
19 #define KS_JP1_COORDS 11 // KS Johannsen & Psaltis metric 2011
20 #define KSCARTCOORDS 20 // Cartesian KS coords
21 #define CARTMINKMETRIC2 100
22 
23 
24 // 0 : Boyer-Lindquist (based on r theta)
25 // 1 : Kerr-Schild (based on bl coords)
26 // contains metric definitions
27 // Kerr-Schild: future regularized, ep=-1, k=1
28 
29 // if add new metric, identify base coordinate system is SPC or not in below macros:
30 
31 // check for metric.c on whether using spherical polar grid so can identify polar axis and r=0 singularities
32 #define ISSPCMCOORDNATIVE(whichcoord) (whichcoord==BLCOORDS || whichcoord==KSCOORDS || whichcoord==HTMETRIC || whichcoord==HTMETRICACCURATE || whichcoord==SPCMINKMETRIC || whichcoord==KS_BH_TOV_COORDS || whichcoord==KS_TOV_COORDS || whichcoord==BL_TOV_COORDS || whichcoord==KS_JP1_COORDS )
33 
34 #define ISSPCMCOORD(whichcoord) (whichcoord==PRIMECOORDS && ISSPCMCOORDNATIVE(MCOORD) || ISSPCMCOORDNATIVE(whichcoord))
35 
36 
37 // black hole metrics
38 #define ISBLACKHOLEMCOORD(whichcoord) (whichcoord==BLCOORDS ||whichcoord==KSCOORDS || whichcoord==KSCARTCOORDS ||whichcoord==KS_BH_TOV_COORDS ||whichcoord==KS_TOV_COORDS ||whichcoord==BL_TOV_COORDS || whichcoord==KS_JP1_COORDS)
39 
40