Math & Numbers
Calcule le LMTD (écart moyen logarithmique de température) d'un échangeur : co-courant ΔT₁=T_h,in-T_c,in, ΔT₂=T_h,out-T_c,out ; contre-courant ΔT₁=T_h,in-T_c,out, ΔT₂=T_h,out-T_c,in. LMTD=(ΔT₁-ΔT₂)/ln(ΔT₁/ΔT₂) ; si ΔT₁=ΔT₂ on prend ΔT₁ ; si un ΔT ≤ 0 il y a croisement de températures (impossible physiquement), d'où une erreur. Si l'on fournit le coefficient global U (W/(m²·K)) et la surface A (m²), le flux thermique Q=U·A·LMTD (W). Les températures ne servent que comme différences : Δ°C=ΔK et Δ°F×5/9=ΔK ; le LMTD est exprimé en K.
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/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}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/heat-exchanger-lmtd| Nom | Type | Requis | Description |
|---|---|---|---|
| flowType | select | Non | Flow arrangement: Parallel Flow (both streams in the same direction) or Counter Flow (opposite directions). |
| hotInletTemp | number | Oui | Hot-stream inlet temperature T_h,in, in the selected Temperature Unit. |
| hotOutletTemp | number | Oui | Hot-stream outlet temperature T_h,out, in the selected Temperature Unit. |
| coldInletTemp | number | Oui | Cold-stream inlet temperature T_c,in, in the selected Temperature Unit. |
| coldOutletTemp |
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-heat-exchanger-lmtd": {
"name": "heat-exchanger-lmtd",
"description": "Calcule le LMTD (écart moyen logarithmique de température) d'un échangeur : co-courant ΔT₁=T_h,in-T_c,in, ΔT₂=T_h,out-T_c,out ; contre-courant ΔT₁=T_h,in-T_c,out, ΔT₂=T_h,out-T_c,in. LMTD=(ΔT₁-ΔT₂)/ln(ΔT₁/ΔT₂) ; si ΔT₁=ΔT₂ on prend ΔT₁ ; si un ΔT ≤ 0 il y a croisement de températures (impossible physiquement), d'où une erreur. Si l'on fournit le coefficient global U (W/(m²·K)) et la surface A (m²), le flux thermique Q=U·A·LMTD (W). Les températures ne servent que comme différences : Δ°C=ΔK et Δ°F×5/9=ΔK ; le LMTD est exprimé en K.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=heat-exchanger-lmtd",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"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 |
| Oui |
| Cold-stream outlet temperature T_c,out, in the selected Temperature Unit. |
| tempUnit | select | Non | Unit of the four stream temperatures. Only differences matter: Δ°C = ΔK and Δ°F ×5/9 = ΔK. |
| heatTransferCoeff | number | Non | 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 | Non | Heat transfer area A in m². Optional; when supplied together with U, the heat transfer rate Q = U·A·LMTD is computed. |
| decimalPlaces | number | Non | — |
Résultat JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Des questions ou un problème ? Contactez [email protected]