modelStation_m_flow

Extends from BuildingSystems.Technologies.DistrictHeatingNetworks.EnergyTransferStations.BaseClasses.PartialStation.

Information

The station model uses the ambient air temperature to determine the set point for the supply temperature in the building (secondary loop). The exact temperature depends on the parameters Tsupply_max, Tsupply_min,factor_Tsupply of the tanhAmbience block.

This set temperature is used to determine the mass flow rate in the pump pumpDHN.

The building/zone tempearture input signal is used to determine the percentage of nominal mass flow rate that should be pumped by pumpHeating. The block externalIdealHeater extracts energy so that the fluid undergoes a temperature drop equal to the paremeter Tdrop.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.Efficiencyeps (from PartialStation)0.9Heat exchanger effectiveness
Modelica.Units.SI.TemperatureTminDHN273.15 + 30Minimum return temperature in building's installation
Modelica.Units.SI.TemperatureDifferenceTdrop25Desired Temperature drop in building's installation
Realeps_inst1Factor accountig per inneficiency of installation. Increase heat to be delivered
Modelica.Units.SI.TemperatureTsupply_max273.15 + 90Maximum supply temperature in building
Modelica.Units.SI.TemperatureTsupply_min273.15 + 70Minimum supply temperature in building
Realfactor_Tsupply7Un- or smooth changes of the supply set temperature. tanh((InSignal-SetValue)/factor) (notice, tanh(1)=0.7616 tanh(3)=0.9951)
Realfactor_m_flow0.05Un- or smooth changes of mass flow rate of the heating system. tanh((InSignal-SetValue)/factor) (notice, tanh(1)=0.7616 tanh(3)=0.9951)
BooleanaddPowerToMediumfalseSet to false to avoid any power in the pump model (=heat and flow work) being added to medium (may give simpler equations)
Assumptions
BooleanallowFlowReversal (from PartialTwoPort)true= false to simplify equations, assuming, but not enforcing, no flow reversal
Nominal condition
Modelica.Units.SI.MassFlowRatem_flow_nominal (from PartialTwoPortInterface)Nominal mass flow rate
Modelica.Units.SI.HeatFlowRateQ_nominalNominal Heat power in the Heat Transfer Station
Modelica.Units.SI.MassFlowRatem_flow_nominalDHN1.05*m_flow_nominalHeatingNominal mass flow rate
Modelica.Units.SI.Pressuredp_nominalDHN40000Nominal pressure drop at the Heat Exchanger DHN loop
Modelica.Units.SI.MassFlowRatem_flow_nominalHeatingQ_nominal/4182/TdropNominal mass flow rate
Modelica.Units.SI.Pressuredp_nominalHeating40000Nominal pressure drop at the Heat Exchanger heating installation loop
Advanced
Modelica.Units.SI.MassFlowRatem_flow_small (from PartialTwoPortInterface)1E-4*abs(m_flow_nominal)Small mass flow rate for regularization of zero flow
Advanced › Diagnostics
Booleanshow_T (from PartialTwoPortInterface)false= true, if actual temperature at port is computed

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a (from PartialTwoPort)Fluid connector a (positive design flow direction is from port_a to port_b)
Modelica.Fluid.Interfaces.FluidPort_bport_b (from PartialTwoPort)Fluid connector b (positive design flow direction is from port_a to port_b)
Modelica.Blocks.Interfaces.RealInputambienceTAirRef (from PartialStation)
Modelica.Blocks.Interfaces.RealInputzoneTAir (from PartialStation)
Modelica.Blocks.Interfaces.RealInputTset (from PartialStation)Heating set temperature
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aRadheat (from PartialStation)
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aConheat (from PartialStation)

Components

TypeNameDefaultDescription
Modelica.Units.SI.MassFlowRatem_flow (from PartialTwoPortInterface)port_a.m_flowMass flow rate from port_a to port_b (m_flow > 0 is design flow direction)
Modelica.Units.SI.PressureDifferencedp (from PartialTwoPortInterface)port_a.p - port_b.pPressure difference between port_a and port_b
Medium.ThermodynamicStatesta_a (from PartialTwoPortInterface)if allowFlowReversal then Medium.setState_phX(port_a.p, noEvent(actualStream(port_a.h_outflow)), noEvent(actualStream(port_a.Xi_outflow))) else Medium.setState_phX(port_a.p, noEvent(inStream(port_a.h_outflow)), noEvent(inStream(port_a.Xi_outflow)))Medium properties in port_a
Medium.ThermodynamicStatesta_b (from PartialTwoPortInterface)if allowFlowReversal then Medium.setState_phX(port_b.p, noEvent(actualStream(port_b.h_outflow)), noEvent(actualStream(port_b.Xi_outflow))) else Medium.setState_phX(port_b.p, noEvent(port_b.h_outflow), noEvent(port_b.Xi_outflow))Medium properties in port_b
Fluid.HeatExchangers.ConstantEffectivenesshex (from PartialStation)
BuildingSystems.Technologies.DistrictHeatingNetworks.Utilities.TanhtanhAmbience
Modelica.Blocks.Sources.ConstantconstAmbience
BuildingSystems.Fluid.Movers.FlowControlled_m_flowpumpDHN
BuildingSystems.Controls.Continuous.LimPIDconPID
BuildingSystems.Technologies.DistrictHeatingNetworks.Utilities.TanhtanhZone
BuildingSystems.Fluid.Sensors.TemperaturesenTemSupply
BuildingSystems.Fluid.Movers.FlowControlled_m_flowpumpHeating
BuildingSystems.Fluid.Storage.ExpansionVesselexp
Modelica.Blocks.Sources.RealExpressionm_flow_signal
BaseClasses.ExternalIdealHeaterexternalIdealHeater
Modelica.Blocks.Sources.RealExpressionQ
Modelica.Blocks.Sources.RealExpressionTmin
Buildings.BaseClasses.RelationRadiationConvectionrelationRadiationConvection
Fluid.MixingVolumes.MixingVolumevol