Elysia Tools Docs
ZH
语言
ZHESPTRUFRDEEN
返回主站
浏览工具

Math & Numbers

堰流流量计算器(矩形堰与 V 型三角堰)

计算薄壁锐缘堰的流量。矩形堰(无侧收缩)Q=(2/3)·C_d·√(2g)·b·H^1.5;V 型(三角)堰 Q=(8/15)·C_d·√(2g)·tan(θ/2)·H^2.5。其中 b 为堰宽、H 为堰上水头、θ 为 V 型堰顶角。流量系数 C_d 留空时:矩形堰取 0.611(Rehbock/Francis 简化典型值),V 型堰取 0.58。堰宽支持 m/cm,水头支持 m/cm/mm,结果同时给出 m³/s、L/s、L/min、m³/h 四种单位。

json· JSON 结果打开工具

快速开始

用三种语言从你的代码中调用此工具。

cURL
curl -X POST 'https://api.elysiatools.com/zh/api/tools/weir-flow-calculator' \
  -H 'Content-Type: application/json' \
  -d '{"weirType":"rectangular","crestWidth":1,"crestWidthUnit":"m","notchAngle":90,"head":0.2,"headUnit":"m","dischargeCoefficient":0.611,"gravity":9.81,"decimalPlaces":4}'

API 参考

以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。

请求端点

HTTP
POST https://api.elysiatools.com/zh/api/tools/weir-flow-calculator

请求参数

参数名类型必填说明
weirTypeselect否Rectangular (suppressed, no side contraction) takes crest width b and head H. V-Notch (triangular) takes notch angle θ and head H.
crestWidthnumber是Crest width b of the rectangular weir. Enter in the selected Crest Width Unit. Required when Weir Type = Rectangular.
crestWidthUnitselect否—
notchAnglenumber否V-notch angle θ in degrees (0 < θ ≤ 180). Required when Weir Type = V-Notch.
headnumber是

MCP 集成

将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。

服务配置

将以下内容加入你的 MCP 客户端配置:

mcp.json
{
  "mcpServers": {
    "elysiatools-weir-flow-calculator": {
      "name": "weir-flow-calculator",
      "description": "计算薄壁锐缘堰的流量。矩形堰(无侧收缩)Q=(2/3)·C_d·√(2g)·b·H^1.5;V 型(三角)堰 Q=(8/15)·C_d·√(2g)·tan(θ/2)·H^2.5。其中 b 为堰宽、H 为堰上水头、θ 为 V 型堰顶角。流量系数 C_d 留空时:矩形堰取 0.611(Rehbock/Francis 简化典型值),V 型堰取 0.58。堰宽支持 m/cm,水头支持 m/cm/mm,结果同时给出 m³/s、L/s、L/min、m³/h 四种单位。",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=weir-flow-calculator",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

列出可用工具

连接到 SSE 端点后,列出已开放的工具:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

调用此工具

通过工具 id 调用,参数由其参数表构建:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "weir-flow-calculator",
    "arguments": {
  "weirType": "rectangular",
  "crestWidth": 1,
  "crestWidthUnit": "m",
  "notchAngle": 90,
  "head": 0.2,
  "headUnit": "m",
  "dischargeCoefficient": 0.611,
  "gravity": 9.81,
  "decimalPlaces": 4
}
  }
}
可用逗号分隔的 toolId 在一个会话中串联多个工具,例如 /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp(最多 20 个)。

有问题或反馈?请联系 [email protected]

浏览工具打开工具

© 2026 Elysia Tools. 开发者文档。

返回主站浏览工具
Head H over the crest (rectangular) or over the vertex (V-notch). Enter in the selected Head Unit.
headUnitselect否—
dischargeCoefficientnumber否Discharge coefficient C_d. Leave blank to use the default: 0.611 for rectangular weirs (Rehbock/Francis typical value), 0.58 for V-notch weirs.
gravitynumber否Gravitational acceleration g in m/s².
decimalPlacesnumber否—

响应格式

JSON 结果

JSON
{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}