Release FemLite 0.6.3
FemLite CI / build-test (push) Has been cancelled

This commit is contained in:
shenw
2026-07-02 12:40:31 +08:00
parent ee18a9b757
commit 3d009d021e
197 changed files with 4027 additions and 46170 deletions
+19 -56
View File
@@ -1,69 +1,32 @@
# shell_patch_test
# 壳单元 patch test
FemLite shell membrane patch test for linear S3 and S4 shell elements.
文档状态:0.6.3 文档整理稿
This example imposes the exact displacement field
## 用途
```text
ux = 0.01*x
uy = 0
uz = rx = ry = rz = 0
```
本目录保存 FemLite 示例或 benchmark:`shell_patch_test`。它用于验证指定模型、算法路径或输出检查器,不代表所有相近工程问题都已完整生产化。
on every node of a small distorted 2x2 shell patch. The expected global
plane-stress state is constant:
## 主要输入文件
```text
sigma_x = E/(1 - nu^2)*0.01 = 0.32
sigma_y = nu*E/(1 - nu^2)*0.01 = 0.08
tau_xy = 0
```
System.Object[]
Benchmark data:
## 运行方式
- Geometry: unit square midsurface in the global x-y plane, with interior nodes
shifted to form a distorted patch.
- Thickness: 0.2.
- Material: E = 30.0, nu = 0.25, density = 1.0.
- Element decks:
- `shell_patch_s3.inp`: 9 nodes, 8 S3 elements.
- `shell_patch_s4.inp`: 9 nodes, 4 S4 elements.
- Analysis: linear static solve with prescribed nodal displacement field.
- Windows 下可双击或执行 `run_case.bat`。
- 若该示例已接入 CTest,优先使用项目测试计划中记录的 CTest 名称运行。
- 运行前请先完成项目编译。
Regenerate input decks:
## 检查脚本
```powershell
Python\.venv\Scripts\python.exe examples\shell_patch_test\generate_shell_patch_test.py
```
System.Object[]
Run from the repository root:
## 结果文件
```powershell
New-Item -ItemType Directory -Force examples\shell_patch_test\results\s3 | Out-Null
build-win-gcc-16\femlite.exe examples\shell_patch_test\shell_patch_s3.inp --output-dir examples\shell_patch_test\results\s3 --static-linear
```
- 结果通常写入 `results`、`results/auto_run` 或命令指定的输出目录。
- 不要提交全量 CSV、VTK、restart、临时网格或缓存文件。
- 如需保留参考结果,只保留小型 summary、profile 或 checker 需要的抽样数据。
```powershell
New-Item -ItemType Directory -Force examples\shell_patch_test\results\s4 | Out-Null
build-win-gcc-16\femlite.exe examples\shell_patch_test\shell_patch_s4.inp --output-dir examples\shell_patch_test\results\s4 --static-linear
```
## 边界
Check the results:
```powershell
Python\.venv\Scripts\python.exe examples\shell_patch_test\check_shell_patch_results.py --case s3
Python\.venv\Scripts\python.exe examples\shell_patch_test\check_shell_patch_results.py --case s4
```
The checker compares:
- nodal displacement output against the exact field;
- element-average local shell stresses against the exact global stress tensor
rotated into each element's local shell basis.
Current result:
| Deck | Max displacement error | Max local stress error |
|---|---:|---:|
| `shell_patch_s3.inp` | 8.673617E-19 | 2.498002E-16 |
| `shell_patch_s4.inp` | 8.673617E-19 | 5.551115E-17 |
- 示例和 benchmark 是受控验收入口,不等同于完整工业级流程。
- 若修改输入、checker 或参考容差,应同步更新 `docs/11_benchmark_matrix.md`。