An open source method of characteristics neutron transport code.
constants.h
Go to the documentation of this file.
1 
8 #ifndef CONSTANTS_H_
9 #define CONSTANTS_H_
10 
12 #define FLT_EPSILON 1.0E-12
13 
15 #define FLT_INFINITY 1.0E300
16 
17 /* The single line width permissible for timer / memory logger reports */
18 #define REPORT_WIDTH 53
19 
21 #define DEFAULT_INIT_ID 1000000
22 
24 #define FOUR_PI 12.566370614359172
25 
27 #define ONE_OVER_FOUR_PI 0.07957747154594767
28 
31 #define ZERO_SIGMA_T 1E-6
32 
35 #define SIGMA_T_THRESH 1E-10
36 
38 #define TINY_MOVE 1E-8
39 
41 #define ON_LATTICE_CELL_THRESH 1E-12
42 
44 #define ON_SURFACE_THRESH 1E-12
45 
47 #define POLAR_WEIGHT_SUM_TOL 1E-5
48 
50 #define MAX_OPTICAL_LENGTH FP_PRECISION(100.)
51 
54 #define TAU_NUDGE 1E-12
55 
59 #define EXP_PRECISION FP_PRECISION(1E-5)
60 
63 #define MIN_EXP_INTERP_POINTS 100
64 
67 #define MIN_DET 1E-10
68 
71 #define MIN_LINALG_POWER_ITERATIONS 25
72 #define MAX_LINALG_POWER_ITERATIONS 25000
73 
74 #define MIN_LINALG_TOLERANCE LINALG_TOL
75 
77 #define MIN_LINEAR_SOLVE_ITERATIONS 25
78 #define MAX_LINEAR_SOLVE_ITERATIONS 10000
79 
80 #ifdef MPIx
81 #ifndef ONLYVACUUMBC
82 #define TRACKS_PER_BUFFER 1000
83 #else
84 #define TRACKS_PER_BUFFER 10000
85 #endif
86 #define CMFD_BUFFER_SIZE 10000
87 #endif
88 
89 #define LOCAL_COORDS_LEN 16
90 #define MAX_VERSION_NUM 20
91 
116 #define NUM_FACES 6
117 #define NUM_EDGES 12
118 #define NUM_VERTICES 8
119 #define NUM_SURFACES 26
120 #define SURFACE_X_MIN 0
121 #define SURFACE_Y_MIN 1
122 #define SURFACE_Z_MIN 2
123 #define SURFACE_X_MAX 3
124 #define SURFACE_Y_MAX 4
125 #define SURFACE_Z_MAX 5
126 #define SURFACE_X_MIN_Y_MIN 6
127 #define SURFACE_X_MAX_Y_MIN 7
128 #define SURFACE_X_MIN_Y_MAX 8
129 #define SURFACE_X_MAX_Y_MAX 9
130 #define SURFACE_X_MIN_Z_MIN 10
131 #define SURFACE_X_MAX_Z_MIN 11
132 #define SURFACE_X_MIN_Z_MAX 12
133 #define SURFACE_X_MAX_Z_MAX 13
134 #define SURFACE_Y_MIN_Z_MIN 14
135 #define SURFACE_Y_MAX_Z_MIN 15
136 #define SURFACE_Y_MIN_Z_MAX 16
137 #define SURFACE_Y_MAX_Z_MAX 17
138 #define SURFACE_X_MIN_Y_MIN_Z_MIN 18
139 #define SURFACE_X_MIN_Y_MIN_Z_MAX 19
140 #define SURFACE_X_MIN_Y_MAX_Z_MIN 20
141 #define SURFACE_X_MIN_Y_MAX_Z_MAX 21
142 #define SURFACE_X_MAX_Y_MIN_Z_MIN 22
143 #define SURFACE_X_MAX_Y_MIN_Z_MAX 23
144 #define SURFACE_X_MAX_Y_MAX_Z_MIN 24
145 #define SURFACE_X_MAX_Y_MAX_Z_MAX 25
146 
149 #define NUM_VALUES_PER_RETRIEVED_TRACK 6
150 
153 #define NUM_VALUES_PER_RETRIEVED_SEGMENT 7
154 
156 #define LCM_TOLERANCE 1.e-8
157 
158 #ifdef NVCC
159 
161 #define MAX_POLAR_ANGLES_GPU 10
162 
164 #define MAX_AZIM_ANGLES_GPU 256
165 
166 #endif
167 
168 #endif /* CONSTANTS_H_ */