Motor Parameter Calculator

v1.2.0

电机设计参数计算助手 | 根据基本参数计算极槽配合、匝数、磁密、反电动势等核心设计数据

0· 161·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for yongjie666888/motor-parameter-calculator.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Motor Parameter Calculator" (yongjie666888/motor-parameter-calculator) from ClawHub.
Skill page: https://clawhub.ai/yongjie666888/motor-parameter-calculator
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install motor-parameter-calculator

ClawHub CLI

Package manager switcher

npx clawhub@latest install motor-parameter-calculator
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description, SKILL.md examples, and the included Python script all implement motor design calculations (pole/slot, winding factor, flux, Ke/Kt, slot-sweep). The presence of an additional Node script (calculator.js) is a minor mismatch with SKILL.md (which only documents the Python script) but is explainable as an alternative implementation rather than malicious or unrelated functionality.
Instruction Scope
SKILL.md instructs running the local Python script (scripts/param_calculator.py) and using its interactive or sweep modes. The instructions only read user-provided parameters (command-line args or interactive input) and do not direct the agent to read unrelated files, environment variables, or to transmit data externally.
Install Mechanism
There is no install spec (instruction-only). Code files are bundled with the skill and run locally. The Python script optionally imports numpy/matplotlib for plotting if available — these are standard scientific libraries. No external downloads, URLs, or archive extraction are used.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. The runtime code does not read environment secrets or system config. Optional third-party libraries (numpy/matplotlib) are the only external dependencies and are appropriate for numeric/plotting tasks.
Persistence & Privilege
always is false and the skill does not request persistent or elevated agent/system privileges. The code prints results and, aside from optional plotting, does not modify system-wide configuration or other skills.
Assessment
This package appears to be a straightforward local motor-parameter calculator. Before running it: (1) Inspect the bundled files (scripts/param_calculator.py and calculator.js) yourself — calculator.js is present but not mentioned in SKILL.md; confirm you trust its contents. (2) Run the Python script in a virtual environment (pip install numpy matplotlib if you want plotting) to avoid polluting your system. (3) Because the skill runs locally and prompts for inputs, provide only non-sensitive example values when testing. (4) The package metadata shows minor version/metadata mismatches (_meta.json version 1.0.0 vs registry 1.2.0); this is likely harmless but worth noting. If you need remote/automated execution in an environment with sensitive data, consider sandboxing or code review first.

Like a lobster shell, security has layers — review code before you run it.

latestvk978hrdhn5zzphred0x5s1r6v983gsrm
161downloads
0stars
3versions
Updated 1mo ago
v1.2.0
MIT-0

电机设计参数计算助手 v1.2

根据输入的基本电机参数,快速计算极槽配合、每槽导体数、绕组系数、磁密、反电动势等关键设计数据。 v1.2新增:完整参数计算脚本(param_calculator.py)、槽数扫描分析、性能估算。

计算脚本

# 标准计算
python scripts/param_calculator.py --poles 8 --Q 36 --L 60 --Di 54 --delta 0.5 --Bg 0.75

# 指定绕组参数
python scripts/param_calculator.py --poles 8 --Q 36 --Nph 120 --Imax 15 --R 0.8

# 槽数扫描分析(方案比选)
python scripts/param_calculator.py --sweep_slots --poles 8 --L 60 --Di 54

# 交互模式
python scripts/param_calculator.py --mode interactive

适用场景

  • 电机设计初期参数估算
  • 极槽配合方案比选(槽数扫描)
  • 匝数/线径设计计算
  • 磁密验算

输入参数

参数说明示例值
极数 (2p)极数,必须为偶数8
槽数 (Q)定子槽数36
相数 (m)相数,通常为33
频率 (f)电源频率 Hz50
转速 (n)额定转速 rpm1500
极距 (τ)极距 mm56.5
气隙直径 (D)定子内径 mm120
铁心长度 (L)铁心长度 mm100
气隙磁密 (Bg)气隙磁密 T0.75
每相串联匝数 Nph匝数100
额定电流 Imax相电流峰值 A10
相电阻 RΩ1.0

计算内容

计算项公式说明
极距 τπ×Di/2pmm
每极每相槽数 qQ/(2p×m)分数槽判断
分布系数 Kdsin(q×αe/2)/(q×sin(αe/2))q>1时生效
短距系数 Kpsin(πy/2τ)y=节距槽数
总绕组系数 KwKd×Kp通常>0.85
每极气隙磁通 ΦgBg×τ×LmWb
反电动势常数 Ke4.44×f×Nph×Kw×ΦgV(线间有效值)
转矩常数 Kt1.5×p×Kw×Nph×ΦgNm/A
机械时间常数 TmJ×R/(3×(Nph×Kw×Φg×p)²)s

槽数扫描分析

扫描不同槽数方案,对比 q、Kw、τ、Kt 等参数,辅助选型:

python scripts/param_calculator.py --sweep_slots --poles 8 --L 60 --Di 54

典型扫描结果格式:

Q     q      Kw      τ/mm    Bg/T    Kt
36   1.500  0.9450   21.2    0.750  0.1234
48   2.000  0.9660   16.9    0.750  0.1234
24   1.000  1.0000   42.4    0.750  0.1234

常见极槽配合参考

极数槽数q特点
8361.5分数槽,常见伺服电机
8482.0整数槽,低齿槽转矩
6362.0整数槽,平衡性好
10602.0整数槽,低振动
4242.0整数槽,简单绕制

示例对话

用户:帮我计算极数8,槽数48,相数3,频率50Hz,转速1500rpm的极槽配合参数
助手:运行 param_calculator.py,自动计算 q值、每槽角度、绕组系数等

用户:对比8极36槽和8极48槽
助手:运行 --sweep_slots 模式,给出对比表格

Comments

Loading comments...