-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Velocity BCs in all coordinate directions, new example cases, nonpoly…
…tropic bc refactor (#279) Co-authored-by: Ben Wilfong <bwilfong3@gatech.edu> Co-authored-by: Spencer Bryngelson <sbryngelson@gmail.com>
- Loading branch information
1 parent
695a305
commit 0ffd93e
Showing
28 changed files
with
1,278 additions
and
689 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Lid-Driven Cavity Problem (2D) | ||
|
||
Reference: Bezgin, D. A., & Buhendwa A. B., & Adams N. A. (2022). JAX-FLUIDS: A fully-differentiable high-order computational fluid dynamics solver for compressible two-phase flows. arXiv:2203.13760 | ||
|
||
Reference: Ghia, U., & Ghia, K. N., & Shin, C. T. (1982). High-re solutions for incompressible flow | ||
using the Navier-Stokes equations and a multigrid method. Journal of Computational Physics, 48, 387-411 | ||
|
||
Video: https://youtube.com/shorts/JEP28scZrBM?feature=share | ||
|
||
## Final Condition | ||
|
||
![Final Condition](final_condition.png) | ||
|
||
## Centerline Velocities | ||
|
||
![Centerline Velocities](centerline_velocities.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,83 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import json | ||
eps = 1e-6 | ||
# 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' : 999, | ||
'n' : 999, | ||
'p' : 0, | ||
'dt' : 1.25E-04, | ||
't_step_start' : 0, | ||
't_step_stop' : 1600000, | ||
't_step_save' : 8000, | ||
# ========================================================== | ||
|
||
# Simulation Algorithm Parameters ========================== | ||
'num_patches' : 1, | ||
'model_eqns' : 2, | ||
'alt_soundspeed' : 'F', | ||
'num_fluids' : 2, | ||
'adv_alphan' : 'T', | ||
'mpp_lim' : 'F', | ||
'mixture_err' : 'T', | ||
'time_stepper' : 3, | ||
'weno_order' : 5, | ||
'weno_eps' : 1e-16, | ||
'mapped_weno' : 'T', | ||
'weno_Re_flux' : 'T', | ||
'mp_weno' : 'T', | ||
'weno_avg' : 'T', | ||
'riemann_solver' : 2, | ||
'wave_speeds' : 1, | ||
'avg_state' : 2, | ||
'bc_x%beg' : -16, | ||
'bc_x%end' : -16, | ||
'bc_y%beg' : -16, | ||
'bc_y%end' : -16, | ||
'bc_y%ve1' : 0.5, | ||
# ========================================================== | ||
|
||
# Formatted Database Files Structure Parameters ============ | ||
'format' : 1, | ||
'precision' : 2, | ||
'prim_vars_wrt' :'T', | ||
'omega_wrt(3)' :'T', | ||
'fd_order' : 4, | ||
'parallel_io' :'T', | ||
# ========================================================== | ||
|
||
# Patch 1: Base ============================================ | ||
'patch_icpp(1)%geometry' : 3, | ||
'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)%vel(1)' : 0, | ||
'patch_icpp(1)%vel(2)' : 0., | ||
'patch_icpp(1)%pres' : 5, | ||
'patch_icpp(1)%alpha_rho(1)' : 0.5, | ||
'patch_icpp(1)%alpha(1)' : 0.5, | ||
'patch_icpp(1)%alpha_rho(2)' : 0.5, | ||
'patch_icpp(1)%alpha(2)' : 0.5, | ||
# ========================================================== | ||
|
||
# Fluids Physical Parameters =============================== | ||
'fluid_pp(1)%gamma' : 1./(1.4-1.), | ||
'fluid_pp(1)%pi_inf' : 0., | ||
'fluid_pp(1)%Re(1)' : 1e4, | ||
'fluid_pp(2)%gamma' : 1./(1.4-1.), | ||
'fluid_pp(2)%pi_inf' : 0., | ||
'fluid_pp(2)%Re(1)' : 1e4, | ||
# ========================================================== | ||
})) | ||
# ============================================================================== |
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 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.