Math & Numbers
Calcula la altura neta positiva de aspiración disponible de la bomba: NPSH_a = (p_surface - p_vapor)/(ρ·g) + H_static - h_friction (en m). Las presiones de superficie y de vapor son absolutas; H_static es positivo para aspiración inundada (líquido sobre la bomba) y negativo para aspiración por elevación (líquido bajo la bomba). Se compara con el NPSH_r de la curva de la bomba, devolviendo el margen margin = NPSH_a - NPSH_r y el cociente ratio = NPSH_a/NPSH_r, y clasifica como safe (seguro), marginal (margen < 0,5 m) o cavitation likely (cavitación probable). Si NPSH_r = 0, solo se informa NPSH_a. Presiones en Pa/kPa/bar/atm/psi, longitud en m/ft, densidad en kg/m³/g/cm³/lb/ft³.
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/pump-npsh-calculator' \
-H 'Content-Type: application/json' \
-d '{"surfacePressure":1,"pressureUnit":"atm","vaporPressure":2.34,"vaporPressureUnit":"kPa","staticHead":2,"staticHeadUnit":"m","frictionLoss":0.5,"frictionUnit":"m","density":1000,"densityUnit":"kg/m3","gravity":9.81,"npshRequired":3,"npshUnit":"m","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/pump-npsh-calculator| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| surfacePressure | number | Sí | Absolute pressure at the liquid surface (p_surface). Enter in the selected Pressure Unit. |
| pressureUnit | select | No | — |
| vaporPressure | number | Sí | Absolute vapor pressure of the liquid at pumping temperature (p_vapor). Enter in the selected Vapor Pressure Unit. |
| vaporPressureUnit | select | No | — |
| staticHead | number | Sí | Elevation of liquid surface above pump centerline (H_static). Positive if liquid level is above the pump (flooded suction), negative for suction lift. Enter in the selected Static Head Unit. |
| staticHeadUnit | select | No | — |
| frictionLoss | number | No | Suction-line friction head loss (h_friction), already computed. Enter in the selected Friction Loss Unit. |
| frictionUnit | select | No | — |
| density | number | No | Liquid density (ρ). Enter in the selected Density Unit. |
| densityUnit | select | No | — |
| gravity | number | No | Gravitational acceleration g in m/s². |
| npshRequired | number | No | The pump's required NPSH (NPSH_r) from its curve. Enter in the selected NPSH Unit. If 0, the cavitation comparison is skipped and only NPSH_a is reported. |
| npshUnit | select | No | — |
| decimalPlaces | number | No | — |
Resultado JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}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-pump-npsh-calculator": {
"name": "pump-npsh-calculator",
"description": "Calcula la altura neta positiva de aspiración disponible de la bomba: NPSH_a = (p_surface - p_vapor)/(ρ·g) + H_static - h_friction (en m). Las presiones de superficie y de vapor son absolutas; H_static es positivo para aspiración inundada (líquido sobre la bomba) y negativo para aspiración por elevación (líquido bajo la bomba). Se compara con el NPSH_r de la curva de la bomba, devolviendo el margen margin = NPSH_a - NPSH_r y el cociente ratio = NPSH_a/NPSH_r, y clasifica como safe (seguro), marginal (margen < 0,5 m) o cavitation likely (cavitación probable). Si NPSH_r = 0, solo se informa NPSH_a. Presiones en Pa/kPa/bar/atm/psi, longitud en m/ft, densidad en kg/m³/g/cm³/lb/ft³.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pump-npsh-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": "pump-npsh-calculator",
"arguments": {
"surfacePressure": 1,
"pressureUnit": "atm",
"vaporPressure": 2.34,
"vaporPressureUnit": "kPa",
"staticHead": 2,
"staticHeadUnit": "m",
"frictionLoss": 0.5,
"frictionUnit": "m",
"density": 1000,
"densityUnit": "kg/m3",
"gravity": 9.81,
"npshRequired": 3,
"npshUnit": "m",
"decimalPlaces": 4
}
}
}¿Dudas o problemas? Contacta con [email protected]