HARM
harm and utilities
 All Data Structures Files Functions Variables Typedefs Macros Pages
global.nondepmnemonics.rad.h
Go to the documentation of this file.
1 
9 
10 #define EOMRADNONE 0 // no source term
11 #define EOMRADEDD 1 // true Edd
12 #define EOMRADEDDWITHFLUX 2 // fake Edd with extra flux (KORALTODO, using Fragile 2012 paper inversion -- simple to do)
13 #define EOMRADM1CLOSURE 3 // M1 Closure
14 
15 
17 #define BOOSTGRIDPOS (NDIM) // CENT,FACE1,FACE2,FACE3 == assumes they are 0,1,2,3
18 #define BOOSTDIRS (2)
19 #define ORTHO2LAB (0) // elo
20 #define LAB2ORTHO (1) // eup
21 
22 #define ZAMO2FF (0)
23 #define FF2ZAMO (1)
24 
25 #define LAB2FF (0)
26 #define FF2LAB (1)
27 #define HARM2FF (2)
28 #define FF2HARM (3)
29 
30 #define TYPEUCON (0)
31 #define TYPEUCOV (1)
32 
34 #define NUMPRIORITERMETHODINDEX 8
35 #define PRIORITERMETHODNOTSET -1
36 #define BASEITERMETHODINDEX 0
37 #define ITERMODEINDEX 1
38 #define IMPTRYCONVINDEX 2
39 #define IMPMAXITERINDEX 3
40 #define NUMDAMPINDEX 4
41 #define MODPRIMINDEX 5
42 #define CHECKRADINVINDEX 6
43 #define EOMTYPEINDEX 7
44 
45 
46 
47 //relele.c
48 // same as dot(a,b) in global.variousmacros.h
49 //#define dot(A,B) (A[0]*B[0]+A[1]*B[1]+A[2]*B[2]+A[3]*B[3])
50 #define dot3(A,B) (A[0]*B[0]+A[1]*B[1]+A[2]*B[2])
51 #define kron(i,j) (i == j ? 1. : 0.)
52 
53 
54 #include "koral.mdefs.h"
55 
56 /*********************/
57 //passive definitions
58 /*********************/
59 
60 
61 
67 #define Pi (M_PI)
68 
69 #define RADSHOCKFLAT 1 // 0 or 1. Whether to include radiation in shock flatener
70 
73 #define DORADFIXUPS 0 // for RADDONUT ok, since no sharp edges.
74 
75 
76 
78 #define TAUTOTMAXSWITCH (0.5)
79 
80 
81 
82 #define GGG0 (6.674e-8)
83 #define CCCTRUE0 (2.99792458e10) // cgs in cm/s
84 #define MSUN (1.989E33) //cgs in grams
85 #define ARAD0 (7.56593E-15) // cgs in erg/(K^4 cm^3)
86 #define ARAD (ARAD0) // only in koral would the code version depend upon G,c
87 #define K_BOLTZ (1.3806488e-16) // cgs in erg/K
88 #define M_PROTON (1.67262158e-24) // proton mass in cgs in grams
89 #define MB (1.66054E-24) // = 1/N_A = 1/(Avogadro's number) = baryon mass in cgs in grams (as often used in general EOSs)
90 #define MPOME (1836.15)
91 #define MELE (M_PROTON/MPOME) // electron mass in cgs in grams
92 //#define SIGMA_RAD (5.67e-5) // cgs in erg/(cm^2 s K^4)
93 #define HPLANCK (6.62607E-27) // cgs
94 #define QCHARGE (4.8029E-10) // cgs
95 
96 
97 
98 
104 #define cTILDA (1.0) // like koral
105 //#define cTILDA (1E-5)
106 //#define gTILDA (1E-10) // like koral
107 #define gTILDA (1.0)
108 
109