diff --git a/tests/module/test_shell_internal.f90 b/tests/module/test_shell_internal.f90 index f2c3ba5..28eb2a6 100644 --- a/tests/module/test_shell_internal.f90 +++ b/tests/module/test_shell_internal.f90 @@ -12,6 +12,7 @@ program test_shell_internal real(rk), parameter :: EXX = 0.01_rk call check_s3_membrane_patch() + call check_s4_membrane_patch() call check_s6_membrane_patch() call check_s8_membrane_patch() @@ -36,6 +37,25 @@ contains if (ierr .ne. FEM_SUCCESS) call fail(40) end subroutine check_s3_membrane_patch + subroutine check_s4_membrane_patch() + integer :: ierr + + call setup_s4(ierr) + if (ierr .ne. FEM_SUCCESS) call fail(151) + call apply_x_extension(EXX) + + call element_compute_internal_force(ierr) + if (ierr .ne. FEM_SUCCESS) call fail(152) + if (elem_status(1) .ne. 0) call fail(153) + call check_state_shape(4, 154) + call check_membrane_state(4, 160) + call check_force_balance(170) + call check_no_normal_or_rotation(180) + + call database_finalize(ierr) + if (ierr .ne. FEM_SUCCESS) call fail(190) + end subroutine check_s4_membrane_patch + subroutine check_s6_membrane_patch() integer :: ierr @@ -115,6 +135,49 @@ contains call database_assign_dofs(ierr) end subroutine setup_s3 + subroutine setup_s4(ierr) + integer, intent(out) :: ierr + + call database_allocate_model(4, 1, 0, 1, 0, 1, 1, 0, 1, & + 0, 0, 0, 0, 0, ierr) + if (ierr .ne. FEM_SUCCESS) return + + node_id_ext(1) = 1 + node_id_ext(2) = 2 + node_id_ext(3) = 3 + node_id_ext(4) = 4 + coord0(:,1) = (/ ZERO, ZERO, ZERO /) + coord0(:,2) = (/ ONE, ZERO, ZERO /) + coord0(:,3) = (/ ONE, ONE, ZERO /) + coord0(:,4) = (/ ZERO, ONE, ZERO /) + coord = coord0 + + elem_id_ext(1) = 1 + elem_type(1) = 'S4' + elem_nnode(1) = 4 + elem_conn(:,1) = 0 + elem_conn(1:4,1) = (/ 1, 2, 3, 4 /) + elem_mat(1) = 1 + elem_sec(1) = 1 + + elset_name(1) = 'EALL' + elset_start(1) = 1 + elset_count(1) = 1 + elset_items(1) = 1 + + mat_name(1) = 'MAT' + mat_density(1) = ONE + mat_e(1) = YOUNG + mat_nu(1) = POISSON + + section_type(1) = 'SHELL' + section_elset_name(1) = 'EALL' + section_material_name(1) = 'MAT' + section_thickness(1) = THICKNESS + + call database_assign_dofs(ierr) + end subroutine setup_s4 + subroutine setup_s6(ierr) integer, intent(out) :: ierr