Skip to content

Commit 3ab0d92

Browse files
committed
revert tau output & add example
1 parent c39c0f5 commit 3ab0d92

File tree

4 files changed

+300
-1
lines changed

4 files changed

+300
-1
lines changed
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
#!/usr/bin/env python3
2+
import json
3+
4+
# Configuring case dictionary
5+
print(
6+
json.dumps(
7+
{
8+
# Logistics
9+
"run_time_info": "T",
10+
# Computational Domain Parameters
11+
"x_domain%beg": 0.0,
12+
"x_domain%end": 0.001,
13+
"y_domain%beg": 0.0,
14+
"y_domain%end": 0.0005,
15+
"cyl_coord": "T",
16+
"m": 49,
17+
"n": 24,
18+
"p": 0,
19+
"dt": 2e-9,
20+
"t_step_start": 0,
21+
"t_step_stop": 400,
22+
"t_step_save": 20,
23+
# Simulation Algorithm Parameters
24+
"num_patches": 2,
25+
"model_eqns": 2,
26+
"alt_soundspeed": "F",
27+
"num_fluids": 2,
28+
"mpp_lim": "F",
29+
"mixture_err": "F",
30+
"time_stepper": 3,
31+
"weno_order": 5,
32+
"weno_eps": 1.0e-16,
33+
"teno": "T",
34+
"teno_CT": 1e-8,
35+
"null_weights": "F",
36+
"mp_weno": "F",
37+
"riemann_solver": 1,
38+
"wave_speeds": 1,
39+
"avg_state": 2,
40+
"bc_x%beg": -6,
41+
"bc_x%end": -6,
42+
"bc_y%beg": -2,
43+
"bc_y%end": -6,
44+
# Hypoelasticity
45+
"hypoelasticity": "T",
46+
"fd_order": 4,
47+
# Formatted Database Files Structure Parameters
48+
"format": 1,
49+
"precision": 2,
50+
"prim_vars_wrt": "T",
51+
"parallel_io": "T",
52+
# Patch 1 Liquid
53+
"patch_icpp(1)%geometry": 3,
54+
"patch_icpp(1)%x_centroid": 0.0005,
55+
"patch_icpp(1)%y_centroid": 0.00025,
56+
"patch_icpp(1)%length_x": 0.001,
57+
"patch_icpp(1)%length_y": 0.0005,
58+
"patch_icpp(1)%vel(1)": 0.0,
59+
"patch_icpp(1)%vel(2)": 0.0,
60+
"patch_icpp(1)%pres": 1e05,
61+
"patch_icpp(1)%alpha_rho(1)": 1100 * (1.0 - 1e-6),
62+
"patch_icpp(1)%alpha(1)": 1.0 - 1e-6,
63+
"patch_icpp(1)%alpha_rho(2)": 1100 * 1e-6,
64+
"patch_icpp(1)%alpha(2)": 1e-6,
65+
# Patch 2 Solid
66+
"patch_icpp(2)%alter_patch(1)": "T",
67+
"patch_icpp(2)%geometry": 3,
68+
"patch_icpp(2)%x_centroid": 0.0005,
69+
"patch_icpp(2)%y_centroid": 0.000125,
70+
"patch_icpp(2)%length_x": 0.0005,
71+
"patch_icpp(2)%length_y": 0.00025,
72+
"patch_icpp(2)%vel(1)": 0.0,
73+
"patch_icpp(2)%vel(2)": 0.0,
74+
"patch_icpp(2)%pres": 1e05,
75+
"patch_icpp(2)%alpha_rho(1)": 1100 * 1e-6,
76+
"patch_icpp(2)%alpha(1)": 1e-6,
77+
"patch_icpp(2)%alpha_rho(2)": 1100 * (1.0 - 1e-6),
78+
"patch_icpp(2)%alpha(2)": 1.0 - 1e-6,
79+
# Acoustic source
80+
"acoustic_source": "T",
81+
"num_source": 1,
82+
"acoustic(1)%support": 6,
83+
"acoustic(1)%loc(1)": 0.00006,
84+
"acoustic(1)%loc(2)": 0.0,
85+
"acoustic(1)%pulse": 2,
86+
"acoustic(1)%npulse": 1,
87+
"acoustic(1)%mag": 1.0,
88+
"acoustic(1)%gauss_sigma_time": 2e-8,
89+
"acoustic(1)%foc_length": 0.00054,
90+
"acoustic(1)%aperture": 0.0008,
91+
"acoustic(1)%delay": 1e-7,
92+
# Fluids Physical Parameters
93+
"fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00),
94+
"fluid_pp(1)%pi_inf": 4.4e00 * 5.57e08 / (4.4e00 - 1.0e00),
95+
"fluid_pp(1)%G": 0.0,
96+
"fluid_pp(2)%gamma": 1.0e00 / (4.4e00 - 1.0e00),
97+
"fluid_pp(2)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00),
98+
"fluid_pp(2)%G": 1.0e09,
99+
}
100+
)
101+
)

src/post_process/m_data_output.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ contains
344344
if (pres_wrt .or. prim_vars_wrt) dbvars = dbvars + 1
345345
346346
! Elastic stresses
347-
if (elasticity .and. (tau_wrt .or. prim_vars_wrt)) dbvars = dbvars + (num_dims*(num_dims + 1))/2
347+
if (hypoelasticity) dbvars = dbvars + (num_dims*(num_dims + 1))/2
348348
349349
! Magnetic field
350350
if (mhd) then

tests/9C9B2CBC/golden-metadata.txt

Lines changed: 176 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)