-
Notifications
You must be signed in to change notification settings - Fork 137
Extrusion v3 #1349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Extrusion v3 #1349
Changes from all commits
f44bec7
0304dfe
b95b9f3
b6863a4
9966731
97641e8
59432e7
567ffc1
95e9381
a28b006
a39c5ef
7a1c5e0
0374f70
65de40f
4e5a51f
843d38f
a6cdd95
99cd729
54e66bc
29ff379
5dc9153
0210586
955352f
7d31479
29129a6
35cbecb
c0dc28b
f32879f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| #!/usr/bin/env python3 | ||
| import argparse | ||
| import json | ||
| import math | ||
| import os | ||
|
|
||
| import cantera as ct | ||
|
|
||
| current_dir = os.path.dirname(os.path.abspath(__file__)) | ||
| ctfile = "h2o2.yaml" | ||
| sol_L = ct.Solution(ctfile) | ||
| sol_L.TPX = 300, 8000, "O2:2,N2:2,H2O:5" | ||
| L = 0.016 | ||
| Nx = 1199 | ||
| dx = L / Nx | ||
| dt = 1e-8 | ||
| Tend = 0.60e-3 | ||
| NT = int(Tend / dt) | ||
| SAVE_COUNT = 1000 | ||
| NS = 1000 | ||
| case = { | ||
| "run_time_info": "T", | ||
| "x_domain%beg": -L / 2, | ||
| "x_domain%end": +L / 2, | ||
| "m": Nx, | ||
| "n": 0, | ||
| "p": 0, | ||
| "dt": float(dt), | ||
| "t_step_start": 0, | ||
| "t_step_stop": NT, | ||
| "t_step_save": NS, | ||
| "t_step_print": 100, | ||
| "parallel_io": "F", | ||
| "model_eqns": 2, | ||
| "num_fluids": 1, | ||
| "num_patches": 1, | ||
| "mpp_lim": "F", | ||
| "mixture_err": "F", | ||
| "time_stepper": 3, | ||
| "weno_order": 5, | ||
| "weno_eps": 1e-16, | ||
| "weno_avg": "F", | ||
| "mapped_weno": "T", | ||
| "mp_weno": "T", | ||
| "riemann_solver": 2, | ||
| "wave_speeds": 2, | ||
| "avg_state": 1, | ||
| "bc_x%beg": -8, | ||
| "bc_x%end": -8, | ||
| "viscous": "F", | ||
| "files_dir": os.path.join(current_dir, "IC"), | ||
| "file_extension": "000000", | ||
| "chemistry": "T", | ||
| "chem_params%diffusion": "T", | ||
| "chem_params%reactions": "T", | ||
| "chem_params%transport_model": 2, | ||
| "format": 1, | ||
| "precision": 2, | ||
| "prim_vars_wrt": "T", | ||
| "patch_icpp(1)%geometry": 1, | ||
| "patch_icpp(1)%hcid": 170, | ||
| "patch_icpp(1)%x_centroid": 0, | ||
| "patch_icpp(1)%length_x": L, | ||
| "patch_icpp(1)%vel(1)": "0", | ||
| "patch_icpp(1)%pres": 1.01325e5, | ||
| "patch_icpp(1)%alpha(1)": 1, | ||
| "patch_icpp(1)%alpha_rho(1)": "1", | ||
| "fluid_pp(1)%gamma": 1.0e00 / (1.5e00 - 1.0e00), | ||
| "fluid_pp(1)%pi_inf": 0, | ||
| "cantera_file": ctfile, | ||
| } | ||
| if __name__ == "__main__": | ||
| print(json.dumps(case)) | ||
Uh oh!
There was an error while loading. Please reload this page.