Thermal Exchanger
thermal_exchangerCalculate heat exchanger duty and outlet temperatures, or size required UA/area, using effectiveness-NTU cross-checked with LMTD for parallel, counterflow, crossflow, and shell-tube arrangements.
Instructions
Heat exchanger by effectiveness-NTU, cross-checked with the LMTD method. Arrangements: parallel, counterflow, crossflow_unmixed (both fluids unmixed), crossflow_hot_mixed / crossflow_cold_mixed (that fluid mixed, the other unmixed), shell_tube (one shell pass, 2+ tube passes). RATING: give 'ua' (or 'overall_u' and 'area') and get duty and both outlet temperatures. SIZING: give 'duty' (and optionally 'overall_u') and get UA (and area). Capacity rates are mass_flow x cp for each fluid. Returns effectiveness, NTU, Cr, LMTD, correction factor F, and refuses an impossible duty (outlet beyond the other fluid's inlet, or beyond what the arrangement can reach); warns at a temperature cross.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"arrangement": "<arrangement>",
"hot_inlet_temperature": "<hot_inlet_temperature>",
"cold_inlet_temperature": "<cold_inlet_temperature>",
"hot_mass_flow": "<hot_mass_flow>",
"hot_cp": "<hot_cp>",
"cold_mass_flow": "<cold_mass_flow>",
"cold_cp": "<cold_cp>"
},
"name": "thermal_exchanger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ua | No | RATING: overall conductance U*A, e.g. '5000 W/K' | |
| area | No | RATING with overall_u: heat transfer area, e.g. '10 m^2' | |
| duty | No | SIZING: required heat duty, e.g. '200 kW' | |
| hot_cp | Yes | Hot fluid specific heat, e.g. '2100 J/(kg*K)' | |
| cold_cp | Yes | Cold fluid specific heat, e.g. '4180 J/(kg*K)' | |
| overall_u | No | Overall coefficient U, e.g. '500 W/(m^2*K)'. With 'area' it gives UA (rating); with 'duty' it gives the area (sizing). | |
| arrangement | Yes | 'parallel', 'counterflow', 'crossflow_unmixed', 'crossflow_hot_mixed', 'crossflow_cold_mixed' or 'shell_tube' | |
| unit_system | No | Unit system of the results: 'metric' (degC, W, m, W/m2/K) or 'imperial' (degF, Btu/h, ft, Btu/h/ft2/degF) | metric |
| hot_mass_flow | Yes | Hot fluid mass flow, e.g. '2 kg/s' | |
| cold_mass_flow | Yes | Cold fluid mass flow, e.g. '1.5 kg/s' | |
| hot_inlet_temperature | Yes | Hot fluid inlet temperature, e.g. '150 degC' | |
| cold_inlet_temperature | Yes | Cold fluid inlet temperature, e.g. '20 degC' (must be below the hot inlet) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |