Skip to content

Commit

Permalink
this seems to work better
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Sep 14, 2023
1 parent fd130a9 commit d229142
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Exec/science/xrb_layered/_prob_params
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ model_name character "" y
apply_perturbation integer 1 y

pert_density real 1.0 y

model_shift real 0.0 y
12 changes: 7 additions & 5 deletions Exec/science/xrb_layered/inputs_2d
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ geometry.is_periodic = 1 0
geometry.coord_sys = 0 # 0 => cart, 1 => RZ 2=>spherical
geometry.prob_lo = 0.0 0.0
geometry.prob_hi = 3072 3072
amr.n_cell = 256 256
amr.n_cell = 128 128

# >>>>>>>>>>>>> BC FLAGS <<<<<<<<<<<<<<<<
# 0 = Interior 3 = Symmetry
Expand Down Expand Up @@ -43,14 +43,14 @@ castro.react_T_min = 5.e6


# TIME STEP CONTROL
castro.cfl = 0.7 # cfl number for hyperbolic system
castro.cfl = 0.8 # cfl number for hyperbolic system
castro.init_shrink = 0.1 # scale back initial timestep
castro.change_max = 1.1 # max time step growth

# SPONGE
castro.sponge_upper_density = 1.e3
castro.sponge_lower_density = 1.e2
castro.sponge_timescale = 1.0e-4
castro.sponge_timescale = 1.0e-7

# DIAGNOSTICS & VERBOSITY
castro.sum_interval = 1 # timesteps between computing mass
Expand All @@ -59,10 +59,10 @@ amr.v = 1 # verbosity in Amr.cpp

# REFINEMENT / REGRIDDING
amr.max_level = 1 # maximum level number allowed
amr.ref_ratio = 2 2 2 2 # refinement ratio
amr.ref_ratio = 4 2 2 2 # refinement ratio
amr.regrid_int = 2 2 2 2 # how often to regrid
amr.blocking_factor = 8 # block factor in grid generation
amr.max_grid_size = 64
amr.max_grid_size = 256
amr.n_error_buf = 2 2 2 2 # number of buffer cells in error est

# CHECKPOINT FILES
Expand All @@ -79,6 +79,8 @@ problem.model_name = "toy_atm_hot_castro_3cm.hse"

problem.apply_perturbation = 1

problem.model_shift = 300.0

# MICROPHYSICS
integrator.jacobian = 1

Expand Down
2 changes: 2 additions & 0 deletions Exec/science/xrb_layered/problem_initialize_state_data.H
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ void problem_initialize_state_data (int i, int j, int k,
Real height = z;
#endif

height += problem::model_shift;

state(i,j,k,URHO) = interpolate(height, model::idens);
state(i,j,k,UTEMP) = interpolate(height, model::itemp);

Expand Down

0 comments on commit d229142

Please sign in to comment.