Math & Numbers
按平壁热阻串联模型计算总传热系数:总热阻 R_total=ΣR_i(K/W),热导 G=1/R_total(W/K),基于面积的传热系数 U=1/(R_total·A)(W/(m²·K));若给定温差 ΔT,另算热流量 Q=ΔT/R_total(W)。R_i 为各层热阻(已含面积因子,如对流 R_conv=1/(h·A)、导热 R_cond=d/(k·A)、污垢 R_foul=R_f''/A)。每行输入一个热阻值,至少一个,且均需为正。ΔT 可为负(表示反向热流);°C 温差与 K 温差相等,°F 温差需乘 5/9。
用三种语言从你的代码中调用此工具。
curl -X POST 'http://127.0.0.1:3003/zh/api/tools/overall-heat-transfer-coefficient' \
-H 'Content-Type: application/json' \
-d '{"resistances":"0.02\n0.5\n0.01","area":1,"temperatureDiff":0,"tempUnit":"K","decimalPlaces":4}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST http://127.0.0.1:3003/zh/api/tools/overall-heat-transfer-coefficient| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| resistances | textarea | 是 | One thermal resistance per line (K/W), already containing the area factor (e.g. R_conv=1/(h·A), R_cond=d/(k·A), R_foul=R_f''/A). At least one positive value required. |
| area | number | 否 | Heat transfer area A (m²) used to collapse R_total to the area-based overall coefficient U = 1/(R_total·A). Must be positive. |
| temperatureDiff | number | 否 | Temperature difference ΔT across the resistance stack, in the selected Temperature Unit. If provided, the heat flow rate Q = ΔT/R_total is computed. May be negative to indicate the reverse heat-flow direction. |
| tempUnit | select | 否 | Unit of the temperature difference. This is a difference, not an absolute temperature: Δ°C = ΔK and Δ°F ×5/9 = ΔK. |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-overall-heat-transfer-coefficient": {
"name": "overall-heat-transfer-coefficient",
"description": "按平壁热阻串联模型计算总传热系数:总热阻 R_total=ΣR_i(K/W),热导 G=1/R_total(W/K),基于面积的传热系数 U=1/(R_total·A)(W/(m²·K));若给定温差 ΔT,另算热流量 Q=ΔT/R_total(W)。R_i 为各层热阻(已含面积因子,如对流 R_conv=1/(h·A)、导热 R_cond=d/(k·A)、污垢 R_foul=R_f''/A)。每行输入一个热阻值,至少一个,且均需为正。ΔT 可为负(表示反向热流);°C 温差与 K 温差相等,°F 温差需乘 5/9。",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=overall-heat-transfer-coefficient",
"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": "overall-heat-transfer-coefficient",
"arguments": {
"resistances": "0.02\n0.5\n0.01",
"area": 1,
"temperatureDiff": 0,
"tempUnit": "K",
"decimalPlaces": 4
}
}
}有问题或反馈?请联系 [email protected]
| decimalPlaces | number | 否 | — |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}