Math & Numbers
用 Antoine 型公式 ln(P)=A−B/(T+C) 对常见制冷剂做饱和压力-温度互查:R-22(HCFC-22)、R-134a(HFC-134a)、R-410A(R-32/R-125 近共沸混合物)。系数拟合自 ASHRAE 手册 / NIST REFPROP 饱和表。支持两种模式:由温度求饱和压力、由压力求饱和温度。压力可按绝对或表压输入(默认大气压 1.01325 bar),单位 bar/MPa/kPa/PSI;温度 °C/K/°F。仅供工程估算,不替代厂家 P-T 卡片。
用三种语言从你的代码中调用此工具。
curl -X POST 'https://api.elysiatools.com/zh/api/tools/refrigerant-pressure-temperature' \
-H 'Content-Type: application/json' \
-d '{"refrigerant":"R410A","mode":"pFromT","temperature":7,"tempUnit":"°C","pressure":0,"pressureForm":"absolute","pressureUnit":"bar","atm":1.01325,"decimalPlaces":4}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/refrigerant-pressure-temperature| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| refrigerant | select | 否 | Refrigerant. Coefficients fitted against ASHRAE/NIST saturation tables. |
| mode | select | 否 | Solve saturation pressure from temperature, or saturation temperature from pressure. |
| temperature | number | 否 | Saturation temperature, in the selected Temperature Unit. Used when Input Type = pressure from temperature. |
| tempUnit | select | 否 | — |
| pressure | number | 否 |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-refrigerant-pressure-temperature": {
"name": "refrigerant-pressure-temperature",
"description": "用 Antoine 型公式 ln(P)=A−B/(T+C) 对常见制冷剂做饱和压力-温度互查:R-22(HCFC-22)、R-134a(HFC-134a)、R-410A(R-32/R-125 近共沸混合物)。系数拟合自 ASHRAE 手册 / NIST REFPROP 饱和表。支持两种模式:由温度求饱和压力、由压力求饱和温度。压力可按绝对或表压输入(默认大气压 1.01325 bar),单位 bar/MPa/kPa/PSI;温度 °C/K/°F。仅供工程估算,不替代厂家 P-T 卡片。",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=refrigerant-pressure-temperature",
"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": "refrigerant-pressure-temperature",
"arguments": {
"refrigerant": "R410A",
"mode": "pFromT",
"temperature": 7,
"tempUnit": "°C",
"pressure": 0,
"pressureForm": "absolute",
"pressureUnit": "bar",
"atm": 1.01325,
"decimalPlaces": 4
}
}
}有问题或反馈?请联系 [email protected]
| Saturation pressure, in the selected Pressure Unit. Used when Input Type = temperature from pressure. |
| pressureForm | select | 否 | — |
| pressureUnit | select | 否 | — |
| atm | number | 否 | Local atmospheric pressure in bar (0.5–1.5). Used to convert gauge ↔ absolute. Default 1.01325 bar (sea level). |
| decimalPlaces | number | 否 | — |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}