Correlation for approach temperature for YorkCalc cooling tower model. See Buildings.Fluid.HeatExchangers.CoolingTowers.Correlations.Examples.YorkCalc for the graph.
function yorkCalc input Modelica.Units.SI.TemperatureDifference TRan "Range temperature (water in - water out)" annotation( Dialog(group = "Nominal condition")); input Modelica.Units.SI.Temperature TWetBul "Air wet-bulb inlet temperature"; input Modelica.Units.SI.MassFraction FRWat "Ratio actual over design water mass flow ratio"; input Modelica.Units.SI.MassFraction FRAir "Ratio actual over design air mass flow ratio"; output Modelica.Units.SI.TemperatureDifference TApp "Approach temperature"; end yorkCalc;
smoothMax
function to prevent division by zero.