-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: wilfonba <bwilfong3@gatech.edu> Co-authored-by: Benjamin Wilfong <bwilfong@dt-login01.delta.ncsa.illinois.edu> Co-authored-by: Henry LE BERRE <hberre3@gatech.edu>
- Loading branch information
1 parent
33984ea
commit 5b818eb
Showing
35 changed files
with
2,280 additions
and
334 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,144 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# This case file demonstrates the Laplace pressure jump of a water droplet in air. The laplace pressure jump | ||
# in 2D is given by delta = sigma / r where delta is the pressure jump, sigma is the surface tension coefficient, | ||
# and r is the radius of the droplet. The results of this simulation agree with theory to well within 1% | ||
# relative error. | ||
|
||
import math | ||
import json | ||
|
||
l = 0.375 | ||
|
||
# Numerical setup | ||
r0 = 0.15 | ||
x0 = 0 | ||
x1 = l | ||
y0 = 0 | ||
y1 = l | ||
|
||
Nx = 49 | ||
Ny = 49 | ||
|
||
eps = 1e-9 | ||
|
||
mydt = 5e-6 | ||
|
||
#Configuration case dictionary | ||
data = { | ||
# Logistics ============================= | ||
#'case_dir' : '\'.\'', | ||
'run_time_info' : 'T', | ||
# ======================================= | ||
|
||
# Computational Domain ================== | ||
'x_domain%beg' : x0, | ||
'x_domain%end' : x1, | ||
'y_domain%beg' : y0, | ||
'y_domain%end' : y1, | ||
'm' : Nx, | ||
'n' : Ny, | ||
'p' : 0, | ||
'cyl_coord' : 'F', | ||
'dt' : mydt, | ||
't_step_start' : 0, | ||
't_step_stop' : 100000, | ||
't_step_save' : 1000, | ||
#'t_step_stop' : 100, | ||
#'t_step_save' : 100, | ||
# ======================================= | ||
|
||
# Simulation Algorithm ================== | ||
'model_eqns' : 3, | ||
'alt_soundspeed' : 'F', | ||
'adv_alphan' : 'T', | ||
'mixture_err' : 'T', | ||
'mpp_lim' : 'F', | ||
'time_stepper' : 3, | ||
#'recon_type' : 1, | ||
#'muscl_order' : 2, | ||
#'muscl_lim' : 2, | ||
'weno_order' : 5, | ||
'avg_state' : 2, | ||
'weno_eps' : 1e-16, | ||
'mapped_weno' : 'T', | ||
'null_weights' : 'F', | ||
'mp_weno' : 'T', | ||
'weno_Re_flux' : 'F', | ||
'riemann_solver' : 2, | ||
'wave_speeds' : 1, | ||
'bc_x%beg' : -2, | ||
'bc_x%end' : -3, | ||
'bc_y%beg' : -2, | ||
'bc_y%end' : -3, | ||
'num_patches' : 2, | ||
'num_fluids' : 2, | ||
'weno_avg' : 'T', | ||
# ======================================= | ||
|
||
# Database Structure Parameters ========= | ||
'format' : 1, | ||
'precision' : 2, | ||
'prim_vars_wrt' : 'T', | ||
'cons_vars_wrt' : 'T', | ||
'cf_wrt' : 'T', | ||
'parallel_io' : 'T', | ||
# ======================================= | ||
|
||
'sigma' : 8, | ||
#'flux_lim' : 2, | ||
#'flux_wrt(1)' : 'T', | ||
#'flux_wrt(2)' : 'T', | ||
#'cf_grad_wrt' : 'T', | ||
|
||
# Fluid Parameters (Water) ============== | ||
'fluid_pp(1)%gamma' : 1.E+00/(2.1E+00-1.E+00), | ||
'fluid_pp(1)%pi_inf' : 2.1E+00*1.E+06/(2.1E+00-1.E+00), | ||
#'fluid_pp(1)%Re(1)' : 1.e3, | ||
# ======================================= | ||
|
||
# Fluid Parameters (Gas) ================ | ||
'fluid_pp(2)%gamma' : 1.E+00/(1.4E+00-1.E+00), | ||
'fluid_pp(2)%pi_inf' : 0.E+00, | ||
#'fluid_pp(2)%Re(1)' : 1.81e5, | ||
# ======================================= | ||
|
||
# Air Patch ========================== | ||
'patch_icpp(1)%geometry' : 3, | ||
'patch_icpp(1)%x_centroid' : 0, | ||
'patch_icpp(1)%y_centroid' : 0, | ||
'patch_icpp(1)%length_x' : 2, | ||
'patch_icpp(1)%length_y' : 2, | ||
'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' : 100000, | ||
'patch_icpp(1)%alpha_rho(1)': eps*1000, | ||
'patch_icpp(1)%alpha_rho(2)': (1-eps)*1, | ||
'patch_icpp(1)%alpha(1)' : eps, | ||
'patch_icpp(1)%alpha(2)' : 1-eps, | ||
'patch_icpp(1)%cf_val' : 0, | ||
# ====================================== | ||
|
||
# Water Patch ======================== | ||
'patch_icpp(2)%alter_patch(1)' : 'T', | ||
'patch_icpp(2)%smoothen' : 'T', | ||
'patch_icpp(2)%smooth_patch_id': 1, | ||
'patch_icpp(2)%smooth_coeff': 0.95, | ||
'patch_icpp(2)%geometry' : 2, | ||
'patch_icpp(2)%x_centroid' : 0, | ||
'patch_icpp(2)%y_centroid' : 0, | ||
'patch_icpp(2)%radius' : r0, | ||
'patch_icpp(2)%vel(1)' : 0., | ||
'patch_icpp(2)%vel(2)' : 0., | ||
'patch_icpp(2)%pres' : 100000, | ||
'patch_icpp(2)%alpha_rho(1)': (1-eps)*1000, | ||
'patch_icpp(2)%alpha_rho(2)': eps*1, | ||
'patch_icpp(2)%alpha(1)' : (1-eps), | ||
'patch_icpp(2)%alpha(2)' : eps, | ||
'patch_icpp(2)%cf_val' : 1, | ||
# ====================================== | ||
|
||
} | ||
|
||
print(json.dumps(data)) |
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,146 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# This simulation shows the early stages of a cubic droplet recovering a spherical shape due to capillary | ||
# forces. While the relaxation is not complete, it demonstrates the expecteed symmetric behavior. | ||
|
||
import math | ||
import json | ||
|
||
l = 0.375 | ||
|
||
# Numerical setup | ||
r0 = 0.15 | ||
x0 = 0 | ||
x1 = l | ||
y0 = 0 | ||
y1 = l | ||
z0 = 0 | ||
z1 = l | ||
|
||
|
||
Nx = 199 | ||
Ny = 199 | ||
Nz = 199 | ||
|
||
eps = 1e-9 | ||
|
||
mydt = 1e-6 | ||
|
||
#Configuration case dictionary | ||
data = { | ||
# Logistics ============================= | ||
#'case_dir' : '\'.\'', | ||
'run_time_info' : 'T', | ||
# ======================================= | ||
|
||
# Computational Domain ================== | ||
'x_domain%beg' : x0, | ||
'x_domain%end' : x1, | ||
'y_domain%beg' : y0, | ||
'y_domain%end' : y1, | ||
'z_domain%beg' : z0, | ||
'z_domain%end' : z1, | ||
'm' : Nx, | ||
'n' : Ny, | ||
'p' : Nz, | ||
'cyl_coord' : 'F', | ||
'dt' : mydt, | ||
't_step_start' : 400000, | ||
't_step_stop' : 1000000, | ||
't_step_save' : 2000, | ||
#'t_step_stop' : 100, | ||
#'t_step_save' : 100, | ||
# ======================================= | ||
|
||
# Simulation Algorithm ================== | ||
'model_eqns' : 3, | ||
'alt_soundspeed' : 'F', | ||
'adv_alphan' : 'T', | ||
'mixture_err' : 'T', | ||
'mpp_lim' : 'F', | ||
'time_stepper' : 3, | ||
'weno_order' : 3, | ||
'avg_state' : 2, | ||
'weno_eps' : 1e-16, | ||
'mapped_weno' : 'T', | ||
'null_weights' : 'F', | ||
'mp_weno' : 'F', | ||
'weno_Re_flux' : 'F', | ||
'riemann_solver' : 2, | ||
'wave_speeds' : 1, | ||
'bc_x%beg' : -2, | ||
'bc_x%end' : -3, | ||
'bc_y%beg' : -2, | ||
'bc_y%end' : -3, | ||
'bc_z%beg' : -2, | ||
'bc_z%end' : -3, | ||
'num_patches' : 2, | ||
'num_fluids' : 2, | ||
'weno_avg' : 'T', | ||
# ======================================= | ||
|
||
# Database Structure Parameters ========= | ||
'format' : 1, | ||
'precision' : 2, | ||
'alpha_wrt(1)' : 'T', | ||
# 'prim_vars_wrt' : 'T', | ||
'cf_wrt' : 'T', | ||
'parallel_io' : 'T', | ||
# ======================================= | ||
|
||
'sigma' : 8.0, | ||
|
||
# Fluid Parameters (Water) ============== | ||
'fluid_pp(1)%gamma' : 1.E+00/(2.1E+00-1.E+00), | ||
'fluid_pp(1)%pi_inf' : 2.1E+00*1.E+06/(2.1E+00-1.E+00), | ||
#'fluid_pp(1)%Re(1)' : 1.e3, | ||
# ======================================= | ||
|
||
# Fluid Parameters (Gas) ================ | ||
'fluid_pp(2)%gamma' : 1.E+00/(1.4E+00-1.E+00), | ||
'fluid_pp(2)%pi_inf' : 0.E+00, | ||
#'fluid_pp(2)%Re(1)' : 1.81e5, | ||
# ======================================= | ||
|
||
# Air Patch ========================== | ||
'patch_icpp(1)%geometry' : 9, | ||
'patch_icpp(1)%x_centroid' : 0, | ||
'patch_icpp(1)%y_centroid' : 0, | ||
'patch_icpp(1)%z_centroid' : 0, | ||
'patch_icpp(1)%length_x' : 2, | ||
'patch_icpp(1)%length_y' : 2, | ||
'patch_icpp(1)%length_z' : 2, | ||
'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' : 100000, | ||
'patch_icpp(1)%alpha_rho(1)': eps*1000, | ||
'patch_icpp(1)%alpha_rho(2)': (1-eps)*1, | ||
'patch_icpp(1)%alpha(1)' : eps, | ||
'patch_icpp(1)%alpha(2)' : 1-eps, | ||
'patch_icpp(1)%cf_val' : 0, | ||
# ====================================== | ||
|
||
# Water Patch ======================== | ||
'patch_icpp(2)%alter_patch(1)' : 'T', | ||
'patch_icpp(2)%geometry' : 9, | ||
'patch_icpp(2)%x_centroid' : 0, | ||
'patch_icpp(2)%y_centroid' : 0, | ||
'patch_icpp(2)%z_centroid' : 0, | ||
'patch_icpp(2)%length_x' : r0, | ||
'patch_icpp(2)%length_y' : r0, | ||
'patch_icpp(2)%length_z' : r0, | ||
'patch_icpp(2)%vel(1)' : 0., | ||
'patch_icpp(2)%vel(2)' : 0., | ||
'patch_icpp(2)%vel(3)' : 0., | ||
'patch_icpp(2)%pres' : 100000, | ||
'patch_icpp(2)%alpha_rho(1)': (1-eps)*1000, | ||
'patch_icpp(2)%alpha_rho(2)': eps*1, | ||
'patch_icpp(2)%alpha(1)' : (1-eps), | ||
'patch_icpp(2)%alpha(2)' : eps, | ||
'patch_icpp(2)%cf_val' : 1, | ||
# ====================================== | ||
|
||
} | ||
|
||
print(json.dumps(data)) |
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.