This commit is contained in:
@@ -671,6 +671,92 @@ contains
|
||||
residual_norm, status_code, ierr)
|
||||
end subroutine fem_get_linear_solver_stats
|
||||
|
||||
subroutine fem_set_shell_stabilization(drilling_factor, s3_shear_factor, &
|
||||
s3_shear_min_scale, ierr)
|
||||
real(rk), intent(in) :: drilling_factor
|
||||
real(rk), intent(in) :: s3_shear_factor
|
||||
real(rk), intent(in) :: s3_shear_min_scale
|
||||
integer, intent(out) :: ierr
|
||||
|
||||
if (.not. api_initialized) then
|
||||
call error_set(FEM_ERR_INTERNAL, &
|
||||
'fem_set_shell_stabilization called before fem_initialize', ierr)
|
||||
return
|
||||
end if
|
||||
if (drilling_factor .lt. ZERO .or. drilling_factor .gt. ONE) then
|
||||
call error_set(FEM_ERR_INPUT, 'shell drilling factor is out of range', ierr)
|
||||
return
|
||||
end if
|
||||
if (s3_shear_factor .lt. ZERO) then
|
||||
call error_set(FEM_ERR_INPUT, 'S3 shear locking factor is negative', ierr)
|
||||
return
|
||||
end if
|
||||
if (s3_shear_min_scale .le. ZERO .or. s3_shear_min_scale .gt. ONE) then
|
||||
call error_set(FEM_ERR_INPUT, 'S3 shear minimum scale is out of range', ierr)
|
||||
return
|
||||
end if
|
||||
|
||||
shell_drilling_stiffness_factor = drilling_factor
|
||||
shell3_shear_locking_factor = s3_shear_factor
|
||||
shell3_shear_locking_min_scale = s3_shear_min_scale
|
||||
ierr = FEM_SUCCESS
|
||||
end subroutine fem_set_shell_stabilization
|
||||
|
||||
subroutine fem_get_shell_stabilization(drilling_factor, s3_shear_factor, &
|
||||
s3_shear_min_scale, ierr)
|
||||
real(rk), intent(out) :: drilling_factor
|
||||
real(rk), intent(out) :: s3_shear_factor
|
||||
real(rk), intent(out) :: s3_shear_min_scale
|
||||
integer, intent(out) :: ierr
|
||||
|
||||
drilling_factor = 1.0e-4_rk
|
||||
s3_shear_factor = 0.0625_rk
|
||||
s3_shear_min_scale = 1.0e-4_rk
|
||||
if (.not. api_initialized) then
|
||||
call error_set(FEM_ERR_INTERNAL, &
|
||||
'fem_get_shell_stabilization called before fem_initialize', ierr)
|
||||
return
|
||||
end if
|
||||
|
||||
drilling_factor = shell_drilling_stiffness_factor
|
||||
s3_shear_factor = shell3_shear_locking_factor
|
||||
s3_shear_min_scale = shell3_shear_locking_min_scale
|
||||
ierr = FEM_SUCCESS
|
||||
end subroutine fem_get_shell_stabilization
|
||||
|
||||
subroutine fem_get_shell_stability_stats(sample_count, last_element, &
|
||||
last_drilling_stiffness, &
|
||||
last_shear_scale, min_shear_scale, &
|
||||
max_drilling_stiffness, ierr)
|
||||
integer, intent(out) :: sample_count
|
||||
integer, intent(out) :: last_element
|
||||
real(rk), intent(out) :: last_drilling_stiffness
|
||||
real(rk), intent(out) :: last_shear_scale
|
||||
real(rk), intent(out) :: min_shear_scale
|
||||
real(rk), intent(out) :: max_drilling_stiffness
|
||||
integer, intent(out) :: ierr
|
||||
|
||||
sample_count = 0
|
||||
last_element = 0
|
||||
last_drilling_stiffness = ZERO
|
||||
last_shear_scale = ONE
|
||||
min_shear_scale = ONE
|
||||
max_drilling_stiffness = ZERO
|
||||
if (.not. api_initialized) then
|
||||
call error_set(FEM_ERR_INTERNAL, &
|
||||
'fem_get_shell_stability_stats called before fem_initialize', ierr)
|
||||
return
|
||||
end if
|
||||
|
||||
sample_count = shell_stability_sample_count
|
||||
last_element = shell_stability_last_elem
|
||||
last_drilling_stiffness = shell_stability_last_drilling
|
||||
last_shear_scale = shell_stab_last_shear_scale
|
||||
min_shear_scale = shell_stability_min_shear_scale
|
||||
max_drilling_stiffness = shell_stability_max_drilling
|
||||
ierr = FEM_SUCCESS
|
||||
end subroutine fem_get_shell_stability_stats
|
||||
|
||||
subroutine fem_get_boundary_facet_count(num_facets, max_face_nodes, ierr)
|
||||
integer, intent(out) :: num_facets
|
||||
integer, intent(out) :: max_face_nodes
|
||||
|
||||
@@ -45,6 +45,9 @@ module fem_control
|
||||
real(rk) :: line_search_reduction = 0.5_rk
|
||||
real(rk) :: line_search_accept_ratio = 0.95_rk
|
||||
real(rk) :: cutback_factor = 0.5_rk
|
||||
real(rk) :: shell_drilling_stiffness_factor = 1.0e-4_rk
|
||||
real(rk) :: shell3_shear_locking_factor = 0.0625_rk
|
||||
real(rk) :: shell3_shear_locking_min_scale = 1.0e-4_rk
|
||||
integer :: current_step = 0
|
||||
integer :: nstep_max = 0
|
||||
integer :: analysis_type = ANALYSIS_EXPLICIT_DYNAMIC
|
||||
@@ -58,6 +61,8 @@ module fem_control
|
||||
integer :: linear_solver_last_prec = LPRECOND_JACOBI
|
||||
integer :: linear_solver_last_iter = 0
|
||||
integer :: linear_solver_last_status = LS_STATUS_IDLE
|
||||
integer :: shell_stability_sample_count = 0
|
||||
integer :: shell_stability_last_elem = 0
|
||||
integer :: convergence_increment = 0
|
||||
integer :: convergence_iteration = 0
|
||||
integer :: convergence_cutback_count = 0
|
||||
@@ -69,6 +74,10 @@ module fem_control
|
||||
real(rk) :: convergence_contact_gap_norm = ZERO
|
||||
real(rk) :: convergence_combined_norm = ZERO
|
||||
real(rk) :: linear_solver_last_resid = ZERO
|
||||
real(rk) :: shell_stability_last_drilling = ZERO
|
||||
real(rk) :: shell_stab_last_shear_scale = ONE
|
||||
real(rk) :: shell_stability_min_shear_scale = ONE
|
||||
real(rk) :: shell_stability_max_drilling = ZERO
|
||||
real(rk) :: convergence_last_dt = ZERO
|
||||
real(rk) :: convergence_last_accepted_time = ZERO
|
||||
logical :: convergence_converged = .false.
|
||||
@@ -101,6 +110,9 @@ contains
|
||||
line_search_reduction = 0.5_rk
|
||||
line_search_accept_ratio = 0.95_rk
|
||||
cutback_factor = 0.5_rk
|
||||
shell_drilling_stiffness_factor = 1.0e-4_rk
|
||||
shell3_shear_locking_factor = 0.0625_rk
|
||||
shell3_shear_locking_min_scale = 1.0e-4_rk
|
||||
current_step = 0
|
||||
nstep_max = 0
|
||||
analysis_type = ANALYSIS_EXPLICIT_DYNAMIC
|
||||
@@ -114,6 +126,8 @@ contains
|
||||
linear_solver_last_prec = LPRECOND_JACOBI
|
||||
linear_solver_last_iter = 0
|
||||
linear_solver_last_status = LS_STATUS_IDLE
|
||||
shell_stability_sample_count = 0
|
||||
shell_stability_last_elem = 0
|
||||
convergence_increment = 0
|
||||
convergence_iteration = 0
|
||||
convergence_cutback_count = 0
|
||||
@@ -125,6 +139,10 @@ contains
|
||||
convergence_contact_gap_norm = ZERO
|
||||
convergence_combined_norm = ZERO
|
||||
linear_solver_last_resid = ZERO
|
||||
shell_stability_last_drilling = ZERO
|
||||
shell_stab_last_shear_scale = ONE
|
||||
shell_stability_min_shear_scale = ONE
|
||||
shell_stability_max_drilling = ZERO
|
||||
convergence_last_dt = ZERO
|
||||
convergence_last_accepted_time = ZERO
|
||||
convergence_converged = .false.
|
||||
|
||||
Reference in New Issue
Block a user