wkblack

q=24 D0=7M

Jul 11th, 2026 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 11.45 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 = 1000
  24. BSSN_SCALE_VTU_AND_GW_EXTRACTION = true
  25.  
  26. # Frequency to use for triggering the remeshing
  27. BSSN_REMESH_TEST_FREQ = 50
  28.  
  29. # Extraction frequency for gravitational waves
  30. BSSN_GW_EXTRACT_FREQ = 100
  31.  
  32. # Frequency for outputting a full checkpoint
  33. BSSN_CHECKPT_FREQ = 100
  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 = 60
  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 = 2.0
  106. BSSN_AMR_R_RATIO = 1.618033988749895
  107.  
  108. # Wavelet Tolerence Function to use (see grUtils.cpp for adding more)
  109. # 1,2 - deprecated
  110. # 3 - center highly refined; low refinement elsewhere eases over time
  111. # 4 - start w/ refinement centered at BHs, then widen to r=0 focused
  112. # 5 - focus refinement in self-similar ways about each BH
  113. # 6 - refine well in r<=t and coarsely in r>t
  114. BSSN_USE_WAVELET_TOL_FUNCTION = 6
  115.  
  116. # Wavelet tolerence for Wavelet Refinement (minimum)
  117. BSSN_WAVELET_TOL = 0.00001
  118.  
  119. # Gravitational Wave Refinement tolerence
  120. BSSN_GW_REFINE_WTOL = 0.0001
  121.  
  122. # Maximum Wavelet Tolerence
  123. BSSN_WAVELET_TOL_MAX = 0.0001
  124.  
  125. # ORBIT: Nyquist-based refinement
  126. # goal spherical harmonic order m to resolve (=0 to disable)
  127. BSSN_NYQUIST_M = 12
  128.  
  129. # Wavelet Tolerence Radii (for setting "shell" based tolerance)
  130. BSSN_WAVELET_TOL_FUNCTION_R0 = 3.0
  131. BSSN_WAVELET_TOL_FUNCTION_R1 = 12.0
  132.  
  133. # The indices of the variables for refinement, see grDef.h for which variable corresponds to which index
  134. 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]
  135. # Number of variables to use for refinement; equals length of BSSN_REFINE_VARIABLE_INDICES
  136. BSSN_NUM_REFINE_VARS = 24
  137.  
  138. # The number of iterations that should be done for grid initialization
  139. BSSN_INIT_GRID_ITER = 12
  140.  
  141. # If we want to use the set reference mode for initial convergence
  142. BSSN_USE_SET_REF_MODE_FOR_INITIAL_CONVERGE = true
  143.  
  144.  
  145. ########################################################################
  146. # RK SOLVER
  147.  
  148. # CFL (Courant-Friedrichs-Lewy) Factor (the Courant factor)
  149. # use to adjust time-step size compared to grid spacing
  150. BSSN_CFL_FACTOR = 0.25
  151.  
  152. # The starting time of the simulation
  153. BSSN_RK_TIME_BEGIN = 0.0
  154. # The ending time of the simulation
  155. BSSN_RK_TIME_END = 2400.0
  156.  
  157. # RK Method to use (0 -> RK3, 1 -> RK4, 2 -> RK45)
  158. BSSN_RK_TYPE = 1
  159.  
  160. # Preferred time step size (this is overwritten by the CFL factor! It's not used!)
  161. BSSN_RK45_TIME_STEP_SIZE = 0.01
  162.  
  163. # Desired tolerence for RK45, currently not used!
  164. BSSN_RK45_DESIRED_TOL = 0.001
  165.  
  166.  
  167. ########################################################################
  168. # BLOCK ADAPTIVITY (can create a "uniform" grid within specified domain)
  169. # NOT RECOMMENDED - But set this to 1 to disable AMR and use Block Adaptivity
  170.  
  171. BSSN_ENABLE_BLOCK_ADAPTIVITY = 0
  172. BSSN_BLK_MIN_X = -6.0
  173. BSSN_BLK_MIN_Y = -6.0
  174. BSSN_BLK_MIN_Z = -1.0
  175. BSSN_BLK_MAX_X = 6.0
  176. BSSN_BLK_MAX_Y = 6.0
  177. BSSN_BLK_MAX_Z = 1.0
  178.  
  179.  
  180. ########################################################################
  181. # BSSN PHYSICS PARAMETERS
  182.  
  183. ETA_CONST = 2.0
  184. ETA_R0 = 30.0
  185. ETA_DAMPING = 1.0
  186. ETA_DAMPING_EXP = 1.0
  187. BSSN_LAMBDA = [ 1, 1, 1, 1 ]
  188. BSSN_LAMBDA_F = [ 1.0, 0.0 ]
  189. BSSN_XI = [ 0, 0, 0 ]
  190. CHI_FLOOR = 0.0001
  191. BSSN_TRK0 = 0.0
  192. KO_DISS_SIGMA = 0.4
  193.  
  194. # ETA as a function parameters
  195. BSSN_ETA_R0 = 1.31
  196. BSSN_ETA_POWER = [ 2.0, 2.0 ]
  197.  
  198.  
  199. ########################################################################
  200. # Select initial data type
  201. # 0 - TwoPuncture Elliptic solution
  202. # 1 - HAD approximate solution
  203. # 2 - Kerr-Schild
  204.  
  205. BSSN_ID_TYPE = 0
  206.  
  207.  
  208. ########################################################################
  209. # Set up BSSN grid points
  210.  
  211. BSSN_GRID_MIN_X = -370.0
  212. BSSN_GRID_MAX_X = 370.0
  213. BSSN_GRID_MIN_Y = -370.0
  214. BSSN_GRID_MAX_Y = 370.0
  215. BSSN_GRID_MIN_Z = -370.0
  216. BSSN_GRID_MAX_Z = 370.0
  217.  
  218.  
  219. ########################################################################
  220. # BLACK HOLE Parameters
  221.  
  222. # smaller BH
  223. BSSN_BH1_AMR_R = 0.062
  224. BSSN_BH1_CONSTRAINT_R = 0.062
  225. BSSN_BH1_MAX_LEV = 20
  226. BSSN_BH1 = { MASS = 0.04, X = 6.72, Y = 0.0, Z = 0.0, V_X = -8.742258817965352e-05, V_Y = 0.019528921258083393, V_Z = 0.0, SPIN = 0.0, SPIN_THETA = 0.0, SPIN_PHI = 0.0 }
  227.  
  228. # larger BH
  229. BSSN_BH2_AMR_R = 1.5
  230. BSSN_BH2_CONSTRAINT_R = 1.5
  231. BSSN_BH2_MAX_LEV = 15
  232. BSSN_BH2 = {MASS = 0.96, X = -0.28, Y = 0.0, Z = 0.0, V_X = 8.742258817965352e-05, V_Y = -0.019528921258083393, V_Z = 0.0, SPIN = 0.0, SPIN_THETA = 0.0, SPIN_PHI = 0.0 }
  233.  
  234.  
  235. ########################################################################
  236. # TPID SPECIFIC PARAMETERS
  237.  
  238. # 1/2 coordinate separation between black holes.
  239. TPID_PAR_B = 3.5
  240.  
  241. # distance from grid center to BH midpoint
  242. TPID_CENTER_OFFSET = { X = 3.22, Y = 0.0, Z = 0.0 }
  243.  
  244. # 0 - Use ADM mass and iteratively solve for bare mass
  245. # 1 - Use bare mass
  246.  
  247. # TPID_GIVE_BARE_MASS = 0
  248. # TPID_TARGET_M_PLUS = 0.04
  249. # TPID_TARGET_M_MINUS = 0.96
  250.  
  251. TPID_GIVE_BARE_MASS = 1
  252. TPID_TARGET_M_PLUS = 0.036628494176827446
  253. TPID_TARGET_M_MINUS = 0.95717075130619
  254.  
  255. # Grid points for spectral grid
  256. TPID_NPOINTS_A = 179
  257. TPID_NPOINTS_B = 192
  258. TPID_NPOINTS_PHI = 42
  259.  
  260. # Convergence tolerances
  261. TPID_NEWTON_TOL = 7e-12
  262. TPID_ADM_TOL = 2e-16
  263.  
  264.  
  265. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  266. # other TPID settings
  267.  
  268. TPID_VERBOSE = 1
  269.  
  270. # Grid Setup Method:
  271. # 0 - Taylor expansion
  272. # 1 - Evaluation
  273. TPID_GRID_SETUP_METHOD = 1
  274.  
  275. # Select lapse:
  276. # 0 - antisymmetric
  277. # 1 - averaged
  278. # 2 - psi^n
  279. # 3 - Brownsville
  280. INITIAL_LAPSE = 2
  281. # Exponent n for INITIAL_LAPSE=2, where alpha=psi^n
  282. TPID_INITIAL_LAPSE_PSI_EXPONENT = -2.0
  283.  
  284. # Deprecated
  285. TPID_SOLVE_MOMENTUM_CONSTRAINT = 0
  286.  
  287.  
  288. ########################################################################
  289. # BLACK HOLE LOCATION EXTRACTION PARAMETERS
  290.  
  291. EXTRACTION_VAR_ID = 0
  292. EXTRACTION_TOL = 0.3
  293.  
  294.  
  295. ########################################################################
  296. # GRAVITATIONAL WAVE EXTRACTION PARAMETERS
  297.  
  298. BSSN_GW_NUM_RADAII = 6
  299. BSSN_GW_RADAII = [ 50.0, 60.0, 70.0, 80.0, 90.0, 100.0 ]
  300. BSSN_GW_NUM_LMODES = 7
  301. BSSN_GW_L_MODES = [ 2, 3, 4, 5, 6, 7, 8 ]
  302.  
  303.  
  304. ########################################################################
  305. # Etienne '24 improvements
  306.  
  307. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  308. # SSL parameters
  309. # use necessary initial lapse of alpha = W
  310. TPID_REPLACE_LAPSE_WITH_SQRT_CHI = true
  311. # Gaussian height h [1/M] (strength of SSL)
  312. BSSN_SSL_H = 7.5
  313. # Gaussian width sigma [M] (duration of SSL)
  314. BSSN_SSL_SIGMA = 1.6
  315.  
  316. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  317. # CAKO: scale KO-diss by conformal factor
  318. BSSN_KO_SIGMA_SCALE_BY_CONFORMAL = false
  319.  
  320. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  321. # CAHD: Hamiltonian damping strength
  322. BSSN_CAHD_C = 0.06
  323.  
  324.  
  325. ########################################################################
  326. # LOGGING
  327.  
  328. # output log file name
  329. DENDRO_LOG_FILE = "log_file"
  330.  
  331. # minimum severity levels to record:
  332. # 0 - trace (all steps!)
  333. # 1 - debug
  334. # 2 - info
  335. # 3 - warnings
  336. # 4 - errors
  337. # 5 - (none)
  338.  
  339. # log level for output dendro log file
  340. DENDRO_LOG_FILE_LEVEL = 2
  341. # log level for console (slurm output file)
  342. DENDRO_LOG_CONSOLE_LEVEL = 3
  343.  
  344. # "last resort" to flush/save log file to disc on every write (avoid!)
  345. DENDRO_LOG_FORCE_FILE_FLUSH = false
  346.  
  347.  
  348. ########################################################################
  349. # APPARANT EVENT HORIZON PARAMETERS
  350.  
  351. # time step frequency with which to run AEH solver
  352. AEH_SOLVER_FREQ = 100
  353.  
  354. [AEH_PARAMS]
  355.  
  356. # Save directory for the AEH outputs, make sure it exists!
  357. AEH_SAVE_DIR = "bah"
  358.  
  359. # Verbosity level for the BAH Solver
  360. VERBOSITY_LEVEL = 1
  361.  
  362. # Input spherical grid's maximum radius to search, for all time.
  363. # These need to be adjusted properly to each BH's mass! ~1.25*m_i
  364. MAX_SEARCH_RADIUS = [0.05, 2.00, 2.00]
  365.  
  366. # Maximum number of radial points for the grids.
  367. # Recommended 48-63 for speed. Increasing this value increases interpolation and communication costs!
  368. NR_INTERP_MAX = [127, 127, 127]
  369.  
  370. # Converge is reached if BOTH of these theta tolerances are met!
  371. # Recommended 1.0e-5 for L2, for balance of speed and accuracy
  372. THETA_L2_M_TOL = [1.0e-5, 1.0e-5, 1.0e-5]
  373. # Recommended 1.0e-2 for Linf
  374. THETA_LINF_M_TOL = [1.0e-3, 1.0e-3, 1.0e-3]
  375.  
  376. # Courant-Friedrichs-Lewy factor to set each timestep
  377. # within hyperbolic relaxation. 1.0 is highly recommended!
  378. # wkb: However, it seems that 1.0 is too large for m>.5 BHs? (.5 good)
  379. CFL_FACTOR = [0.5, 0.5, 1.0]
  380.  
Advertisement
Add Comment
Please, Sign In to add comment