Enhance contact clipping search and output
This commit is contained in:
@@ -544,10 +544,13 @@ end subroutine
|
||||
第三版提供接触结果查询接口:
|
||||
|
||||
```fortran
|
||||
subroutine fem_get_contact_summary(nactive_contact, contact_work, max_penetration, ierr)
|
||||
integer, intent(out) :: nactive_contact
|
||||
real(rk), intent(out) :: contact_work
|
||||
subroutine fem_get_contact_summary(active_count, work_step, work_total, &
|
||||
max_penetration, force_norm, ierr)
|
||||
integer, intent(out) :: active_count
|
||||
real(rk), intent(out) :: work_step
|
||||
real(rk), intent(out) :: work_total
|
||||
real(rk), intent(out) :: max_penetration
|
||||
real(rk), intent(out) :: force_norm
|
||||
integer, intent(out) :: ierr
|
||||
end subroutine
|
||||
```
|
||||
@@ -570,7 +573,17 @@ end subroutine
|
||||
- `contact_pair_search(pair)`:搜索距离,0 表示只按 facet 等效半径过滤。
|
||||
- `contact_pair_friction(pair)`:Coulomb 摩擦系数,必须非负;0 表示无摩擦。
|
||||
|
||||
当前 contact pair 支持多 master facet 权重分摊、Coulomb 摩擦和 facet 空间 broad-phase 过滤。查询统计仍以 `fem_get_contact_summary` 为目标接口,完整激活数量、最大穿透量和接触功统计将在接触输出阶段补齐。
|
||||
当前 contact pair 支持投影裁剪面积积分、多 master facet 面积上限修正、Coulomb 摩擦、均匀空间网格候选搜索和 facet 空间 broad-phase 精筛。
|
||||
|
||||
接触统计包括:
|
||||
|
||||
- `contact_active_count`:最近一次接触力评估中的激活贡献数。
|
||||
- `contact_work_step`:最近一次接触力评估的接触功估计。
|
||||
- `contact_work_total`:累计接触功估计。
|
||||
- `contact_max_penetration`:最近一次接触力评估的最大穿透量。
|
||||
- `contact_force_norm`:最近一次接触力评估的接触力范数累加。
|
||||
|
||||
逐 contact pair 统计保存在 `contact_pair_active/work/max_penetration/force_norm` 数组中,并写入 `contact_step_xxxxx.csv`。
|
||||
|
||||
## 13. 输出控制接口
|
||||
|
||||
|
||||
Reference in New Issue
Block a user