-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a first implementation of a contrained transport, corner transport upwind MHD solver based on Miniati & Colella 2011. At the moment, it is not tested with AMR.
- Loading branch information
1 parent
bd259f8
commit 174a02c
Showing
119 changed files
with
11,745 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ USE_MPI = TRUE | |
|
||
USE_GRAV = TRUE | ||
|
||
USE_MHD = FALSE | ||
|
||
USE_PROB_PARAMS = TRUE | ||
|
||
GPU_COMPATIBLE_PROBLEM = TRUE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
Exec/gravity_tests/DustCollapse/inputs_3d_monopole_mhd_test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# ------------------ INPUTS TO MAIN PROGRAM ------------------- | ||
max_step = 10 | ||
|
||
# PROBLEM SIZE & GEOMETRY | ||
geometry.is_periodic = 0 0 0 | ||
geometry.coord_sys = 0 | ||
geometry.prob_lo = 0. 0. 0. | ||
geometry.prob_hi = 7.5e8 7.5e8 7.5e8 | ||
|
||
amr.n_cell = 64 64 64 | ||
|
||
# >>>>>>>>>>>>> BC FLAGS <<<<<<<<<<<<<<<< | ||
# 0 = Interior 3 = Symmetry | ||
# 1 = Inflow 4 = SlipWall | ||
# 2 = Outflow 5 = NoSlipWall | ||
# >>>>>>>>>>>>> BC FLAGS <<<<<<<<<<<<<<<< | ||
castro.lo_bc = 3 3 3 | ||
castro.hi_bc = 2 2 2 | ||
|
||
# WHICH PHYSICS | ||
castro.do_hydro = 1 | ||
castro.do_react = 0 | ||
castro.add_ext_src = 0 | ||
castro.do_sponge = 1 | ||
castro.ppm_type = 1 | ||
|
||
# MHD | ||
castro.mhd_plm_slope = 1 | ||
castro.use_flattening = 0 | ||
#castro.castro.apply_sources_consecutively = 1 | ||
|
||
castro.do_grav = 1 | ||
gravity.gravity_type = MonopoleGrav | ||
gravity.drdxfac = 4 | ||
|
||
# RELEVANT FOR EOS | ||
castro.small_temp = 1.e-3 | ||
castro.small_dens = 1.e-6 | ||
|
||
# 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.05 # scale back initial timestep | ||
|
||
# DIAGNOSTICS & VERBOSITY | ||
castro.sum_interval = 1 # timesteps between computing mass | ||
castro.v = 1 # verbosity in Castro.cpp | ||
amr.v = 1 # verbosity in Amr.cpp | ||
|
||
# REFINEMENT / REGRIDDING | ||
amr.max_level = 0 # maximum level number allowed | ||
amr.ref_ratio = 2 2 2 2 # refinement ratio | ||
amr.regrid_int = 2 2 2 2 # how often to regrid | ||
amr.blocking_factor = 4 # block factor in grid generation | ||
amr.max_grid_size = 32 | ||
amr.n_error_buf = 2 2 2 2 # number of buffer cells in error est | ||
|
||
# CHECKPOINT FILES | ||
amr.check_file = chk_3d_ # root name of checkpoint file | ||
amr.check_int = 100000 # number of timesteps between checkpoints | ||
|
||
# PLOTFILES | ||
amr.plot_file = plt_3d_ # root name of plotfile | ||
amr.plot_int = 100000 # number of timesteps between plotfiles | ||
amr.derive_plot_vars = NONE | ||
|
||
#PROBIN FILENAME | ||
amr.probin_file = probin.octant |
72 changes: 72 additions & 0 deletions
72
Exec/gravity_tests/DustCollapse/inputs_3d_poisson_mhd_test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# ------------------ INPUTS TO MAIN PROGRAM ------------------- | ||
max_step = 8 | ||
|
||
# PROBLEM SIZE & GEOMETRY | ||
geometry.is_periodic = 0 0 0 | ||
geometry.coord_sys = 0 | ||
geometry.prob_lo = 0. 0. 0. | ||
geometry.prob_hi = 1.5e9 1.5e9 1.5e9 | ||
|
||
amr.n_cell = 64 64 64 | ||
|
||
# >>>>>>>>>>>>> BC FLAGS <<<<<<<<<<<<<<<< | ||
# 0 = Interior 3 = Symmetry | ||
# 1 = Inflow 4 = SlipWall | ||
# 2 = Outflow 5 = NoSlipWall | ||
# >>>>>>>>>>>>> BC FLAGS <<<<<<<<<<<<<<<< | ||
castro.lo_bc = 2 2 2 | ||
castro.hi_bc = 2 2 2 | ||
|
||
# WHICH PHYSICS | ||
castro.do_hydro = 1 | ||
castro.do_react = 0 | ||
castro.add_ext_src = 0 | ||
castro.do_sponge = 1 | ||
castro.ppm_type = 1 | ||
castro.do_grav = 1 | ||
gravity.gravity_type = PoissonGrav | ||
gravity.drdxfac = 4 | ||
|
||
#gravity.v = 1 | ||
#mg.v = 2 | ||
|
||
# RELEVANT FOR EOS | ||
castro.small_temp = 1.e-3 | ||
castro.small_dens = 1.e-6 | ||
|
||
# MHD | ||
castro.mhd_plm_slope = 1 | ||
castro.use_flattening = 0 | ||
#castro.castro.apply_sources_consecutively = 1 | ||
|
||
|
||
# TIME STEP CONTROL | ||
castro.cfl = 0.5 # cfl number for hyperbolic system | ||
castro.init_shrink = 0.03 # scale back initial timestep | ||
castro.change_max = 1.05 # scale back initial timestep | ||
|
||
# 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 2 2 2 # how often to regrid | ||
amr.blocking_factor = 4 # block factor in grid generation | ||
amr.max_grid_size = 32 | ||
amr.n_error_buf = 2 2 2 2 # number of buffer cells in error est | ||
|
||
# CHECKPOINT FILES | ||
amr.check_file = chk_3d_ # root name of checkpoint file | ||
amr.check_int = 8 # number of timesteps between checkpoints | ||
|
||
# PLOTFILES | ||
amr.plot_file = plt_3d_ # root name of plotfile | ||
amr.plot_int = 8 # number of timesteps between plotfiles | ||
amr.derive_plot_vars = NONE | ||
|
||
#PROBIN FILENAME | ||
amr.probin_file = probin_3d_poisson_regtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,8 @@ nsub integer 4 y | |
|
||
e_exp real 0.0_rt | ||
|
||
|
||
B_x real 0.0_rt y | ||
B_y real 0.0_rt y | ||
B_z real 0.0_rt y | ||
|
Oops, something went wrong.