We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5f5301 + f964392 commit 7dd3269Copy full SHA for 7dd3269
examples/1D_hyper_impact_strong/case.py
@@ -52,6 +52,8 @@
52
#'bc_y%end' : -3,
53
# Turning on Hypoelasticity
54
"hyperelasticity": "T",
55
+ "hyper_model": 1,
56
+ "fd_order": 4,
57
# Formatted Database Files Structure Parameters
58
"format": 1,
59
"precision": 2,
examples/1D_hyper_impact_weak/case.py
@@ -19,8 +19,6 @@
19
# Computational Domain Parameters
20
"x_domain%beg": 0.0e00,
21
"x_domain%end": 1.0e00,
22
- "y_domain%beg": 0.0e00,
23
- "y_domain%end": 0.002,
24
"m": Nx,
25
"n": 0,
26
"p": 0,
@@ -48,10 +46,10 @@
48
46
"avg_state": 2,
49
47
"bc_x%beg": -3,
50
"bc_x%end": -3,
51
- "bc_y%beg": -3,
- "bc_y%end": -3,
# Turning on Hyperelasticity
@@ -60,23 +58,17 @@
60
# Patch 1 L
61
"patch_icpp(1)%geometry": 1,
62
"patch_icpp(1)%x_centroid": 0.25,
63
- "patch_icpp(1)%y_centroid": 0.001,
64
"patch_icpp(1)%length_x": 0.5,
65
- "patch_icpp(1)%length_y": 0.002,
66
"patch_icpp(1)%vel(1)": 10,
67
- "patch_icpp(1)%vel(2)": 0,
68
"patch_icpp(1)%pres": 1.0e5,
69
"patch_icpp(1)%alpha_rho(1)": 1000,
70
"patch_icpp(1)%alpha(1)": 1.0,
71
"patch_icpp(1)%tau_e(1)": 0.0,
72
# Patch 2 R
73
"patch_icpp(2)%geometry": 1,
74
"patch_icpp(2)%x_centroid": 0.75,
75
- "patch_icpp(2)%y_centroid": 0.001,
76
"patch_icpp(2)%length_x": 0.5,
77
- "patch_icpp(2)%length_y": 0.002,
78
"patch_icpp(2)%vel(1)": -10, # 10,
79
- "patch_icpp(2)%vel(2)": 0,
80
"patch_icpp(2)%pres": 1.0e05,
81
"patch_icpp(2)%alpha_rho(1)": 1000,
82
"patch_icpp(2)%alpha(1)": 1.0,
examples/1D_hypo_impact_strong/case.py
@@ -52,6 +52,7 @@
"hypoelasticity": "T",
examples/1D_hypo_impact_weak/case.py
@@ -48,6 +48,7 @@
src/common/m_variables_conversion.fpp
@@ -1040,7 +1040,7 @@ contains
1040
end if
1041
1042
#ifdef MFC_POST_PROCESS
1043
- if (hyperelasticity) then
+ if (hyperelasticity .and. p /= 0) then
1044
! to save von Mises stress instead of elastic internal energy
1045
qK_prim_vf(xiend + 1)%sf(j, k, l) = sqrt((3_wp/2_wp)*(qK_prim_vf(strxb)%sf(j, k, l)**2_wp + &
1046
2_wp*qK_prim_vf(strxb + 1)%sf(j, k, l)**2_wp + qK_prim_vf(strxb + 2)%sf(j, k, l)**2_wp + &
src/simulation/m_checker.fpp
@@ -260,7 +260,7 @@ contains
260
!> Checks constraints on elasticity parameters
261
subroutine s_check_inputs_elasticity
262
@:PROHIBIT(hyperelasticity .and. hyper_model == dflt_int)
263
- @:PROHIBIT(elasticity .and. fd_order /= 4)
+ @:PROHIBIT((hypoelasticity .or. hyperelasticity) .and. fd_order /= 4)
264
end subroutine
265
266
!> Checks constraints on bubble parameters
src/simulation/m_mpi_proxy.fpp
@@ -179,7 +179,7 @@ contains
179
& 'wave_speeds', 'avg_state', 'precision', 'bc_x%beg', 'bc_x%end', &
180
& 'bc_y%beg', 'bc_y%end', 'bc_z%beg', 'bc_z%end', 'fd_order', &
181
& 'num_probes', 'num_integrals', 'bubble_model', 'thermal', &
182
- & 'R0_type', 'num_source', 'relax_model', 'num_ibs', 'n_start' ]
+ & 'R0_type', 'num_source', 'relax_model', 'hyper_model', 'num_ibs', 'n_start' ]
183
call MPI_BCAST(${VAR}$, 1, MPI_INTEGER, 0, MPI_COMM_WORLD, ierr)
184
#:endfor
185
@@ -195,7 +195,7 @@ contains
195
& 'bc_z%grcbc_in', 'bc_z%grcbc_out', 'bc_z%grcbc_vel_out', &
196
& 'cfl_adap_dt', 'cfl_const_dt', 'cfl_dt', 'surface_tension', &
197
& 'viscous', 'shear_stress', 'bulk_stress', 'bubbles_lagrange', &
198
- & 'hyperelasticity', 'hyper_model', 'rkck_adap_dt' ]
+ & 'hyperelasticity', 'rkck_adap_dt' ]
199
call MPI_BCAST(${VAR}$, 1, MPI_LOGICAL, 0, MPI_COMM_WORLD, ierr)
200
201
src/simulation/m_start_up.fpp
@@ -169,7 +169,7 @@ contains
169
g_x, g_y, g_z, n_start, t_save, t_stop, &
170
cfl_adap_dt, cfl_const_dt, cfl_target, &
171
viscous, surface_tension, &
172
- hyperelasticity, R0ref, &
+ hyperelasticity, hyper_model, R0ref, &
173
bubbles_lagrange, lag_params, &
174
rkck_adap_dt, rkck_tolerance
175
toolchain/mfc/run/case_dicts.py
@@ -244,7 +244,7 @@ def analytic(self):
244
'low_Mach': ParamType.INT,
245
'surface_tension': ParamType.LOG,
246
'viscous': ParamType.LOG,
247
- 'hypermodel': ParamType.INT,
+ 'hyper_model': ParamType.INT,
248
'bubbles_lagrange': ParamType.LOG,
249
'rkck_tolerance': ParamType.REAL,
250
})
toolchain/mfc/test/case.py
@@ -220,8 +220,7 @@ def create_directory(self):
220
'prim_vars_wrt': 'T', 'alpha_rho_wrt(1)': 'T',
221
'rho_wrt' : 'T', 'mom_wrt(1)' : 'T',
222
'vel_wrt(1)' : 'T', 'E_wrt' : 'T',
223
- 'pres_wrt' : 'T',
224
- 'tau_wrt' : 'T', 'alpha_wrt(1)' : 'T',
+ 'pres_wrt' : 'T', 'alpha_wrt(1)' : 'T',
225
'gamma_wrt' : 'T', 'heat_ratio_wrt' : 'T',
226
'pi_inf_wrt' : 'T', 'pres_inf_wrt' : 'T',
227
'c_wrt' : 'T',
0 commit comments