Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
a838583
hyperbolic cleaning
ChrisZYJ Apr 24, 2025
c745398
flux per dim (wrong)
ChrisZYJ Jun 8, 2025
e98fb01
hyper works
ChrisZYJ Jun 9, 2025
6798e4b
format
ChrisZYJ Jun 9, 2025
4d651e8
hardcoded cases & m_start_up hard-coded psi
ChrisZYJ Jul 1, 2025
89a0ac5
Added ellipse marker patch
danieljvickers Dec 12, 2025
ef446f5
Added ellipse IB patch
danieljvickers Dec 12, 2025
2f9b1be
Added an ellipse immersed boundary patch
danieljvickers Dec 12, 2025
f0b7239
validation cases
ChrisZYJ Dec 13, 2025
2c29ab2
Merged master
danieljvickers Jan 23, 2026
7db99b4
Missed one somehow
danieljvickers Jan 23, 2026
f3b6a37
Resolved another commit
danieljvickers Jan 23, 2026
32655d0
Builds!
danieljvickers Jan 23, 2026
edc9f5d
Merge branch 'master' into mhd_hypercleaning
danieljvickers Jan 23, 2026
64f4d96
Formatting
danieljvickers Jan 23, 2026
96ccf10
Remove duplicate values from user_inputs namelist
danieljvickers Jan 24, 2026
f942bb9
Missing comma
danieljvickers Jan 24, 2026
4480d18
Replaced outdated ACC calls with unified macros
danieljvickers Jan 24, 2026
c642669
Adjust comment syntax to make the linter happy
danieljvickers Jan 24, 2026
bd12ee0
Merge branch 'master' into mhd_hypercleaning
danieljvickers Jan 24, 2026
efb124d
Updates to the rotor problem to match original literature
danieljvickers Jan 25, 2026
3011794
Merge branch 'mhd_hypercleaning' of github.com:ChrisZYJ/MFC_PR into m…
danieljvickers Jan 26, 2026
6c61e02
Fixed the issue. Had to change how we damped psi
danieljvickers Jan 26, 2026
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
Loading