This commit is contained in:
@@ -7,6 +7,7 @@ module fem_control
|
||||
integer, parameter :: ANALYSIS_STATIC_LINEAR = 2
|
||||
integer, parameter :: ANALYSIS_STATIC_NONLINEAR = 3
|
||||
integer, parameter :: ANALYSIS_IMPLICIT_DYNAMIC = 4
|
||||
integer, parameter :: ANALYSIS_BUCKLING = 5
|
||||
integer, parameter :: CONVERGENCE_STATUS_IDLE = 0
|
||||
integer, parameter :: CONVERGENCE_STATUS_ITERATING = 1
|
||||
integer, parameter :: CONVERGENCE_STATUS_CONVERGED = 2
|
||||
@@ -53,13 +54,35 @@ module fem_control
|
||||
integer, parameter :: NLC_PATH_R_RESIDUAL_NORM = 12
|
||||
integer, parameter :: NLC_PATH_R_RELATIVE_RESIDUAL = 13
|
||||
integer, parameter :: NLC_PATH_R_CORRECTION_NORM = 14
|
||||
integer, parameter :: NLC_PATH_REAL_COUNT = 14
|
||||
integer, parameter :: NLC_PATH_R_LIN_INIT_RESID = 15
|
||||
integer, parameter :: NLC_PATH_R_LIN_FINAL_RESID = 16
|
||||
integer, parameter :: NLC_PATH_R_LIN_REL_RESID = 17
|
||||
integer, parameter :: NLC_PATH_R_TARGET_DT = 18
|
||||
integer, parameter :: NLC_PATH_R_ACTUAL_DT = 19
|
||||
integer, parameter :: NLC_PATH_R_NEXT_DT = 20
|
||||
integer, parameter :: NLC_PATH_R_TRUST_RADIUS = 21
|
||||
integer, parameter :: NLC_PATH_R_NEXT_TRUST_RADIUS = 22
|
||||
integer, parameter :: NLC_PATH_R_TRUST_DAMPING = 23
|
||||
integer, parameter :: NLC_PATH_R_TRUST_MERIT_RATIO = 24
|
||||
integer, parameter :: NLC_PATH_REAL_COUNT = 24
|
||||
integer, parameter :: NLC_PATH_I_STEP = 1
|
||||
integer, parameter :: NLC_PATH_I_CONTROL_DOF_COUNT = 2
|
||||
integer, parameter :: NLC_PATH_I_ITERATION = 3
|
||||
integer, parameter :: NLC_PATH_I_STATUS_CODE = 4
|
||||
integer, parameter :: NLC_PATH_I_FAILURE_CODE = 5
|
||||
integer, parameter :: NLC_PATH_INT_COUNT = 5
|
||||
integer, parameter :: NLC_PATH_I_LIN_METHOD = 6
|
||||
integer, parameter :: NLC_PATH_I_LIN_PRECOND = 7
|
||||
integer, parameter :: NLC_PATH_I_LIN_ITER = 8
|
||||
integer, parameter :: NLC_PATH_I_LIN_STATUS = 9
|
||||
integer, parameter :: NLC_PATH_I_ADAPT_ADJUST = 10
|
||||
integer, parameter :: NLC_PATH_I_CUTBACK_COUNT = 11
|
||||
integer, parameter :: NLC_PATH_I_TRUST_ADJUST = 12
|
||||
integer, parameter :: NLC_PATH_I_TRUST_REJECTIONS = 13
|
||||
integer, parameter :: NLC_PATH_INT_COUNT = 13
|
||||
integer, parameter :: BUCKLING_MAX_GEOM_LINE = 64
|
||||
integer, parameter :: BUCK_GEOM_EXPLICIT = 1
|
||||
integer, parameter :: BUCK_GEOM_PRELOAD = 2
|
||||
integer, parameter :: CYCLIC_MAX_PAIR = 128
|
||||
|
||||
real(rk) :: time_start = ZERO
|
||||
real(rk) :: time_end = ZERO
|
||||
@@ -125,6 +148,19 @@ module fem_control
|
||||
integer :: linear_solver_last_matrix_class = 1
|
||||
integer :: nonlinear_linear_iter_limit = 0
|
||||
integer :: nonlinear_continuation_method = NLC_DEFAULT
|
||||
integer :: buckling_num_modes = 1
|
||||
integer :: buckling_geom_line_count = 0
|
||||
integer :: buckling_preload_iter = 0
|
||||
integer :: buck_geom_line_parse = BUCK_GEOM_EXPLICIT
|
||||
integer :: cyclic_pair_count = 0
|
||||
integer :: cyclic_num_sectors = 0
|
||||
integer :: cyclic_wave_number = 0
|
||||
integer :: cyclic_dof_count = 3
|
||||
integer :: buckling_geom_line_node1(BUCKLING_MAX_GEOM_LINE) = 0
|
||||
integer :: buckling_geom_line_node2(BUCKLING_MAX_GEOM_LINE) = 0
|
||||
integer :: buck_geom_line_kind(BUCKLING_MAX_GEOM_LINE) = BUCK_GEOM_EXPLICIT
|
||||
integer :: cyclic_master_node(CYCLIC_MAX_PAIR) = 0
|
||||
integer :: cyclic_slave_node(CYCLIC_MAX_PAIR) = 0
|
||||
integer :: nlc_target_newton = 6
|
||||
integer :: nlc_mc_min_substeps = 1
|
||||
integer :: nlc_mc_max_substeps = 64
|
||||
@@ -156,6 +192,10 @@ module fem_control
|
||||
real(rk) :: convergence_last_dt = ZERO
|
||||
real(rk) :: convergence_last_accepted_time = ZERO
|
||||
real(rk) :: nlc_path_accumulated_work = ZERO
|
||||
real(rk) :: buckling_preload_residual = ZERO
|
||||
real(rk) :: cyclic_penalty = 1.0e12_rk
|
||||
real(rk) :: buckling_geom_line_force(BUCKLING_MAX_GEOM_LINE) = ZERO
|
||||
real(rk) :: buck_geom_line_area(BUCKLING_MAX_GEOM_LINE) = ZERO
|
||||
real(rk), allocatable :: nlc_path_real(:,:)
|
||||
integer, allocatable :: nlc_path_int(:,:)
|
||||
character(len=256) :: nonlinear_trace_file = ' '
|
||||
@@ -166,8 +206,12 @@ module fem_control
|
||||
logical :: use_line_search = .true.
|
||||
logical :: allow_step_cutback = .false.
|
||||
logical :: use_static_predictor = .false.
|
||||
logical :: use_disp_path_adaptive = .true.
|
||||
logical :: static_ramp_load = .true.
|
||||
logical :: shell_geometric_nonlinear = .false.
|
||||
logical :: buckling_static_preload_req = .false.
|
||||
logical :: buckling_preload_completed = .false.
|
||||
logical :: shell_finite_strain_requested = .false.
|
||||
logical :: shell_membrane_locking_control = .false.
|
||||
|
||||
contains
|
||||
|
||||
@@ -246,6 +290,25 @@ contains
|
||||
linear_solver_last_matrix_class = 1
|
||||
nonlinear_linear_iter_limit = 0
|
||||
nonlinear_continuation_method = NLC_DEFAULT
|
||||
buckling_num_modes = 1
|
||||
buckling_geom_line_count = 0
|
||||
buckling_preload_iter = 0
|
||||
buck_geom_line_parse = BUCK_GEOM_EXPLICIT
|
||||
cyclic_pair_count = 0
|
||||
cyclic_num_sectors = 0
|
||||
cyclic_wave_number = 0
|
||||
cyclic_dof_count = 3
|
||||
buckling_geom_line_node1 = 0
|
||||
buckling_geom_line_node2 = 0
|
||||
buck_geom_line_kind = BUCK_GEOM_EXPLICIT
|
||||
cyclic_master_node = 0
|
||||
cyclic_slave_node = 0
|
||||
buckling_preload_residual = ZERO
|
||||
cyclic_penalty = 1.0e12_rk
|
||||
buckling_geom_line_force = ZERO
|
||||
buck_geom_line_area = ZERO
|
||||
buckling_static_preload_req = .false.
|
||||
buckling_preload_completed = .false.
|
||||
nlc_target_newton = 6
|
||||
nlc_mc_min_substeps = 1
|
||||
nlc_mc_max_substeps = 64
|
||||
@@ -289,8 +352,10 @@ contains
|
||||
use_line_search = .true.
|
||||
allow_step_cutback = .false.
|
||||
use_static_predictor = .false.
|
||||
use_disp_path_adaptive = .true.
|
||||
static_ramp_load = .true.
|
||||
shell_geometric_nonlinear = .false.
|
||||
shell_finite_strain_requested = .false.
|
||||
shell_membrane_locking_control = .false.
|
||||
end subroutine control_reset_flags
|
||||
|
||||
subroutine nlc_path_reset()
|
||||
@@ -366,12 +431,34 @@ contains
|
||||
nlc_path_real(NLC_PATH_R_RESIDUAL_NORM, row) = residual_norm
|
||||
nlc_path_real(NLC_PATH_R_RELATIVE_RESIDUAL, row) = relative_residual
|
||||
nlc_path_real(NLC_PATH_R_CORRECTION_NORM, row) = correction_norm
|
||||
nlc_path_real(NLC_PATH_R_LIN_INIT_RESID, row) = &
|
||||
linear_solver_initial_resid
|
||||
nlc_path_real(NLC_PATH_R_LIN_FINAL_RESID, row) = &
|
||||
linear_solver_last_resid
|
||||
nlc_path_real(NLC_PATH_R_LIN_REL_RESID, row) = &
|
||||
linear_solver_relative_resid
|
||||
nlc_path_real(NLC_PATH_R_TARGET_DT, row) = nlc_last_target_dt
|
||||
nlc_path_real(NLC_PATH_R_ACTUAL_DT, row) = nlc_last_actual_dt
|
||||
nlc_path_real(NLC_PATH_R_NEXT_DT, row) = nlc_next_target_dt
|
||||
nlc_path_real(NLC_PATH_R_TRUST_RADIUS, row) = nlc_last_trust_radius
|
||||
nlc_path_real(NLC_PATH_R_NEXT_TRUST_RADIUS, row) = nlc_next_trust_radius
|
||||
nlc_path_real(NLC_PATH_R_TRUST_DAMPING, row) = nlc_last_damping
|
||||
nlc_path_real(NLC_PATH_R_TRUST_MERIT_RATIO, row) = &
|
||||
nlc_last_merit_ratio
|
||||
|
||||
nlc_path_int(NLC_PATH_I_STEP, row) = step
|
||||
nlc_path_int(NLC_PATH_I_CONTROL_DOF_COUNT, row) = control_dof_count
|
||||
nlc_path_int(NLC_PATH_I_ITERATION, row) = iteration
|
||||
nlc_path_int(NLC_PATH_I_STATUS_CODE, row) = status_code
|
||||
nlc_path_int(NLC_PATH_I_FAILURE_CODE, row) = failure_code
|
||||
nlc_path_int(NLC_PATH_I_LIN_METHOD, row) = linear_solver_last_method
|
||||
nlc_path_int(NLC_PATH_I_LIN_PRECOND, row) = linear_solver_last_prec
|
||||
nlc_path_int(NLC_PATH_I_LIN_ITER, row) = linear_solver_last_iter
|
||||
nlc_path_int(NLC_PATH_I_LIN_STATUS, row) = linear_solver_last_status
|
||||
nlc_path_int(NLC_PATH_I_ADAPT_ADJUST, row) = nlc_last_adjust
|
||||
nlc_path_int(NLC_PATH_I_CUTBACK_COUNT, row) = convergence_cutback_count
|
||||
nlc_path_int(NLC_PATH_I_TRUST_ADJUST, row) = nlc_last_trust_adjust
|
||||
nlc_path_int(NLC_PATH_I_TRUST_REJECTIONS, row) = nlc_last_rejections
|
||||
|
||||
nlc_path_count = row
|
||||
ierr = FEM_SUCCESS
|
||||
|
||||
@@ -16,7 +16,7 @@ module fem_precision
|
||||
|
||||
integer, parameter :: FEMLITE_VERSION_MAJOR = 0
|
||||
integer, parameter :: FEMLITE_VERSION_MINOR = 5
|
||||
integer, parameter :: FEMLITE_VERSION_PATCH = 1
|
||||
integer, parameter :: FEMLITE_VERSION_PATCH = 2
|
||||
|
||||
real(rk), parameter :: ZERO = 0.0_rk
|
||||
real(rk), parameter :: ONE = 1.0_rk
|
||||
|
||||
Reference in New Issue
Block a user