modelChangeCells

Validation sequence of identifying cells that should change status

Information

This example validates Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.Towers.Staging.Subsequences.ChangeCells. It shows the process of enabling and disabling tower cells according to the input uCelNum that specifies total number of cells that should be enabled.

Note that this sequence assumes that the cells are enabled sequentially as 1, 2, 3, etc. Thus, for example if it requires two enabled cells, cell 1 and 2 will be enabled. While if it requires three enabled cell, cell 1, 2 and 3 will be enabled.

  • Before 2000 seconds, the input uCelNum equals 2. Thus the first two cells are enabled, uTowSta[1]=true and uTowSta[2]=true.
  • From 2000 seconds to 2800 seconds, the input uCelNum equals 3. Thus the first three cells are enabled, uTowSta[1]=true, uTowSta[2]=true, and uTowSta[3]=true
  • From 2800 seconds to 3200 seconds, the input uCelNum becomes 2 again. Thus the first two cells are enabled, uTowSta[1]=true, and uTowSta[2]=true. The third cell becomes disabled, uTowSta[3]=false.
  • After 3200 seconds, the input uCelNum equals 1. Thus only one cell should be enabled, uTowSta[1]=true.

Components

TypeNameDefaultDescription
Buildings.Controls.OBC.ASHRAE.G36.Plants.Chillers.Towers.Staging.Subsequences.ChangeCellsenaTowCelFind enabling cells
Buildings.Controls.OBC.CDL.Integers.Sources.TimeTablecelNumNumber of cell that should be enabled
Buildings.Controls.OBC.CDL.Logical.Pre[4]preCurrent tower cell status

Revisions

  • July 26, 2022, by Jianjun Hu:
    First implementation.