|
| 1 | +#!/usr/bin/env python3 |
| 2 | + |
| 3 | +import json, math |
| 4 | + |
| 5 | +print(json.dumps({ |
| 6 | +# Logistics ================================================================ |
| 7 | +'run_time_info' : 'T', |
| 8 | +# ========================================================================== |
| 9 | + |
| 10 | +# Computational Domain Parameters ========================================== |
| 11 | +'x_domain%beg' : 0, |
| 12 | +'x_domain%end' : 0.3, |
| 13 | +'y_domain%beg' : 0, |
| 14 | +'y_domain%end' : 0.1, |
| 15 | +'m' : 299, |
| 16 | +'n' : 99, |
| 17 | +'p' : 0, |
| 18 | +'dt' : 5e-7, |
| 19 | +'t_step_start' : 0, |
| 20 | +'t_step_stop' : 50000, |
| 21 | +'t_step_save' : 500, |
| 22 | +# ========================================================================== |
| 23 | + |
| 24 | +# Simulation Algorithm Parameters ========================================== |
| 25 | +'num_patches' : 1, |
| 26 | +'model_eqns' : 2, |
| 27 | +'alt_soundspeed' : 'F', |
| 28 | +'num_fluids' : 1, |
| 29 | +'mpp_lim' : 'F', |
| 30 | +'mixture_err' : 'F', |
| 31 | +'time_stepper' : 3, |
| 32 | +'weno_order' : 5, |
| 33 | +'weno_eps' : 1.E-16, |
| 34 | +'teno' : 'T', |
| 35 | +'teno_CT' : 1E-8, |
| 36 | +'null_weights' : 'F', |
| 37 | +'mp_weno' : 'F', |
| 38 | +'riemann_solver' : 2, |
| 39 | +'wave_speeds' : 1, |
| 40 | +'avg_state' : 2, |
| 41 | +'bc_x%beg' : -6, |
| 42 | +'bc_x%end' : -6, |
| 43 | +'bc_y%beg' : -6, |
| 44 | +'bc_y%end' : -6, |
| 45 | +# ========================================================================== |
| 46 | + |
| 47 | +# Formatted Database Files Structure Parameters ============================ |
| 48 | +'format' : 1, |
| 49 | +'precision' : 2, |
| 50 | +'prim_vars_wrt' :'T', |
| 51 | +'parallel_io' :'T', |
| 52 | +'probe_wrt' :'T', |
| 53 | +'fd_order' : 2, |
| 54 | +'num_probes' : 1, |
| 55 | +'probe(1)%x' : 0.13, |
| 56 | +'probe(1)%y' : 0.05, |
| 57 | + |
| 58 | +# ========================================================================== |
| 59 | + |
| 60 | +# Patch 1 Liquid =========================================================== |
| 61 | +'patch_icpp(1)%geometry' : 3, |
| 62 | +'patch_icpp(1)%x_centroid' : 0.15, |
| 63 | +'patch_icpp(1)%y_centroid' : 0.05, |
| 64 | +'patch_icpp(1)%length_x' : 0.3, |
| 65 | +'patch_icpp(1)%length_y' : 0.1, |
| 66 | +'patch_icpp(1)%vel(1)' : 0.0, |
| 67 | +'patch_icpp(1)%vel(2)' : 0.0, |
| 68 | +'patch_icpp(1)%pres' : 1E+05, |
| 69 | +'patch_icpp(1)%alpha_rho(1)' : 1.19, |
| 70 | +'patch_icpp(1)%alpha(1)' : 1.0, |
| 71 | +# ========================================================================== |
| 72 | + |
| 73 | +# Acoustic source ========================================================== |
| 74 | +'acoustic_source' : 'T', |
| 75 | +'num_source' : 1, |
| 76 | +'acoustic(1)%support' : 2, |
| 77 | +'acoustic(1)%loc(1)' : 0.1, |
| 78 | +'acoustic(1)%loc(2)' : 0.05, |
| 79 | +'acoustic(1)%dir' : math.pi * 0, |
| 80 | +'acoustic(1)%length' : 0.1, |
| 81 | +'acoustic(1)%pulse' : 4, |
| 82 | +'acoustic(1)%npulse' : 1000000, |
| 83 | +'acoustic(1)%mag' : 10., |
| 84 | +# ========================================================================== |
| 85 | + |
| 86 | +# Fluids Physical Parameters =============================================== |
| 87 | +'fluid_pp(1)%gamma' : 1.E+00/(4.4E+00-1.E+00), |
| 88 | +'fluid_pp(1)%pi_inf' : 0, |
| 89 | +# ========================================================================== |
| 90 | +})) |
| 91 | + |
| 92 | +# ============================================================================== |
0 commit comments