-
Notifications
You must be signed in to change notification settings - Fork 83
Generify hydro MOL for anisotropic EB #967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
48ae06f
start cleaning some eb dx
marchdf 035100d
an assert
marchdf bd907b7
fix
marchdf 8bc7292
lots of debug
marchdf 41c3fc3
fixes
marchdf b2d57f6
disable quadratic grad stencil
marchdf 0802344
anisotropic derefine
marchdf 4903095
2D
marchdf 127dc52
add test
marchdf 808eca6
reinsert abort
marchdf e18ab4d
remove unneeded normalizer
marchdf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,94 @@ | ||
# ------------------ INPUTS TO MAIN PROGRAM ------------------- | ||
max_step = 100000 | ||
stop_time = 0.1 | ||
|
||
# PROBLEM SIZE & GEOMETRY | ||
geometry.is_periodic = 0 0 1 | ||
geometry.coord_sys = 0 # 0 => cart | ||
geometry.prob_lo = 0.0 -0.30000000000000004 0.0 | ||
geometry.prob_hi = 2.0 1.5 0.1 | ||
amr.n_cell = 320 144 8 | ||
#amr.n_cell = 160 144 8 | ||
|
||
|
||
# >>>>>>>>>>>>> BC KEYWORDS <<<<<<<<<<<<<<<<<<<<<< | ||
# Interior, UserBC, Symmetry, SlipWall, NoSlipWall | ||
# >>>>>>>>>>>>> BC KEYWORDS <<<<<<<<<<<<<<<<<<<<<< | ||
pelec.lo_bc = "FOExtrap" "NoSlipWall" "Interior" | ||
pelec.hi_bc = "FOExtrap" "NoSlipWall" "Interior" | ||
|
||
# Problem setup | ||
pelec.eb_boundary_T = 300. | ||
pelec.eb_isothermal = 1 | ||
|
||
# WHICH PHYSICS | ||
pelec.do_hydro = 1 | ||
pelec.do_mol = 1 | ||
pelec.do_react = 0 | ||
pelec.allow_negative_energy = 0 | ||
pelec.diffuse_temp = 0 | ||
pelec.diffuse_vel = 0 | ||
pelec.diffuse_spec = 0 | ||
pelec.diffuse_enth = 0 | ||
|
||
# TIME STEP CONTROL | ||
pelec.dt_cutoff = 5.e-20 # level 0 timestep below which we halt | ||
pelec.cfl = 0.3 # cfl number for hyperbolic system | ||
pelec.init_shrink = 0.8 # scale back initial timestep | ||
pelec.change_max = 1.05 # maximum increase in dt over successive steps | ||
|
||
# DIAGNOSTICS & VERBOSITY | ||
pelec.sum_interval = 1 # timesteps between computing mass | ||
pelec.v = 1 # verbosity in PeleC cpp files | ||
amr.v = 1 # verbosity in Amr.cpp | ||
#amr.grid_log = grdlog # name of grid logging file | ||
|
||
# REFINEMENT / REGRIDDING | ||
amr.max_level = 1 # 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 = 8 # block factor in grid generation | ||
amr.max_grid_size = 32 | ||
|
||
# CHECKPOINT FILES | ||
amr.checkpoint_files_output = 0 | ||
amr.check_file = chk # root name of checkpoint file | ||
amr.check_int = -1 # number of timesteps between checkpoints | ||
|
||
# PLOTFILES | ||
amr.plot_files_output = 1 | ||
amr.plot_file = plt | ||
amr.plot_int = 100 | ||
amr.derive_plot_vars=ALL | ||
|
||
# PROBLEM DEFINITION | ||
prob.pl = 1.0 | ||
prob.rhol = 1.0 | ||
prob.pr = 0.1 | ||
prob.rhor = 0.125 | ||
prob.angle = 30.0 | ||
|
||
# TAGGING | ||
tagging.denerr = 3 | ||
tagging.dengrad = 0.01 | ||
tagging.max_denerr_lev = 3 | ||
tagging.max_dengrad_lev = 3 | ||
|
||
tagging.presserr = 3 | ||
tagging.pressgrad = 0.01 | ||
tagging.max_presserr_lev = 3 | ||
tagging.max_pressgrad_lev = 3 | ||
|
||
#extruded triangles lets the user create a maximum of 5 triangles | ||
#in 2D that will be extruded in the z direction | ||
#make sure the coordinates are in anti-clockwise direction | ||
eb2.geom_type = "extruded_triangles" | ||
extruded_triangles.num_tri = 2 | ||
extruded_triangles.tri_0_point_0 = -20.0 -11.662475437630437 0.0 | ||
extruded_triangles.tri_0_point_1 = 22.0 -20.0 0.0 | ||
extruded_triangles.tri_0_point_2 = 22.0 12.586235868333839 0.0 | ||
|
||
extruded_triangles.tri_1_point_0 = -20.0 -11.431535329954588 0.0 | ||
extruded_triangles.tri_1_point_1 = 22.0 12.817175976009688 0.0 | ||
extruded_triangles.tri_1_point_2 = -20.0 20.0 0.0 | ||
ebd.boundary_grad_stencil_type = 1 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these still
dx[0]
- maybe they should bedx_max
instead?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't dealt with the grad stencils so I left them as they were. I just changed the call signature to take in the dx array, so that I can change it later. Basically making it more explicit where things will need to change.