Skip to content

Commit 50f0091

Browse files
committed
add example
1 parent 9b021f4 commit 50f0091

File tree

1 file changed

+86
-0
lines changed
  • examples/1D_output_partial_domain

1 file changed

+86
-0
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
#!/usr/bin/env python3
2+
# Modified from 1D_acoustic_dipole
3+
4+
import json
5+
6+
# Configuring case dictionary
7+
print(json.dumps({
8+
# Logistics ================================================================
9+
'run_time_info' : 'T',
10+
# ==========================================================================
11+
12+
# Computational Domain Parameters ==========================================
13+
'x_domain%beg' : 0,
14+
'x_domain%end' : 0.001,
15+
'm' : 199,
16+
'n' : 0,
17+
'p' : 0,
18+
'dt' : 2e-9,
19+
't_step_start' : 0,
20+
't_step_stop' : 250,
21+
't_step_save' : 10,
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+
# ==========================================================================
44+
45+
# Formatted Database Files Structure Parameters ============================
46+
'format' : 2,
47+
'precision' : 2,
48+
'prim_vars_wrt' :'T',
49+
'rho_wrt' :'T',
50+
'parallel_io' :'T',
51+
'output_partial_domain' :'T',
52+
'x_output%beg' : 0.001*0.4,
53+
'x_output%end' : 0.001*0.7,
54+
# ==========================================================================
55+
56+
# Patch 1 Liquid ===========================================================
57+
'patch_icpp(1)%geometry' : 1,
58+
'patch_icpp(1)%x_centroid' : 0.0005,
59+
'patch_icpp(1)%length_x' : 0.001,
60+
'patch_icpp(1)%vel(1)' : 0.0,
61+
'patch_icpp(1)%pres' : 1E+05,
62+
'patch_icpp(1)%alpha_rho(1)' : 1100,
63+
'patch_icpp(1)%alpha(1)' : 1.0,
64+
# ==========================================================================
65+
66+
# Acoustic source ==========================================================
67+
'acoustic_source' : 'T',
68+
'num_source' : 1,
69+
'acoustic(1)%support' : 1,
70+
'acoustic(1)%dipole' : 'T',
71+
'acoustic(1)%loc(1)' : 0.0005,
72+
'acoustic(1)%pulse' : 2,
73+
'acoustic(1)%npulse' : 1,
74+
'acoustic(1)%dir' : 1.,
75+
'acoustic(1)%mag' : 1.,
76+
'acoustic(1)%gauss_sigma_time' : 2E-8,
77+
'acoustic(1)%delay' : 1E-7,
78+
# ==========================================================================
79+
80+
# Fluids Physical Parameters ===============================================
81+
'fluid_pp(1)%gamma' : 1.E+00/(4.4E+00-1.E+00),
82+
'fluid_pp(1)%pi_inf' : 4.4E+00*5.57E+08/(4.4E+00 - 1.E+00),
83+
# ==========================================================================
84+
}))
85+
86+
# ==============================================================================

0 commit comments

Comments
 (0)