Math & Numbers
Calcula el caudal sobre un vertedero de pared delgada y arista viva. Rectangular (sin contracción lateral): Q=(2/3)·C_d·√(2g)·b·H^1,5; en V (triangular): Q=(8/15)·C_d·√(2g)·tan(θ/2)·H^2,5. b es el ancho de cresta, H la carga sobre la cresta, θ el ángulo de la escotadura. Si se deja en blanco C_d: rectangular usa 0,611 (valor típico de Rehbock/Francis), en V usa 0,58. Ancho en m/cm, carga en m/cm/mm; el resultado se da en m³/s, L/s, L/min y m³/h.
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/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}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/weir-flow-calculator| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| weirType | select | No | Rectangular (suppressed, no side contraction) takes crest width b and head H. V-Notch (triangular) takes notch angle θ and head H. |
| crestWidth | number | Sí | Crest width b of the rectangular weir. Enter in the selected Crest Width Unit. Required when Weir Type = Rectangular. |
| crestWidthUnit | select | No | — |
| notchAngle | number | No | V-notch angle θ in degrees (0 < θ ≤ 180). Required when Weir Type = V-Notch. |
| head |
Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-weir-flow-calculator": {
"name": "weir-flow-calculator",
"description": "Calcula el caudal sobre un vertedero de pared delgada y arista viva. Rectangular (sin contracción lateral): Q=(2/3)·C_d·√(2g)·b·H^1,5; en V (triangular): Q=(8/15)·C_d·√(2g)·tan(θ/2)·H^2,5. b es el ancho de cresta, H la carga sobre la cresta, θ el ángulo de la escotadura. Si se deja en blanco C_d: rectangular usa 0,611 (valor típico de Rehbock/Francis), en V usa 0,58. Ancho en m/cm, carga en m/cm/mm; el resultado se da en m³/s, L/s, L/min y m³/h.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=weir-flow-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus 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
}
}
}| number |
| Sí |
| Head H over the crest (rectangular) or over the vertex (V-notch). Enter in the selected Head Unit. |
| headUnit | select | No | — |
| dischargeCoefficient | number | No | 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 | No | Gravitational acceleration g in m/s². |
| decimalPlaces | number | No | — |
Resultado JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}¿Dudas o problemas? Contacta con [email protected]