|
| 1 | +# ------------------ INPUTS TO MAIN PROGRAM ------------------- |
| 2 | + |
| 3 | +amr.plot_files_output = 1 |
| 4 | +amr.checkpoint_files_output = 1 |
| 5 | + |
| 6 | +max_step = 1000000 |
| 7 | +stop_time = 10.0 |
| 8 | + |
| 9 | +geometry.is_periodic = 0 0 |
| 10 | +geometry.coord_sys = 1 # r-z coordinates |
| 11 | + |
| 12 | +geometry.prob_lo = 0. 0. |
| 13 | +geometry.prob_hi = 5.12e9 1.024e10 |
| 14 | + |
| 15 | +amr.n_cell = 640 1280 |
| 16 | + |
| 17 | +castro.lo_bc = 3 2 |
| 18 | +castro.hi_bc = 2 2 |
| 19 | + |
| 20 | +# >>>>>>>>>>>>> BC FLAGS <<<<<<<<<<<<<<<< |
| 21 | +# 0 = Interior 3 = Symmetry |
| 22 | +# 1 = Inflow 4 = SlipWall |
| 23 | +# 2 = Outflow 5 = NoSlipWall |
| 24 | +# >>>>>>>>>>>>> BC FLAGS <<<<<<<<<<<<<<<< |
| 25 | + |
| 26 | +castro.do_hydro = 1 |
| 27 | +castro.do_grav = 1 |
| 28 | +castro.do_react = 1 |
| 29 | +castro.do_sponge = 1 |
| 30 | + |
| 31 | +castro.react_rho_min = 100.0 |
| 32 | +castro.react_T_min = 5.e7 |
| 33 | + |
| 34 | +castro.disable_shock_burning = 1 |
| 35 | +castro.ppm_type = 1 |
| 36 | +castro.ppm_temp_fix = 0 |
| 37 | +castro.use_pslope = 1 |
| 38 | + |
| 39 | +castro.use_flattening = 1 |
| 40 | + |
| 41 | +castro.riemann_solver = 1 |
| 42 | + |
| 43 | +# Full self-gravity with the Poisson equation |
| 44 | +gravity.gravity_type = PoissonGrav |
| 45 | + |
| 46 | +# Multipole expansion includes terms up to r**(-max_multipole_order) |
| 47 | +gravity.max_multipole_order = 6 |
| 48 | + |
| 49 | +# Tolerance for multigrid solver for phi solves |
| 50 | +gravity.abs_tol = 1.e-10 |
| 51 | + |
| 52 | +# Use sync solve for gravity after refluxing |
| 53 | +#gravity.no_sync = 0 |
| 54 | + |
| 55 | +# Disable the use of the lagged composite correction for the potential |
| 56 | +gravity.do_composite_phi_correction = 0 |
| 57 | + |
| 58 | +castro.sponge_upper_density = 1.e4 |
| 59 | +castro.sponge_lower_density = 1.e2 |
| 60 | +castro.sponge_timescale = 1.e-3 |
| 61 | + |
| 62 | +castro.cfl = 0.2 # cfl number for hyperbolic system |
| 63 | +castro.init_shrink = 0.05 # scale back initial timestep by this factor |
| 64 | +castro.change_max = 1.025 # factor by which dt is allowed to change each timestep |
| 65 | +castro.sum_interval = 5 # timesteps between computing and printing volume averages |
| 66 | +castro.update_sources_after_reflux = 0 |
| 67 | +castro.time_integration_method = 3 |
| 68 | + |
| 69 | +castro.use_retry = 1 |
| 70 | +castro.retry_subcycle_factor = 0.5 |
| 71 | +castro.max_subcycles = 32 |
| 72 | + |
| 73 | +castro.abundance_failure_rho_cutoff = 1.0 |
| 74 | + |
| 75 | +amr.v = 1 # control verbosity in Amr.cpp |
| 76 | +castro.v = 1 # control verbosity in Castro.cpp |
| 77 | + |
| 78 | +castro.small_dens = 1.e-5 |
| 79 | +castro.small_temp = 1.e5 |
| 80 | + |
| 81 | +#castro.dtnuc_e = 0.25 |
| 82 | +#castro.dtnuc_X = 0.25 |
| 83 | + |
| 84 | +# gridding |
| 85 | + |
| 86 | +amr.max_level = 2 # maximum level number allowed |
| 87 | + |
| 88 | +amr.ref_ratio = 2 2 2 2 # refinement ratio |
| 89 | +amr.regrid_int = 2 # how often to regrid |
| 90 | +amr.n_error_buf = 2 2 2 2 # number of buffer cells in error est |
| 91 | +amr.grid_eff = 0.7 # what constitutes an efficient grid |
| 92 | + |
| 93 | +amr.max_grid_size = 256 # maximum grid size allowed -- used to control parallelism |
| 94 | +amr.blocking_factor = 32 # block factor in grid generation |
| 95 | + |
| 96 | +# I/O |
| 97 | + |
| 98 | +amr.check_file = subch_chk # root name of checkpoint file |
| 99 | +amr.check_int = 50 # number of timesteps between checkpoints |
| 100 | +amr.plot_file = subch_plt # root name of plot file |
| 101 | +amr.plot_int = -1 # number of timesteps between plotfiles |
| 102 | +amr.plot_per = 2.e-3 |
| 103 | + |
| 104 | +amr.derive_plot_vars = ALL |
| 105 | +castro.store_burn_weights = 1 |
| 106 | + |
| 107 | +# problem parameters |
| 108 | + |
| 109 | +problem.pert_temp_factor = 20.0 |
| 110 | +problem.pert_rad_factor = 0.5 |
| 111 | +problem.R_pert = 1.e7 |
| 112 | + |
| 113 | +problem.M_WD = 1.1 |
| 114 | +problem.M_He = 0.05 |
| 115 | + |
| 116 | +problem.delta = 5.e6 |
| 117 | + |
| 118 | +problem.temp_core = 1.e7 |
| 119 | +problem.temp_base = 1.75e8 |
| 120 | + |
| 121 | +problem.core_XC12 = 0.0 |
| 122 | +problem.core_XO16 = 0.7 |
| 123 | +problem.core_XNe20 = 0.3 |
| 124 | + |
| 125 | +problem.X_N14 = 0.0 |
| 126 | + |
| 127 | +problem.low_density_cutoff = 1.e-4 |
| 128 | +problem.temp_fluff = 7.5e7 |
| 129 | + |
| 130 | +problem.model_min_res = 5.e5 |
| 131 | + |
| 132 | +# tagging |
| 133 | + |
| 134 | +amr.refinement_indicators = tempgrad denerr dencore temperr dencutoff |
| 135 | + |
| 136 | +amr.refine.tempgrad.field_name = Temp |
| 137 | +amr.refine.tempgrad.relative_gradient = 2.0 |
| 138 | +amr.refine.tempgrad.max_level = 2 |
| 139 | + |
| 140 | +amr.refine.denerr.field_name = density |
| 141 | +amr.refine.denerr.value_greater = 1.0 |
| 142 | +amr.refine.denerr.max_level = 2 |
| 143 | + |
| 144 | +# this just refines the very center to capture the convergence of the |
| 145 | +# compression wave |
| 146 | + |
| 147 | +amr.refine.dencore.field_name = density |
| 148 | +amr.refine.dencore.value_greater = 7.5e7 |
| 149 | +amr.refine.dencore.max_level = 3 |
| 150 | + |
| 151 | +# now we want to refine regions where T > 2.e8 up to the maximum |
| 152 | +# level, but only if rho > 1.e3 -- otherwise, we don't care about |
| 153 | +# following things |
| 154 | + |
| 155 | +amr.refine.temperr.field_name = Temp |
| 156 | +amr.refine.temperr.value_greater = 1.e8 |
| 157 | +amr.refine.temperr.max_level = 3 |
| 158 | + |
| 159 | +amr.refine.dencutoff.derefine = 1 |
| 160 | +amr.refine.dencutoff.field_name = density |
| 161 | +amr.refine.dencutoff.value_less = 1.e4 |
| 162 | + |
| 163 | +# Microphysics |
| 164 | + |
| 165 | +network.small_x = 1.e-10 |
| 166 | +integrator.SMALL_X_SAFE = 1.e-10 |
| 167 | + |
| 168 | +integrator.rtol_spec = 1.e-5 |
| 169 | +integrator.atol_spec = 1.e-5 |
| 170 | +integrator.rtol_enuc = 1.e-5 |
| 171 | +integrator.atol_enuc = 1.e-5 |
| 172 | +integrator.jacobian = 1 |
| 173 | + |
| 174 | +integrator.X_reject_buffer = 4.0 |
| 175 | + |
| 176 | +# disable jacobian caching in VODE |
| 177 | +integrator.use_jacobian_caching = 0 |
| 178 | + |
| 179 | +integrator.ode_max_steps = 20000 |
| 180 | + |
| 181 | +integrator.use_burn_retry = 1 |
| 182 | +integrator.retry_swap_jacobian = 1 |
0 commit comments