blockTankStatus

Returns the tank status from its temperature sensors

Information

This model outputs tank status signals using the temperatures at the CHW tank top and the tank bottom as input. The status has two separate boolean signals indicating whether the tank is charged or empty (of cooling). The two output signals can be both false, indicating an in-between state, but they can never both be true.

Parameters

TypeNameDefaultDescription
RealTHigHigher threshold to consider the tank empty
RealTLowLower threshold to consider the tank full
RealdTHys0.5Deadband for hysteresis

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInput[2]TTanTemperatures at the tank 1: top; and 2: bottom
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput[2]yTank status - y[1]=true is empty; y[2] = true is charged; both false means partially charged

Components

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Reals.HysteresishysChaHysteresis, tank charged
Buildings.Controls.OBC.CDL.Reals.HysteresishysEmpHysteresis, tank empty
Buildings.Controls.OBC.CDL.Logical.Notnot1Not block
Buildings.Controls.OBC.CDL.Reals.Sources.ConstantTTanTopCheSet point for top temperatuer of tank
Buildings.Controls.OBC.CDL.Reals.Sources.ConstantTTanBotCheSet point for bottom temperature of tank
Buildings.Controls.OBC.CDL.Reals.GreatergreTest for temperature set points
Buildings.Controls.OBC.CDL.Utilities.AssertassMesAssertion if temperature set points are not correct

Revisions

  • August 10, 2023 by Hongxiang Fu:
    First implementation. This is for #2859.