modelSingleMixing

Model illustrating the operation of single mixing circuits

Extends from BaseClasses.PartialActivePrimary (Partial model of active primary network).

Information

This model represents a heating system where the configuration Buildings.Fluid.HydronicConfigurations.ActiveNetworks.SingleMixing serves as the interface between a variable flow primary circuit at constant supply temperature and a constant flow secondary circuit at variable supply temperature. The primary pump is operated at constant speed so the operating point rides the pump characteristic as the three-way valve closes. The secondary supply temperature is reset with an open loop, representing for instance a reset logic based on the outdoor air temperature. Two identical terminal units are served by the secondary circuit. Each terminal unit has its own hourly load profile.

For this model to simulate properly the ratio of the Kvs coefficient between the bypass branch and the direct branch of the control valve (con.val.fraK) must be set to 1. Otherwise, if con.val.fraK=0.7 cavitation occurs when the secondary pump starts and the control valve is fully open, as the secondary pump head exceeds the primary pressure differential augmented by the pressure drop across the direct branch of the control valve. Alternatively, if the pump is sized with the pressure drop across the direct branch of the control valve (disregarding the higher pressure drop across the bypass) it cannot provide enough head at low supply temperature set point when the valve is partially closed.

Note that the load loa1 is not fully met at partial load (see plot #4 from 17 h in model time) due to the unbalanced bypass of the terminal unit control valves. See Buildings.Fluid.HydronicConfigurations.ActiveNetworks.Examples.DiversionOpenLoop for further details.

Parameters

TypeNameDefaultDescription
Buildings.Fluid.HydronicConfigurations.Types.Controltyp (from PartialActivePrimary)Buildings.Fluid.HydronicConfigurations.Types.Control.HeatingLoad type
IntegernTer (from PartialActivePrimary)2Number of terminal units
RealkSizPum (from PartialActivePrimary)1.0Pump oversizing coefficient
Modelica.Units.SI.Pressurep_min (from PartialActivePrimary)200000Circuit minimum pressure
Modelica.Units.SI.TemperatureTLiqEnt_nominal (from PartialActivePrimary)if typ == Buildings.Fluid.HydronicConfigurations.Types.Control.Heating then 60 + 273.15 else 7 + 273.15Liquid entering temperature at design conditions
Modelica.Units.SI.TemperatureTLiqLvg_nominal (from PartialActivePrimary)TLiqEnt_nominal + (if typ == Buildings.Fluid.HydronicConfigurations.Types.Control.Heating then -10 else +5)Liquid leaving temperature at design conditions
Modelica.Units.SI.TemperatureTLiqEntChg_nominal (from PartialActivePrimary)60 + 273.15Liquid entering temperature in change-over mode
Modelica.Units.SI.TemperatureTLiqSup_nominal (from PartialActivePrimary)TLiqEnt_nominalLiquid primary supply temperature at design conditions
Modelica.Units.SI.TemperatureTLiqSupChg_nominal (from PartialActivePrimary)TLiqEntChg_nominalLiquid primary supply temperature in change-over mode
Nominal condition
Modelica.Units.SI.MassFlowRatemTer_flow_nominal (from PartialActivePrimary)1Terminal unit mass flow rate at design conditions
Modelica.Units.SI.MassFlowRatem1_flow_nominal (from PartialActivePrimary)m2_flow_nominalMass flow rate in primary branch at design conditions
Modelica.Units.SI.MassFlowRatem2_flow_nominal (from PartialActivePrimary)nTer*mTer_flow_nominalMass flow rate in consumer circuit at design conditions
Modelica.Units.SI.PressureDifferencedpTer_nominal (from PartialActivePrimary)3E4Terminal unit pressure drop at design conditions
Modelica.Units.SI.PressureDifferencedpPip_nominal (from PartialActivePrimary)0.5E4Pipe section pressure drop at design conditions
Modelica.Units.SI.PressureDifferencedpPum_nominal (from PartialActivePrimary)Pump head at design conditions
Modelica.Units.SI.MassFlowRatemPum_flow_nominal (from PartialActivePrimary)m1_flow_nominalPrimary pump mass flow rate at design conditions
Dynamics › Conservation equations
Modelica.Fluid.Types.DynamicsenergyDynamics (from PartialActivePrimary)Modelica.Fluid.Types.Dynamics.FixedInitialType of energy balance: dynamic (3 initialization options) or steady state
Configuration
Booleanis_baltrueSet to true for balanced primary branch

Components

TypeNameDefaultDescription
Sources.Boundary_pTref (from PartialActivePrimary)Pressure and temperature boundary condition
Buildings.Fluid.HydronicConfigurations.Components.Pumppum (from PartialActivePrimary)Circulation pump
FixedResistances.PressureDropres1 (from PartialActivePrimary)Pipe pressure drop
Sensors.TemperatureTwoPortT1Ret (from PartialActivePrimary)Return temperature sensor
Sensors.TemperatureTwoPortT1Sup (from PartialActivePrimary)Supply temperature sensor
Buildings.Controls.OBC.CDL.Reals.SubtractdT1 (from PartialActivePrimary)Primary Delta-T
Delays.DelayFirstOrderdel1 (from PartialActivePrimary)Fluid transport delay
Buildings.Fluid.HydronicConfigurations.ActiveNetworks.SingleMixingconHydronic connection
Buildings.Fluid.HydronicConfigurations.ActiveNetworks.Examples.BaseClasses.LoadThreeWayValveControlloaLoad
Buildings.Controls.OBC.CDL.Reals.Sources.TimeTablefraLoaLoad modulating signal
Buildings.Fluid.HydronicConfigurations.ActiveNetworks.Examples.BaseClasses.LoadThreeWayValveControlloa1Load
Sensors.RelativePressuredpDifferential pressure
FixedResistances.PressureDropres2Pipe pressure drop
Buildings.Controls.OBC.CDL.Integers.Sources.TimeTablemodeOperating mode (time schedule)
Buildings.Controls.OBC.CDL.Reals.Sources.TimeTablesetOffOffset applied to design supply temperature to compute set point
Buildings.Controls.OBC.CDL.Reals.AddParameterT2SetConsumer circuit temperature set point
Buildings.Controls.OBC.CDL.Integers.GreaterThresholdisEnaReturns true if enabled

Revisions

  • June 30, 2022, by Antoine Gautier:
    First implementation.