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

TypeNameDefaultDescription
Modelica.Units.SI.TemperatureDifferencedTOffSetif isHotWat then +1 else -1Offset for set point to have a slightly higher (or lower) temperature than the required supply from the load
BooleanisHotWatTrue if the tank supplies hot water, False for chilled water

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInputTTanTopMeasured temperature at top of tank
Modelica.Blocks.Interfaces.RealInputTTanSetTank temperature set point, top for hot tank and bottom for cold tank
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutputchargeOutputs true if tank should be charged
Buildings.Controls.OBC.CDL.Interfaces.RealInputTTanBotMeasured temperature at bottom of tank

Components

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Logical.LatchlatLatch to enable charging and hold it until charged
Buildings.Controls.OBC.CDL.Logical.Notnot1Negation of charge signal
Buildings.Controls.OBC.CDL.Logical.AndchaTopBotOutputs 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.Oror1Or block to enable charge if one of the inputs request charging
Buildings.Controls.OBC.CDL.Reals.AddParameterdTOffChaOnOffset for charge on signal
Buildings.Controls.OBC.CDL.Reals.AddParameterdTOffChaOffOffset for charge off signal
Buildings.Controls.OBC.CDL.Reals.GreaterchaTopHeaCharging signal for hot water tank
Buildings.Controls.OBC.CDL.Reals.GreaterchaTBotHeaCharging signal for hot water tank
Buildings.Controls.OBC.CDL.Reals.LesschaTBotCooCharging signal for cold water tank
Buildings.Controls.OBC.CDL.Reals.LesschaTTopCooCharging 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.