Math & Numbers
由新风风量 Q 与房间体积 V 求换气次数 n=Q/V(单位 1/h)。支持三种模式:求 n(给 Q、V)、求风量 Q(给 n、V)、求体积 V(给 n、Q)。风量支持 m³/s/m³/h/CFM,体积支持 m³/ft³/L。并按完全混合单区衰减模型给出达到设定净化目标(剩余比例,默认 1%)所需时间 t=−ln(ε)/n。
用三种语言从你的代码中调用此工具。
curl -X POST 'https://api.elysiatools.com/zh/api/tools/air-changes-per-hour' \
-H 'Content-Type: application/json' \
-d '{"mode":"ach","flowRate":300,"flowUnit":"m3/h","volume":60,"volumeUnit":"m3","ach":0,"purgeFraction":0.01,"decimalPlaces":4}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/air-changes-per-hour| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| mode | select | 否 | Solve ACH n (needs Q and V), solve Air Flow (needs n and V), or solve Volume (needs n and Q). |
| flowRate | number | 否 | Outdoor / supply volumetric airflow Q. Enter in the selected Flow Unit. Required unless solving flow. |
| flowUnit | select | 否 | — |
| volume | number | 否 | Room (conditioned space) volume V. Enter in the selected Volume Unit. Required unless solving volume. |
| volumeUnit | select | 否 |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-air-changes-per-hour": {
"name": "air-changes-per-hour",
"description": "由新风风量 Q 与房间体积 V 求换气次数 n=Q/V(单位 1/h)。支持三种模式:求 n(给 Q、V)、求风量 Q(给 n、V)、求体积 V(给 n、Q)。风量支持 m³/s/m³/h/CFM,体积支持 m³/ft³/L。并按完全混合单区衰减模型给出达到设定净化目标(剩余比例,默认 1%)所需时间 t=−ln(ε)/n。",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=air-changes-per-hour",
"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": "air-changes-per-hour",
"arguments": {
"mode": "ach",
"flowRate": 300,
"flowUnit": "m3/h",
"volume": 60,
"volumeUnit": "m3",
"ach": 0,
"purgeFraction": 0.01,
"decimalPlaces": 4
}
}
}有问题或反馈?请联系 [email protected]
| — |
| ach | number | 否 | Air-change rate n (1/h). Required when solving flow or volume; ignored when solving ACH. |
| purgeFraction | number | 否 | Residual contaminant fraction ε after purge, between 0 and 1 (exclusive of 0). Default 0.01 (1%). The well-mixed purge time is t = −ln(ε)/n hours. |
| decimalPlaces | number | 否 | — |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}