AixLib.Fluid.HeatExchangers.BaseClasses.lmtd

# .AixLib.Fluid.HeatExchangers.BaseClasses.lmtd

Log-mean temperature difference

## Information

This function computes the log mean temperature difference of a heat exchanger.

Note that the implementation requires the temperature differences Ta1 - Tb2 and Tb1 - Ta2 to be not equal to each other.

#### Interface

>     function lmtd
>       input Modelica.Units.SI.Temperature T_a1 "Temperature at port a1";
>       input Modelica.Units.SI.Temperature T_b1 "Temperature at port b1";
>       input Modelica.Units.SI.Temperature T_a2 "Temperature at port a2";
>       input Modelica.Units.SI.Temperature T_b2 "Temperature at port b2";
>       output Modelica.Units.SI.TemperatureDifference lmtd "Log-mean temperature difference";
>     end lmtd;

## Revisions

- November 30, 2020, by Michael Wetter:
  Updated documentation.
  This is for Buildings, #2268.
- May 28, 2010, by Michael Wetter:
  First implementation.

Generated at 2026-05-12T20:19:03Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos