Math & Numbers
Calcula a vazão sobre um vertedouro de parede delgada e borda viva. Retangular (sem contração lateral): Q=(2/3)·C_d·√(2g)·b·H^1,5; em V (triangular): Q=(8/15)·C_d·√(2g)·tan(θ/2)·H^2,5. b é a largura da crista, H a carga sobre a crista, θ o ângulo do entalhe. Se C_d ficar em branco: 0,611 para retangular (valor típico de Rehbock/Francis), 0,58 para V. Largura em m/cm, carga em m/cm/mm; resultado em m³/s, L/s, L/min e m³/h.
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/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}'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/weir-flow-calculator| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| weirType | select | Não | Rectangular (suppressed, no side contraction) takes crest width b and head H. V-Notch (triangular) takes notch angle θ and head H. |
| crestWidth | number | Sim | Crest width b of the rectangular weir. Enter in the selected Crest Width Unit. Required when Weir Type = Rectangular. |
| crestWidthUnit | select | Não | — |
| notchAngle | number | Não | V-notch angle θ in degrees (0 < θ ≤ 180). Required when Weir Type = V-Notch. |
| head | number |
Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"mcpServers": {
"elysiatools-weir-flow-calculator": {
"name": "weir-flow-calculator",
"description": "Calcula a vazão sobre um vertedouro de parede delgada e borda viva. Retangular (sem contração lateral): Q=(2/3)·C_d·√(2g)·b·H^1,5; em V (triangular): Q=(8/15)·C_d·√(2g)·tan(θ/2)·H^2,5. b é a largura da crista, H a carga sobre a crista, θ o ângulo do entalhe. Se C_d ficar em branco: 0,611 para retangular (valor típico de Rehbock/Francis), 0,58 para V. Largura em m/cm, carga em m/cm/mm; resultado em m³/s, L/s, L/min e m³/h.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=weir-flow-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"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
}
}
}| Sim |
| Head H over the crest (rectangular) or over the vertex (V-notch). Enter in the selected Head Unit. |
| headUnit | select | Não | — |
| dischargeCoefficient | number | Não | 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. |
| gravity | number | Não | Gravitational acceleration g in m/s². |
| decimalPlaces | number | Não | — |
Resultado JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Dúvidas ou problemas? Contate [email protected]