Skip to content

Commit 7dd3269

Browse files
committed
2 parents b5f5301 + f964392 commit 7dd3269

File tree

10 files changed

+13
-18
lines changed

10 files changed

+13
-18
lines changed

examples/1D_hyper_impact_strong/case.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
#'bc_y%end' : -3,
5353
# Turning on Hypoelasticity
5454
"hyperelasticity": "T",
55+
"hyper_model": 1,
56+
"fd_order": 4,
5557
# Formatted Database Files Structure Parameters
5658
"format": 1,
5759
"precision": 2,

examples/1D_hyper_impact_weak/case.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
# Computational Domain Parameters
2020
"x_domain%beg": 0.0e00,
2121
"x_domain%end": 1.0e00,
22-
"y_domain%beg": 0.0e00,
23-
"y_domain%end": 0.002,
2422
"m": Nx,
2523
"n": 0,
2624
"p": 0,
@@ -48,10 +46,10 @@
4846
"avg_state": 2,
4947
"bc_x%beg": -3,
5048
"bc_x%end": -3,
51-
"bc_y%beg": -3,
52-
"bc_y%end": -3,
5349
# Turning on Hyperelasticity
5450
"hyperelasticity": "T",
51+
"hyper_model": 1,
52+
"fd_order": 4,
5553
# Formatted Database Files Structure Parameters
5654
"format": 1,
5755
"precision": 2,
@@ -60,23 +58,17 @@
6058
# Patch 1 L
6159
"patch_icpp(1)%geometry": 1,
6260
"patch_icpp(1)%x_centroid": 0.25,
63-
"patch_icpp(1)%y_centroid": 0.001,
6461
"patch_icpp(1)%length_x": 0.5,
65-
"patch_icpp(1)%length_y": 0.002,
6662
"patch_icpp(1)%vel(1)": 10,
67-
"patch_icpp(1)%vel(2)": 0,
6863
"patch_icpp(1)%pres": 1.0e5,
6964
"patch_icpp(1)%alpha_rho(1)": 1000,
7065
"patch_icpp(1)%alpha(1)": 1.0,
7166
"patch_icpp(1)%tau_e(1)": 0.0,
7267
# Patch 2 R
7368
"patch_icpp(2)%geometry": 1,
7469
"patch_icpp(2)%x_centroid": 0.75,
75-
"patch_icpp(2)%y_centroid": 0.001,
7670
"patch_icpp(2)%length_x": 0.5,
77-
"patch_icpp(2)%length_y": 0.002,
7871
"patch_icpp(2)%vel(1)": -10, # 10,
79-
"patch_icpp(2)%vel(2)": 0,
8072
"patch_icpp(2)%pres": 1.0e05,
8173
"patch_icpp(2)%alpha_rho(1)": 1000,
8274
"patch_icpp(2)%alpha(1)": 1.0,

examples/1D_hypo_impact_strong/case.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
#'bc_y%end' : -3,
5353
# Turning on Hypoelasticity
5454
"hypoelasticity": "T",
55+
"fd_order": 4,
5556
# Formatted Database Files Structure Parameters
5657
"format": 1,
5758
"precision": 2,

examples/1D_hypo_impact_weak/case.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"bc_x%end": -3,
4949
# Turning on Hypoelasticity
5050
"hypoelasticity": "T",
51+
"fd_order": 4,
5152
# Formatted Database Files Structure Parameters
5253
"format": 1,
5354
"precision": 2,

src/common/m_variables_conversion.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ contains
10401040
end if
10411041

10421042
#ifdef MFC_POST_PROCESS
1043-
if (hyperelasticity) then
1043+
if (hyperelasticity .and. p /= 0) then
10441044
! to save von Mises stress instead of elastic internal energy
10451045
qK_prim_vf(xiend + 1)%sf(j, k, l) = sqrt((3_wp/2_wp)*(qK_prim_vf(strxb)%sf(j, k, l)**2_wp + &
10461046
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ contains
260260
!> Checks constraints on elasticity parameters
261261
subroutine s_check_inputs_elasticity
262262
@:PROHIBIT(hyperelasticity .and. hyper_model == dflt_int)
263-
@:PROHIBIT(elasticity .and. fd_order /= 4)
263+
@:PROHIBIT((hypoelasticity .or. hyperelasticity) .and. fd_order /= 4)
264264
end subroutine
265265
266266
!> Checks constraints on bubble parameters

src/simulation/m_mpi_proxy.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ contains
179179
& 'wave_speeds', 'avg_state', 'precision', 'bc_x%beg', 'bc_x%end', &
180180
& 'bc_y%beg', 'bc_y%end', 'bc_z%beg', 'bc_z%end', 'fd_order', &
181181
& 'num_probes', 'num_integrals', 'bubble_model', 'thermal', &
182-
& 'R0_type', 'num_source', 'relax_model', 'num_ibs', 'n_start' ]
182+
& 'R0_type', 'num_source', 'relax_model', 'hyper_model', 'num_ibs', 'n_start' ]
183183
call MPI_BCAST(${VAR}$, 1, MPI_INTEGER, 0, MPI_COMM_WORLD, ierr)
184184
#:endfor
185185
@@ -195,7 +195,7 @@ contains
195195
& 'bc_z%grcbc_in', 'bc_z%grcbc_out', 'bc_z%grcbc_vel_out', &
196196
& 'cfl_adap_dt', 'cfl_const_dt', 'cfl_dt', 'surface_tension', &
197197
& 'viscous', 'shear_stress', 'bulk_stress', 'bubbles_lagrange', &
198-
& 'hyperelasticity', 'hyper_model', 'rkck_adap_dt' ]
198+
& 'hyperelasticity', 'rkck_adap_dt' ]
199199
call MPI_BCAST(${VAR}$, 1, MPI_LOGICAL, 0, MPI_COMM_WORLD, ierr)
200200
#:endfor
201201

src/simulation/m_start_up.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ contains
169169
g_x, g_y, g_z, n_start, t_save, t_stop, &
170170
cfl_adap_dt, cfl_const_dt, cfl_target, &
171171
viscous, surface_tension, &
172-
hyperelasticity, R0ref, &
172+
hyperelasticity, hyper_model, R0ref, &
173173
bubbles_lagrange, lag_params, &
174174
rkck_adap_dt, rkck_tolerance
175175

toolchain/mfc/run/case_dicts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def analytic(self):
244244
'low_Mach': ParamType.INT,
245245
'surface_tension': ParamType.LOG,
246246
'viscous': ParamType.LOG,
247-
'hypermodel': ParamType.INT,
247+
'hyper_model': ParamType.INT,
248248
'bubbles_lagrange': ParamType.LOG,
249249
'rkck_tolerance': ParamType.REAL,
250250
})

toolchain/mfc/test/case.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ def create_directory(self):
220220
'prim_vars_wrt': 'T', 'alpha_rho_wrt(1)': 'T',
221221
'rho_wrt' : 'T', 'mom_wrt(1)' : 'T',
222222
'vel_wrt(1)' : 'T', 'E_wrt' : 'T',
223-
'pres_wrt' : 'T',
224-
'tau_wrt' : 'T', 'alpha_wrt(1)' : 'T',
223+
'pres_wrt' : 'T', 'alpha_wrt(1)' : 'T',
225224
'gamma_wrt' : 'T', 'heat_ratio_wrt' : 'T',
226225
'pi_inf_wrt' : 'T', 'pres_inf_wrt' : 'T',
227226
'c_wrt' : 'T',

0 commit comments

Comments
 (0)