Math & Numbers
由干球温度 + 一种湿度输入(相对湿度 φ、湿球温度、露点温度或含湿量 W)计算湿空气全部状态参数:含湿量 W、相对湿度 φ、露点、湿球、焓 h、比容 v、水蒸气分压 P_w、饱和水蒸气分压 P_ws。采用 Magnus 饱和蒸汽压公式,湿球经热力学 psychrometric 方程迭代求解。默认标准大气 101.325 kPa(可改)。温度支持 °C/K/°F,结果以 °C 输出。
用三种语言从你的代码中调用此工具。
curl -X POST 'https://api.elysiatools.com/zh/api/tools/psychrometric-properties' \
-H 'Content-Type: application/json' \
-d '{"dryBulb":25,"tempUnit":"°C","humidityInput":"rh","humidityValue":50,"humidityRatioUnit":"g/kg","pressure":101.325,"pressureUnit":"kPa","decimalPlaces":4}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/psychrometric-properties| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| dryBulb | number | 是 | Dry-bulb (ambient air) temperature, in the selected Temperature Unit. |
| tempUnit | select | 否 | — |
| humidityInput | select | 否 | Which humidity parameter the Humidity Input Value represents. |
| humidityValue | number | 是 | Value of the selected Known Humidity Input. RH in % (0–100); wet-bulb / dew-point in the selected Temperature Unit; humidity ratio in the selected Humidity Ratio Unit. |
| humidityRatioUnit | select | 否 |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-psychrometric-properties": {
"name": "psychrometric-properties",
"description": "由干球温度 + 一种湿度输入(相对湿度 φ、湿球温度、露点温度或含湿量 W)计算湿空气全部状态参数:含湿量 W、相对湿度 φ、露点、湿球、焓 h、比容 v、水蒸气分压 P_w、饱和水蒸气分压 P_ws。采用 Magnus 饱和蒸汽压公式,湿球经热力学 psychrometric 方程迭代求解。默认标准大气 101.325 kPa(可改)。温度支持 °C/K/°F,结果以 °C 输出。",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=psychrometric-properties",
"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": "psychrometric-properties",
"arguments": {
"dryBulb": 25,
"tempUnit": "°C",
"humidityInput": "rh",
"humidityValue": 50,
"humidityRatioUnit": "g/kg",
"pressure": 101.325,
"pressureUnit": "kPa",
"decimalPlaces": 4
}
}
}有问题或反馈?请联系 [email protected]
| — |
| pressure | number | 否 | Total atmospheric pressure P, in the selected Pressure Unit. Default 101.325 kPa (sea level). |
| pressureUnit | select | 否 | — |
| decimalPlaces | number | 否 | — |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}