Skip to content

Commit 1186335

Browse files
committed
Chem ToolChain
1 parent 6cc8fec commit 1186335

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

examples/1D_MultiComponent_Diffusion/case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
args = parser.parse_args()
1717

18-
ctfile = "grigri.yaml"
18+
ctfile = "input/grigri.yaml"
1919

2020
L = 0.05
2121
Nx = 100

examples/1D_reactive_shocktube/case.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
u_r = -487.34
3838

3939
L = 0.12
40-
Nx = 400 * args.scale
40+
Nx = 100 * args.scale
4141
dx = L / Nx
4242
dt = dx / abs(u_r) * 0.02
4343
Tend = 230e-6
@@ -50,16 +50,20 @@
5050
# Logistics
5151
"run_time_info": "T",
5252
# Computational Domain Parameters
53-
"x_domain%beg": 0,
54-
"x_domain%end": L,
53+
"x_domain%beg": -L/2,
54+
"x_domain%end": L/2,
55+
"stretch_x": "T",
56+
"a_x": 20,
57+
"x_a":- L/8,
58+
"x_b": L/8,
5559
"m": Nx,
5660
"n": 0,
5761
"p": 0,
5862
"dt": float(dt),
5963
"t_step_start": 0,
60-
"t_step_stop": NT,
61-
"t_step_save": NS,
62-
"t_step_print": NS,
64+
"t_step_stop": 1,
65+
"t_step_save": 1,
66+
"t_step_print": 1,
6367
"parallel_io": "F" if args.mfc.get("mpi", True) else "F",
6468
# Simulation Algorithm Parameters
6569
"model_eqns": 2,
@@ -89,14 +93,14 @@
8993
"prim_vars_wrt": "T",
9094
"chem_wrt_T": "T",
9195
"patch_icpp(1)%geometry": 1,
92-
"patch_icpp(1)%x_centroid": L / 4,
93-
"patch_icpp(1)%length_x": L / 2,
96+
"patch_icpp(1)%x_centroid": L/4,
97+
"patch_icpp(1)%length_x": L/2 ,
9498
"patch_icpp(1)%vel(1)": u_l,
9599
"patch_icpp(1)%pres": sol_L.P,
96100
"patch_icpp(1)%alpha(1)": 1,
97101
"patch_icpp(1)%alpha_rho(1)": sol_L.density,
98102
"patch_icpp(2)%geometry": 1,
99-
"patch_icpp(2)%x_centroid": 3 * L / 4,
103+
"patch_icpp(2)%x_centroid": - L / 4,
100104
"patch_icpp(2)%length_x": L / 2,
101105
"patch_icpp(2)%vel(1)": u_r,
102106
"patch_icpp(2)%pres": sol_R.P,

toolchain/mfc/test/case.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,7 @@ def input_chemistry_diffusion(self):
390390
if "MultiComponent_Diffusion" in self.trace:
391391
copy_input_diffusion(f'/1D_MultiComponent_Diffusion',f'{self.get_dirpath()}')
392392

393-
def create_input_diffusion(path_test):
394-
folder_path_diffusion = path_test
395-
file_path_diffusion = folder_path_diffusion + '/grigri.yaml'
396-
397393
def copy_input_diffusion(path_example_input, path_test):
398-
folder_path_dest = path_test
399-
fite_path_dest = folder_path_dest + 'grigri.yaml'
400-
file_path_src = common.MFC_EXAMPLE_DIRPATH + path_example_input + '/grigri.yaml'
394+
folder_path_dest = path_test + '/input/'
395+
file_path_dest = folder_path_dest + 'grigri.yaml'
396+
file_path_src = common.MFC_EXAMPLE_DIRPATH + path_example_input + '/input/grigri.yaml'

0 commit comments

Comments
 (0)