Math & Numbers
Calcula el LMTD (diferencia media logarítmica de temperatura) de un intercambiador: en paralelo ΔT₁=T_h,in-T_c,in, ΔT₂=T_h,out-T_c,out; en contracorriente ΔT₁=T_h,in-T_c,out, ΔT₂=T_h,out-T_c,in. LMTD=(ΔT₁-ΔT₂)/ln(ΔT₁/ΔT₂); si ΔT₁=ΔT₂ se toma ΔT₁; si algún ΔT ≤ 0 hay cruce de temperaturas (imposible físicamente) y se lanza error. Opcionalmente, con el coeficiente global U (W/(m²·K)) y el área A (m²), se obtiene el flujo de calor Q=U·A·LMTD (W). Las temperaturas solo se usan como diferencias: Δ°C=ΔK y Δ°F×5/9=ΔK; el LMTD se expresa en K.
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/heat-exchanger-lmtd' \
-H 'Content-Type: application/json' \
-d '{"flowType":"counter","hotInletTemp":100,"hotOutletTemp":60,"coldInletTemp":20,"coldOutletTemp":50,"tempUnit":"°C","heatTransferCoeff":0,"area":0,"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/heat-exchanger-lmtd| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| flowType | select | No | Flow arrangement: Parallel Flow (both streams in the same direction) or Counter Flow (opposite directions). |
| hotInletTemp | number | Sí | Hot-stream inlet temperature T_h,in, in the selected Temperature Unit. |
| hotOutletTemp | number | Sí | Hot-stream outlet temperature T_h,out, in the selected Temperature Unit. |
| coldInletTemp | number | Sí | Cold-stream inlet temperature T_c,in, in the selected Temperature Unit. |
| coldOutletTemp |
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-heat-exchanger-lmtd": {
"name": "heat-exchanger-lmtd",
"description": "Calcula el LMTD (diferencia media logarítmica de temperatura) de un intercambiador: en paralelo ΔT₁=T_h,in-T_c,in, ΔT₂=T_h,out-T_c,out; en contracorriente ΔT₁=T_h,in-T_c,out, ΔT₂=T_h,out-T_c,in. LMTD=(ΔT₁-ΔT₂)/ln(ΔT₁/ΔT₂); si ΔT₁=ΔT₂ se toma ΔT₁; si algún ΔT ≤ 0 hay cruce de temperaturas (imposible físicamente) y se lanza error. Opcionalmente, con el coeficiente global U (W/(m²·K)) y el área A (m²), se obtiene el flujo de calor Q=U·A·LMTD (W). Las temperaturas solo se usan como diferencias: Δ°C=ΔK y Δ°F×5/9=ΔK; el LMTD se expresa en K.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=heat-exchanger-lmtd",
"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": "heat-exchanger-lmtd",
"arguments": {
"flowType": "counter",
"hotInletTemp": 100,
"hotOutletTemp": 60,
"coldInletTemp": 20,
"coldOutletTemp": 50,
"tempUnit": "°C",
"heatTransferCoeff": 0,
"area": 0,
"decimalPlaces": 4
}
}
}| number |
| Sí |
| Cold-stream outlet temperature T_c,out, in the selected Temperature Unit. |
| tempUnit | select | No | Unit of the four stream temperatures. Only differences matter: Δ°C = ΔK and Δ°F ×5/9 = ΔK. |
| heatTransferCoeff | number | No | Overall heat transfer coefficient U in W/(m²·K). Optional; when supplied together with A, the heat transfer rate Q = U·A·LMTD is computed. |
| area | number | No | Heat transfer area A in m². Optional; when supplied together with U, the heat transfer rate Q = U·A·LMTD is computed. |
| decimalPlaces | number | No | — |
Resultado JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}¿Dudas o problemas? Contacta con [email protected]