Skip to content

Add Python GUI for Francis runner design (Bovet method)#1

Open
yechangliang wants to merge 3 commits into
mainfrom
claude/ecstatic-mayer-lmald8
Open

Add Python GUI for Francis runner design (Bovet method)#1
yechangliang wants to merge 3 commits into
mainfrom
claude/ecstatic-mayer-lmald8

Conversation

@yechangliang

Copy link
Copy Markdown
Owner

Summary

  • 把 MATLAB 的 francis-runner-design 工具移植到 Python
  • 用 Tkinter + Matplotlib 提供可交互 GUI:左侧输入 Q/H/rpm/N,右侧实时绘制子午面(轮毂线、外环线、流线、前缘 LE、尾缘 TE)
  • 输出关键尺寸 (nₒ, R₂ₑ, Bo, Roi, Roe, Li/Le 等),支持导出图片

Run

pip install numpy matplotlib
python francis_runner_gui.py

Test plan

  • 示例工况 Q=0.225 m³/s, H=12 m, n=750 rpm, N=3,验证 nₒ≈0.35、R₂ₑ≈150 mm
  • 修改参数后点"生成/刷新",图与数值同步更新
  • 越界工况(nₒ ∉ [0.1, 0.8])弹错提示
  • "保存图片…"按钮可导出 PNG

Generated by Claude Code

user added 3 commits June 10, 2026 14:07
Port the MATLAB francis-runner-design tool to Python with a Tkinter +
Matplotlib interface. Users can adjust Q/H/rpm/N and instantly see the
meridional plane (hub, shroud, streamlines, LE/TE) plus key dimensions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant