Add quadratic solid lumped mass support

This commit is contained in:
shenw
2026-06-22 22:10:42 +08:00
parent fbbb9c344f
commit f80529a66c
3 changed files with 201 additions and 11 deletions
+2 -11
View File
@@ -55,28 +55,19 @@ contains
nlocal = elem_nnode(elem)
select case (trim(etype))
case ('C3D4')
case ('C3D4', 'C3D8', 'C3D10', 'C3D20')
call element_validate_node_count(etype, nlocal, ierr)
if (ierr .ne. FEM_SUCCESS) return
call solid_volume_by_quadrature(elem, volume, ierr)
if (ierr .ne. FEM_SUCCESS) return
if (volume .le. ZERO) then
call error_set(FEM_ERR_MESH, 'C3D4 element has non-positive volume', ierr)
call error_set(FEM_ERR_MESH, 'solid element has non-positive volume', ierr)
return
end if
elem_mass = density * volume
nodal_mass = elem_mass / real(nlocal, rk)
call add_translational_mass(elem, nodal_mass)
case ('C3D8')
call element_validate_node_count(etype, nlocal, ierr)
if (ierr .ne. FEM_SUCCESS) return
call solid_volume_by_quadrature(elem, volume, ierr)
if (ierr .ne. FEM_SUCCESS) return
elem_mass = density * volume
nodal_mass = elem_mass / real(nlocal, rk)
call add_translational_mass(elem, nodal_mass)
case ('S4')
call element_validate_node_count(etype, nlocal, ierr)
if (ierr .ne. FEM_SUCCESS) return