-
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.
update scripts and input files for diffusion test (#3012)
corrects README Update analysis script add spherical geometry input file
- Loading branch information
Showing
7 changed files
with
156 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ DEBUG = FALSE | |
|
||
DIM = 2 | ||
|
||
COMP = gnu | ||
COMP = gnu | ||
|
||
USE_MPI = TRUE | ||
USE_OMP = FALSE | ||
|
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
26 changes: 20 additions & 6 deletions
26
Exec/unit_tests/diffusion_test/analysis/slice_grid.py
100644 → 100755
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 |
---|---|---|
@@ -1,14 +1,28 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
import yt | ||
from yt.frontends.boxlib.api import CastroDataset | ||
|
||
""" | ||
Give a temperature slice plot for 2d plot file | ||
""" | ||
|
||
fname = sys.argv[1] | ||
ds = CastroDataset(fname) | ||
|
||
ds = yt.load("diffuse_plt00147") | ||
slice_dirs = {"cylindrical":"theta", | ||
"spherical":"phi"} | ||
slice_dir = slice_dirs[ds.geometry] | ||
|
||
slc = yt.SlicePlot(ds, "theta", "Temp") | ||
slc.annotate_grids() | ||
slc.set_figure_size(16) | ||
slc = yt.SlicePlot(ds, slice_dir, "Temp") | ||
if ds.geometry == "cylindrical": | ||
slc.annotate_grids() | ||
slc.set_figure_size(12) | ||
slc.set_buff_size(1600) | ||
slc.set_font_size(64) | ||
slc.set_font_size(24) | ||
slc.set_cmap("Temp", "plasma_r") | ||
slc.set_log("Temp", False) | ||
slc.set_axes_unit("cm") | ||
|
||
slc.save("diffusion_temp_amr.pdf") | ||
slc.save("diffusion_temp.png") |
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,70 @@ | ||
# ------------------ INPUTS TO MAIN PROGRAM ------------------- | ||
max_step = 50000 | ||
stop_time = 0.001 | ||
|
||
# PROBLEM SIZE & GEOMETRY | ||
geometry.is_periodic = 0 0 | ||
geometry.coord_sys = 1 # 1 = RZ | ||
geometry.prob_lo = 0.0 0.0 | ||
geometry.prob_hi = 0.5 1.0 | ||
amr.n_cell = 64 128 | ||
|
||
# >>>>>>>>>>>>> BC FLAGS <<<<<<<<<<<<<<<< | ||
# 0 = Interior 3 = Symmetry | ||
# 1 = Inflow 4 = SlipWall | ||
# 2 = Outflow 5 = NoSlipWall | ||
# >>>>>>>>>>>>> BC FLAGS <<<<<<<<<<<<<<<< | ||
castro.lo_bc = 3 2 | ||
castro.hi_bc = 2 2 | ||
|
||
# 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 = 1 # 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 |
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