Math & Numbers
Calculadora de Vazão em Vertedouro (Retangular e em V Triangular)
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.
Início rápido
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}'Referência da API
Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
Endpoint
POST https://api.elysiatools.com/pt/api/tools/weir-flow-calculatorParâmetros
| 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 |
Integração MCP
Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Configuração do servidor
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"
}
}
}Listar ferramentas disponíveis
Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Chamar esta ferramenta
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
}
}
}