Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions case_new/2D_orszag_tang_weno3m/case.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#!/usr/bin/env python3
import json
import math

# Configuring case dictionary
print(
json.dumps(
{
# Logistics
"run_time_info": "T",
# Computational Domain Parameters
"x_domain%beg": 0,
"x_domain%end": 1.0,
"y_domain%beg": 0,
"y_domain%end": 1.0,
"m": 512,
"n": 512,
"p": 0,
"dt": 0.0004,
"t_step_start": 0,
"t_step_stop": 2500,
"t_step_save": 100,
# Simulation Algorithm Parameters
"num_patches": 1,
"model_eqns": 2,
"alt_soundspeed": "F",
"num_fluids": 1,
"mpp_lim": "F",
"mixture_err": "F",
"time_stepper": 3,
"weno_order": 3,
"mapped_weno": 'T',
"weno_eps": 1.0e-6,
"null_weights": "F",
"mp_weno": "F",
"riemann_solver": 1,
"wave_speeds": 1,
"avg_state": 2,
"bc_x%beg": -1,
"bc_x%end": -1,
"bc_y%beg": -1,
"bc_y%end": -1,
# Formatted Database Files Structure Parameters
"format": 1,
"precision": 2,
"prim_vars_wrt": "T",
"rho_wrt": "T",
"parallel_io": "T",
# MHD
"mhd": "T",
"hyper_cleaning": 'T',
"hyper_cleaning_speed": 2.5,
"hyper_cleaning_tau": 0.004,
# Patch 1 - Analytical for v and B
# gamma = 5/3
# rho = 25/(36*pi)
# p = 5/(12*pi)
# v = (-sin(2*pi*y), sin(2*pi*x), 0)
# B = (-sin(2*pi*y)/sqrt(4*pi), sin(4*pi*x)/sqrt(4*pi), 0)
"patch_icpp(1)%hcid": 250,
"patch_icpp(1)%geometry": 7,
"patch_icpp(1)%x_centroid": 0.5,
"patch_icpp(1)%y_centroid": 0.5,
"patch_icpp(1)%length_x": 1.0,
"patch_icpp(1)%length_y": 1.0,
"patch_icpp(1)%vel(1)": 0.0,
"patch_icpp(1)%vel(2)": 0.0,
"patch_icpp(1)%vel(3)": 0.0,
"patch_icpp(1)%pres": 5.0 / (12 * math.pi),
"patch_icpp(1)%Bx": 0.0,
"patch_icpp(1)%By": 0.0,
"patch_icpp(1)%Bz": 0.0,
"patch_icpp(1)%alpha_rho(1)": 25.0 / (36.0 * math.pi),
"patch_icpp(1)%alpha(1)": 1.0,
# Fluids Physical Parameters
"fluid_pp(1)%gamma": 1.0e00 / (5.0 / 3.0 - 1.0e00),
"fluid_pp(1)%pi_inf": 0.0,
}
)
)
80 changes: 80 additions & 0 deletions case_new/2D_orszag_tang_weno5m/case.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#!/usr/bin/env python3
import json
import math

# Configuring case dictionary
print(
json.dumps(
{
# Logistics
"run_time_info": "T",
# Computational Domain Parameters
"x_domain%beg": 0,
"x_domain%end": 1.0,
"y_domain%beg": 0,
"y_domain%end": 1.0,
"m": 512,
"n": 512,
"p": 0,
"dt": 0.0004,
"t_step_start": 0,
"t_step_stop": 2500,
"t_step_save": 100,
# Simulation Algorithm Parameters
"num_patches": 1,
"model_eqns": 2,
"alt_soundspeed": "F",
"num_fluids": 1,
"mpp_lim": "F",
"mixture_err": "F",
"time_stepper": 3,
"weno_order": 5,
"mapped_weno": 'T',
"weno_eps": 1.0e-6,
"null_weights": "F",
"mp_weno": "F",
"riemann_solver": 1,
"wave_speeds": 1,
"avg_state": 2,
"bc_x%beg": -1,
"bc_x%end": -1,
"bc_y%beg": -1,
"bc_y%end": -1,
# Formatted Database Files Structure Parameters
"format": 1,
"precision": 2,
"prim_vars_wrt": "T",
"rho_wrt": "T",
"parallel_io": "T",
# MHD
"mhd": "T",
"hyper_cleaning": 'T',
"hyper_cleaning_speed": 2.5,
"hyper_cleaning_tau": 0.004,
# Patch 1 - Analytical for v and B
# gamma = 5/3
# rho = 25/(36*pi)
# p = 5/(12*pi)
# v = (-sin(2*pi*y), sin(2*pi*x), 0)
# B = (-sin(2*pi*y)/sqrt(4*pi), sin(4*pi*x)/sqrt(4*pi), 0)
"patch_icpp(1)%hcid": 250,
"patch_icpp(1)%geometry": 7,
"patch_icpp(1)%x_centroid": 0.5,
"patch_icpp(1)%y_centroid": 0.5,
"patch_icpp(1)%length_x": 1.0,
"patch_icpp(1)%length_y": 1.0,
"patch_icpp(1)%vel(1)": 0.0,
"patch_icpp(1)%vel(2)": 0.0,
"patch_icpp(1)%vel(3)": 0.0,
"patch_icpp(1)%pres": 5.0 / (12 * math.pi),
"patch_icpp(1)%Bx": 0.0,
"patch_icpp(1)%By": 0.0,
"patch_icpp(1)%Bz": 0.0,
"patch_icpp(1)%alpha_rho(1)": 25.0 / (36.0 * math.pi),
"patch_icpp(1)%alpha(1)": 1.0,
# Fluids Physical Parameters
"fluid_pp(1)%gamma": 1.0e00 / (5.0 / 3.0 - 1.0e00),
"fluid_pp(1)%pi_inf": 0.0,
}
)
)
80 changes: 80 additions & 0 deletions case_new/2D_orszag_tang_weno5m_nohyper/case.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#!/usr/bin/env python3
import json
import math

# Configuring case dictionary
print(
json.dumps(
{
# Logistics
"run_time_info": "T",
# Computational Domain Parameters
"x_domain%beg": 0,
"x_domain%end": 1.0,
"y_domain%beg": 0,
"y_domain%end": 1.0,
"m": 512,
"n": 512,
"p": 0,
"dt": 0.0004,
"t_step_start": 0,
"t_step_stop": 2500,
"t_step_save": 25,
# Simulation Algorithm Parameters
"num_patches": 1,
"model_eqns": 2,
"alt_soundspeed": "F",
"num_fluids": 1,
"mpp_lim": "F",
"mixture_err": "F",
"time_stepper": 3,
"weno_order": 5,
"mapped_weno": 'T',
"weno_eps": 1.0e-6,
"null_weights": "F",
"mp_weno": "F",
"riemann_solver": 1,
"wave_speeds": 1,
"avg_state": 2,
"bc_x%beg": -1,
"bc_x%end": -1,
"bc_y%beg": -1,
"bc_y%end": -1,
# Formatted Database Files Structure Parameters
"format": 1,
"precision": 2,
"prim_vars_wrt": "T",
"rho_wrt": "T",
"parallel_io": "T",
# MHD
"mhd": "T",
# "hyper_cleaning": 'T',
# "hyper_cleaning_speed": 2.5,
# "hyper_cleaning_tau": 0.004,
# Patch 1 - Analytical for v and B
# gamma = 5/3
# rho = 25/(36*pi)
# p = 5/(12*pi)
# v = (-sin(2*pi*y), sin(2*pi*x), 0)
# B = (-sin(2*pi*y)/sqrt(4*pi), sin(4*pi*x)/sqrt(4*pi), 0)
"patch_icpp(1)%hcid": 250,
"patch_icpp(1)%geometry": 7,
"patch_icpp(1)%x_centroid": 0.5,
"patch_icpp(1)%y_centroid": 0.5,
"patch_icpp(1)%length_x": 1.0,
"patch_icpp(1)%length_y": 1.0,
"patch_icpp(1)%vel(1)": 0.0,
"patch_icpp(1)%vel(2)": 0.0,
"patch_icpp(1)%vel(3)": 0.0,
"patch_icpp(1)%pres": 5.0 / (12 * math.pi),
"patch_icpp(1)%Bx": 0.0,
"patch_icpp(1)%By": 0.0,
"patch_icpp(1)%Bz": 0.0,
"patch_icpp(1)%alpha_rho(1)": 25.0 / (36.0 * math.pi),
"patch_icpp(1)%alpha(1)": 1.0,
# Fluids Physical Parameters
"fluid_pp(1)%gamma": 1.0e00 / (5.0 / 3.0 - 1.0e00),
"fluid_pp(1)%pi_inf": 0.0,
}
)
)
80 changes: 80 additions & 0 deletions case_new/2D_orszag_tang_weno5z/case.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#!/usr/bin/env python3
import json
import math

# Configuring case dictionary
print(
json.dumps(
{
# Logistics
"run_time_info": "T",
# Computational Domain Parameters
"x_domain%beg": 0,
"x_domain%end": 1.0,
"y_domain%beg": 0,
"y_domain%end": 1.0,
"m": 512,
"n": 512,
"p": 0,
"dt": 0.0004,
"t_step_start": 0,
"t_step_stop": 2500,
"t_step_save": 100,
# Simulation Algorithm Parameters
"num_patches": 1,
"model_eqns": 2,
"alt_soundspeed": "F",
"num_fluids": 1,
"mpp_lim": "F",
"mixture_err": "F",
"time_stepper": 3,
"weno_order": 5,
"wenoz": 'T',
"weno_eps": 1.0e-6,
"null_weights": "F",
"mp_weno": "F",
"riemann_solver": 1,
"wave_speeds": 1,
"avg_state": 2,
"bc_x%beg": -1,
"bc_x%end": -1,
"bc_y%beg": -1,
"bc_y%end": -1,
# Formatted Database Files Structure Parameters
"format": 1,
"precision": 2,
"prim_vars_wrt": "T",
"rho_wrt": "T",
"parallel_io": "T",
# MHD
"mhd": "T",
"hyper_cleaning": 'T',
"hyper_cleaning_speed": 2.5,
"hyper_cleaning_tau": 0.004,
# Patch 1 - Analytical for v and B
# gamma = 5/3
# rho = 25/(36*pi)
# p = 5/(12*pi)
# v = (-sin(2*pi*y), sin(2*pi*x), 0)
# B = (-sin(2*pi*y)/sqrt(4*pi), sin(4*pi*x)/sqrt(4*pi), 0)
"patch_icpp(1)%hcid": 250,
"patch_icpp(1)%geometry": 7,
"patch_icpp(1)%x_centroid": 0.5,
"patch_icpp(1)%y_centroid": 0.5,
"patch_icpp(1)%length_x": 1.0,
"patch_icpp(1)%length_y": 1.0,
"patch_icpp(1)%vel(1)": 0.0,
"patch_icpp(1)%vel(2)": 0.0,
"patch_icpp(1)%vel(3)": 0.0,
"patch_icpp(1)%pres": 5.0 / (12 * math.pi),
"patch_icpp(1)%Bx": 0.0,
"patch_icpp(1)%By": 0.0,
"patch_icpp(1)%Bz": 0.0,
"patch_icpp(1)%alpha_rho(1)": 25.0 / (36.0 * math.pi),
"patch_icpp(1)%alpha(1)": 1.0,
# Fluids Physical Parameters
"fluid_pp(1)%gamma": 1.0e00 / (5.0 / 3.0 - 1.0e00),
"fluid_pp(1)%pi_inf": 0.0,
}
)
)
Loading