Add basic rigid plane contact support

This commit is contained in:
shenw
2026-06-22 23:33:51 +08:00
parent 473d97891c
commit 131d7eb0c3
5 changed files with 403 additions and 0 deletions
+4
View File
@@ -12,6 +12,7 @@ module fem_api
use fem_solver_implicit
use fem_coupling
use fem_boundary
use fem_contact
use fem_output_csv
implicit none
@@ -764,6 +765,9 @@ contains
call boundary_apply_mpc_forces(ierr)
if (ierr .ne. FEM_SUCCESS) return
call contact_apply_plane_forces(ierr)
if (ierr .ne. FEM_SUCCESS) return
do dof = 1, ndof
rhs = fext(dof) + fsph(dof) + fcontact(dof) - fint(dof)
a(dof) = rhs / mass_diag(dof)