|
1 | 1 | #!/usr/bin/env python3 |
2 | 2 | import json |
3 | 3 | import math |
| 4 | +Lx = 0.04347 |
| 5 | +Ly = 0.01466+3.048/1000 |
| 6 | +Cav_Lx = 43.47/1000-21.99/1000-14.19/1000 |
| 7 | +Cav_Ly = 3.048/1000 |
| 8 | +Cav_CenterX = (Lx - 21.99/1000-14.15/1000)/2 |
| 9 | +Cav_CenterY = 3.048/2000 |
| 10 | +Cav_Center2X = 2*Cav_CenterX+14.15/1000+21.99/2000 |
4 | 11 |
|
5 | 12 | # Configuring case dictionary |
6 | 13 | print( |
|
10 | 17 | "run_time_info": "T", |
11 | 18 | # Computational Domain Parameters |
12 | 19 | "x_domain%beg": 0.0, |
13 | | - "x_domain%end": 1.0, |
| 20 | + "x_domain%end": 0.04347, |
14 | 21 | "y_domain%beg": 0.0, |
15 | | - "y_domain%end": 1.0, |
| 22 | + "y_domain%end": Ly, |
16 | 23 | "m": 499, |
17 | 24 | "n": 499, |
18 | 25 | "p": 0, |
19 | | - "dt": 8e-05, |
| 26 | + "dt": 8.0e-08, |
20 | 27 | "t_step_start": 0, |
21 | | - "t_step_stop": 10000, |
22 | | - "t_step_save": 100, |
| 28 | + "t_step_stop": 2000, |
| 29 | + "t_step_save": 50, |
23 | 30 | # Simulation Algorithm Parameters |
24 | | - "num_patches": 4, |
| 31 | + "num_patches": 1, |
25 | 32 | "model_eqns": 2, |
26 | 33 | "alt_soundspeed": "F", |
27 | 34 | "num_fluids": 1, |
|
37 | 44 | "riemann_solver": 2, |
38 | 45 | "wave_speeds": 1, |
39 | 46 | "avg_state": 2, |
40 | | - "bc_x%beg": -3, |
41 | | - "bc_x%end": -3, |
42 | | - "bc_y%beg": -3, |
43 | | - "bc_y%end": -3, |
| 47 | + "bc_x%beg": -7, |
| 48 | + "bc_x%end": -8, |
| 49 | + "bc_y%beg": -16, |
| 50 | + "bc_y%end": -16, |
44 | 51 | # Formatted Database Files Structure Parameters |
45 | 52 | "format": 1, |
46 | 53 | "precision": 2, |
47 | 54 | "prim_vars_wrt": "T", |
48 | 55 | "parallel_io": "T", |
| 56 | + "ib": "T", |
| 57 | + "num_ibs": 2, |
49 | 58 | # Patch 1: Base |
50 | 59 | "patch_icpp(1)%geometry": 3, |
51 | | - "patch_icpp(1)%x_centroid": 0.4, |
52 | | - "patch_icpp(1)%y_centroid": 0.4, |
53 | | - "patch_icpp(1)%length_x": 0.8, |
54 | | - "patch_icpp(1)%length_y": 0.8, |
55 | | - "patch_icpp(1)%vel(1)": 4 / math.sqrt(11), |
56 | | - "patch_icpp(1)%vel(2)": 4 / math.sqrt(11), |
57 | | - "patch_icpp(1)%pres": 9 / 310, |
58 | | - "patch_icpp(1)%alpha_rho(1)": 77 / 558, |
| 60 | + "patch_icpp(1)%hcid": 291, |
| 61 | + "patch_icpp(1)%x_centroid": Lx/2, |
| 62 | + "patch_icpp(1)%y_centroid": Ly/2, |
| 63 | + "patch_icpp(1)%length_x": Lx, |
| 64 | + "patch_icpp(1)%length_y": Ly, |
| 65 | + "patch_icpp(1)%vel(1)": 0, |
| 66 | + "patch_icpp(1)%vel(2)": 0, |
| 67 | + "patch_icpp(1)%pres": 101325, |
| 68 | + "patch_icpp(1)%alpha_rho(1)": 1.00, |
59 | 69 | "patch_icpp(1)%alpha(1)": 1, |
60 | | - # Patch 1: Base |
61 | | - "patch_icpp(2)%geometry": 3, |
62 | | - "patch_icpp(2)%x_centroid": 0.4, |
63 | | - "patch_icpp(2)%y_centroid": 0.9, |
64 | | - "patch_icpp(2)%length_x": 0.8, |
65 | | - "patch_icpp(2)%length_y": 0.2, |
66 | | - "patch_icpp(2)%vel(1)": 4 / math.sqrt(11), |
67 | | - "patch_icpp(2)%vel(2)": 0, |
68 | | - "patch_icpp(2)%pres": 0.3, |
69 | | - "patch_icpp(2)%alpha_rho(1)": 33 / 62, |
70 | | - "patch_icpp(2)%alpha(1)": 1, |
71 | | - # Patch 1: Base |
72 | | - "patch_icpp(3)%geometry": 3, |
73 | | - "patch_icpp(3)%x_centroid": 0.9, |
74 | | - "patch_icpp(3)%y_centroid": 0.4, |
75 | | - "patch_icpp(3)%length_x": 0.2, |
76 | | - "patch_icpp(3)%length_y": 0.8, |
77 | | - "patch_icpp(3)%vel(1)": 0, |
78 | | - "patch_icpp(3)%vel(2)": 4 / math.sqrt(11), |
79 | | - "patch_icpp(3)%pres": 0.3, |
80 | | - "patch_icpp(3)%alpha_rho(1)": 33 / 62, |
81 | | - "patch_icpp(3)%alpha(1)": 1, |
82 | | - # Patch 1: Base |
83 | | - "patch_icpp(4)%geometry": 3, |
84 | | - "patch_icpp(4)%x_centroid": 0.9, |
85 | | - "patch_icpp(4)%y_centroid": 0.9, |
86 | | - "patch_icpp(4)%length_x": 0.2, |
87 | | - "patch_icpp(4)%length_y": 0.2, |
88 | | - "patch_icpp(4)%vel(1)": 0, |
89 | | - "patch_icpp(4)%vel(2)": 0, |
90 | | - "patch_icpp(4)%pres": 1.5, |
91 | | - "patch_icpp(4)%alpha_rho(1)": 1.5, |
92 | | - "patch_icpp(4)%alpha(1)": 1.0, |
| 70 | + # Patch 1: IBM |
| 71 | + "patch_ib(1)%geometry": 3, |
| 72 | + "patch_ib(1)%x_centroid": 0, |
| 73 | + "patch_ib(1)%y_centroid": 0, |
| 74 | + "patch_ib(1)%length_x": 2*Cav_Lx, |
| 75 | + "patch_ib(1)%length_y": 2*Cav_Ly, |
| 76 | + "patch_ib(1)%slip": "F", |
| 77 | + # Patch 2: IBM |
| 78 | + "patch_ib(2)%geometry": 3, |
| 79 | + "patch_ib(2)%x_centroid": Lx, |
| 80 | + "patch_ib(2)%y_centroid": 0, |
| 81 | + "patch_ib(2)%length_x": 2*21.99/1000, |
| 82 | + "patch_ib(2)%length_y": 2*Cav_Ly, |
| 83 | + "patch_ib(2)%slip": "F", |
93 | 84 | # Fluids Physical Parameters |
94 | 85 | "fluid_pp(1)%gamma": 1.0e00 / (1.4e00 - 1.0e00), |
95 | 86 | "fluid_pp(1)%pi_inf": 0.0e00, |
| 87 | + "viscous": "T", |
| 88 | + "fluid_pp(1)%Re(1)": 100000, |
96 | 89 | } |
97 | 90 | ) |
98 | 91 | ) |
0 commit comments