function T1OutHX
input Modelica.SIunits.HeatFlowRate QFlow_nominal "Absolute nominal heat flow rate";
input Modelica.SIunits.HeatFlowRate QFlow "Actual heat flow rate";
input Modelica.SIunits.SpecificHeatCapacity cp "Heat capacity of fluid";
input Modelica.SIunits.Temperature T1In_nominal "Nominal Temperature of inflow at network side";
input Modelica.SIunits.Temperature T1Out_nominal "Nominal Temperature of outflow at network side";
input Modelica.SIunits.Temperature T2In_nominal "Nominal Temperature of inflow at building side";
input Modelica.SIunits.Temperature T2Out_nominal "Nominal Temperature of outflow at building side";
input Modelica.SIunits.Temperature T1In "Actual temperature of inflow at network side";
input Modelica.SIunits.Temperature T2Out "Actual temperature of outflow at building side";
input Boolean FlagHeatCon = true "If true: heat consumer; if false: cold consumer";
output Modelica.SIunits.Temperature T1Out "Actual temperature of outflow at network side";
end T1OutHX;