Skip to content

Commit

Permalink
Merge branch 'development' into update_xrb_dx_model
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Oct 8, 2023
2 parents c2b6e28 + 80d1947 commit 6e7c831
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 24 deletions.
2 changes: 0 additions & 2 deletions Exec/gravity_tests/hse_convergence_general/_prob_params
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ X_min real 1.e-4_rt y

cutoff_density real 500.e0_rt y

dx_model real 10.0_rt y

T_hi real 5.e8_rt y

T_star real 1.e8_rt y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ amr.plot_per = 1.e-5 # number of seconds between plotfiles
amr.derive_plot_vars = ALL

# PROBLEM PARAMETERS
problem.dx_model = 20.e0

problem.dens_base = 3.43e6

problem.T_star = 1.e8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ amr.plot_per = 1.e-5 # number of seconds between plotfiles
amr.derive_plot_vars = ALL

# PROBLEM PARAMETERS
problem.dx_model = 20.e0

problem.dens_base = 3.43e6

problem.T_star = 1.e8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ amr.plot_per = 1.e-5 # number of seconds between plotfiles
amr.derive_plot_vars = ALL

# PROBLEM PARAMETERS
problem.dx_model = 20.e0

problem.dens_base = 3.43e6

problem.T_star = 1.e8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,14 @@ void problem_initialize ()
amrex::Error("ERROR: fuel mass fractions don't sum to 1");
}

// we use the fine grid dx for the model resolution
auto fine_geom = global::the_amr_ptr->Geom(global::the_amr_ptr->maxLevel());

auto dx = fine_geom.CellSizeArray();
auto dx_model = dx[AMREX_SPACEDIM-1];

int nx_model = static_cast<int>((probhi[AMREX_SPACEDIM-1] -
problo[AMREX_SPACEDIM-1]) / problem::dx_model);
problo[AMREX_SPACEDIM-1]) / dx_model);

int ng = 4;

Expand All @@ -152,7 +157,7 @@ void problem_initialize ()
model_params.low_density_cutoff = problem::low_density_cutoff;

generate_initial_model(nx_model + ng,
problo[AMREX_SPACEDIM-1] - ng*problem::dx_model,
problo[AMREX_SPACEDIM-1] - ng * dx_model,
probhi[AMREX_SPACEDIM-1],
model_params);

Expand Down
2 changes: 0 additions & 2 deletions Exec/hydro_tests/double_bubble/_prob_params
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ single integer 0 y
# at the lower boundary, do we extrapolate the vertical momentum or set it to zero
boundary_type integer 1 y

dx_model real 0.00390625 y

left_bubble_x_center real 0.0_rt

right_bubble_x_center real 0.0_rt
2 changes: 0 additions & 2 deletions Exec/hydro_tests/double_bubble/inputs_2d
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ problem.pert_width = 0.025e0

problem.do_isentropic = 1

problem.dx_model = 0.00390625

# EOS
eos.species_a_name = "A"
eos.species_a_gamma = 1.666e0
Expand Down
2 changes: 0 additions & 2 deletions Exec/hydro_tests/double_bubble/inputs_2d.single
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ problem.do_isentropic = 1

problem.single = 1

problem.dx_model = 0.005859375

# EOS
eos.species_a_name = "A"
eos.species_a_gamma = 1.666e0
Expand Down
2 changes: 0 additions & 2 deletions Exec/hydro_tests/double_bubble/inputs_2d.single.equal
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ problem.do_isentropic = 1

problem.single = 1

problem.dx_model = 0.005859375

# EOS
eos.species_a_name = "A"
eos.species_a_gamma = 1.666e0
Expand Down
2 changes: 0 additions & 2 deletions Exec/hydro_tests/double_bubble/inputs_2d.test
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ problem.pert_width = 0.025e0

problem.do_isentropic = 1

problem.dx_model = 0.00390625

# EOS
eos.species_a_name = "A"
eos.species_a_gamma = 1.666e0
Expand Down
8 changes: 7 additions & 1 deletion Exec/hydro_tests/double_bubble/problem_initialize.H
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ void problem_initialize ()

// we'll generate the initial model at the needed resolution

// we use the fine grid dx for the model resolution
auto fine_geom = global::the_amr_ptr->Geom(global::the_amr_ptr->maxLevel());

auto dx = fine_geom.CellSizeArray();
auto dx_model = dx[AMREX_SPACEDIM-1];

int nx = (2.0_rt * problem::center[AMREX_SPACEDIM-1] + 1.e-8_rt) /
problem::dx_model;
dx_model;

model_t model_params;
model_params.dens_base = problem::dens_base;
Expand Down
2 changes: 0 additions & 2 deletions Exec/hydro_tests/gamma_law_bubble/_prob_params
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ y_pert_center real 0.7_rt y
pert_width real 0.025_rt y

do_isentropic integer 0 y

dx_model real 0.00390625 y
8 changes: 7 additions & 1 deletion Exec/hydro_tests/gamma_law_bubble/problem_initialize.H
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ void problem_initialize ()
// first make a 1D initial model for the entire domain
// we'll create it ourselves, but hook it into the model_parser

// we use the fine grid dx for the model resolution
auto fine_geom = global::the_amr_ptr->Geom(global::the_amr_ptr->maxLevel());

auto dx = fine_geom.CellSizeArray();
auto dx_model = dx[AMREX_SPACEDIM-1];

int nx = (2.0_rt * problem::center[AMREX_SPACEDIM-1] + 1.e-8_rt) /
problem::dx_model;
dx_model;

model_t model_params;
model_params.p_base = problem::pres_base;
Expand Down

0 comments on commit 6e7c831

Please sign in to comment.