Fucntion calculates logarithmic mean temperature of counter flow heat exchanger
function LogMeanTemp input Modelica.SIunits.Temperature T1In "Temperature of inflow at network side"; input Modelica.SIunits.Temperature T1Out "Temperature of outflow at network side"; input Modelica.SIunits.Temperature T2In "Temperature of inflow at building side"; input Modelica.SIunits.Temperature T2Out "Temperature of outflow at network side"; output Modelica.SIunits.TemperatureDifference dTm "Logarithmic mean temperature"; end LogMeanTemp;