Math & Numbers
计算泵的可用净正吸入压头 NPSH_a = (p_surface - p_vapor)/(ρ·g) + H_static - h_friction(单位 m)。液面压力与蒸汽压均为绝对压力;H_static 为正表示灌注(液面高于泵),为负表示吸上(液面低于泵)。再与泵曲线给出的 NPSH_r 比较,给出裕量 margin = NPSH_a - NPSH_r 与比值 ratio = NPSH_a/NPSH_r,并判定为 safe(安全)、marginal(临界,裕量 < 0.5 m)或 cavitation likely(易发生汽蚀)。若 NPSH_r = 0,则仅输出 NPSH_a。压力支持 Pa/kPa/bar/atm/psi,长度支持 m/ft,密度支持 kg/m³/g/cm³/lb/ft³。
用三种语言从你的代码中调用此工具。
curl -X POST 'https://api.elysiatools.com/zh/api/tools/pump-npsh-calculator' \
-H 'Content-Type: application/json' \
-d '{"surfacePressure":1,"pressureUnit":"atm","vaporPressure":2.34,"vaporPressureUnit":"kPa","staticHead":2,"staticHeadUnit":"m","frictionLoss":0.5,"frictionUnit":"m","density":1000,"densityUnit":"kg/m3","gravity":9.81,"npshRequired":3,"npshUnit":"m","decimalPlaces":4}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/pump-npsh-calculator| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| surfacePressure | number | 是 | Absolute pressure at the liquid surface (p_surface). Enter in the selected Pressure Unit. |
| pressureUnit | select | 否 | — |
| vaporPressure | number | 是 | Absolute vapor pressure of the liquid at pumping temperature (p_vapor). Enter in the selected Vapor Pressure Unit. |
| vaporPressureUnit | select | 否 | — |
| staticHead | number | 是 |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-pump-npsh-calculator": {
"name": "pump-npsh-calculator",
"description": "计算泵的可用净正吸入压头 NPSH_a = (p_surface - p_vapor)/(ρ·g) + H_static - h_friction(单位 m)。液面压力与蒸汽压均为绝对压力;H_static 为正表示灌注(液面高于泵),为负表示吸上(液面低于泵)。再与泵曲线给出的 NPSH_r 比较,给出裕量 margin = NPSH_a - NPSH_r 与比值 ratio = NPSH_a/NPSH_r,并判定为 safe(安全)、marginal(临界,裕量 < 0.5 m)或 cavitation likely(易发生汽蚀)。若 NPSH_r = 0,则仅输出 NPSH_a。压力支持 Pa/kPa/bar/atm/psi,长度支持 m/ft,密度支持 kg/m³/g/cm³/lb/ft³。",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pump-npsh-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": "pump-npsh-calculator",
"arguments": {
"surfacePressure": 1,
"pressureUnit": "atm",
"vaporPressure": 2.34,
"vaporPressureUnit": "kPa",
"staticHead": 2,
"staticHeadUnit": "m",
"frictionLoss": 0.5,
"frictionUnit": "m",
"density": 1000,
"densityUnit": "kg/m3",
"gravity": 9.81,
"npshRequired": 3,
"npshUnit": "m",
"decimalPlaces": 4
}
}
}| Elevation of liquid surface above pump centerline (H_static). Positive if liquid level is above the pump (flooded suction), negative for suction lift. Enter in the selected Static Head Unit. |
| staticHeadUnit | select | 否 | — |
| frictionLoss | number | 否 | Suction-line friction head loss (h_friction), already computed. Enter in the selected Friction Loss Unit. |
| frictionUnit | select | 否 | — |
| density | number | 否 | Liquid density (ρ). Enter in the selected Density Unit. |
| densityUnit | select | 否 | — |
| gravity | number | 否 | Gravitational acceleration g in m/s². |
| npshRequired | number | 否 | The pump's required NPSH (NPSH_r) from its curve. Enter in the selected NPSH Unit. If 0, the cavitation comparison is skipped and only NPSH_a is reported. |
| npshUnit | select | 否 | — |
| decimalPlaces | number | 否 | — |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}有问题或反馈?请联系 [email protected]