Complete V5 acceptance milestone
This commit is contained in:
@@ -363,6 +363,9 @@ real(rk), allocatable :: statev(:,:) ! statev(NSTATEV_MAX,ngauss_total)
|
||||
|
||||
- 小应变 J2 使用 1、2、3、4、5:10、20、21、22。
|
||||
- 大应变 J2 使用 1、2、3、4、11:19、20、21、22。
|
||||
- Mohr-Coulomb 复用共享状态槽:5:10 为塑性应变,11 为分支号,12:13 为
|
||||
剪切/张拉最终屈服值,20 为塑性增量率,21 为最终最大屈服值,22 为最近
|
||||
一次塑性增量,26 为强度折减系数。
|
||||
- 未使用槽位置零。
|
||||
- 材料失效后设置 statev(4,gp)=1。
|
||||
- 单元删除由 elem_status 标记,不通过释放内存实现。
|
||||
@@ -449,6 +452,13 @@ integer, allocatable :: elset_items(:)
|
||||
|
||||
- fem_material_iso.f90
|
||||
- fem_material_j2.f90
|
||||
- fem_material_mohr_coulomb.f90
|
||||
- fem_material_mohr_coulomb_db.f90
|
||||
- fem_material_mc_driver.f90
|
||||
- fem_material_mc_envelope.f90
|
||||
- fem_strength_reduction.f90
|
||||
- fem_strength_reduction_driver.f90
|
||||
- fem_strength_reduction_report.f90
|
||||
|
||||
材料控制建议采用分解模型选项:
|
||||
|
||||
@@ -471,6 +481,18 @@ temperature model: NONE / JOHNSON_COOK
|
||||
failure model: NONE / EQPS_LIMIT / JOHNSON_COOK
|
||||
```
|
||||
|
||||
第五版当前材料选项:
|
||||
|
||||
```text
|
||||
plastic model: MOHR_COULOMB
|
||||
```
|
||||
|
||||
Mohr-Coulomb 更新由 `fem_material_mohr_coulomb` 承担,参数合法性 helper 位于
|
||||
`fem_material_mohr_coulomb_db`。材料点路径诊断由 `fem_material_mc_driver`
|
||||
记录,包络 margin 和 safety ratio 由 `fem_material_mc_envelope` 提供。强度
|
||||
折减参数、trial 搜索状态和报告输出分别由 `fem_strength_reduction`、
|
||||
`fem_strength_reduction_driver` 和 `fem_strength_reduction_report` 管理。
|
||||
|
||||
材料参数至少包含:
|
||||
|
||||
```fortran
|
||||
@@ -481,6 +503,22 @@ real(rk), allocatable :: mat_yield0(:)
|
||||
real(rk), allocatable :: mat_hardening_modulus(:)
|
||||
```
|
||||
|
||||
Mohr-Coulomb 额外材料参数:
|
||||
|
||||
```fortran
|
||||
real(rk), allocatable :: mat_mc_phi(:)
|
||||
real(rk), allocatable :: mat_mc_cohesion(:)
|
||||
real(rk), allocatable :: mat_mc_dilation(:)
|
||||
real(rk), allocatable :: mat_mc_tension(:)
|
||||
real(rk), allocatable :: mat_mc_res_phi(:)
|
||||
real(rk), allocatable :: mat_mc_res_cohesion(:)
|
||||
real(rk), allocatable :: mat_mc_res_dilation(:)
|
||||
real(rk), allocatable :: mat_mc_reduction(:)
|
||||
```
|
||||
|
||||
Mohr-Coulomb 使用受拉为正的应力约定;材料点内部将主应力排序后,以压缩正量
|
||||
评估剪切屈服,并单独检查最大主应力张拉截断。
|
||||
|
||||
材料更新接口建议:
|
||||
|
||||
```fortran
|
||||
@@ -509,6 +547,10 @@ end subroutine
|
||||
- 不执行单元删除,只返回 failed 标志。
|
||||
- 不施加边界条件。
|
||||
- 不写输出文件。
|
||||
- 不在材料点更新中控制结构级强度折减 bracket;结构 trial 指标应通过
|
||||
`fem_strength_reduction_driver` 记录和判定。
|
||||
- Mohr-Coulomb 当前提供工程算法切线;若修改角点/棱边返回映射,必须同步更新
|
||||
`material_mohr_coulomb`、`material_mc_driver`、算法文档和材料点验收。
|
||||
|
||||
## 11. 形函数与积分模块
|
||||
|
||||
@@ -682,6 +724,36 @@ subroutine boundary_apply_dload(time, ierr)
|
||||
- 面压力转换为等效节点力后写入 fext。
|
||||
- amplitude 编号为 0 时表示常值。
|
||||
|
||||
V5.6 滚压运动学模块约定:
|
||||
|
||||
- `fem_rigid_cylinder` 负责圆柱几何、投影、法向、切向基和表面速度。
|
||||
- `fem_rigid_roller` 负责辊位姿、进给/下压速度、接触运动学、经典 Coulomb 牵引和正则化滚压牵引。
|
||||
- `fem_roller_schedule` 负责 feed/down/spin/pressure 随时间的插值和速率。
|
||||
- `fem_roll_metrics` 负责 active sample、pressure、slip、friction power、contact width、残余位移和 springback ratio 等紧凑指标。
|
||||
- `tools/benchmarks/roll_forming_kinematics_benchmark.f90` 是示例验收编排工具,调用上述生产模块生成 history/summary;它不承担塑性成形或回弹求解。
|
||||
- `tools/benchmarks/roll_forming_springback_benchmark.f90` 是 V5.6 塑性成形/卸载回弹验收编排工具;它读取专用 benchmark 输入,调用生产滚压运动学、正则化牵引、roll metrics 和 J2 小应变材料更新,输出 springback summary、history 和 plastic zone。该工具不进入 `src`,也不作为主求解器通用滚压 step。
|
||||
|
||||
V5.7 cohesive 模块约定:
|
||||
|
||||
- `fem_cohesive_law` 负责 traction-separation law、混合模态能量、损伤起始、损伤不可逆更新、完全脱粘、压缩分支和 secant stiffness。
|
||||
- `fem_cohesive_state` 负责 contact 积分点级 damage、trial damage、最大法向开口、最大有效分离、cohesive 能量和 status;状态槽按 pair、slave/master element/face 和 point id 索引,并支持 trial/rollback/commit 与 restart 写读。
|
||||
- `fem_cohesive_metrics` 负责 bonded/damaging/failed/compress 数量、最大损伤、最大开口、最大有效分离、总面积、失效面积、cohesive 能量和弹性能汇总。
|
||||
- `test_cohesive_contact` 是当前 cohesive 单积分点验收入口,覆盖 bonded loading、mixed-mode damage、unloading、reload、complete decohesion、非负耗散、损伤不可逆和 restart 保持。
|
||||
- `tools/benchmarks/ball_adhesion_cohesive_benchmark.f90` 是 V5.7 compact 球-膜粘附/脱粘验收编排工具;它读取专用 benchmark 输入,把粘附区离散为同心环,调用生产 cohesive law/state/metrics 输出 force-displacement history、summary 和 decohesion profile。该工具不进入 `src`,也不作为主求解器通用 cohesive contact step。
|
||||
- 球-膜粘附/脱粘示例升级时应继续复用上述生产模块;示例 checker、benchmark 编排和结果抽样仍放在 `examples/` 或 `tools/benchmarks`,不放入 `src`。
|
||||
|
||||
V5.8 颗粒模块约定:
|
||||
|
||||
- `fem_particle_state` 负责离散球颗粒的 id、位置、速度、半径、质量、力、总质量、动量和动能。
|
||||
- `fem_particle_search` 负责颗粒对、搜索半径和墙面几何量。
|
||||
- `fem_particle_contact` 负责颗粒-颗粒和颗粒-墙接触力、弹性能和耗散功率。
|
||||
- `fem_particle_step` 负责显式推进、pair/wall 调用和 `particle_step_diag` 诊断;`pstep_diag_values` 将诊断转换为质量、动量、动能、步耗散能和最大重叠。
|
||||
- `fem_particle_facet_coupling` 负责颗粒-facet 接触、节点载荷分配、接触功和力平衡。
|
||||
- `fem_particle_facet_step` 汇总颗粒-facet contact count、最大重叠、弹性能、耗散功率和力范数。
|
||||
- `fem_particle_coupling` 负责颗粒-facet 载荷收集/应用,不承担颗粒时间积分算法。
|
||||
- `test_particle_acceptance` 是模块级验收入口,覆盖自由落体、墙碰撞、颗粒堆和颗粒-facet 载荷平衡;示例或 benchmark 编排仍应放在 `examples/` 或 `tools/`,不放入 `src`。
|
||||
- `dynamic_grain_container_benchmark.f90` 是 `tools/benchmarks` 中的验收编排工具:它读取 benchmark 控制输入、加载无压力载荷的柔性容器结构输入,每步依次清空 `fsph`、调用 `particle_fem_apply_all` 映射颗粒-facet 节点力、执行 `fem_advance_explicit`、再用 `pstep_advance` 推进颗粒。工具输出 `grain_container_history.csv` 和 `grain_container_summary.csv`,由示例目录内 checker 验证粒子数、接触数、映射力、容器位移、质量守恒、重叠和能量。
|
||||
|
||||
## 15. SPH 耦合模块
|
||||
|
||||
模块:fem_sph_coupling.f90
|
||||
@@ -870,8 +942,25 @@ end subroutine
|
||||
- Robin、MPC、刚性平面 penalty contact 和面-面 contact pair 的切线进入 Newton 有效刚度。
|
||||
- 静力和非线性 Newmark 均支持线搜索;可选步长缩减在失败时恢复增量起点状态后重试。
|
||||
- V4.5 起,`fem_control` 保存最近一次求解收敛快照、relative residual、contact gap residual、combined norm、cutback 诊断、最后有效时间和失败原因码,供 Fortran API、C ABI 和测试直接查询。
|
||||
- V4.6 起,隐式求解器通过线性求解器分发层求解 CSR 方程;默认 CG + Jacobi,可切换 BiCGSTAB/GMRES + none/Jacobi,并记录最近一次线性求解方法、预条件器、迭代数、残差和状态。
|
||||
- V4.6 起,隐式求解器通过线性求解器分发层求解 CSR 方程;默认 CG + Jacobi,可切换 BiCGSTAB/GMRES + none/Jacobi,并记录最近一次线性求解方法、预条件器、迭代数、残差、矩阵分类和状态。
|
||||
- V4.7 起,壳 drilling/S3 剪切锁定参数可配置并提供稳定性统计;壳 J2 剪切和代表性弯曲塑性路径纳入 trial/rollback 回归。
|
||||
- V5.5 起,`fem_eigensolver` 提供内部 dense 对称 Jacobi 特征值求解和 SPD 广义特征值变换,`fem_buckling_solver` 提供线性屈曲 dense solve、几何刚度符号处理、Euler 柱解析临界载荷和模态参与系数 helper。该路径用于小规模解析/工程 benchmark,不依赖第三方特征值库或外部求解器。`buckling_dense_solve` 的 Jacobi 迭代预算随自由度规模增长,避免小型工程矩阵被固定旋转次数误截断。
|
||||
|
||||
线性屈曲支撑模块:
|
||||
|
||||
```text
|
||||
src/solver/fem_eigensolver.f90
|
||||
src/solver/fem_buckling_solver.f90
|
||||
src/element/fem_geometric_stiffness.f90
|
||||
```
|
||||
|
||||
当前约定:
|
||||
|
||||
- `eig_generalized_spd` 要求几何刚度参考矩阵为对称正定矩阵。
|
||||
- 模态通过 `eig_mass_normalize` 按 `phi^T K_G phi = 1` 归一化。
|
||||
- `eig_modal_residuals` 输出 `K phi - lambda K_G phi` 的相对残差。
|
||||
- 示例/benchmark 编排工具放在 `tools/benchmarks` 和 `examples/<case>`,不要放入 `src`。
|
||||
- `tools/benchmarks/corrugated_shell_buckling_benchmark.f90` 是波纹壳紧凑循环屈曲验收编排工具,负责构造周期约化矩阵、调用屈曲/循环/模态输出模块并生成 summary、wave sweep、modal CSV 和 profile;它不承担主求解器通用 `*BUCKLING` step 解析。
|
||||
|
||||
## 17. 稀疏矩阵模块
|
||||
|
||||
@@ -890,10 +979,8 @@ V4.6 线性求解器抽象仍位于 `fem_linear_solver_cg.f90`,保留 `linear_
|
||||
- `linear_solver_solve`:根据 `fem_control` 中的 `linear_solver_method / linear_precond_method` 分发。
|
||||
- `linear_bicgstab_solve`:用于非对称或非正定 CSR 小系统的内部备用路径。
|
||||
- `linear_gmres_solve`:用于非对称 CSR 小系统的内部 Krylov 路径,构造 Arnoldi Hessenberg 基并求解小型最小二乘修正。
|
||||
- `linear_solver_configure / linear_solver_get_settings / linear_solver_get_stats`:配置和查询当前/最近一次线性求解器状态。
|
||||
- `LSOLVER_EXTERNAL` 通过 external adapter 层分发。当前已有 request 诊断、
|
||||
reference direct 和 file-exchange 路径;SuperLU、MUMPS 和 MKL Pardiso 等
|
||||
第三方库后端需要实际链接并通过结构工作流验证。
|
||||
- `linear_solver_configure / linear_solver_get_settings / linear_solver_get_stats / linear_solver_get_diagnostics`:配置和查询当前/最近一次线性求解器状态、CSR 矩阵分类、初始残差、最终残差和最终相对残差。
|
||||
- 分发层不包含外部求解器 adapter。非 CG/BiCGSTAB/GMRES 的 method 值在配置阶段返回错误,并保持当前设置不变。
|
||||
|
||||
## 18. 输出模块
|
||||
|
||||
|
||||
Reference in New Issue
Block a user