Skip to content

Commit

Permalink
add a 2d spherical geometry input file
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Dec 13, 2024
1 parent 90b0e6f commit ee20f23
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions Exec/unit_tests/diffusion_test/inputs.2d.sph
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ee20f23

Please sign in to comment.