@@ -4,7 +4,7 @@ record Controller
44 extends Modelica.Icons.Record;
55 parameter Buildings.Templates.Plants.Chillers.Configuration.ChillerPlant cfg
66 "Plant configuration parameters" ;
7- parameter Modelica.Units.SI.Temperature TChiWatChiSup_nominal[cfg.nChi ](
7+ parameter Modelica.Units.SI.Temperature TChiWatChiSup_nominal[: ](
88 each displayUnit= "degC" ,
99 each start= Buildings.Templates.Data.Defaults.TChiWatSup,
1010 each final min = 260 )
@@ -17,15 +17,15 @@ record Controller
1717 "Maximum CHW supply temperature setpoint used in plant reset logic"
1818 annotation (Dialog(group="Temperature setpoints" ,
1919 enable=cfg.typCtl==Buildings.Templates.Plants.Chillers.Types.Controller.G36));
20- parameter Modelica.Units.SI.Temperature TConWatSupChi_nominal[cfg.nChi ](
20+ parameter Modelica.Units.SI.Temperature TConWatSupChi_nominal[: ](
2121 each displayUnit= "degC" ,
2222 each start= Buildings.Templates.Data.Defaults.TConWatSup,
2323 each final min = 273.15 )
2424 "CW supply temperature (condenser entering) at chiller selection conditions - Each chiller"
2525 annotation (Dialog(group="Temperature setpoints" ,
2626 enable=cfg.typCtl==Buildings.Templates.Plants.Chillers.Types.Controller.G36 and
2727 cfg.typChi==Buildings.Templates.Components.Types.Chiller.WaterCooled));
28- parameter Modelica.Units.SI.Temperature TConWatRetChi_nominal[cfg.nChi ](
28+ parameter Modelica.Units.SI.Temperature TConWatRetChi_nominal[: ](
2929 each displayUnit= "degC" ,
3030 each start= Buildings.Templates.Data.Defaults.TConWatRet,
3131 each final min = 273.15 )
@@ -46,28 +46,28 @@ record Controller
4646 enable=cfg.typCtl==Buildings.Templates.Plants.Chillers.Types.Controller.G36 and
4747 cfg.typDisChiWat<>Buildings.Templates.Plants.Chillers.Types.Distribution.Constant1Only
4848 and not cfg.have_senDpChiWatRemWir));
49- parameter Modelica.Units.SI.PressureDifference dpChiWatRemSet_min[cfg.nSenDpChiWatRem ](
49+ parameter Modelica.Units.SI.PressureDifference dpChiWatRemSet_min[: ](
5050 each start= Buildings.Templates.Data.Defaults.dpChiWatSet_min)
5151 "Minimum CHW differential pressure setpoint used in plant reset logic - Each remote sensor"
5252 annotation (Dialog(group="Differential pressure setpoints" ,
5353 enable=cfg.typCtl==Buildings.Templates.Plants.Chillers.Types.Controller.G36 and
5454 cfg.typDisChiWat<>Buildings.Templates.Plants.Chillers.Types.Distribution.Constant1Only
5555 and cfg.have_senDpChiWatRemWir));
56- parameter Modelica.Units.SI.VolumeFlowRate VChiWatChi_flow_nominal[cfg.nChi ](
56+ parameter Modelica.Units.SI.VolumeFlowRate VChiWatChi_flow_nominal[: ](
5757 each displayUnit= "L/s" ,
5858 each final min = 0 ,
5959 each start= 0 )
6060 "Design CHW volume flow rate - Each chiller"
6161 annotation (Dialog(group="Chiller flow setpoints" ,
6262 enable=cfg.typCtl==Buildings.Templates.Plants.Chillers.Types.Controller.G36));
63- parameter Modelica.Units.SI.VolumeFlowRate VChiWatChi_flow_min[cfg.nChi ](
63+ parameter Modelica.Units.SI.VolumeFlowRate VChiWatChi_flow_min[: ](
6464 each displayUnit= "L/s" ,
6565 each final min = 0 ,
6666 each start= 0 )
6767 "Minimum CHW volume flow rate - Each chiller"
6868 annotation (Dialog(group="Chiller flow setpoints" ,
6969 enable=cfg.typCtl==Buildings.Templates.Plants.Chillers.Types.Controller.G36));
70- parameter Modelica.Units.SI.VolumeFlowRate VConWatChi_flow_nominal[cfg.nChi ](
70+ parameter Modelica.Units.SI.VolumeFlowRate VConWatChi_flow_nominal[: ](
7171 each displayUnit= "L/s" ,
7272 each start= 0.01 ,
7373 each final min = 0 )
@@ -76,22 +76,22 @@ record Controller
7676 enable=cfg.typCtl==Buildings.Templates.Plants.Chillers.Types.Controller.G36
7777 and cfg.typChi==Buildings.Templates.Components.Types.Chiller.WaterCooled
7878 and cfg.have_pumConWatVar));
79- parameter Modelica.Units.SI.TemperatureDifference dTLifChi_min[cfg.nChi ](
79+ parameter Modelica.Units.SI.TemperatureDifference dTLifChi_min[: ](
8080 each start= Buildings.Templates.Data.Defaults.dTLifChi_min,
8181 each final min = 0 )
8282 "Minimum allowable lift at minimum load - Each chiller"
8383 annotation (Dialog(group="Chiller lift setpoints" ,
8484 enable=cfg.typCtl==Buildings.Templates.Plants.Chillers.Types.Controller.G36
8585 and cfg.typChi==Buildings.Templates.Components.Types.Chiller.WaterCooled
8686 and cfg.typCtlHea<>Buildings.Templates.Plants.Chillers.Types.ChillerLiftControl.None));
87- parameter Modelica.Units.SI.TemperatureDifference dTLifChi_nominal[cfg.nChi ](
87+ parameter Modelica.Units.SI.TemperatureDifference dTLifChi_nominal[: ](
8888 each final min = 0 )= TConWatRetChi_nominal - TChiWatChiSup_nominal
8989 "Design lift at design load - Each chiller"
9090 annotation (Dialog(group="Chiller lift setpoints" ,
9191 enable=cfg.typCtl==Buildings.Templates.Plants.Chillers.Types.Controller.G36
9292 and cfg.typChi==Buildings.Templates.Components.Types.Chiller.WaterCooled
9393 and cfg.typCtlHea<>Buildings.Templates.Plants.Chillers.Types.ChillerLiftControl.None));
94- parameter Modelica.Units.SI.HeatFlowRate capChi_nominal[cfg.nChi ](
94+ parameter Modelica.Units.SI.HeatFlowRate capChi_nominal[: ](
9595 each start= 0 ,
9696 each final min = 0 )
9797 "Design capacity - Each chiller"
@@ -110,7 +110,7 @@ record Controller
110110 or cfg.typMeaCtlChiWatPri==Buildings.Templates.Plants.Chillers.Types.PrimaryOverflowMeasurement.FlowDifference)
111111 or cfg.typDisChiWat==Buildings.Templates.Plants.Chillers.Types.Distribution.Variable1Only
112112 and cfg.typArrPumChiWatPri==Buildings.Templates.Components.Types.PumpArrangement.Headered)));
113- parameter Modelica.Units.SI.VolumeFlowRate VChiWatSec_flow_nominal[cfg.nLooChiWatSec ](
113+ parameter Modelica.Units.SI.VolumeFlowRate VChiWatSec_flow_nominal[: ](
114114 each start= 0.01 ,
115115 each displayUnit= "L/s" ,
116116 each final min = 0 )
@@ -121,7 +121,7 @@ record Controller
121121 or cfg.typDisChiWat==Buildings.Templates.Plants.Chillers.Types.Distribution.Variable1And2
122122 or cfg.typDisChiWat==Buildings.Templates.Plants.Chillers.Types.Distribution.Variable1And2Distributed)
123123 and cfg.have_senVChiWatSec)));
124- parameter Modelica.Units.SI.HeatFlowRate capUnlChi_min[cfg.nChi ](
124+ parameter Modelica.Units.SI.HeatFlowRate capUnlChi_min[: ](
125125 start= 0.1 * abs (capChi_nominal),
126126 each final min = 0 )
127127 "Minimum load before engaging hot gas bypass or cycling - Each chiller"
@@ -207,7 +207,7 @@ record Controller
207207 ((cfg.typCoo==Buildings.Templates.Components.Types.Cooler.CoolingTowerOpen
208208 or cfg.typCoo==Buildings.Templates.Components.Types.Cooler.CoolingTowerClosed)
209209 and cfg.have_senLevCoo)));
210- parameter Modelica.Units.SI.PressureDifference dpChiWatRemSet_max[cfg.nSenDpChiWatRem ](
210+ parameter Modelica.Units.SI.PressureDifference dpChiWatRemSet_max[: ](
211211 each start= Buildings.Templates.Data.Defaults.dpChiWatRemSet_max,
212212 each final min = 0 )
213213 "Mmaximum CHW differential pressure setpoint - Remote sensor"
@@ -323,23 +323,21 @@ record Controller
323323 enable=cfg.typCtl==Buildings.Templates.Plants.Chillers.Types.Controller.G36
324324 and cfg.typChi==Buildings.Templates.Components.Types.Chiller.WaterCooled));
325325 // RFE: The following parameter has the type Real for future capability to specify lead/lag alternated chillers with 0.5.
326- parameter Real sta[:, nUniSta ](
326+ parameter Real sta[:, : ](
327327 each min = 0 ,
328328 each max = 1 ,
329329 each final unit= "1" )
330330 "Staging matrix with plant stage as row index and chiller as column index (highest index for optional WSE): 0 for disabled, 1 for enabled"
331331 annotation (Evaluate=true,
332332 Dialog(group="Plant staging" ));
333- final parameter Integer nUniSta= if cfg.typEco <> Buildings.Templates.Plants.Chillers.Types.Economizer.None
334- then cfg.nChi + 1 else cfg.nChi
335- "Number of units to be staged, including chillers and optional WSE"
336- annotation (Evaluate=true,
337- Dialog(group="Plant staging" ));
338333 final parameter Integer nSta= size (sta, 1 )
339334 "Number of plant stages"
340335 annotation (Evaluate=true,
341- Dialog(group="Plant staging" ,
342- enable=cfg.typCtl==Buildings.Templates.Plants.Chillers.Types.Controller.G36));
336+ Dialog(group="Plant staging" ));
337+ final parameter Integer nUniSta= size (sta, 2 )
338+ "Number of units to be staged, including chillers and optional WSE"
339+ annotation (Evaluate=true,
340+ Dialog(group="Plant staging" ));
343341 parameter Real staCoo[nSta](
344342 each max = cfg.nCoo,
345343 start= fill (0 , nSta))
0 commit comments