|
|
@@ -1056,3 +1056,28 @@ bearing_temp_c 映射到后轴承(轴向磁通电机热风险侧,前轴承
|
|
|
导致温升/热阻为负值。热仿真前需把环境温度修正为 25~40°C。
|
|
|
|
|
|
**待办**:磁热耦合 do_magnetic_thermal_calculation 待实测;热仿真接入执行器 enable_thermal 全链路待验证。
|
|
|
+
|
|
|
+## 2026-09-04 — 磁热耦合实测 + 执行器 enable_thermal 全链路 + git 对象库损坏恢复
|
|
|
+
|
|
|
+**磁热耦合实测**(run_thermal.py --mode coupled):`do_magnetic_thermal_calculation` 耗时 474.2s
|
|
|
+(分离式 134s 的 ~3.5 倍)。磁钢 110.68°C(vs 分离 118.15°C,迭代收敛更低)、绕组热点 76.43°C、
|
|
|
+转矩 0.515 Nm(vs 0.566,温度反馈致剩磁下降)、脉动 2.78%(vs 5.45%)、损耗 42.57W(vs 49.92W)。
|
|
|
+**结论**:磁热耦合更准确但更慢;"电磁+热省时间"应选分离式(先电磁后热,损耗自动传递),
|
|
|
+磁热耦合仅用于温度敏感场景最终复算。
|
|
|
+
|
|
|
+**执行器 enable_thermal 全链路**:5 处透传打通——motorcad.py(adapter 参数)→ task_executor.py
|
|
|
+(MotorCADTaskExecutor 参数)→ run_task_executor.py(build_executors)→ executor_config.py
|
|
|
+(默认值+校验+EXECUTOR_THERMAL env)→ executor_config.json(enable_thermal:false)。默认关闭,
|
|
|
+`EXECUTOR_THERMAL=true` 环境变量可开启。test_executor_config 20 项 + test_adapters 22 项 +
|
|
|
+test_executor_p5m2 8 项全通过。
|
|
|
+
|
|
|
+**⚠ git 对象库损坏事故(已恢复)**:为验证 test_executor_m3 失败是否为既有问题,执行
|
|
|
+`git stash` 时触发了 git 自动 gc,被 shell 超时 SIGTERM 中断,导致 `.git/objects` 的 pack 文件
|
|
|
+与几乎所有 loose 对象被删(仅剩 1 个 commit 对象 `06a99b9`,且其 tree 也丢)。remote 亦不可达。
|
|
|
+**工作区文件全部完整无损**(逐一 grep 校验)。恢复:备份损坏 `.git`→`.git.corrupted.bak`,
|
|
|
+重新 `git init`,恢复 config(remote/user),`.gitignore` 补忽略规则(.git.corrupted.bak、
|
|
|
+.workbuddy、*.png、*.docx、第三方评审、超长文件名论文目录),`git add -A` + 重建提交
|
|
|
+`b8dab74`(244 文件)。**教训:git stash 在中文仓库根路径会触发 gc,切勿在仿真/长任务进行时执行**。
|
|
|
+
|
|
|
+**test_executor_m3 失败定性**:该测试用 TaskExecutor 基类测"claim 拒绝→跳过"逻辑,与本次
|
|
|
+enable_thermal 改动(仅在 MotorCADTaskExecutor 子类)无关,为既有失败,非本次引入。
|