# FemLite FemLite 是一个轻量级有限元求解器,核心使用 Fortran 实现,面向结构动力学、静力学、非线性分析、壳/实体单元、接触、材料非线性和紧凑工程 benchmark 开发。 当前项目版本:**0.6.3**。 0.6.3 是元素基础设施版本,新增 `S4R`、受控 `C3D8R`、积分规则基础设施和元素 introspection API。`v0.5.0` 仍是第五版验收检查点,0.6.x 在此基础上继续维护生命周期诊断、restart 诊断、contact/solver/path 输出硬化和 release gate。 ## 当前能力 - 显式动力学、线性静力、非线性静力和隐式 Newmark。 - 实体单元:`C3D4`、`C3D8`、`C3D8R`、`C3D10`、`C3D20`。 - 壳单元:`S3`、`S4`、`S4R`、`S6`、`S8`。 - 内部 Gauss-Legendre、Gauss-Lobatto、闭型 Newton-Cotes 和 simplex symmetric 积分规则基础设施。 - 线弹性、J2/J2_JC 和 Mohr-Coulomb 材料路径。 - 内部 CG、BiCGSTAB、GMRES 和 dense pivoting 线性求解器。 - 接触、mortar/AL、摩擦、cohesive 和颗粒耦合诊断基础设施。 - CSV、VTK、restart、Fortran API 和 C ABI。 - 元素元数据、节点、坐标、积分点、形函数、Jacobian 和 B 矩阵查询。 ## 当前不声明的能力 - 完整 reduced-integration solid 家族和高级 hourglass 控制参数体系。 - 用户侧任意积分规则选择。 - 生产级有限变形 `S4R`。 - 完整工业级 AL/mortar 一致切线。 - 广义 mixed-control continuation。 - cohesive 主线接触 step。 - DEM/FEM 子循环。 - 生产级滚压成形流程。 ## 构建 Windows GCC 示例: ```powershell cmake -S . -B build-win-gcc-16 -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release cmake --build build-win-gcc-16 --config Release ctest --test-dir build-win-gcc-16 --output-on-failure ``` 当前本地开发目录常用命令: ```powershell cmake --build build-codex-gcc --parallel ctest --test-dir build-codex-gcc --output-on-failure ``` ## 0.6.3 Release Gate ```powershell cmake --build build-codex-gcc --parallel ctest --test-dir build-codex-gcc -R "^(smoke|element_infrastructure|database_topology|element_stiffness|shell_internal|c_api)$" --output-on-failure ctest --test-dir build-codex-gcc -R "^source_size$" --output-on-failure ctest --test-dir build-codex-gcc -L v5_acceptance --output-on-failure git diff --check ``` ## 文档 - [文档索引](docs/README.md) - [用户手册](docs/07_user_manual.md) - [开发者手册](docs/08_developer_manual.md) - [版本历史与验收记录](docs/09_release_history.md) - [后续开发路线图](docs/10_development_roadmap.md) - [Benchmark 与验收矩阵](docs/11_benchmark_matrix.md) ## 开发规则 - 保持 V1-V5 已验收行为可回归。 - 新行为必须配套小型、可重复测试或 checker。 - 不提交生成的 CSV、VTK、restart、results 或临时 benchmark 产物。 - 文档使用 UTF-8 without BOM 编码。