Skip to content

Commit ec14e77

Browse files
committed
Minor Changes
1 parent d55b19e commit ec14e77

File tree

1 file changed

+1
-42
lines changed

1 file changed

+1
-42
lines changed

examples/2D_Detonation/case.py

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import cantera as ct
33

44
parser = argparse.ArgumentParser(
5-
prog="2D_detonation",
5+
prog="2D_Detonation",
66
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
77

88
parser.add_argument("--mfc", type=json.loads, default='{}', metavar="DICT",
@@ -87,13 +87,7 @@
8787
'precision' : 2,
8888
'prim_vars_wrt' : 'T',
8989
'chem_wrt_T' : 'T',
90-
'vel_wrt(1)' : 'T',
91-
'vel_wrt(2)' : 'T',
92-
'pres_wrt' : 'T',
9390
# ==========================================================================
94-
# 'rho_wrt' : 'T',
95-
96-
9791
'patch_icpp(1)%geometry' : 3,
9892
'patch_icpp(1)%x_centroid' : L/2,
9993
'patch_icpp(1)%y_centroid' : L/8,
@@ -104,12 +98,9 @@
10498
'patch_icpp(1)%pres' : sol_R.P,
10599
'patch_icpp(1)%alpha(1)' : 1,
106100
'patch_icpp(1)%alpha_rho(1)' : sol_R.density,
107-
# 'patch_icpp(1)%Y(1)' : 0.5,
108-
# 'patch_icpp(1)%Y(2)' : 0.5,
109101
# ==========================================================================
110102
# ==========================================================================
111103
# ==========================================================================
112-
113104
'patch_icpp(2)%geometry' : 7,
114105
'patch_icpp(2)%x_centroid' : L/4,
115106
'patch_icpp(2)%y_centroid' : L/8,
@@ -124,35 +115,6 @@
124115
# 'patch_icpp(1)%alter_patch(1)' : 'F',
125116
'patch_icpp(2)%alter_patch(1)' : 'T',
126117
# ==========================================================================
127-
128-
# ==========================================================================
129-
#'patch_icpp(3)%geometry' : 21,
130-
#'patch_icpp(3)%x_centroid' : 3*L/2,
131-
#'patch_icpp(3)%y_centroid' : L/4,
132-
#'patch_icpp(3)%length_x' : L,
133-
#'patch_icpp(3)%length_y' : L/2,
134-
#'patch_icpp(3)%vel(1)' : 0,
135-
#'patch_icpp(3)%vel(2)' : 100,
136-
#'patch_icpp(3)%model_scale(1)' : 1/20.0,
137-
#'patch_icpp(3)%model_scale(2)' : 1/2.0,
138-
#'patch_icpp(3)%model_scale(3)' : 1/10.0,
139-
#'patch_icpp(3)%model_translate(1)' : L/2+L/1.2,
140-
#'patch_icpp(3)%model_translate(2)' : L/4,
141-
#'patch_icpp(3)%model_translate(3)' : 0,
142-
#'patch_icpp(3)%model_threshold' : 0.5,
143-
#'patch_icpp(3)%model_spc' : 'mfc-small.stl',
144-
#'patch_icpp(3)%pres' : 1000*sol_R.P,
145-
#'patch_icpp(3)%alpha(1)' : 1,
146-
#'patch_icpp(3)%alpha_rho(1)' : sol_R.density,
147-
#'patch_icpp(3)%model_filepath' : 'mfc-small.stl',
148-
#'patch_icpp(3)%alter_patch(1)' : 'T',
149-
#'patch_icpp(3)%alter_patch(2)' : 'T',
150-
# ==========================================================================
151-
152-
# 'vel_wrt(1)' : 'T',
153-
#'vel_wrt(2)' : 'T',
154-
# 'pres_wrt' : 'T',
155-
156118
# Fluids Physical Parameters ===============================================
157119
'fluid_pp(1)%gamma' : 1.0E+00/(4.4E+00-1.0E+00),
158120
'fluid_pp(1)%pi_inf' : 0,
@@ -162,9 +124,6 @@
162124
if args.chemistry:
163125
for i in range(len(sol_L.Y)):
164126
case[f'chem_wrt_Y({1})'] = 'T'
165-
case[f'patch_icpp(1)%Y({i+1})'] = sol_L.Y[i]
166-
# case[f'patch_icpp(2)%Y({i+1})'] = sol_L.Y[i]
167-
# #case[f'patch_icpp(3)%Y({i+1})'] = sol_L.Y[i]
168127

169128
if __name__ == '__main__':
170129
print(json.dumps(case))

0 commit comments

Comments
 (0)