Add node-based surface parsing

This commit is contained in:
shenw
2026-06-24 18:20:17 +08:00
parent e17c04736b
commit aff82622f0
9 changed files with 182 additions and 22 deletions
+25
View File
@@ -604,3 +604,28 @@ FemLite 0.4.x 定位为:
- `DEFERRED`:经评审确认推迟到 0.5.0 或后续,必须说明原因和风险。
任何 `DEFERRED` 项不得影响 0.1.0、0.2.0、0.3.3 已验收能力。
## 22. 0.4.0 开发记录
### V4.1 Surface/Contact 输入增强
已启动:
- 新增 surface 类型字段,当前支持 `ELEMENT` 和 `NODE` 两类 surface。
- `*SURFACE` 的 `TYPE` 缺省仍为 `ELEMENT`,保持 0.3.3 输入兼容。
- `TYPE=NODE` 可读取节点号、节点集或 `ALL` 目标,并在数据库校验阶段检查节点/节点集是否存在。
- `TYPE=NODE` 数据行暂不允许 face label。
- contact pair 仍基于 facet 接触路径;若 contact pair 直接引用 node-based surface,数据库校验阶段报错,避免静默无效接触。
- facet 匹配函数仅对 `ELEMENT` surface 生效,避免把 node surface 的节点号误匹配为单元号。
已补充测试:
- `tests/data/s4_node_surface.inp`:node-based surface 解析和数据库校验。
- `implicit_inp`:检查 `surface_type`、node target、facet 匹配隔离和 `fem_build_model`。
- `contact`:确认旧 element surface/contact pair 路径不回退。
后续:
- 增加 node-based surface 查询接口。
- 增加 contact property 数据结构和解析。
- 在节点-面接触或后续 contact pair 扩展中接入 node-based slave surface。