158 lines
5.9 KiB
Fortran
158 lines
5.9 KiB
Fortran
module fem_control
|
|
use fem_precision
|
|
implicit none
|
|
|
|
integer, parameter :: ANALYSIS_EXPLICIT_DYNAMIC = 1
|
|
integer, parameter :: ANALYSIS_STATIC_LINEAR = 2
|
|
integer, parameter :: ANALYSIS_STATIC_NONLINEAR = 3
|
|
integer, parameter :: ANALYSIS_IMPLICIT_DYNAMIC = 4
|
|
integer, parameter :: CONVERGENCE_STATUS_IDLE = 0
|
|
integer, parameter :: CONVERGENCE_STATUS_ITERATING = 1
|
|
integer, parameter :: CONVERGENCE_STATUS_CONVERGED = 2
|
|
integer, parameter :: CONVERGENCE_STATUS_CUTBACK = 3
|
|
integer, parameter :: CONVERGENCE_STATUS_FAILED = -1
|
|
integer, parameter :: CONV_FAIL_NONE = 0
|
|
integer, parameter :: CONV_FAIL_NONCONVERGENCE = 1
|
|
integer, parameter :: CONV_FAIL_CUTBACK_LIMIT = 2
|
|
integer, parameter :: CONV_FAIL_STOPPED = 3
|
|
integer, parameter :: LSOLVER_CG = 1
|
|
integer, parameter :: LSOLVER_BICGSTAB = 2
|
|
integer, parameter :: LSOLVER_GMRES = 3
|
|
integer, parameter :: LSOLVER_EXTERNAL = 100
|
|
integer, parameter :: LPRECOND_NONE = 0
|
|
integer, parameter :: LPRECOND_JACOBI = 1
|
|
integer, parameter :: LS_STATUS_IDLE = 0
|
|
integer, parameter :: LS_STATUS_CONVERGED = 1
|
|
integer, parameter :: LS_STATUS_FAILED = -1
|
|
integer, parameter :: LS_STATUS_UNSUPPORTED = -2
|
|
|
|
real(rk) :: time_start = ZERO
|
|
real(rk) :: time_end = ZERO
|
|
real(rk) :: current_time = ZERO
|
|
real(rk) :: dt_user = ZERO
|
|
real(rk) :: dt_stable = ZERO
|
|
real(rk) :: stable_dt_safety = 0.8_rk
|
|
real(rk) :: static_initial_increment = ONE
|
|
real(rk) :: static_min_increment = ZERO
|
|
real(rk) :: static_max_increment = ONE
|
|
real(rk) :: load_factor = ONE
|
|
real(rk) :: newton_tol_force = 1.0e-8_rk
|
|
real(rk) :: newton_tol_disp = 1.0e-8_rk
|
|
real(rk) :: newmark_beta = 0.25_rk
|
|
real(rk) :: newmark_gamma = 0.5_rk
|
|
real(rk) :: rayleigh_alpha_mass = ZERO
|
|
real(rk) :: rayleigh_beta_stiffness = ZERO
|
|
real(rk) :: line_search_min_alpha = 0.125_rk
|
|
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
|
|
integer :: max_increment = 0
|
|
integer :: max_newton_iter = 25
|
|
integer :: max_cutback = 8
|
|
integer :: output_interval = 1
|
|
integer :: linear_solver_method = LSOLVER_CG
|
|
integer :: linear_precond_method = LPRECOND_JACOBI
|
|
integer :: linear_solver_last_method = LSOLVER_CG
|
|
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
|
|
integer :: convergence_status_code = CONVERGENCE_STATUS_IDLE
|
|
integer :: convergence_failure_code = CONV_FAIL_NONE
|
|
real(rk) :: convergence_residual_norm = ZERO
|
|
real(rk) :: convergence_rel_resid_norm = ZERO
|
|
real(rk) :: convergence_correction_norm = ZERO
|
|
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.
|
|
logical :: use_sph_coupling = .false.
|
|
logical :: use_user_dt = .false.
|
|
logical :: large_deformation = .true.
|
|
logical :: use_line_search = .true.
|
|
logical :: allow_step_cutback = .false.
|
|
|
|
contains
|
|
|
|
subroutine control_set_defaults()
|
|
time_start = ZERO
|
|
time_end = ZERO
|
|
current_time = ZERO
|
|
dt_user = ZERO
|
|
dt_stable = ZERO
|
|
stable_dt_safety = 0.8_rk
|
|
static_initial_increment = ONE
|
|
static_min_increment = ZERO
|
|
static_max_increment = ONE
|
|
load_factor = ONE
|
|
newton_tol_force = 1.0e-8_rk
|
|
newton_tol_disp = 1.0e-8_rk
|
|
newmark_beta = 0.25_rk
|
|
newmark_gamma = 0.5_rk
|
|
rayleigh_alpha_mass = ZERO
|
|
rayleigh_beta_stiffness = ZERO
|
|
line_search_min_alpha = 0.125_rk
|
|
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
|
|
max_increment = 0
|
|
max_newton_iter = 25
|
|
max_cutback = 8
|
|
output_interval = 1
|
|
linear_solver_method = LSOLVER_CG
|
|
linear_precond_method = LPRECOND_JACOBI
|
|
linear_solver_last_method = LSOLVER_CG
|
|
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
|
|
convergence_status_code = CONVERGENCE_STATUS_IDLE
|
|
convergence_failure_code = CONV_FAIL_NONE
|
|
convergence_residual_norm = ZERO
|
|
convergence_rel_resid_norm = ZERO
|
|
convergence_correction_norm = ZERO
|
|
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.
|
|
use_sph_coupling = .false.
|
|
use_user_dt = .false.
|
|
large_deformation = .true.
|
|
use_line_search = .true.
|
|
allow_step_cutback = .false.
|
|
end subroutine control_set_defaults
|
|
|
|
end module fem_control
|