blockTankChargingController
Controller to enable or disable storage tank charging
Information
Adapted fromBuildings.DHC.Loads.HotWater.BaseClasses.TankChargingController.
- The hysteresis parameters are exposed.
- Added a routing block so that it could be applied to both hot and cold tanks, i.e. either the top or bottom of the tank could be the supply side or the return side.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.TemperatureDifference | dTOffSet | if isHotWat then +1 else -1 | Offset for set point to have a slightly higher (or lower) temperature than the required supply from the load |
| Boolean | isHotWat | True if the tank supplies hot water, False for chilled water |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | TTanTop | Measured temperature at top of tank | |
| Modelica.Blocks.Interfaces.RealInput | TTanSet | Tank temperature set point, top for hot tank and bottom for cold tank | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | charge | Outputs true if tank should be charged | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | TTanBot | Measured temperature at bottom of tank |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Logical.Latch | lat | Latch to enable charging and hold it until charged | |
| Buildings.Controls.OBC.CDL.Logical.Not | not1 | Negation of charge signal | |
| Buildings.Controls.OBC.CDL.Logical.And | chaTopBot | Outputs true if top and bottom test wants tank to be charged. Used to override latch if tank temperature drops without triggering latch | |
| Buildings.Controls.OBC.CDL.Logical.Or | or1 | Or block to enable charge if one of the inputs request charging | |
| Buildings.Controls.OBC.CDL.Reals.AddParameter | dTOffChaOn | Offset for charge on signal | |
| Buildings.Controls.OBC.CDL.Reals.AddParameter | dTOffChaOff | Offset for charge off signal | |
| Buildings.Controls.OBC.CDL.Reals.Greater | chaTopHea | Charging signal for hot water tank | |
| Buildings.Controls.OBC.CDL.Reals.Greater | chaTBotHea | Charging signal for hot water tank | |
| Buildings.Controls.OBC.CDL.Reals.Less | chaTBotCoo | Charging signal for cold water tank | |
| Buildings.Controls.OBC.CDL.Reals.Less | chaTTopCoo | Charging signal for cold water tank |
Revisions
-
June 13, 2025, by Michael Wetter:
Refactored implementation. -
November 15, 2023, by David Blum:
Add that charging is stopped when bottom temperature reaches set point. -
October 4, 2023, by Michael Wetter:
First implementation.