Buildings.DHC.Loads.HotWater.BaseClasses
Package with base classes that are used by multiple models
Information
This package contains base classes that are used to construct the classes in Buildings.DHC.Loads.Heating.DHW.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
Name | Description |
---|---|
HeatExchangerPumpController | Controller for pump of storage tank with external heat exchanger |
PartialFourPortDHW | A partial model for domestic water heating |
TankChargingController | Controller to enable or disable storage tank charging |
TankValveController | Controller to divert the water to the middle or bottom of the tank |
Buildings.DHC.Loads.HotWater.BaseClasses.HeatExchangerPumpController
Controller for pump of storage tank with external heat exchanger
Information
Controller for heat exchanger mass flow rate.
This controller outputs the set point for the head of the heat exchanger pump
on the heating side. The set point is calculated using a PI controller that tracks
the set point for the leaving domestic hot water temperature,
with a minimum controller output equal to yMin
.
By default, yMin=0.3
, which corresponds to a mass flow rate
of 10% of the design flow rate.
If the measured domestic hot water flow rate is close to zero, then the set point for the pump is also set to zero in order to stop the pump if there is no domestic hot water flow rate.
Parameters
Type | Name | Default | Description |
---|---|---|---|
MassFlowRate | mDom_flow_nominal | Domestic hot water design flow rate (used for scaling) [kg/s] | |
PressureDifference | dpPum_nominal | Heating water pump head at full speed through heat exchanger [Pa] | |
Real | k | 0.1 | Proportioanl gain of circulation pump controller |
Real | Ti | 60 | Integrator time constant of circulation pump controller |
Real | yMin | 0.3 | Minimum controller output when pump is on |
Connectors
Type | Name | Description |
---|---|---|
input RealInput | mDom_flow | Domestic hot water mass flow rate [kg/s] |
input RealInput | TDomSet | Temperature setpoint for domestic hot water source from heater [K] |
input RealInput | TDom | Measured hot water temperature [K] |
output RealOutput | dpPumHex | Set point for pump head on heating water side [Pa] |
Modelica definition
Buildings.DHC.Loads.HotWater.BaseClasses.PartialFourPortDHW
A partial model for domestic water heating
Information
This partial model can be used for different domestic hot water generation methods.
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package MediumDom | Modelica.Media.Interfaces.Pa... | Medium for domestic water in the component | |
replaceable package MediumHea | Modelica.Media.Interfaces.Pa... | Medium for heating source in the component | |
Assumptions | |||
Boolean | allowFlowReversalDom | true | = false to simplify equations, assuming, but not enforcing, no flow reversal for domestic water |
Boolean | allowFlowReversalHea | true | = false to simplify equations, assuming, but not enforcing, no flow reversal for heating water |
Connectors
Type | Name | Description |
---|---|---|
replaceable package MediumDom | Medium for domestic water in the component | |
replaceable package MediumHea | Medium for heating source in the component | |
FluidPort_a | port_aDom | Fluid connector for cold water (or recirculation water) |
FluidPort_b | port_bDom | Fluid connector for heated domestic hot water |
FluidPort_a | port_aHea | Fluid connector for heating water (positive design flow direction is from port_a to port_b) |
FluidPort_b | port_bHea | Fluid connector b for heating water (positive design flow direction is from port_a to port_b) |
input RealInput | TDomSet | Temperature setpoint for heated domestic water [K] |
Modelica definition
Buildings.DHC.Loads.HotWater.BaseClasses.TankChargingController
Controller to enable or disable storage tank charging
Information
Controller that outputs charge=true
if the domestic hot
water tank needs to be charged, and false
otherwise.
Whether the tank needs to be charged depends on the difference between the measured top and bottom tank temperatures and the tank's set point. If the top temperature is below the set point with hysteresis, charging is enabled until the bottom temperature reaches the set point with hysteresis, at which point charging is disabled. The hysteresis is 5 Kelvin.
Connectors
Type | Name | Description |
---|---|---|
input RealInput | TTanTop | Measured temperature at top of tank [K] |
input RealInput | TTanTopSet | Temperature setpoint for top section of hot water tank [K] |
output BooleanOutput | charge | Outputs true if tank should be charged |
input RealInput | TTanBot | Measured temperature at bottom of tank [K] |
Modelica definition
Buildings.DHC.Loads.HotWater.BaseClasses.TankValveController
Controller to divert the water to the middle or bottom of the tank
Information
Controller that outputs the commanded position for the valve that diverts the return water to the middle or bottom of the tank.
The controller changes its commanded valve position continuously between 0 and 1.
If the measured temperature TRet
is below TSwi
, the output is
0, otherwise it is 1. The controller has a hysteresis of 2 Kelvin.
Parameters
Type | Name | Default | Description |
---|---|---|---|
Temperature | TSwi | 318.15 | Switching temperature for return water [K] |
Connectors
Type | Name | Description |
---|---|---|
input RealInput | TRet | Return water temperature [K] |
output RealOutput | y | Valve position |