Skip to content

Commit d4a1280

Browse files
Generated golden files for totating sphere
1 parent 8906927 commit d4a1280

File tree

3 files changed

+308
-0
lines changed

3 files changed

+308
-0
lines changed
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
import json
2+
import math
3+
4+
Mu = 1.84e-05
5+
gam_a = 1.4
6+
7+
# Configuring case dictionary
8+
print(
9+
json.dumps(
10+
{
11+
# Logistics
12+
"run_time_info": "T",
13+
# Computational Domain Parameters
14+
# For these computations, the sphere is placed (3,3,3)*e-3
15+
# domain origin.
16+
"x_domain%beg": 0.0e00,
17+
"x_domain%end": 6.0e-03,
18+
"y_domain%beg": 0.0e00,
19+
"y_domain%end": 6.0e-03,
20+
"z_domain%beg": 0.0e00,
21+
"z_domain%end": 6.0e-03,
22+
"cyl_coord": "F",
23+
"m": 99,
24+
"n": 99,
25+
"p": 99,
26+
"dt": 6.0e-6,
27+
"t_step_start": 0,
28+
"t_step_stop": 25,
29+
"t_step_save": 25,
30+
# Simulation Algorithm Parameters
31+
# Only one patches are necessary, the air tube
32+
"num_patches": 1,
33+
# Use the 5 equation model
34+
"model_eqns": 2,
35+
"alt_soundspeed": "F",
36+
# One fluids: air
37+
"num_fluids": 1,
38+
# time step
39+
"mpp_lim": "F",
40+
# Correct errors when computing speed of sound
41+
"mixture_err": "T",
42+
# Use TVD RK3 for time marching
43+
"time_stepper": 3,
44+
# Use WENO5
45+
"weno_order": 5,
46+
"weno_eps": 1.0e-16,
47+
"weno_Re_flux": "T",
48+
"weno_avg": "T",
49+
"avg_state": 2,
50+
"mapped_weno": "T",
51+
"null_weights": "F",
52+
"mp_weno": "T",
53+
"riemann_solver": 2,
54+
"wave_speeds": 1,
55+
# We use ghost-cell
56+
"bc_x%beg": -3,
57+
"bc_x%end": -3,
58+
"bc_y%beg": -3,
59+
"bc_y%end": -3,
60+
"bc_z%beg": -3,
61+
"bc_z%end": -3,
62+
# Set IB to True and add 1 patch
63+
"ib": "T",
64+
"num_ibs": 1,
65+
"viscous": "T",
66+
# Formatted Database Files Structure Parameters
67+
"format": 1,
68+
"precision": 2,
69+
"prim_vars_wrt": "T",
70+
"E_wrt": "T",
71+
"parallel_io": "T",
72+
# Patch: Constant Tube filled with air
73+
# Specify the cylindrical air tube grid geometry
74+
"patch_icpp(1)%geometry": 9,
75+
# Uniform medium density, centroid is at the center of the domain
76+
"patch_icpp(1)%x_centroid": 3.0e-03,
77+
"patch_icpp(1)%y_centroid": 3.0e-03,
78+
"patch_icpp(1)%z_centroid": 3.0e-03,
79+
"patch_icpp(1)%length_x": 6.0e-03,
80+
"patch_icpp(1)%length_y": 6.0e-03,
81+
"patch_icpp(1)%length_z": 6.0e-03,
82+
# Specify the patch primitive variables
83+
"patch_icpp(1)%vel(1)": 0.00e00,
84+
"patch_icpp(1)%vel(2)": 0.0e00,
85+
"patch_icpp(1)%vel(3)": 0.0e00,
86+
"patch_icpp(1)%pres": 1.0e00,
87+
"patch_icpp(1)%alpha_rho(1)": 1.0e00,
88+
"patch_icpp(1)%alpha(1)": 10.0e00,
89+
# Patch: Cylinder Immersed Boundary
90+
"patch_ib(1)%geometry": 8,
91+
"patch_ib(1)%x_centroid": 3.0e-03,
92+
"patch_ib(1)%y_centroid": 3.0e-03,
93+
"patch_ib(1)%z_centroid": 3.0e-03,
94+
"patch_ib(1)%radius": 1e-03,
95+
"patch_ib(1)%slip": "F",
96+
"patch_ib(1)%moving_ibm": 1,
97+
"patch_ib(1)%vel(1)": 0.0,
98+
"patch_ib(1)%angles(1)": 0.0, # x-axis rotation in radians
99+
"patch_ib(1)%angles(2)": 0.0, # y-axis rotation
100+
"patch_ib(1)%angles(3)": 0.0, # z-axis rotation
101+
"patch_ib(1)%angular_vel(1)": 0.0, # x-axis rotational velcoity in radians per second
102+
"patch_ib(1)%angular_vel(2)": 0.0, # y-axis rotation
103+
"patch_ib(1)%angular_vel(3)": 100.0, # z-axis rotation
104+
# Fluids Physical Parameters
105+
"fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), # 2.50(Not 1.40)
106+
"fluid_pp(1)%pi_inf": 0,
107+
"fluid_pp(1)%Re(1)": 2500000,
108+
}
109+
)
110+
)

tests/6076815B/golden-metadata.txt

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

tests/6076815B/golden.txt

Lines changed: 13 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)