forked from MFlowCode/MFC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Low mach number correction for HLLC Riemann solver (MFlowCode#538)
Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]>
- Loading branch information
1 parent
3d0aff8
commit 6e8ded8
Showing
48 changed files
with
3,677 additions
and
18 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
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,96 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import math | ||
import json | ||
|
||
gam = 1.4 | ||
Ma0 = 1E-3 | ||
c0 = math.sqrt(gam) | ||
u0 = Ma0*c0 | ||
|
||
Nx = 256 | ||
Ny = 256 | ||
Nz = 0 | ||
dx = 1./Nx | ||
|
||
cfl = 0.5 | ||
T = 1./Ma0 | ||
dt = cfl*dx/(u0+c0) | ||
Ntfinal = int(T/dt) | ||
Ntstart = 0 | ||
Nfiles = 10 | ||
t_save = int(math.ceil((Ntfinal-0)/float(Nfiles))) | ||
Nt = t_save*Nfiles | ||
t_step_start = Ntstart | ||
t_step_stop = int(Nt) | ||
|
||
# Configuring case dictionary | ||
print(json.dumps({ | ||
# Logistics ================================================================ | ||
'run_time_info' : 'T', | ||
# ========================================================================== | ||
|
||
# Computational Domain Parameters ========================================== | ||
'x_domain%beg' : 0., | ||
'x_domain%end' : 1, | ||
'y_domain%beg' : 0., | ||
'y_domain%end' : 1., | ||
'm' : Nx, | ||
'n' : Ny, | ||
'p' : Nz, | ||
'dt' : dt, | ||
't_step_start' : t_step_start, | ||
't_step_stop' : t_step_stop, | ||
't_step_save' : t_save, | ||
# ========================================================================== | ||
|
||
# Simulation Algorithm Parameters ========================================== | ||
'num_patches' : 1, | ||
'model_eqns' : 2, | ||
'num_fluids' : 1, | ||
'time_stepper' : 3, | ||
'weno_order' : 5, | ||
'weno_eps' : 1.E-16, | ||
# 'mapped_weno' : 'T', | ||
'wenoz' : 'T', | ||
'riemann_solver' : 2, | ||
'low_Mach' : 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, | ||
'cons_vars_wrt' :'T', | ||
'prim_vars_wrt' :'T', | ||
'parallel_io' :'T', | ||
'fd_order' : 1, | ||
'omega_wrt(3)' :'T', | ||
# ========================================================================== | ||
|
||
# Patch 1 ================================================================== | ||
'patch_icpp(1)%geometry' : 7, | ||
'patch_icpp(1)%hcid' : 203, | ||
'patch_icpp(1)%x_centroid' : 0.5, | ||
'patch_icpp(1)%y_centroid' : 0.5, | ||
'patch_icpp(1)%length_x' : 1, | ||
'patch_icpp(1)%length_y' : 1, | ||
'patch_icpp(1)%alpha_rho(1)' : 1., | ||
'patch_icpp(1)%alpha(1)' : 1., | ||
'patch_icpp(1)%vel(1)' : u0, | ||
'patch_icpp(1)%vel(2)' : Ma0, | ||
'patch_icpp(1)%pres' : 1., | ||
# ========================================================================== | ||
|
||
# Fluids Physical Parameters =============================================== | ||
'fluid_pp(1)%gamma' : 1.E+00/(gam-1.E+00), | ||
'fluid_pp(1)%pi_inf' : 0., | ||
# ========================================================================= | ||
})) | ||
|
||
# ============================================================================== |
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
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
Oops, something went wrong.