From ee20f2324cbc35fec708c7f85ed7f68755932e3d Mon Sep 17 00:00:00 2001 From: zhi Date: Thu, 12 Dec 2024 19:24:33 -0500 Subject: [PATCH] add a 2d spherical geometry input file --- Exec/unit_tests/diffusion_test/inputs.2d.sph | 72 ++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Exec/unit_tests/diffusion_test/inputs.2d.sph diff --git a/Exec/unit_tests/diffusion_test/inputs.2d.sph b/Exec/unit_tests/diffusion_test/inputs.2d.sph new file mode 100644 index 0000000000..b324d434f7 --- /dev/null +++ b/Exec/unit_tests/diffusion_test/inputs.2d.sph @@ -0,0 +1,72 @@ +# ------------------ INPUTS TO MAIN PROGRAM ------------------- +max_step = 50000 +stop_time = 0.001 + +# PROBLEM SIZE & GEOMETRY +geometry.is_periodic = 0 0 +geometry.coord_sys = 2 # 2 = SPHERICAL +geometry.prob_lo = 0.00001 0.0 +geometry.prob_hi = 1.0 3.141592653589793238 +amr.n_cell = 64 64 + +castro.allow_non_unit_aspect_zones = 1 + +# >>>>>>>>>>>>> BC FLAGS <<<<<<<<<<<<<<<< +# 0 = Interior 3 = Symmetry +# 1 = Inflow 4 = SlipWall +# 2 = Outflow 5 = NoSlipWall +# >>>>>>>>>>>>> BC FLAGS <<<<<<<<<<<<<<<< +castro.lo_bc = 3 3 +castro.hi_bc = 2 3 + +# WHICH PHYSICS +castro.do_hydro = 0 +castro.diffuse_temp = 1 +castro.do_react = 0 + +# TIME STEP CONTROL + +castro.cfl = 0.5 # cfl number for hyperbolic system +castro.init_shrink = 0.1 # scale back initial timestep +castro.change_max = 1.1 # maximum increase in dt over successive steps + +# DIAGNOSTICS & VERBOSITY +castro.sum_interval = 1 # timesteps between computing mass +castro.v = 1 # verbosity in Castro.cpp +amr.v = 1 # verbosity in Amr.cpp +#amr.grid_log = grdlog # name of grid logging file + +# REFINEMENT / REGRIDDING +amr.max_level = 0 # maximum level number allowed +amr.ref_ratio = 2 2 2 2 # refinement ratio +amr.regrid_int = 2 # how often to regrid +amr.blocking_factor = 8 # block factor in grid generation +amr.max_grid_size = 32 + +amr.refinement_indicators = temperr tempgrad + +amr.refine.temperr.value_greater = 1.1 +amr.refine.temperr.field_name = Temp +amr.refine.temperr.max_level = 3 + +amr.refine.tempgrad.gradient = 0.1 +amr.refine.tempgrad.field_name = Temp +amr.refine.tempgrad.max_level = 3 + +# CHECKPOINT FILES +amr.check_file = diffuse_chk # root name of checkpoint file +amr.check_int = 1000 # number of timesteps between checkpoints + +# PLOTFILES +amr.plot_file = diffuse_plt +amr.plot_int = 10 +amr.derive_plot_vars=ALL + +# PROBLEM PARAMETERS +problem.diff_coeff = 1.0 + +# CONDUCTIVITY +conductivity.const_conductivity = 10.0 + +# EOS +eos.eos_assume_neutral = 1