Advertisement
wkblack

q=1 m=12

Jan 9th, 2025
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 9.76 KB | Science | 0 0
  1. ### =================================================
  2. ### ============== BSSN PARAMETER FILE ==============
  3. ### =================================================
  4.  
  5. # Evolution variable indices = U_ALPHA=0, U_CHI=1, U_K=2, U_GT0=3,
  6. #  U_GT1=4, U_GT2=5, U_BETA0=6, U_BETA1=7, U_BETA2=8, U_B0=9, U_B1=10, U_B2=11,
  7. #  U_SYMGT0=12, U_SYMGT1=13, U_SYMGT2=14, U_SYMGT3=15, U_SYMGT4=16, U_SYMGT5=17,
  8. #  U_SYMAT0=18, U_SYMAT1=19, U_SYMAT2=20, U_SYMAT3=21, U_SYMAT4=22, U_SYMAT5=23
  9.  
  10. # Constraint variable indices = C_HAM=0, C_MOM0=1, C_MOM1=2, C_MOM2=3,
  11. #                               C_PSI4_REAL=4, C_PSI4_IMG=5
  12.  
  13.  
  14. DENDRO_VERSION = 5.0
  15.  
  16.  
  17. ########################################################################
  18. # IO
  19.  
  20. # 1: restore the BSSN solver from most recent checkpoint
  21. BSSN_RESTORE_SOLVER = 1
  22.  
  23. # Frequency for the VTU Output
  24. BSSN_IO_OUTPUT_FREQ = 400
  25. BSSN_SCALE_VTU_AND_GW_EXTRACTION = true
  26.  
  27. # Frequency to use for triggering the remeshing
  28. BSSN_REMESH_TEST_FREQ = 100
  29.  
  30. # Extraction frequency for gravitational waves
  31. BSSN_GW_EXTRACT_FREQ = 25
  32.  
  33. # Event horizon refinement value
  34. BSSN_EH_REFINE_VAL = 0.4
  35.  
  36. # Event Horizon coarsening value
  37. BSSN_EH_COARSEN_VAL = 0.6
  38.  
  39. # Frequency for outputting a full checkpoint (recommended a few thousand, it takes time and saves a lot)
  40. BSSN_CHECKPT_FREQ = 100
  41.  
  42. # VTU File Output gap, (NOT CURRENTLY IN USE, useful for adaptive timestepping)
  43. BSSN_IO_OUTPUT_GAP = 1
  44.  
  45. # VTU File Prefix, can be absolute or relative paths
  46. BSSN_VTU_FILE_PREFIX = "vtu/bssn_gr"
  47.  
  48. # Checkpoint File Prefix, can be absolute or relative paths
  49. BSSN_CHKPT_FILE_PREFIX = "cp/bssn_cp"
  50.  
  51. # Profiling File Prefix, can be absolute or relative paths
  52. BSSN_PROFILE_FILE_PREFIX = "dat/dgr"
  53.  
  54. # Two-Puncture Initial Data (TPID) File Prefix
  55. TPID_FILEPREFIX = "rit_q1"
  56.  
  57. # VTU output evolution variables; see `include/grDef.h` for variable definitions
  58. BSSN_VTU_OUTPUT_EVOL_INDICES = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]
  59. # Number of evolution variables considered for VTU output; equals length of BSSN_VTU_OUTPUT_EVOL_INDICES
  60. BSSN_NUM_EVOL_VARS_VTU_OUTPUT = 24
  61.  
  62. # VTU output constraint variables; see `include/grDef.h` for variable definitions
  63. BSSN_VTU_OUTPUT_CONST_INDICES = [ 0, 1, 2, 3, 4, 5 ]
  64. # Number of constraint variables considered for VTU output; equals lenth BSSN_VTU_OUTPUT_CONST_INDICES
  65. BSSN_NUM_CONST_VARS_VTU_OUTPUT = 6
  66.  
  67. # Whether or not to save as a Z-Slice only (useful for large problems!)
  68. BSSN_VTU_Z_SLICE_ONLY = true
  69.  
  70. ########################################################################
  71. # LOAD BALANCING & MESH
  72.  
  73. # grain size N/p = (total number of octants) / (number of active cores). Helps with partitioning
  74. BSSN_DENDRO_GRAIN_SZ = 25
  75.  
  76. # Asynchronous Communication constant. This is the variable group size for the unzipping (communication) operation
  77. BSSN_ASYNC_COMM_K = 1
  78.  
  79. # The Coarsening factor, it will coarsen if wavelet tol < BSSN_DENDRO_AMR_FAC*BSSN_WAVELET_TOL
  80. BSSN_DENDRO_AMR_FAC = 0.1
  81.  
  82. # Load imbalance tolerance for partitioning. 0.1 is a good value.
  83. BSSN_LOAD_IMB_TOL = 0.1
  84.  
  85. # Dimensionality of the octree, this should never be changed!
  86. BSSN_DIM = 3
  87.  
  88. # Element Order, each block gets ELE_ORDER + 1 points it is in charge of,
  89. # and padding width is ELE_ORDER / 2, should always be **even**
  90. BSSN_ELE_ORDER = 6
  91.  
  92. # Minimum Depth of the Mesh/Octree
  93. BSSN_MINDEPTH = 4
  94. # Maximum Depth of the Mesh/Octree
  95. BSSN_MAXDEPTH = 15
  96.  
  97.  
  98. ########################################################################
  99. # REFINEMENT STRATEGY
  100.  
  101. # Which refinement mode to use
  102. # 0 - WAMR
  103. # 1 - EH
  104. # 2 - EH_WAMR
  105. # 3 - BH_LOC
  106. # 4 - BH_WAMR
  107. BSSN_REFINEMENT_MODE = 4
  108.  
  109. # BH_LOC: ratio between inner and secondary radius about BHs
  110. BSSN_AMR_R_RATIO = 1.618033988749895
  111.  
  112. # Wavelet Tolerence Function to use (see grUtils.cpp for adding more)
  113. # 1,2 - deprecated
  114. # 3 - center highly refined; low refinement elsewhere eases over time
  115. # 4 - start w/ refinement centered at BHs, then widen to r=0 focused
  116. # 5 - focus refinement in self-similar ways about each BH
  117. # 6 - refine well in r<=t and coarsely in r>t
  118. BSSN_USE_WAVELET_TOL_FUNCTION = 6
  119.  
  120. # Wavelet tolerence for Wavelet Refinement (minimum)
  121. BSSN_WAVELET_TOL = 0.00001
  122.  
  123. # Gravitational Wave Refinement tolerence
  124. BSSN_GW_REFINE_WTOL = 0.0001
  125.  
  126. # Maximum Wavelet Tolerence
  127. BSSN_WAVELET_TOL_MAX = 0.001
  128.  
  129. # Nyquist-based refinement: goal spherical harmonic order m to resolve
  130. # (=0 to disable)
  131. BSSN_NYQUIST_M = 12
  132.  
  133. # Wavelet Tolerence Radii (for setting "shell" based tolerance)
  134. BSSN_WAVELET_TOL_FUNCTION_R0 = 3.0
  135. BSSN_WAVELET_TOL_FUNCTION_R1 = 12.0
  136.  
  137. # The indices of the variables for refinement, see grDef.h for which variable corresponds to which index
  138. BSSN_REFINE_VARIABLE_INDICES = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]
  139. # Number of variables to use for refinement; equals length of BSSN_REFINE_VARIABLE_INDICES
  140. BSSN_NUM_REFINE_VARS = 24
  141.  
  142. # FD Intergrid transfer mode
  143. BSSN_USE_FD_GRID_TRANSFER = false
  144.  
  145. # The number of iterations that should be done for grid initialization
  146. BSSN_INIT_GRID_ITER = 10
  147.  
  148. # If we want to use the set reference mode for initial convergence
  149. BSSN_USE_SET_REF_MODE_FOR_INITIAL_CONVERGE = true
  150.  
  151.  
  152. ########################################################################
  153. # RK SOLVER
  154.  
  155. # CFL (Courant-Friedrichs-Lewy) Factor (the Courant factor)
  156. # use to adjust time-step size compared to grid spacing
  157. BSSN_CFL_FACTOR = 0.25
  158.  
  159. # The starting time of the simulation
  160. BSSN_RK_TIME_BEGIN = 0.0
  161. # The ending time of the simulation
  162. BSSN_RK_TIME_END = 750.0
  163.  
  164. # RK Method to use (0 -> RK3, 1 -> RK4, 2 -> RK45)
  165. BSSN_RK_TYPE = 1
  166.  
  167. # Preferred time step size (this is overwritten by the CFL factor! It's not used!)
  168. BSSN_RK45_TIME_STEP_SIZE = 0.01
  169.  
  170. # Desired tolerence for RK45, currently not used!
  171. BSSN_RK45_DESIRED_TOL = 0.001
  172.  
  173.  
  174. ########################################################################
  175. # BLOCK ADAPTIVITY (can create a "uniform" grid within specified domain)
  176. # NOT RECOMMENDED - But set this to 1 to disable AMR and use Block Adaptivity
  177.  
  178. BSSN_ENABLE_BLOCK_ADAPTIVITY = 0
  179. BSSN_BLK_MIN_X = -6.0
  180. BSSN_BLK_MIN_Y = -6.0
  181. BSSN_BLK_MIN_Z = -1.0
  182. BSSN_BLK_MAX_X = 6.0
  183. BSSN_BLK_MAX_Y = 6.0
  184. BSSN_BLK_MAX_Z = 1.0
  185.  
  186.  
  187. ########################################################################
  188. # BSSN PHYSICS PARAMETERS
  189.  
  190. ETA_CONST = 2.0
  191. ETA_R0 = 30.0
  192. ETA_DAMPING = 1.0
  193. ETA_DAMPING_EXP = 1.0
  194. BSSN_LAMBDA = [ 1, 1, 1, 1 ]
  195. BSSN_LAMBDA_F = [ 1.0, 0.0 ]
  196. BSSN_XI = [ 0, 0, 0 ]
  197. ANG_PAR = 0.01
  198. CHI_FLOOR = 0.0001
  199. BSSN_TRK0 = 0.0
  200. KO_DISS_SIGMA = 0.4
  201.  
  202. # ETA as a function parameters
  203. BSSN_ETA_R0 = 1.31
  204. BSSN_ETA_POWER = [ 2.0, 2.0 ]
  205.  
  206. ########################################################################
  207. # Select initial data type
  208. # 0 - TwoPuncture Elliptic solution
  209. # 1 - HAD approximate solution
  210. # 2 - Kerr-Schild
  211.  
  212. BSSN_ID_TYPE = 0
  213.  
  214.  
  215. ########################################################################
  216. # Set up BSSN grid points
  217.  
  218. BSSN_GRID_MIN_X = -400.0
  219. BSSN_GRID_MAX_X = 400.0
  220. BSSN_GRID_MIN_Y = -400.0
  221. BSSN_GRID_MAX_Y = 400.0
  222. BSSN_GRID_MIN_Z = -400.0
  223. BSSN_GRID_MAX_Z = 400.0
  224.  
  225.  
  226. ########################################################################
  227. # BLACK HOLE Parameters
  228.  
  229. BSSN_BH1_AMR_R = 1.0
  230. BSSN_BH1_CONSTRAINT_R = 2.0
  231. BSSN_BH1_MAX_LEV = 15
  232. BSSN_BH1 = { MASS = 0.4824, X = 4.0, Y = 0.0, Z = 0.0, V_X = 0.0, V_Y = 0.114, V_Z = 0.0, SPIN = 0.0, SPIN_THETA = 0.0, SPIN_PHI = 0.0 }
  233.  
  234. BSSN_BH2_AMR_R = 1.0
  235. BSSN_BH2_CONSTRAINT_R = 2.0
  236. BSSN_BH2_MAX_LEV = 15
  237. BSSN_BH2 = {MASS = 0.4824, X = -4.0, Y = 0.0, Z = 0.0, V_X = 0.0, V_Y = -0.114, V_Z = 0.0, SPIN = 0.0,SPIN_THETA = 0.0,SPIN_PHI = 0.0 }
  238.  
  239.  
  240. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  241. # TPID SPECIFIC PARAMETERS
  242.  
  243. # 0 - Use ADM mass and iteratively solve for bare mass
  244. # 1 - Use bare mass
  245. TPID_GIVE_BARE_MASS = 1
  246.  
  247. TPID_TARGET_M_PLUS = 0.4824
  248. TPID_TARGET_M_MINUS = 0.4824
  249.  
  250. # 1/2 coordinate separation between black holes.
  251. TPID_PAR_B = 4.0
  252.  
  253. # Select lapse:
  254. # 0 - antisymmetric
  255. # 1 - averaged
  256. # 2 - psi^n
  257. # 3 - Brownsville
  258. INITIAL_LAPSE = 2
  259. # Exponent n for INITIAL_LAPSE=2, where alpha=psi^n
  260. TPID_INITIAL_LAPSE_PSI_EXPONENT = -2.0
  261.  
  262. TPID_CENTER_OFFSET = { X = 0.0, Y = 0.0, Z = 0.0 }
  263.  
  264. # Grid Setup Method:
  265. # 0 - Taylor expansion
  266. # 1 - Evaluation
  267. TPID_GRID_SETUP_METHOD = 1
  268.  
  269. # Grid points for spectral grid
  270. TPID_NPOINTS_A = 60
  271. TPID_NPOINTS_B = 60
  272. TPID_NPOINTS_PHI = 60
  273.  
  274. # Deprecated
  275. TPID_SOLVE_MOMENTUM_CONSTRAINT = 0
  276. TPID_VERBOSE = 1
  277. TPID_ADM_TOL = 1e-10
  278. TPID_NEWTON_TOL = 1e-10
  279.  
  280.  
  281. ########################################################################
  282. # BLACK HOLE LOCATION EXTRACTION PARAMETERS
  283.  
  284. EXTRACTION_VAR_ID = 0
  285. EXTRACTION_TOL = 0.3
  286.  
  287.  
  288. ########################################################################
  289. # GRAVITATIONAL WAVE EXTRACTION PARAMETERS
  290.  
  291. BSSN_GW_NUM_RADAII = 6
  292. BSSN_GW_RADAII = [ 50.0, 60.0, 70.0, 80.0, 90.0, 100.0 ]
  293. BSSN_GW_NUM_LMODES = 7
  294. BSSN_GW_L_MODES = [ 2, 3, 4, 5, 6, 7, 8 ]
  295.  
  296.  
  297. ########################################################################
  298. # APPARANT EVENT HORIZON PARAMETERS
  299.  
  300. # time step frequency with which to run AEH solver
  301. AEH_SOLVER_FREQ = 1000
  302.  
  303. # number of lm modes used in the AH surface parameterization (AEH_LMAX+1)^2
  304. AEH_LMAX = 4
  305.  
  306. # quadrature points in polar angle
  307. AEH_Q_THETA = 32
  308.  
  309. # quadrature points in azimuthal angle
  310. AEH_Q_PHI = 32
  311.  
  312. # maximum number of iterations for convergence
  313. AEH_MAXITER = 25
  314.  
  315. # absolute tolerance for convergence
  316. AEH_ATOL = 1e-7
  317.  
  318. # relative tolerance for convergence
  319. AEH_RTOL = 1e-7
  320.  
  321.  
  322. ########################################################################
  323. # Etienne '24 improvements
  324.  
  325. # SSL: use necessary initial lapse of alpha = W
  326. TPID_REPLACE_LAPSE_WITH_SQRT_CHI = true
  327.  
  328. # CAKO: scale KO-diss by conformal factor
  329. BSSN_KO_SIGMA_SCALE_BY_CONFORMAL = false
  330.  
  331. # CAHD: Hamiltonian damping strength
  332. BSSN_CAHD_C = 0.077
  333.  
  334.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement