Math & Numbers
按对数平均温差(LMTD)法计算换热器:顺流 ΔT₁=T_h,in-T_c,in、ΔT₂=T_h,out-T_c,out;逆流 ΔT₁=T_h,in-T_c,out、ΔT₂=T_h,out-T_c,in。LMTD=(ΔT₁-ΔT₂)/ln(ΔT₁/ΔT₂),当 ΔT₁=ΔT₂ 时取 ΔT₁;若任一端差 ≤ 0 视为温度交叉(物理不可能)报错。可选填总传热系数 U(W/(m²·K))与传热面积 A(m²),则传热速率 Q=U·A·LMTD(W)。温度仅用于差值:Δ°C=ΔK,°F 差×5/9=ΔK,输出以 K 为单位。
用三种语言从你的代码中调用此工具。
curl -X POST 'https://api.elysiatools.com/zh/api/tools/heat-exchanger-lmtd' \
-H 'Content-Type: application/json' \
-d '{"flowType":"counter","hotInletTemp":100,"hotOutletTemp":60,"coldInletTemp":20,"coldOutletTemp":50,"tempUnit":"°C","heatTransferCoeff":0,"area":0,"decimalPlaces":4}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/heat-exchanger-lmtd| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| flowType | select | 否 | Flow arrangement: Parallel Flow (both streams in the same direction) or Counter Flow (opposite directions). |
| hotInletTemp | number | 是 | Hot-stream inlet temperature T_h,in, in the selected Temperature Unit. |
| hotOutletTemp | number | 是 | Hot-stream outlet temperature T_h,out, in the selected Temperature Unit. |
| coldInletTemp | number | 是 | Cold-stream inlet temperature T_c,in, in the selected Temperature Unit. |
| coldOutletTemp | number | 是 |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-heat-exchanger-lmtd": {
"name": "heat-exchanger-lmtd",
"description": "按对数平均温差(LMTD)法计算换热器:顺流 ΔT₁=T_h,in-T_c,in、ΔT₂=T_h,out-T_c,out;逆流 ΔT₁=T_h,in-T_c,out、ΔT₂=T_h,out-T_c,in。LMTD=(ΔT₁-ΔT₂)/ln(ΔT₁/ΔT₂),当 ΔT₁=ΔT₂ 时取 ΔT₁;若任一端差 ≤ 0 视为温度交叉(物理不可能)报错。可选填总传热系数 U(W/(m²·K))与传热面积 A(m²),则传热速率 Q=U·A·LMTD(W)。温度仅用于差值:Δ°C=ΔK,°F 差×5/9=ΔK,输出以 K 为单位。",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=heat-exchanger-lmtd",
"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": "heat-exchanger-lmtd",
"arguments": {
"flowType": "counter",
"hotInletTemp": 100,
"hotOutletTemp": 60,
"coldInletTemp": 20,
"coldOutletTemp": 50,
"tempUnit": "°C",
"heatTransferCoeff": 0,
"area": 0,
"decimalPlaces": 4
}
}
}有问题或反馈?请联系 [email protected]
| Cold-stream outlet temperature T_c,out, in the selected Temperature Unit. |
| tempUnit | select | 否 | Unit of the four stream temperatures. Only differences matter: Δ°C = ΔK and Δ°F ×5/9 = ΔK. |
| heatTransferCoeff | number | 否 | Overall heat transfer coefficient U in W/(m²·K). Optional; when supplied together with A, the heat transfer rate Q = U·A·LMTD is computed. |
| area | number | 否 | Heat transfer area A in m². Optional; when supplied together with U, the heat transfer rate Q = U·A·LMTD is computed. |
| decimalPlaces | number | 否 | — |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}