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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | THig | Higher threshold to consider the tank empty | |
| Real | TLow | Lower threshold to consider the tank full | |
| Real | dTHys | 0.5 | Deadband for hysteresis |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealInput[2] | TTan | Temperatures at the tank 1: top; and 2: bottom | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput[2] | y | Tank status - y[1]=true is empty; y[2] = true is charged; both false means partially charged |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Reals.Hysteresis | hysCha | Hysteresis, tank charged | |
| Buildings.Controls.OBC.CDL.Reals.Hysteresis | hysEmp | Hysteresis, tank empty | |
| Buildings.Controls.OBC.CDL.Logical.Not | not1 | Not block | |
| Buildings.Controls.OBC.CDL.Reals.Sources.Constant | TTanTopChe | Set point for top temperatuer of tank | |
| Buildings.Controls.OBC.CDL.Reals.Sources.Constant | TTanBotChe | Set point for bottom temperature of tank | |
| Buildings.Controls.OBC.CDL.Reals.Greater | gre | Test for temperature set points | |
| Buildings.Controls.OBC.CDL.Utilities.Assert | assMes | Assertion if temperature set points are not correct |
Revisions
-
August 10, 2023 by Hongxiang Fu:
First implementation. This is for #2859.