-
Notifications
You must be signed in to change notification settings - Fork 125
Three new examples cases #1060
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
Three new examples cases #1060
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
831cbdc
Add 3 new examples. (2D_kelvin_helmholtz, 2D_richtmyer_meshkov, 2D_vi…
22e3756
Remove initial conditions in README's from previous commit
6f6e3d3
Fix formatting issues.
d66c7ef
Fix minor precision mismatch
1d9d0ec
Merge branch 'master' into threeNewExamples
anandrdbz 53b3ae9
Run ./mfc.sh format
384d0b1
Use WENO3 instead of WENO5
ee67776
Add golden files
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
Some comments aren't visible on the classic Files Changed page.
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,10 @@ | ||
| # Kelvin-Helmholtz Instability (2D) | ||
|
|
||
| Reference: See Example 4.8. | ||
| > A.S. Chamarthi, S.H. Frankel, A. Chintagunta, Implicit gradients based novel finite volume scheme for compressible single and multi-component flows, arXiv preprint arXiv:2106.01738 (2021). | ||
| ### Initial State | ||
| <img src="figure0.png" height="MAX_HEIGHT"/> | ||
|
|
||
| ### Evolved State | ||
| <img src="figure1.png" height="MAX_HEIGHT"/> | ||
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,90 @@ | ||
| #!/usr/bin/env python3 | ||
| import json | ||
| import math | ||
|
|
||
anandrdbz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| eps = 1e-6 | ||
| time_end = 1.0 | ||
| time_save = time_end / 100.0 | ||
|
|
||
| # 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, | ||
| "cfl_adap_dt": "T", | ||
| "cfl_target": 0.2, | ||
| "n_start": 0, | ||
| "t_stop": time_end, | ||
| "t_save": time_save, | ||
| # Simulation Algorithm Parameters | ||
| "num_patches": 2, | ||
| "model_eqns": 2, | ||
| "alt_soundspeed": "F", | ||
| "num_fluids": 2, | ||
| "mpp_lim": "T", | ||
| "mixture_err": "T", | ||
| "time_stepper": 3, | ||
| "weno_order": 5, | ||
| "weno_eps": 1.0e-10, | ||
| "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", | ||
| "parallel_io": "T", | ||
| # Background | ||
| "patch_icpp(1)%geometry": 3, | ||
| "patch_icpp(1)%hcid": 207, | ||
| "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.5, | ||
| "patch_icpp(1)%vel(2)": 0.0, | ||
| "patch_icpp(1)%pres": 2.5, | ||
| "patch_icpp(1)%alpha_rho(1)": 1.0 - eps, | ||
| "patch_icpp(1)%alpha(1)": 1.0 - eps, | ||
| "patch_icpp(1)%alpha_rho(2)": eps, | ||
| "patch_icpp(1)%alpha(2)": eps, | ||
| # Center Strip (0.25 < y <= 0.75) | ||
| "patch_icpp(2)%geometry": 3, | ||
| "patch_icpp(2)%alter_patch(1)": "T", | ||
| "patch_icpp(2)%hcid": 207, | ||
| "patch_icpp(2)%x_centroid": 0.5, | ||
| "patch_icpp(2)%y_centroid": 0.5, | ||
| "patch_icpp(2)%length_x": 1.0, | ||
| "patch_icpp(2)%length_y": 0.5, | ||
| "patch_icpp(2)%vel(1)": 0.5, | ||
| "patch_icpp(2)%vel(2)": 0.0, | ||
| "patch_icpp(2)%pres": 2.5, | ||
| "patch_icpp(2)%alpha_rho(1)": 2.0 * eps, | ||
| "patch_icpp(2)%alpha(1)": eps, | ||
| "patch_icpp(2)%alpha_rho(2)": 2.0 * (1.0 - eps), | ||
| "patch_icpp(2)%alpha(2)": 1.0 - eps, | ||
| # Fluids Physical Parameters | ||
| "fluid_pp(1)%gamma": 1.0e00 / (5.0 / 3.0 - 1.0e00), | ||
| "fluid_pp(1)%pi_inf": 0.0e00, | ||
| "fluid_pp(2)%gamma": 1.0e00 / (5.0 / 3.0 - 1.0e00), | ||
| "fluid_pp(2)%pi_inf": 0.0e00, | ||
| } | ||
| ) | ||
| ) | ||
|
|
||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,10 @@ | ||
| # Richtmyer-Meshkov Instability (2D) | ||
|
|
||
| Reference: See Example 4.18. | ||
| > A.S. Chamarthi, S.H. Frankel, A. Chintagunta, Implicit gradients based novel finite volume scheme for compressible single and multi-component flows, arXiv preprint arXiv:2106.01738 (2021). | ||
| ### Initial State | ||
| <img src="figure0.png" height="MAX_HEIGHT"/> | ||
|
|
||
| ### Evolved State | ||
| <img src="figure1.png" height="MAX_HEIGHT"/> | ||
anandrdbz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
wilfonba marked this conversation as resolved.
Show resolved
Hide resolved
|
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,99 @@ | ||
| #!/usr/bin/env python3 | ||
| import json | ||
| import math | ||
|
|
||
sbryngelson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| mu = 1.0e-4 | ||
| lambd = 1.0 | ||
| time_end = 15.0 | ||
| time_save = time_end / 20.0 | ||
| eps = 1.0e-6 | ||
|
|
||
| # Configuring case dictionary | ||
| print( | ||
| json.dumps( | ||
| { | ||
| # Logistics | ||
| "run_time_info": "T", | ||
| # Computational Domain Parameters | ||
| "x_domain%beg": 0, | ||
| "x_domain%end": 16.0 * lambd, | ||
| "y_domain%beg": 0, | ||
| "y_domain%end": lambd, | ||
| "m": 4096, | ||
| "n": 256, | ||
| "p": 0, | ||
| "cfl_adap_dt": "T", | ||
| "cfl_target": 0.1, | ||
| "n_start": 0, | ||
| "t_stop": time_end, | ||
| "t_save": time_save, | ||
| # Simulation Algorithm Parameters | ||
| "num_patches": 2, | ||
| "model_eqns": 2, | ||
| "alt_soundspeed": "F", | ||
| "num_fluids": 2, | ||
| "mpp_lim": "T", | ||
| "mixture_err": "T", | ||
| "recon_type": 1, | ||
| "time_stepper": 3, | ||
| "weno_order": 5, | ||
| "weno_eps": 1.0e-9, | ||
| "null_weights": "F", | ||
| "mapped_weno": "T", | ||
| "mp_weno": "T", | ||
| "riemann_solver": 2, | ||
| "wave_speeds": 1, | ||
| "avg_state": 2, | ||
| "bc_x%beg": -17, | ||
| "bc_x%end": -17, | ||
| "bc_y%beg": -15, | ||
| "bc_y%end": -15, | ||
| # Formatted Database Files Structure Parameters | ||
| "format": 1, | ||
| "precision": 2, | ||
| "prim_vars_wrt": "T", | ||
| "parallel_io": "T", | ||
| # Fluid #1 = Heavier Fluid | ||
| # Fluid #2 = Lighter Fluid | ||
| # Pre Shock | ||
| "patch_icpp(1)%geometry": 3, | ||
| "patch_icpp(1)%hcid": 208, | ||
| "patch_icpp(1)%x_centroid": 0.5 * 0.7 * lambd, | ||
| "patch_icpp(1)%y_centroid": 0.5 * lambd, | ||
| "patch_icpp(1)%length_x": 0.7 * lambd, | ||
| "patch_icpp(1)%length_y": lambd, | ||
| "patch_icpp(1)%vel(1)": 1.24, | ||
| "patch_icpp(1)%vel(2)": 0.0, | ||
| "patch_icpp(1)%pres": 1.0 / 1.4, | ||
| "patch_icpp(1)%alpha_rho(1)": 1.0 * eps, | ||
| "patch_icpp(1)%alpha(1)": eps, | ||
| "patch_icpp(1)%alpha_rho(2)": 1.0 * (1.0 - eps), | ||
| "patch_icpp(1)%alpha(2)": (1.0 - eps), | ||
| # Post Shock | ||
| "patch_icpp(2)%geometry": 3, | ||
| "patch_icpp(2)%hcid": 208, | ||
| "patch_icpp(2)%x_centroid": 0.7 * lambd + 0.5 * 15.3 * lambd, | ||
| "patch_icpp(2)%y_centroid": 0.5 * lambd, | ||
| "patch_icpp(2)%length_x": 15.3 * lambd, | ||
| "patch_icpp(2)%length_y": lambd, | ||
| "patch_icpp(2)%vel(1)": 0.8787, | ||
| "patch_icpp(2)%vel(2)": 0.0, | ||
| "patch_icpp(2)%pres": 1.6272 / 1.4, | ||
| "patch_icpp(2)%alpha_rho(1)": 1.4112 * eps, | ||
| "patch_icpp(2)%alpha(1)": eps, | ||
| "patch_icpp(2)%alpha_rho(2)": 1.4112 * (1.0 - eps), | ||
| "patch_icpp(2)%alpha(2)": (1.0 - eps), | ||
| # Fluids Physical Parameters | ||
| "fluid_pp(1)%gamma": 1.0e00 / (1.093 - 1.0e00), | ||
| "fluid_pp(1)%pi_inf": 0.0e00, | ||
| "fluid_pp(2)%gamma": 1.0e00 / (1.4 - 1.0e00), | ||
| "fluid_pp(2)%pi_inf": 0.0e00, | ||
| "viscous": "T", | ||
| "fluid_pp(1)%Re(1)": 1 / mu, | ||
| "fluid_pp(2)%Re(1)": 1 / mu, | ||
|
|
||
| } | ||
| ) | ||
| ) | ||
|
|
||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,10 @@ | ||
| # Viscous Shock Tube (2D) | ||
|
|
||
| Reference: See Example 4.13. | ||
| > A.S. Chamarthi, S.H. Frankel, A. Chintagunta, Implicit gradients based novel finite volume scheme for compressible single and multi-component flows, arXiv preprint arXiv:2106.01738 (2021)., see Example 4.13 | ||
| ### Initial State | ||
| <img src="figure0.png" height="MAX_HEIGHT"/> | ||
|
|
||
| ### Evolved State | ||
| <img src="figure1.png" height="MAX_HEIGHT"/> | ||
anandrdbz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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,92 @@ | ||
| #!/usr/bin/env python3 | ||
| import json | ||
| import math | ||
|
|
||
anandrdbz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| mu = 1.0e-3 | ||
| time_end = 1.2 | ||
| time_save = time_end / 100.0 | ||
| eps = 1.0e-6 | ||
|
|
||
| # 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": 0.5, | ||
| "m": 1280, | ||
| "n": 640, | ||
| "p": 0, | ||
| "cfl_adap_dt": "T", | ||
| "cfl_target": 0.1, | ||
| "n_start": 0, | ||
| "t_stop": time_end, | ||
| "t_save": time_save, | ||
| # Simulation Algorithm Parameters | ||
| "num_patches": 2, | ||
| "model_eqns": 2, | ||
| "alt_soundspeed": "F", | ||
| "num_fluids": 2, | ||
| "mpp_lim": "T", | ||
| "mixture_err": "T", | ||
| "time_stepper": 3, | ||
| "weno_order": 5, | ||
| "weno_eps": 1.0e-10, | ||
| "null_weights": "F", | ||
| "mapped_weno": "T", | ||
| "mp_weno": "T", | ||
| "riemann_solver": 1, | ||
| "wave_speeds": 1, | ||
| "avg_state": 2, | ||
| "bc_x%beg": -8, | ||
| "bc_x%end": -15, | ||
| "bc_y%beg": -16, | ||
| "bc_y%end": -15, | ||
| # Formatted Database Files Structure Parameters | ||
| "format": 1, | ||
| "precision": 2, | ||
| "prim_vars_wrt": "T", | ||
| "parallel_io": "T", | ||
| # Left | ||
| "patch_icpp(1)%geometry": 3, | ||
| "patch_icpp(1)%x_centroid": 0.5 * 0.5, | ||
| "patch_icpp(1)%y_centroid": 0.5 * 0.5, | ||
| "patch_icpp(1)%length_x": 0.5, | ||
| "patch_icpp(1)%length_y": 0.5, | ||
| "patch_icpp(1)%vel(1)": 0.0, | ||
| "patch_icpp(1)%vel(2)": 0.0, | ||
| "patch_icpp(1)%pres": 120.0 / (7.0 / 5.0), | ||
| "patch_icpp(1)%alpha_rho(1)": 120.0 * (1 - eps), | ||
| "patch_icpp(1)%alpha(1)": 1.0 * (1 - eps), | ||
| "patch_icpp(1)%alpha_rho(2)": 120.0 * eps, | ||
wilfonba marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "patch_icpp(1)%alpha(2)": 1.0 * eps, | ||
| # Right | ||
| "patch_icpp(2)%geometry": 3, | ||
| "patch_icpp(2)%x_centroid": 0.5 + 0.5 * 0.5, | ||
| "patch_icpp(2)%y_centroid": 0.5 * 0.5, | ||
| "patch_icpp(2)%length_x": 0.5, | ||
| "patch_icpp(2)%length_y": 0.5, | ||
| "patch_icpp(2)%vel(1)": 0.0, | ||
| "patch_icpp(2)%vel(2)": 0.0, | ||
| "patch_icpp(2)%pres": 1.2 / (7.0 / 5.0), | ||
| "patch_icpp(2)%alpha_rho(1)": 1.2 * eps, | ||
wilfonba marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "patch_icpp(2)%alpha(1)": 1.0 * eps, | ||
| "patch_icpp(2)%alpha_rho(2)": 1.2 * (1 - eps), | ||
| "patch_icpp(2)%alpha(2)": 1.0 * (1 - eps), | ||
| # Fluids Physical Parameters | ||
| "viscous": "T", | ||
| "fluid_pp(1)%gamma": 1.0e00 / ((7.0 / 5.0) - 1.0e00), | ||
| "fluid_pp(1)%Re(1)": 1 / mu, | ||
| "fluid_pp(1)%pi_inf": 0.0, | ||
| "fluid_pp(2)%gamma": 1.0e00 / ((7.0 / 5.0) - 1.0e00), | ||
| "fluid_pp(2)%Re(1)": 1 / mu, | ||
| "fluid_pp(2)%pi_inf": 0.0, | ||
| } | ||
| ) | ||
| ) | ||
|
|
||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Uh oh!
There was an error while loading. Please reload this page.