|
2 | 2 | import json |
3 | 3 |
|
4 | 4 | # 3D hypoelastic case with HLLD solver. |
5 | | -# Solid sphere in liquid hit by focused acoustic pulse. |
| 5 | +# Epoxy sphere in water hit by focused acoustic pulse. |
| 6 | +# Water: gamma=4.4, pi_inf=6.0e8, G=0 |
| 7 | +# Epoxy: gamma=4.4, pi_inf=2.4e9, rho=1180, G=1.5e9 |
| 8 | + |
| 9 | +gamma_w, pi_inf_w, rho_w = 4.4, 6.0e8, 1000.0 |
| 10 | +gamma_e, pi_inf_e, rho_e = 4.4, 2.4e9, 1180.0 |
6 | 11 |
|
7 | 12 | config = { |
8 | 13 | "run_time_info": "T", |
|
13 | 18 | "y_domain%end": 1.0, |
14 | 19 | "z_domain%beg": 0.0, |
15 | 20 | "z_domain%end": 1.0, |
16 | | - "m": 24, |
17 | | - "n": 24, |
18 | | - "p": 24, |
| 21 | + "m": 49, |
| 22 | + "n": 49, |
| 23 | + "p": 49, |
19 | 24 | "cyl_coord": "F", |
20 | | - "dt": 6.0e-6, |
| 25 | + "dt": 3.0e-6, |
21 | 26 | "t_step_start": 0, |
22 | | - "t_step_stop": 150, |
| 27 | + "t_step_stop": 200, |
23 | 28 | "t_step_save": 50, |
24 | | - # Simulation Algorithm Parameters |
| 29 | + # Simulation Algorithm |
25 | 30 | "num_patches": 2, |
26 | 31 | "model_eqns": 2, |
27 | 32 | "alt_soundspeed": "F", |
28 | 33 | "num_fluids": 2, |
29 | | - "mpp_lim": "T", |
| 34 | + "mpp_lim": "F", |
30 | 35 | "mixture_err": "F", |
31 | | - "time_stepper": 1, |
32 | | - "weno_order": 1, |
33 | | - "weno_eps": 1.0e-20, |
| 36 | + "time_stepper": 3, |
| 37 | + "weno_order": 5, |
| 38 | + "weno_eps": 1.0e-16, |
| 39 | + "mapped_weno": "T", |
34 | 40 | "null_weights": "F", |
35 | 41 | "mp_weno": "F", |
36 | 42 | "riemann_solver": 4, |
37 | 43 | "wave_speeds": 1, |
38 | 44 | "avg_state": 2, |
39 | | - "bc_x%beg": -3, |
40 | | - "bc_x%end": -3, |
41 | | - "bc_y%beg": -3, |
42 | | - "bc_y%end": -3, |
43 | | - "bc_z%beg": -3, |
44 | | - "bc_z%end": -3, |
45 | | - # Formatted Database Files Structure Parameters |
| 45 | + "bc_x%beg": -6, |
| 46 | + "bc_x%end": -6, |
| 47 | + "bc_y%beg": -6, |
| 48 | + "bc_y%end": -6, |
| 49 | + "bc_z%beg": -6, |
| 50 | + "bc_z%end": -6, |
| 51 | + # Output |
46 | 52 | "format": 1, |
47 | 53 | "precision": 2, |
48 | 54 | "prim_vars_wrt": "T", |
|
51 | 57 | # Hypoelasticity |
52 | 58 | "hypoelasticity": "T", |
53 | 59 | "fd_order": 4, |
54 | | - # Patch 1: Background liquid (3D box) |
| 60 | + # Patch 1: Water background (3D box) |
55 | 61 | "patch_icpp(1)%geometry": 9, |
56 | 62 | "patch_icpp(1)%x_centroid": 0.5, |
57 | 63 | "patch_icpp(1)%y_centroid": 0.5, |
|
64 | 70 | "patch_icpp(1)%vel(3)": 0.0, |
65 | 71 | "patch_icpp(1)%pres": 1e05, |
66 | 72 | "patch_icpp(1)%tau_e(1)": 0.0, |
67 | | - "patch_icpp(1)%alpha_rho(1)": 1000 * (1.0 - 1e-8), |
| 73 | + "patch_icpp(1)%alpha_rho(1)": rho_w * (1.0 - 1e-8), |
68 | 74 | "patch_icpp(1)%alpha(1)": 1.0 - 1e-8, |
69 | | - "patch_icpp(1)%alpha_rho(2)": 1000 * 1e-8, |
| 75 | + "patch_icpp(1)%alpha_rho(2)": rho_e * 1e-8, |
70 | 76 | "patch_icpp(1)%alpha(2)": 1e-8, |
71 | | - # Patch 2: Solid sphere |
| 77 | + # Patch 2: Epoxy cube |
72 | 78 | "patch_icpp(2)%alter_patch(1)": "T", |
73 | | - "patch_icpp(2)%geometry": 8, |
| 79 | + "patch_icpp(2)%geometry": 9, |
74 | 80 | "patch_icpp(2)%x_centroid": 0.6, |
75 | 81 | "patch_icpp(2)%y_centroid": 0.5, |
76 | 82 | "patch_icpp(2)%z_centroid": 0.5, |
77 | | - "patch_icpp(2)%radius": 0.1, |
| 83 | + "patch_icpp(2)%length_x": 0.2, |
| 84 | + "patch_icpp(2)%length_y": 0.2, |
| 85 | + "patch_icpp(2)%length_z": 0.2, |
| 86 | + "patch_icpp(2)%smoothen": "T", |
| 87 | + "patch_icpp(2)%smooth_patch_id": 1, |
| 88 | + "patch_icpp(2)%smooth_coeff": 2.0, |
78 | 89 | "patch_icpp(2)%vel(1)": 0.0, |
79 | 90 | "patch_icpp(2)%vel(2)": 0.0, |
80 | 91 | "patch_icpp(2)%vel(3)": 0.0, |
81 | 92 | "patch_icpp(2)%pres": 1e05, |
82 | 93 | "patch_icpp(2)%tau_e(1)": 0.0, |
83 | | - "patch_icpp(2)%alpha_rho(1)": 1000 * 1e-8, |
| 94 | + "patch_icpp(2)%alpha_rho(1)": rho_w * 1e-8, |
84 | 95 | "patch_icpp(2)%alpha(1)": 1e-8, |
85 | | - "patch_icpp(2)%alpha_rho(2)": 1000 * (1.0 - 1e-8), |
| 96 | + "patch_icpp(2)%alpha_rho(2)": rho_e * (1.0 - 1e-8), |
86 | 97 | "patch_icpp(2)%alpha(2)": 1.0 - 1e-8, |
87 | | - # Acoustic source (support 7 = 3D focused) |
| 98 | + # Acoustic source (3D focused) |
88 | 99 | "acoustic_source": "T", |
89 | 100 | "num_source": 1, |
90 | 101 | "acoustic(1)%support": 7, |
|
99 | 110 | "acoustic(1)%gauss_sigma_time": 4e-5, |
100 | 111 | "acoustic(1)%delay": 2e-4, |
101 | 112 | # Fluids Physical Parameters |
102 | | - "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), |
103 | | - "fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), |
| 113 | + "fluid_pp(1)%gamma": 1.0 / (gamma_w - 1.0), |
| 114 | + "fluid_pp(1)%pi_inf": gamma_w * pi_inf_w / (gamma_w - 1.0), |
104 | 115 | "fluid_pp(1)%G": 0.0, |
105 | | - "fluid_pp(2)%gamma": 1.0e00 / (4.4e00 - 1.0e00), |
106 | | - "fluid_pp(2)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00), |
107 | | - "fluid_pp(2)%G": 1e9, |
| 116 | + "fluid_pp(2)%gamma": 1.0 / (gamma_e - 1.0), |
| 117 | + "fluid_pp(2)%pi_inf": gamma_e * pi_inf_e / (gamma_e - 1.0), |
| 118 | + "fluid_pp(2)%G": 1.5e9, |
108 | 119 | } |
109 | 120 |
|
110 | 121 | print(json.dumps(config, indent=4)) |
0 commit comments