|
19 | 19 | u_l = 0 |
20 | 20 | u_r = -487.34 |
21 | 21 |
|
22 | | -L = 0.12 |
| 22 | +L = 0.24 |
23 | 23 | Nx = 800 |
24 | 24 | Ny = 200 |
25 | 25 | dx = L / Nx |
|
32 | 32 | NS = NT // SAVE_COUNT |
33 | 33 |
|
34 | 34 | case = { |
35 | | - # Logistics ================================================================ |
36 | 35 | "run_time_info": "T", |
37 | | - # ========================================================================== |
38 | | - # Computational Domain Parameters ========================================== |
| 36 | + # Computational Domain Parameters |
39 | 37 | "x_domain%beg": 0, |
40 | 38 | "x_domain%end": L, |
41 | 39 | "y_domain%beg": 0, |
|
49 | 47 | "t_step_save": 1, |
50 | 48 | "t_step_print": 1, |
51 | 49 | "parallel_io": "F", # if args.mfc.get("mpi", True) else 'F', |
52 | | - # Simulation Algorithm Parameters ========================================== |
| 50 | + # Simulation Algorithm Parameters |
53 | 51 | "model_eqns": 2, |
54 | 52 | "num_fluids": 1, |
55 | 53 | "num_patches": 2, |
|
68 | 66 | "bc_x%end": -3, |
69 | 67 | "bc_y%beg": -1, |
70 | 68 | "bc_y%end": -1, |
71 | | - # Chemistry ================================================================ |
| 69 | + # Chemistry |
72 | 70 | "chemistry": "T" if not args.chemistry else "T", |
73 | 71 | "chem_params%diffusion": "F", |
74 | 72 | "chem_params%reactions": "F", |
75 | 73 | "cantera_file": ctfile, |
76 | | - # ========================================================================== |
77 | | - # Formatted Database Files Structure Parameters ============================ |
| 74 | + # Formatted Database Files Structure Parameters |
78 | 75 | "format": 1, |
79 | 76 | "precision": 2, |
80 | 77 | "prim_vars_wrt": "T", |
81 | 78 | "chem_wrt_T": "T", |
82 | | - # ========================================================================== |
83 | 79 | "patch_icpp(1)%geometry": 3, |
84 | 80 | "patch_icpp(1)%x_centroid": L / 2, |
85 | 81 | "patch_icpp(1)%y_centroid": L / 8, |
|
90 | 86 | "patch_icpp(1)%pres": sol_R.P, |
91 | 87 | "patch_icpp(1)%alpha(1)": 1, |
92 | 88 | "patch_icpp(1)%alpha_rho(1)": sol_R.density, |
93 | | - # ========================================================================== |
94 | | - # ========================================================================== |
95 | | - # ========================================================================== |
96 | 89 | "patch_icpp(2)%geometry": 7, |
97 | 90 | "patch_icpp(2)%x_centroid": L / 4, |
98 | 91 | "patch_icpp(2)%y_centroid": L / 8, |
|
101 | 94 | "patch_icpp(2)%hcid": 270, |
102 | 95 | "patch_icpp(2)%vel(1)": 0, |
103 | 96 | "patch_icpp(2)%vel(2)": 0, |
104 | | - "patch_icpp(2)%pres": sol_R.P, |
| 97 | + "patch_icpp(2)%pres": sol_L.P, |
105 | 98 | "patch_icpp(2)%alpha(1)": 1, |
106 | | - "patch_icpp(2)%alpha_rho(1)": sol_R.density, |
107 | | - # 'patch_icpp(1)%alter_patch(1)' : 'F', |
| 99 | + "patch_icpp(2)%alpha_rho(1)": sol_L.density, |
108 | 100 | "patch_icpp(2)%alter_patch(1)": "T", |
109 | | - # ========================================================================== |
110 | 101 | # Fluids Physical Parameters =============================================== |
111 | 102 | "fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00), |
112 | 103 | "fluid_pp(1)%pi_inf": 0, |
113 | | - # ========================================================================== |
114 | 104 | } |
115 | 105 |
|
116 | 106 | if args.chemistry: |
117 | 107 | for i in range(len(sol_L.Y)): |
118 | 108 | case[f"chem_wrt_Y({1})"] = "T" |
| 109 | + case[f"patch_icpp(1)%Y({i+1})"] = sol_R.Y[i] |
119 | 110 |
|
120 | 111 | if __name__ == "__main__": |
121 | 112 | print(json.dumps(case)) |
0 commit comments