Math & Numbers
按 η = P_out / P_in 计算电动机效率。支持电气输入(单相 U·I·cosφ 或三相 √3·U·I·cosφ)或直接输入 P_in;输出功率可由损耗明细(铜损+铁损+机械损+附加损耗)推出,或直接给出。
用三种语言从你的代码中调用此工具。
curl -X POST 'https://api.elysiatools.com/zh/api/tools/motor-efficiency-calculator' \
-H 'Content-Type: application/json' \
-d '{"powerInputMode":"electrical","phase":"three","voltage":400,"current":15,"powerFactor":0.85,"pin":0,"useLosses":false,"pout":8000,"copperLoss":0,"ironLoss":0,"rotorCopperLoss":0,"mechanicalLoss":0,"strayLoss":0,"decimalPlaces":4}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/motor-efficiency-calculator| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| powerInputMode | select | 否 | — |
| phase | select | 否 | Only used in Electrical mode. |
| voltage | number | 否 | Required in Electrical mode. Line-to-line voltage for three-phase. |
| current | number | 否 | Required in Electrical mode. Line current. |
| powerFactor | number | 否 | Required in Electrical mode. 0 < cosφ ≤ 1. |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-motor-efficiency-calculator": {
"name": "motor-efficiency-calculator",
"description": "按 η = P_out / P_in 计算电动机效率。支持电气输入(单相 U·I·cosφ 或三相 √3·U·I·cosφ)或直接输入 P_in;输出功率可由损耗明细(铜损+铁损+机械损+附加损耗)推出,或直接给出。",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=motor-efficiency-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}连接到 SSE 端点后,列出已开放的工具:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}通过工具 id 调用,参数由其参数表构建:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "motor-efficiency-calculator",
"arguments": {
"powerInputMode": "electrical",
"phase": "three",
"voltage": 400,
"current": 15,
"powerFactor": 0.85,
"pin": 0,
"useLosses": false,
"pout": 8000,
"copperLoss": 0,
"ironLoss": 0,
"rotorCopperLoss": 0,
"mechanicalLoss": 0,
"strayLoss": 0,
"decimalPlaces": 4
}
}
}有问题或反馈?请联系 [email protected]
| pin |
| number |
| 否 |
| Required in Direct mode. Total electrical input power in watts. |
| useLosses | checkbox | 否 | If checked, P_out is derived from the loss breakdown below instead of the explicit P_out field. |
| pout | number | 否 | Required when Use Loss Breakdown is off. Shaft mechanical output power in watts. |
| copperLoss | number | 否 | Used when Use Loss Breakdown is on. |
| ironLoss | number | 否 | Core (iron) loss. Used when Use Loss Breakdown is on. |
| rotorCopperLoss | number | 否 | Used when Use Loss Breakdown is on. |
| mechanicalLoss | number | 否 | Friction + windage. Used when Use Loss Breakdown is on. |
| strayLoss | number | 否 | Additional (stray-load) losses. Used when Use Loss Breakdown is on. |
| decimalPlaces | number | 否 | — |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}