Math & Numbers
按 ASHRAE 62.1 通风量规程计算所需新风量:人员分量 Vpz=Rp·P,面积分量 Vaz=Ra·A,呼吸区新风量 Vbz=Vpz+Vaz,区送风量 Voz=Vbz/Ez。支持三种模式:ASHRAE 62.1(人 + 面积)、每人定额(P × Rp)、污染物稀释(Q=G/(C_acc−C_sup),G 可按 mg/s、mg/h 或 L/s 给出,浓度 mg/m³ 或 ppm,ppm 按气体体积分数换算)。结果输出 L/s、m³/h、CFM 三种单位。
用三种语言从你的代码中调用此工具。
curl -X POST 'http://127.0.0.1:3003/zh/api/tools/ventilation-rate-calculator' \
-H 'Content-Type: application/json' \
-d '{"mode":"ashrae","occupants":20,"rp":2.5,"rpUnit":"L/s-person","area":100,"areaUnit":"m2","ra":0.3,"raUnit":"L/s-m2","ez":1,"gGeneration":0,"gUnit":"L/s-gas","cAccept":0,"cSupply":0,"cUnit":"ppm","molarMass":44.01,"decimalPlaces":4}'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST http://127.0.0.1:3003/zh/api/tools/ventilation-rate-calculator| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| mode | select | 否 | ASHRAE 62.1 (people + area), per-person rate, or contaminant dilution. |
| occupants | number | 否 | Number of occupants P. Used in 'ashrae' and 'perperson' modes. |
| rp | number | 否 | Outdoor air rate per person Rp, in the selected Per-person Rate Unit. Used in 'ashrae' and 'perperson' modes. |
| rpUnit | select | 否 | — |
| area | number | 否 | Floor area A, in the selected Area Unit. Used in 'ashrae' mode. |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-ventilation-rate-calculator": {
"name": "ventilation-rate-calculator",
"description": "按 ASHRAE 62.1 通风量规程计算所需新风量:人员分量 Vpz=Rp·P,面积分量 Vaz=Ra·A,呼吸区新风量 Vbz=Vpz+Vaz,区送风量 Voz=Vbz/Ez。支持三种模式:ASHRAE 62.1(人 + 面积)、每人定额(P × Rp)、污染物稀释(Q=G/(C_acc−C_sup),G 可按 mg/s、mg/h 或 L/s 给出,浓度 mg/m³ 或 ppm,ppm 按气体体积分数换算)。结果输出 L/s、m³/h、CFM 三种单位。",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=ventilation-rate-calculator",
"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": "ventilation-rate-calculator",
"arguments": {
"mode": "ashrae",
"occupants": 20,
"rp": 2.5,
"rpUnit": "L/s-person",
"area": 100,
"areaUnit": "m2",
"ra": 0.3,
"raUnit": "L/s-m2",
"ez": 1,
"gGeneration": 0,
"gUnit": "L/s-gas",
"cAccept": 0,
"cSupply": 0,
"cUnit": "ppm",
"molarMass": 44.01,
"decimalPlaces": 4
}
}
}有问题或反馈?请联系 [email protected]
| areaUnit | select | 否 | — |
| ra | number | 否 | Outdoor air rate per unit area Ra, in the selected Area Rate Unit. Used in 'ashrae' mode. |
| raUnit | select | 否 | — |
| ez | number | 否 | Zone air distribution effectiveness Ez (0.1–2). Default 1.0. Typical: ceiling supply cool air = 1.0, warm air = 0.8, floor supply = 1.0. Used in 'ashrae' mode. |
| gGeneration | number | 否 | Pollutant generation rate G, in the selected Pollutant Unit. Used in 'contaminant' mode. For CO₂: ~0.005 L/s per person at rest. |
| gUnit | select | 否 | — |
| cAccept | number | 否 | Acceptable (target) concentration C_acc, in the selected Concentration Unit. Used in 'contaminant' mode. |
| cSupply | number | 否 | Supply (outdoor) air concentration C_sup, in the selected Concentration Unit. Used in 'contaminant' mode. |
| cUnit | select | 否 | — |
| molarMass | number | 否 | Pollutant molar mass M (g/mol), used to convert ppm ↔ mg/m³. Default 44.01 (CO₂). Only used when Concentration Unit = ppm in contaminant mode. |
| decimalPlaces | number | 否 | — |
JSON 结果
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}