Skip to content

Commit 70fa27c

Browse files
committed
clean examples
1 parent 5cc2f1f commit 70fa27c

File tree

7 files changed

+58
-58
lines changed

7 files changed

+58
-58
lines changed

examples/1D_hyper_impact_strong/case.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
print(
1515
json.dumps(
1616
{
17-
# Logistics ================================================
17+
# Logistics
1818
"run_time_info": "T",
19-
# Computational Domain Parameters ==========================
19+
# Computational Domain Parameters
2020
"x_domain%beg": 0.0e00,
2121
"x_domain%end": 1.0e00,
2222
# 'y_domain%beg' : 0.E+00,
@@ -28,7 +28,7 @@
2828
"t_step_start": 0,
2929
"t_step_stop": int(Nt),
3030
"t_step_save": int(Nt / 200),
31-
# Simulation Algorithm Parameters ==========================
31+
# Simulation Algorithm Parameters
3232
"num_patches": 2,
3333
"model_eqns": 2,
3434
"alt_soundspeed": "F",
@@ -50,14 +50,14 @@
5050
"bc_x%end": -3,
5151
#'bc_y%beg' : -3,
5252
#'bc_y%end' : -3,
53-
# Turning on Hypoelasticity ================================
53+
# Turning on Hypoelasticity
5454
"hyperelasticity": "T",
55-
# Formatted Database Files Structure Parameters ============
55+
# Formatted Database Files Structure Parameters
5656
"format": 1,
5757
"precision": 2,
5858
"prim_vars_wrt": "T",
5959
"parallel_io": "F",
60-
# Patch 1 L ================================================
60+
# Patch 1 L
6161
"patch_icpp(1)%geometry": 1,
6262
"patch_icpp(1)%x_centroid": 0.25,
6363
# 'patch_icpp(1)%y_centroid' : 0.001,
@@ -69,7 +69,7 @@
6969
"patch_icpp(1)%alpha_rho(1)": 1000,
7070
"patch_icpp(1)%alpha(1)": 1.0,
7171
"patch_icpp(1)%tau_e(1)": 0.0,
72-
# Patch 2 R ================================================
72+
# Patch 2 R
7373
"patch_icpp(2)%geometry": 1,
7474
"patch_icpp(2)%x_centroid": 0.75,
7575
# 'patch_icpp(2)%y_centroid' : 0.001,
@@ -81,7 +81,7 @@
8181
"patch_icpp(2)%alpha_rho(1)": 1000,
8282
"patch_icpp(2)%alpha(1)": 1.0,
8383
"patch_icpp(2)%tau_e(1)": 0.0,
84-
# Fluids Physical Parameters ===============================
84+
# Fluids Physical Parameters
8585
"fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00),
8686
"fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00),
8787
"fluid_pp(1)%G": 1e010,

examples/1D_hyper_impact_weak/case.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
print(
1515
json.dumps(
1616
{
17-
# Logistics ================================================
17+
# Logistics
1818
"run_time_info": "T",
19-
# Computational Domain Parameters ==========================
19+
# Computational Domain Parameters
2020
"x_domain%beg": 0.0e00,
2121
"x_domain%end": 1.0e00,
2222
"y_domain%beg": 0.0e00,
@@ -28,7 +28,7 @@
2828
"t_step_start": 0,
2929
"t_step_stop": int(Nt),
3030
"t_step_save": int(Nt / 200),
31-
# Simulation Algorithm Parameters ==========================
31+
# Simulation Algorithm Parameters
3232
"num_patches": 2,
3333
"model_eqns": 3,
3434
"alt_soundspeed": "F",
@@ -50,14 +50,14 @@
5050
"bc_x%end": -3,
5151
"bc_y%beg": -3,
5252
"bc_y%end": -3,
53-
# Turning on Hyperelasticity ================================
53+
# Turning on Hyperelasticity
5454
"hyperelasticity": "T",
55-
# Formatted Database Files Structure Parameters ============
55+
# Formatted Database Files Structure Parameters
5656
"format": 1,
5757
"precision": 2,
5858
"prim_vars_wrt": "T",
5959
"parallel_io": "F",
60-
# Patch 1 L ================================================
60+
# Patch 1 L
6161
"patch_icpp(1)%geometry": 1,
6262
"patch_icpp(1)%x_centroid": 0.25,
6363
"patch_icpp(1)%y_centroid": 0.001,
@@ -69,7 +69,7 @@
6969
"patch_icpp(1)%alpha_rho(1)": 1000,
7070
"patch_icpp(1)%alpha(1)": 1.0,
7171
"patch_icpp(1)%tau_e(1)": 0.0,
72-
# Patch 2 R ================================================
72+
# Patch 2 R
7373
"patch_icpp(2)%geometry": 1,
7474
"patch_icpp(2)%x_centroid": 0.75,
7575
"patch_icpp(2)%y_centroid": 0.001,
@@ -81,7 +81,7 @@
8181
"patch_icpp(2)%alpha_rho(1)": 1000,
8282
"patch_icpp(2)%alpha(1)": 1.0,
8383
"patch_icpp(2)%tau_e(1)": 0.0,
84-
# Fluids Physical Parameters ===============================
84+
# Fluids Physical Parameters
8585
"fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00),
8686
"fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00),
8787
"fluid_pp(1)%G": 1.0e00, # .E+010,

examples/1D_hyper_impact_weak/original.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
print(
1515
json.dumps(
1616
{
17-
# Logistics ================================================
17+
# Logistics
1818
"run_time_info": "T",
19-
# Computational Domain Parameters ==========================
19+
# Computational Domain Parameters
2020
"x_domain%beg": 0.0e00,
2121
"x_domain%end": 1.0e00,
2222
# 'y_domain%beg' : 0.E+00,
@@ -28,7 +28,7 @@
2828
"t_step_start": 0,
2929
"t_step_stop": int(Nt),
3030
"t_step_save": int(Nt / 200),
31-
# Simulation Algorithm Parameters ==========================
31+
# Simulation Algorithm Parameters
3232
"num_patches": 2,
3333
"model_eqns": 3,
3434
"alt_soundspeed": "F",
@@ -50,14 +50,14 @@
5050
"bc_x%end": -3,
5151
#'bc_y%beg' : -3,
5252
#'bc_y%end' : -3,
53-
# Turning on Hyperelasticity ================================
53+
# Turning on Hyperelasticity
5454
"hyperelasticity": "T",
55-
# Formatted Database Files Structure Parameters ============
55+
# Formatted Database Files Structure Parameters
5656
"format": 1,
5757
"precision": 2,
5858
"prim_vars_wrt": "T",
5959
"parallel_io": "F",
60-
# Patch 1 L ================================================
60+
# Patch 1 L
6161
"patch_icpp(1)%geometry": 1,
6262
"patch_icpp(1)%x_centroid": 0.25,
6363
# 'patch_icpp(1)%y_centroid' : 0.001,
@@ -69,7 +69,7 @@
6969
"patch_icpp(1)%alpha_rho(1)": 1000,
7070
"patch_icpp(1)%alpha(1)": 1.0,
7171
"patch_icpp(1)%tau_e(1)": 0.0,
72-
# Patch 2 R ================================================
72+
# Patch 2 R
7373
"patch_icpp(2)%geometry": 1,
7474
"patch_icpp(2)%x_centroid": 0.75,
7575
# 'patch_icpp(2)%y_centroid' : 0.001,
@@ -81,7 +81,7 @@
8181
"patch_icpp(2)%alpha_rho(1)": 1000,
8282
"patch_icpp(2)%alpha(1)": 1.0,
8383
"patch_icpp(2)%tau_e(1)": 0.0,
84-
# Fluids Physical Parameters ===============================
84+
# Fluids Physical Parameters
8585
"fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00),
8686
"fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00),
8787
"fluid_pp(1)%G": 1.0e00, # .E+010,

examples/1D_hypo_impact_strong/case.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
print(
1515
json.dumps(
1616
{
17-
# Logistics ================================================
17+
# Logistics
1818
"run_time_info": "T",
19-
# Computational Domain Parameters ==========================
19+
# Computational Domain Parameters
2020
"x_domain%beg": 0.0e00,
2121
"x_domain%end": 1.0e00,
2222
# 'y_domain%beg' : 0.E+00,
@@ -28,7 +28,7 @@
2828
"t_step_start": 0,
2929
"t_step_stop": int(Nt),
3030
"t_step_save": int(Nt / 200),
31-
# Simulation Algorithm Parameters ==========================
31+
# Simulation Algorithm Parameters
3232
"num_patches": 2,
3333
"model_eqns": 2,
3434
"alt_soundspeed": "F",
@@ -50,14 +50,14 @@
5050
"bc_x%end": -3,
5151
#'bc_y%beg' : -3,
5252
#'bc_y%end' : -3,
53-
# Turning on Hypoelasticity ================================
53+
# Turning on Hypoelasticity
5454
"hypoelasticity": "T",
55-
# Formatted Database Files Structure Parameters ============
55+
# Formatted Database Files Structure Parameters
5656
"format": 1,
5757
"precision": 2,
5858
"prim_vars_wrt": "T",
5959
"parallel_io": "F",
60-
# Patch 1 L ================================================
60+
# Patch 1 L
6161
"patch_icpp(1)%geometry": 1,
6262
"patch_icpp(1)%x_centroid": 0.25,
6363
# 'patch_icpp(1)%y_centroid' : 0.001,
@@ -69,7 +69,7 @@
6969
"patch_icpp(1)%alpha_rho(1)": 1000,
7070
"patch_icpp(1)%alpha(1)": 1.0,
7171
"patch_icpp(1)%tau_e(1)": 0.0,
72-
# Patch 2 R ================================================
72+
# Patch 2 R
7373
"patch_icpp(2)%geometry": 1,
7474
"patch_icpp(2)%x_centroid": 0.75,
7575
# 'patch_icpp(2)%y_centroid' : 0.001,
@@ -81,7 +81,7 @@
8181
"patch_icpp(2)%alpha_rho(1)": 1000,
8282
"patch_icpp(2)%alpha(1)": 1.0,
8383
"patch_icpp(2)%tau_e(1)": 0.0,
84-
# Fluids Physical Parameters ===============================
84+
# Fluids Physical Parameters
8585
"fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00),
8686
"fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00),
8787
"fluid_pp(1)%G": 1e010,

examples/1D_hypo_impact_weak/case.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
print(
1515
json.dumps(
1616
{
17-
# Logistics ================================================
17+
# Logistics
1818
"run_time_info": "T",
19-
# Computational Domain Parameters ==========================
19+
# Computational Domain Parameters
2020
"x_domain%beg": 0.0e00,
2121
"x_domain%end": 1.0e00,
2222
"m": Nx,
@@ -26,7 +26,7 @@
2626
"t_step_start": 0,
2727
"t_step_stop": int(Nt),
2828
"t_step_save": int(Nt / 200),
29-
# Simulation Algorithm Parameters ==========================
29+
# Simulation Algorithm Parameters
3030
"num_patches": 2,
3131
"model_eqns": 2,
3232
"alt_soundspeed": "F",
@@ -46,14 +46,14 @@
4646
"avg_state": 2,
4747
"bc_x%beg": -3,
4848
"bc_x%end": -3,
49-
# Turning on Hypoelasticity ================================
49+
# Turning on Hypoelasticity
5050
"hypoelasticity": "T",
51-
# Formatted Database Files Structure Parameters ============
51+
# Formatted Database Files Structure Parameters
5252
"format": 1,
5353
"precision": 2,
5454
"prim_vars_wrt": "T",
5555
"parallel_io": "F",
56-
# Patch 1 L ================================================
56+
# Patch 1 L
5757
"patch_icpp(1)%geometry": 1,
5858
"patch_icpp(1)%x_centroid": 0.25,
5959
"patch_icpp(1)%length_x": 0.5,
@@ -64,7 +64,7 @@
6464
"patch_icpp(1)%alpha(1)": 1.0,
6565
"patch_icpp(1)%alpha(2)": 0.0,
6666
"patch_icpp(1)%tau_e(1)": 0.0,
67-
# Patch 2 R ================================================
67+
# Patch 2 R
6868
"patch_icpp(2)%geometry": 1,
6969
"patch_icpp(2)%x_centroid": 0.75,
7070
"patch_icpp(2)%length_x": 0.5,
@@ -75,7 +75,7 @@
7575
"patch_icpp(2)%alpha(1)": 0.0,
7676
"patch_icpp(2)%alpha(2)": 1.0,
7777
"patch_icpp(2)%tau_e(1)": 0.0,
78-
# Fluids Physical Parameters ===============================
78+
# Fluids Physical Parameters
7979
"fluid_pp(1)%gamma": 1.0e00 / (4.4e00 - 1.0e00),
8080
"fluid_pp(1)%pi_inf": 4.4e00 * 6.0e08 / (4.4e00 - 1.0e00),
8181
"fluid_pp(1)%G": 1e010,

examples/3D_hyper_bubingel/case.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -252,13 +252,13 @@
252252
# Total physical time
253253
# tend = Nt * dt
254254

255-
# Configuring case dictionary ==================================================
255+
# Configuring case dictionary
256256
print(
257257
json.dumps(
258258
{
259-
# Logistics ================================================
259+
# Logistics
260260
"run_time_info": "T",
261-
# Computational Domain Parameters ==========================
261+
# Computational Domain Parameters
262262
"x_domain%beg": xb,
263263
"x_domain%end": xe,
264264
"y_domain%beg": yb,
@@ -288,7 +288,7 @@
288288
"t_step_start": tstart,
289289
"t_step_stop": Nt,
290290
"t_step_save": AS,
291-
# Simulation Algorithm Parameters ==========================
291+
# Simulation Algorithm Parameters
292292
"num_patches": 3,
293293
"model_eqns": 3,
294294
"num_fluids": 4,
@@ -317,7 +317,7 @@
317317
"bc_y%end": -6,
318318
"bc_z%beg": -2,
319319
"bc_z%end": -6,
320-
# Formatted Database Files Structure Parameters ============
320+
# Formatted Database Files Structure Parameters
321321
"format": 1,
322322
"precision": 2,
323323
"prim_vars_wrt": "T",
@@ -328,7 +328,7 @@
328328
"probe(1)%x": 0.0,
329329
"probe(1)%y": 0.0,
330330
"probe(1)%z": 0.0,
331-
# Patch 1: High pressured water ============================
331+
# Patch 1: High pressured water
332332
# Specify the cubic water background grid geometry
333333
"patch_icpp(1)%geometry": 9,
334334
"patch_icpp(1)%x_centroid": 20 * xcenl,
@@ -349,7 +349,7 @@
349349
"patch_icpp(1)%alpha(2)": liq_wv,
350350
"patch_icpp(1)%alpha(3)": liq_wa,
351351
"patch_icpp(1)%alpha(1)": liq_wg,
352-
# Patch 2: (Vapor) Bubble ==================================
352+
# Patch 2: (Vapor) Bubble
353353
"patch_icpp(2)%geometry": 8,
354354
"patch_icpp(2)%x_centroid": xcenb,
355355
"patch_icpp(2)%y_centroid": ycenb,
@@ -368,7 +368,7 @@
368368
"patch_icpp(2)%alpha(3)": bub_wa,
369369
"patch_icpp(2)%alpha(1)": bub_wg,
370370
"patch_icpp(2)%alter_patch(1)": "T",
371-
# Patch 3: Gel Object ======================================
371+
# Patch 3: Gel Object
372372
"patch_icpp(3)%geometry": 9,
373373
"patch_icpp(3)%x_centroid": 20 * xceng,
374374
"patch_icpp(3)%y_centroid": 20 * yceng,
@@ -389,7 +389,7 @@
389389
"patch_icpp(3)%alpha(3)": gel_wa,
390390
"patch_icpp(3)%alpha(1)": gel_wg,
391391
"patch_icpp(3)%alter_patch(1)": "T",
392-
# Fluids Physical Parameters ===============================
392+
# Fluids Physical Parameters
393393
"fluid_pp(4)%gamma": 1.0e00 / (gamwl - 1),
394394
"fluid_pp(4)%pi_inf": gamwl * piwl / (gamwl - 1),
395395
"fluid_pp(4)%cv": cvwl,

0 commit comments

Comments
 (0)