Given the design mass flow rate, the design pressure drop of all equipment in series, the pump parameters and the pump speed, the function returns the pressure drop of a balancing valve at design flow, so that the total pressure drop is equal to the pump head.
The model Buildings.Templates.Plants.HeatPumps.Components.Validation.PumpsPrimaryDedicated serves as a validation model for this function and illustrates how the function can be used to calculate either the design pressure drop of balancing valves or the primary pump speed required to provide the design flow.
function computeBalancingPressureDrop extends Modelica.Icons.Function; input Modelica.Units.SI.MassFlowRate m_flow_nominal "Design mass flow rate (target)"; input Modelica.Units.SI.PressureDifference dp_nominal "Pressure drop of equipment in series at design flow rate"; input Buildings.Templates.Components.Data.PumpSingle datPum "Pump parameters"; input Real r_N(unit = "1") = 1 "Relative revolution, r_N=N/N_nominal"; output Modelica.Units.SI.PressureDifference dpBal_nominal "Pressure drop of balancing valve at design flow rate"; end computeBalancingPressureDrop;