wkblack

q=24 D0=8M

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