This commit is contained in:
@@ -22,7 +22,8 @@
|
||||
- Fortran95 过程式模块组织,不采用面向对象类型绑定
|
||||
- 集中式数据库管理网格、材料、状态变量和全局向量
|
||||
- 单元、材料、求解器、耦合和输出模块保持职责分离
|
||||
- 第二版预留壳单元扩展、接触、隐式非线性和 CSR 稀疏矩阵能力
|
||||
- 第二版形成壳单元扩展、CSR、隐式线弹性、基础接触、VTK、restart 和外部接口的最小可用框架
|
||||
- 第三版正式支持线性静力、非线性静力、壳单元静力、隐式非线性动力学和通用接触
|
||||
|
||||
## 3. 交付形态
|
||||
|
||||
@@ -41,6 +42,13 @@
|
||||
- 更完整后处理工具链
|
||||
- 外部求解器适配层
|
||||
|
||||
第三版交付应补充:
|
||||
|
||||
- 静力学命令行分析模式
|
||||
- 静力学核心库接口
|
||||
- 壳静力和非线性静力验证算例
|
||||
- 静力学收敛历史、反力和 VTK/CSV 输出
|
||||
|
||||
## 4. 目录结构
|
||||
|
||||
建议目录结构:
|
||||
@@ -51,8 +59,8 @@ src/input Abaqus inp 读取与输入数据预处理
|
||||
src/mesh 网格、集合、facet、自由度编号
|
||||
src/material 材料模型与状态变量更新
|
||||
src/element 实体单元、壳单元、形函数、积分规则
|
||||
src/solver 显式求解器、隐式求解器预留、稀疏矩阵预留
|
||||
src/boundary 边界条件、载荷、约束、接触预留
|
||||
src/solver 显式求解器、静力求解器、隐式动力求解器、稀疏矩阵
|
||||
src/boundary 边界条件、载荷、约束、接触
|
||||
src/coupling FEM 外部耦合接口和 SPH 力映射
|
||||
src/output 日志、CSV、VTK 预留、restart 预留
|
||||
src/app femlite 命令行程序
|
||||
@@ -99,8 +107,10 @@ Core FEM Layer
|
||||
|
||||
Solver Layer
|
||||
explicit central difference solver
|
||||
implicit solver placeholder
|
||||
CSR matrix placeholder
|
||||
linear static solver
|
||||
nonlinear static solver
|
||||
implicit Newmark solver
|
||||
CSR matrix layer
|
||||
|
||||
Input/Output Layer
|
||||
Abaqus inp reader
|
||||
@@ -274,20 +284,57 @@ for each time step:
|
||||
end for
|
||||
```
|
||||
|
||||
第二版隐式控制流预留:
|
||||
第二版隐式线弹性控制流:
|
||||
|
||||
```text
|
||||
initialize model
|
||||
build CSR sparsity
|
||||
assemble linear elastic stiffness
|
||||
assemble external load vector
|
||||
apply Dirichlet and constraint equations
|
||||
solve K u = f
|
||||
recover strain and stress
|
||||
write output
|
||||
```
|
||||
|
||||
第三版非线性静力控制流:
|
||||
|
||||
```text
|
||||
initialize model
|
||||
build CSR sparsity
|
||||
for each increment:
|
||||
predict displacement and velocity
|
||||
apply load factor and prescribed displacement increment
|
||||
Newton iteration:
|
||||
assemble residual
|
||||
assemble internal force and external force
|
||||
assemble residual R = F_ext - F_int
|
||||
assemble tangent matrix
|
||||
apply boundary and constraint equations
|
||||
solve correction
|
||||
optionally perform line search
|
||||
update trial state
|
||||
check convergence
|
||||
if failed and allowed, restore state and cut back increment
|
||||
commit state
|
||||
write output
|
||||
end for
|
||||
```
|
||||
|
||||
第三版隐式 Newmark 动力学控制流:
|
||||
|
||||
```text
|
||||
initialize model
|
||||
build CSR sparsity
|
||||
for each time increment:
|
||||
Newmark predict displacement and velocity
|
||||
Newton iteration:
|
||||
assemble effective residual
|
||||
assemble effective tangent K_eff
|
||||
apply boundary, MPC and contact equations
|
||||
solve correction
|
||||
optionally perform line search
|
||||
update trial displacement, velocity and acceleration
|
||||
check convergence
|
||||
if failed and allowed, restore kinematics/state and cut back step
|
||||
commit state
|
||||
write output
|
||||
end for
|
||||
@@ -338,6 +385,15 @@ coupling 层职责:
|
||||
- VTK 结果文件
|
||||
- restart 文件
|
||||
|
||||
第三版输出:
|
||||
|
||||
- 静力学收敛历史文件
|
||||
- 节点反力输出
|
||||
- 接触状态、接触力和接触功输出
|
||||
- 隐式增量残差和迭代次数输出
|
||||
|
||||
第三版当前接触模块保留刚性平面接触,并新增基于边界 facet 的面-面 contact pair force/tangent 路径。完整接触状态、接触功和搜索加速仍属于后续输出与算法增强项。
|
||||
|
||||
输出控制:
|
||||
|
||||
- 输出频率由 fem_control 统一管理。
|
||||
|
||||
Reference in New Issue
Block a user