-
Notifications
You must be signed in to change notification settings - Fork 196
/
Copy pathScheduleTypeRegistry.cpp
599 lines (573 loc) · 48.2 KB
/
ScheduleTypeRegistry.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
* disclaimer.
*
* (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided with the distribution.
*
* (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote products
* derived from this software without specific prior written permission from the respective party.
*
* (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative works
* may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without specific prior
* written permission from Alliance for Sustainable Energy, LLC.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED
* STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
***********************************************************************************************************************/
#include "ScheduleTypeRegistry.hpp"
#include "ScheduleTypeLimits.hpp"
#include "ScheduleTypeLimits_Impl.hpp"
#include "Schedule.hpp"
#include "Schedule_Impl.hpp"
#include "Model.hpp"
#include "../utilities/core/Containers.hpp"
// Used in isCompatible()
#include "../utilities/units/Unit.hpp"
namespace openstudio {
namespace model {
std::vector<std::string> ScheduleTypeRegistrySingleton::classNames() const {
StringVector result;
for (const ClassNameToScheduleTypesMap::value_type& p : m_classNameToScheduleTypesMap) {
result.push_back(p.first);
}
return result;
}
std::vector<ScheduleType> ScheduleTypeRegistrySingleton::getScheduleTypesByClassName(
const std::string& className) const
{
ScheduleTypeVector result;
auto it = m_classNameToScheduleTypesMap.find(className);
if (it != m_classNameToScheduleTypesMap.end()) {
result = it->second;
}
return result;
}
ScheduleType ScheduleTypeRegistrySingleton::getScheduleType(const std::string &className,
const std::string &scheduleDisplayName) const
{
ScheduleTypeVector scheduleTypes = getScheduleTypesByClassName(className);
for (const ScheduleType& scheduleType : scheduleTypes) {
if (scheduleType.scheduleDisplayName == scheduleDisplayName) {
return scheduleType;
}
}
LOG_AND_THROW("No '" << scheduleDisplayName << "' Schedule is registered for class "
<< className << ".");
return ScheduleType();
}
ScheduleTypeLimits ScheduleTypeRegistrySingleton::getOrCreateScheduleTypeLimits(const ScheduleType& scheduleType,
Model& model) const
{
std::string defaultName = getDefaultName(scheduleType);
// DLM: I do not understand why both upper and lower limit have to be set to reuse this?
//// if fully specified, try to retrieve
//if (scheduleType.lowerLimitValue && scheduleType.upperLimitValue) {
ScheduleTypeLimitsVector candidates = model.getConcreteModelObjectsByName<ScheduleTypeLimits>(defaultName);
for (const ScheduleTypeLimits& candidate : candidates) {
// Pass isStringent = true, so we don't return for eg a Dimensionless schedule with limits [0.5, 0.7] when our object accepts any number
if (isCompatible(scheduleType,candidate, true)) {
return candidate;
}
}
//}
// otherwise, or if not there, create and return
ScheduleTypeLimits scheduleTypeLimits(model);
scheduleTypeLimits.setName(defaultName);
if (scheduleType.lowerLimitValue) {
scheduleTypeLimits.setLowerLimitValue(scheduleType.lowerLimitValue.get());
}
if (scheduleType.upperLimitValue) {
scheduleTypeLimits.setUpperLimitValue(scheduleType.upperLimitValue.get());
}
if (scheduleType.isContinuous) {
scheduleTypeLimits.setNumericType("Continuous");
}
else {
scheduleTypeLimits.setNumericType("Discrete");
}
if (!scheduleType.unitType.empty()) {
scheduleTypeLimits.setUnitType(scheduleType.unitType);
}
return scheduleTypeLimits;
}
ScheduleTypeRegistrySingleton::ScheduleTypeRegistrySingleton()
{
// className, scheduleDisplayName, scheduleRelationshipName, isContinuous, unitType, lowerLimitValue, upperLimitValue;
const ScheduleType scheduleTypes[] =
{
{"AirConditionerVariableRefrigerantFlow","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirConditionerVariableRefrigerantFlow","Thermostat Priority Schedule","thermostatPrioritySchedule",false,"ControlMode",0.0,1.0},
{"AirConditionerVariableRefrigerantFlow","Basin Heater Operating Schedule","basinHeaterOperatingSchedule",false,"Availability",0.0,1.0},
{"AirLoopHVAC","Return Air Bypass Flow Temperature Setpoint","returnAirBypassFlowTemperatureSetpointSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass","Outdoor Air Flow Rate Multiplier Schedule","outdoorAirFlowRateMultiplierSchedule",true,"",0.0,1.0},
{"AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass","Supply Air Fan Operating Mode Schedule","supplyAirFanOperatingModeSchedule",false,"ControlMode",0.0,1.0},
{"AirLoopHVACUnitaryHeatPumpAirToAir","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirLoopHVACUnitaryHeatPumpAirToAir","Supply Air Fan Operating Mode","supplyAirFanOperatingModeSchedule",false,"ControlMode",0.0,1.0},
{"AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirLoopHVACUnitaryHeatPumpAirToAirMultiSpeed","Supply Air Fan Operating Mode Schedule","supplyAirFanOperatingModeSchedule",false,"ControlMode",0.0,1.0},
{"AirLoopHVACUnitarySystem","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirLoopHVACUnitarySystem","Supply Air Fan Operating Mode","supplyAirFanOperatingModeSchedule",false,"ControlMode",0.0,1.0},
{"AirTerminalDualDuctConstantVolume","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalDualDuctVAV","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalDualDuctVAVOutdoorAir","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalSingleDuctConstantVolumeCooledBeam","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalSingleDuctConstantVolumeFourPipeBeam","Primary Air Availability","primaryAirAvailabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalSingleDuctConstantVolumeFourPipeBeam","Cooling Availability","coolingAvailabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalSingleDuctConstantVolumeFourPipeBeam","Heating Availability","heatingAvailabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalSingleDuctConstantVolumeFourPipeInduction","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalSingleDuctConstantVolumeReheat","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalSingleDuctParallelPIUReheat","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalSingleDuctSeriesPIUReheat","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalSingleDuctConstantVolumeNoReheat","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalSingleDuctVAVReheat","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalSingleDuctVAVReheat","Minimum Air Flow Fraction","minimumAirFlowFractionSchedule",true,"",0.0,1.0},
{"AirTerminalSingleDuctVAVNoReheat","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalSingleDuctVAVNoReheat","Minimum Air Flow Fraction","minimumAirFlowFractionSchedule",true,"",0.0,1.0},
{"AirTerminalSingleDuctVAVHeatAndCoolNoReheat","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"AirTerminalSingleDuctVAVHeatAndCoolReheat","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"AvailabilityManagerHybridVentilation","Ventilation Control Mode Schedule","ventilationControlModeSchedule",false,"",0.0,4.0},
{"AvailabilityManagerHybridVentilation","Minimum Outdoor Ventilation Air Schedule","minimumOutdoorVentilationAirSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"AvailabilityManagerHybridVentilation","AirflowNetwork Control Type Schedule","airflowNetworkControlTypeSchedule",false,"ControlMode",0.0,1.0},
{"AvailabilityManagerHybridVentilation","Simple Airflow Control Type Schedule","simpleAirflowControlTypeSchedule",false,"ControlMode",0.0,1.0},
{"AvailabilityManagerNightCycle","Applicability Schedule","applicabilitySchedule",false,"Availability",0.0,1.0},
{"AvailabilityManagerNightVentilation","Applicability Schedule","applicabilitySchedule",false,"Availability",0.0,1.0},
{"AvailabilityManagerNightVentilation","Ventilation Temperature Schedule","ventilationTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"AvailabilityManagerOptimumStart","Applicability Schedule","applicabilitySchedule",false,"Availability",0.0,1.0},
{"AvailabilityManagerLowTemperatureTurnOff","Applicability Schedule","applicabilitySchedule",false,"Availability",0.0,1.0},
{"AvailabilityManagerScheduled","Availability Manager Scheduled", "schedule",false,"Availability",0.0,1.0},
{"AvailabilityManagerScheduledOn","Availability Manager Scheduled On", "schedule",false,"Availability",0.0,1.0},
{"AvailabilityManagerScheduledOff","Availability Manager Scheduled Off", "schedule",false,"Availability",0.0,1.0},
{"CentralHeatPumpSystem","Ancillary Operation","ancillaryOperationSchedule",false,"Availability",0.0,1.0},
{"CentralHeatPumpSystemModule","Chiller Heater Modules Control","chillerHeaterModulesControlSchedule",false,"Availability",0.0,1.0},
{"ChillerElectricEIR","Basin Heater Operating","basinHeaterSchedule",false,"Availability",0.0,1.0},
{"ChillerElectricEIR","Heat Recovery Inlet High Temperature Limit","heatRecoveryInletHighTemperatureLimitSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"CoilCoolingCooledBeam","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilCoolingDXSingleSpeed","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilCoolingDXSingleSpeed","Basin Heater Operation","basinHeaterOperatingSchedule",false,"Availability",0.0,1.0},
{"CoilCoolingDXTwoSpeed","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilCoolingDXTwoSpeed","Basin Heater Operation","basinHeaterOperatingSchedule",false,"Availability",0.0,1.0},
{"CoilCoolingDXTwoStageWithHumidityControlMode","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilCoolingDXTwoStageWithHumidityControlMode","Basin Heater Operating Schedule","basinHeaterOperatingSchedule",false,"Availability",0.0,1.0},
{"CoilCoolingDXMultiSpeed","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilCoolingDXMultiSpeed","Basin Heater Operating Schedule","basinHeaterOperatingSchedule",false,"Availability",0.0,1.0},
{"CoilCoolingDXVariableRefrigerantFlow","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilCoolingDXVariableSpeed","Basin Heater Operating","basinHeaterOperatingSchedule",false,"Availability",0.0,1.0},
{"CoilCoolingLowTempRadiantConstFlow","Cooling High Water Temperature","coolingHighWaterTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"CoilCoolingLowTempRadiantConstFlow","Cooling Low Water Temperature","coolingLowWaterTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"CoilCoolingLowTempRadiantConstFlow","Cooling High Control Temperature","coolingHighControlTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"CoilCoolingLowTempRadiantConstFlow","Cooling Low Control Temperature","coolingLowControlTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"CoilCoolingLowTempRadiantVarFlow","Cooling Control Temperature Schedule","coolingControlTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"CoilCoolingWater","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilHeatingDesuperheater","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilHeatingDXMultiSpeed","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilHeatingDXSingleSpeed","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilHeatingDXVariableRefrigerantFlow","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilHeatingElectric","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilHeatingGas","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilHeatingGasMultiStage","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilHeatingLowTempRadiantConstFlow","Heating High Water Temperature","heatingHighWaterTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"CoilHeatingLowTempRadiantConstFlow","Heating Low Water Temperature","heatingLowWaterTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"CoilHeatingLowTempRadiantConstFlow","Heating High Control Temperature","heatingHighControlTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"CoilHeatingLowTempRadiantConstFlow","Heating Low Control Temperature","heatingLowControlTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"CoilHeatingLowTempRadiantVarFlow","Heating Control Temperature","heatingControlTemperature",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"CoilHeatingWater","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilHeatingWaterBaseboard","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilWaterHeatingDesuperheater","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoilWaterHeatingDesuperheater","Setpoint Temperature","setpointTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ConstructionAirBoundary", "Simple Mixing", "simpleMixingSchedule", true, "", 0.0, OptionalDouble()},
{"ControllerOutdoorAir","Minimum Outdoor Air","minimumOutdoorAirSchedule",true,"",0.0,1.0},
{"ControllerOutdoorAir","Minimum Fraction of Outdoor Air","minimumFractionofOutdoorAirSchedule",true,"",0.0,1.0},
{"ControllerOutdoorAir","Maximum Fraction of Outdoor Air","maximumFractionofOutdoorAirSchedule",true,"",0.0,1.0},
{"ControllerOutdoorAir","Time of Day Economizer Control","timeofDayEconomizerControlSchedule",false,"Availability",0.0,1.0},
{"ControllerMechanicalVentilation","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"CoolingTowerSingleSpeed","Basin Heater Operating","basinHeaterOperatingSchedule",false,"Availability",0.0,1.0},
{"CoolingTowerSingleSpeed","Blowdown Makeup Water Usage","blowdownMakeupWaterUsageSchedule",true,"VolumetricFlowRate",0.0,OptionalDouble()},
{"CoolingTowerTwoSpeed","Basin Heater Operating","basinHeaterOperatingSchedule",false,"Availability",0.0,1.0},
{"CoolingTowerTwoSpeed","Blowdown Makeup Water Usage","blowdownMakeupWaterUsageSchedule",true,"VolumetricFlowRate",0.0,OptionalDouble()},
{"CoolingTowerVariableSpeed","Basin Heater Operating Schedule","basinHeaterOperatingSchedule",false,"Availability",0.0,1.0},
{"CoolingTowerVariableSpeed","Blowdown Makeup Water Usage Schedule","blowdownMakeupWaterUsageSchedule",true,"VolumetricFlowRate",0.0,OptionalDouble()},
{"DefaultScheduleSet","Hours of Operation","hoursofOperationSchedule",false,"Availability",0.0,1.0},
{"DefaultScheduleSet","Number of People","numberofPeopleSchedule",true,"",0.0,1.0},
{"DefaultScheduleSet","People Activity Level","peopleActivityLevelSchedule",true,"ActivityLevel",0.0,OptionalDouble()},
{"DefaultScheduleSet","Lighting","lightingSchedule",true,"",0.0,1.0},
{"DefaultScheduleSet","Electric Equipment","electricEquipmentSchedule",true,"",0.0,1.0},
{"DefaultScheduleSet","Gas Equipment","gasEquipmentSchedule",true,"",0.0,1.0},
{"DefaultScheduleSet","Hot Water Equipment","hotWaterEquipmentSchedule",true,"",0.0,1.0},
{"DefaultScheduleSet","Infiltration","infiltrationSchedule",true,"",0.0,1.0},
{"DefaultScheduleSet","Steam Equipment","steamEquipmentSchedule",true,"",0.0,1.0},
{"DefaultScheduleSet","Other Equipment","otherEquipmentSchedule",true,"",OptionalDouble(),OptionalDouble()},
{"DesignSpecificationOutdoorAir","Outdoor Air Flow Rate","outdoorAirFlowRateFractionSchedule",true,"",0.0,1.0},
{"ElectricEquipment","Electric Equipment","schedule",true,"",0.0,1.0},
{"ElectricEquipmentITEAirCooled", "Design Power Input", "designPowerInputSchedule", true, "", 0.0, 1.0},
{"ElectricEquipmentITEAirCooled", "CPU Loading", "cPULoadingSchedule", true, "", 0.0, 1.0},
{"ElectricEquipmentITEAirCooledDefinition", "Supply Temperature Difference Schedule", "supplyTemperatureDifferenceSchedule", true, "Temperature",0.0,OptionalDouble()},
{"ElectricEquipmentITEAirCooledDefinition", "Return Temperature Difference Schedule", "returnTemperatureDifferenceSchedule", true, "Temperature",OptionalDouble(),0.0},
{"ElectricLoadCenterDistribution", "Track Scheme", "trackScheduleSchemeSchedule",true,"",0.0,OptionalDouble()},
{"ElectricLoadCenterDistribution", "Storage Charge Power Fraction", "storageChargePowerFractionSchedule",true,"",0.0,1.0},
{"ElectricLoadCenterDistribution", "Storage Discharge Power Fraction", "storageDischargePowerFractionSchedule",true,"",0.0,1.0},
{"ElectricLoadCenterDistribution", "Storage Control Utility Demand Target Fraction", "storageControlUtilityDemandTargetFractionScheduleName",true,"",-1.0,1.0},
{"ElectricLoadCenterInverterLookUpTable","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ElectricLoadCenterInverterSimple","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ElectricLoadCenterStorageSimple","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ElectricLoadCenterStorageConverter","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ElectricLoadCenterTransformer","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"EvaporativeCoolerDirectResearchSpecial","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"EvaporativeCoolerIndirectResearchSpecial","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"EvaporativeFluidCoolerSingleSpeed","Blowdown Makeup Water Usage","blowdownMakeupWaterUsageSchedule",true,"VolumetricFlowRate",0.0,OptionalDouble()},
{"EvaporativeFluidCoolerTwoSpeed","Blowdown Makeup Water Usage","blowdownMakeupWaterUsageSchedule",true,"VolumetricFlowRate",0.0,OptionalDouble()},
{"ExteriorLights","Exterior Lights","schedule",true,"",0.0,1.0},
{"ExteriorFuelEquipment","Exterior FuelEquipment","schedule",true,"",0.0,1.0},
{"ExteriorWaterEquipment","Exterior WaterEquipment","schedule",true,"",0.0,1.0},
{"FanConstantVolume","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"FanOnOff","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"FanSystemModel","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"FanVariableVolume","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"FanZoneExhaust","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"FanZoneExhaust","Flow Fraction","flowFractionSchedule",true,"Dimensionless",0.0,1.0},
{"FanZoneExhaust","Minimum Zone Temperature Limit","minimumZoneTemperatureLimitSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"FanZoneExhaust","Balanced Exhaust Fraction","balancedExhaustFractionSchedule",true,"Dimensionless",0.0,1.0},
{"GasEquipment","Gas Equipment","schedule",true,"",0.0,1.0},
{"GeneratorFuelSupply", "Fuel Temperature", "fuelTemperatureScheduleName", true,"Temperature", 0.0, 100.0},
{"GeneratorFuelCellWaterSupply", "Water Temperature", "waterTemperatureScheduleName", true, "Temperature", 0.0, 100.0},
{"GeneratorMicroTurbine","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"GeneratorPhotovoltaic","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"HeatExchangerAirToAirSensibleAndLatent","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"HeatExchangerFluidToFluid","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"HumidifierSteamElectric","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"HotWaterEquipment","Hot Water Equipment","schedule",true,"",0.0,1.0},
{"LoadProfilePlant","Load","loadSchedule",true,"",OptionalDouble(),OptionalDouble()},
{"LoadProfilePlant","Flow Rate Fraction","flowRateFractionSchedule",true,"",0.0,1.0},
{"Lights","Lighting","schedule",true,"",0.0,1.0},
{"Luminaire","Luminaire","schedule",true,"",0.0,1.0},
{"OtherEquipment","Other Equipment","schedule",true,"",OptionalDouble(),OptionalDouble()},
{"OutputVariable","Active Hours","schedule",false,"Availability",0.0,1.0},
{"People","Number of People","numberofPeopleSchedule",true,"",0.0,1.0},
{"People","Activity Level","activityLevelSchedule",true,"ActivityLevel",0.0,OptionalDouble()},
{"People","Work Efficiency","workEfficiencySchedule",true,"",0.0,1.0},
{"People","Clothing Insulation","clothingInsulationSchedule",true,"ClothingInsulation",0.0,OptionalDouble()},
{"People","Air Velocity","airVelocitySchedule",true,"Velocity",0.0,OptionalDouble()},
{"PhotovoltaicPerformanceSimple","Efficiency","efficiencySchedule",true,"",0.0,1.0},
{"PlantComponentTemperatureSource","Source Temperature","sourceTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"PipeIndoor", "Ambient Temperature", "ambientTemperatureSchedule", true, "Temperature", OptionalDouble(), OptionalDouble() },
{"PipeIndoor", "Ambient Air Velocity", "ambientAirVelocitySchedule", true, "Velocity", 0.0, OptionalDouble() },
{"PlantLoop","Plant Equipment Operation Heating Load Schedule","plantEquipmentOperationHeatingLoadSchedule",false,"Availability",0.0,1.0},
{"PlantLoop","Plant Equipment Operation Cooling Load Schedule","plantEquipmentOperationCoolingLoadSchedule",false,"Availability",0.0,1.0},
{"PlantLoop","Primary Plant Equipment Operation Scheme Schedule","primaryPlantEquipmentOperationSchemeSchedule",false,"Availability",0.0,1.0},
{"PlantLoop","Component Setpoint Operation Scheme Schedule","componentSetpointOperationSchemeSchedule",false,"Availability",0.0,1.0},
{"PumpConstantSpeed","Pump Flow Rate","pumpFlowRateSchedule",true,"",0.0,1.0},
{"PumpVariableSpeed","Pump Flow Rate","pumpFlowRateSchedule",true,"",0.0,1.0},
{"PumpVariableSpeed","Pump RPM","pumpRPMSchedule",true,"RotationsPerMinute",OptionalDouble(),OptionalDouble()},
{"PumpVariableSpeed","Minimum Pressure","minimumPressureSchedule",true,"Pressure",OptionalDouble(),OptionalDouble()},
{"PumpVariableSpeed","Maximum Pressure","maximumPressureSchedule",true,"Pressure",OptionalDouble(),OptionalDouble()},
{"PumpVariableSpeed","Minimum RPM","minimumRPMSchedule",true,"RotationsPerMinute",OptionalDouble(),OptionalDouble()},
{"PumpVariableSpeed","Maximum RPM","maximumRPMSchedule",true,"RotationsPerMinute",OptionalDouble(),OptionalDouble()},
{"HeaderedPumpsConstantSpeed","Pump Flow Rate Schedule","pumpFlowRateSchedule",true,"",0.0,1.0},
{"HeaderedPumpsVariableSpeed","Pump Flow Rate Schedule","pumpFlowRateSchedule",true,"",0.0,1.0},
{"RefrigerationCase","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"RefrigerationCase","Case Lighting","caseLightingSchedule",true,"",0.0,1.0},
{"RefrigerationCase","Case Defrost","caseDefrostSchedule",true,"",0.0,1.0},
{"RefrigerationCase","Case Defrost Drip-Down","caseDefrostDripDownSchedule",true,"",0.0,1.0},
{"RefrigerationCase","Refrigerated Case Restocking","refrigeratedCaseRestockingSchedule",true,"LinearPowerDensity",0.0,OptionalDouble()},
{"RefrigerationCase","Case Credit Fraction","caseCreditFractionSchedule",true,"",0.0,1.0,},
{"RefrigerationCondenserEvaporativeCooled","Evaporative Condenser Availability","evaporativeCondenserAvailabilitySchedule",false,"Availability",0.0,1.0},
{"RefrigerationCondenserWaterCooled","Water Outlet Temperature","waterOutletTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"RefrigerationWalkIn","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"RefrigerationWalkIn","Heating Power","heatingPowerSchedule",true,"",0.0,1.0},
{"RefrigerationWalkIn","Lighting","lightingSchedule",true,"",0.0,1.0},
{"RefrigerationWalkIn","Defrost","defrostSchedule",true,"",0.0,1.0},
{"RefrigerationWalkIn","Defrost Drip-Down","defrostDripDownSchedule",true,"",0.0,1.0},
{"RefrigerationWalkIn","Restocking","restockingSchedule",true,"Capacity",0.0,OptionalDouble()},
{"RefrigerationWalkInZoneBoundary","Glass Reach In Door Opening Facing Zone","glassReachInDoorOpeningScheduleFacingZone",true,"",0.0,1.0},
{"RefrigerationWalkInZoneBoundary","Stocking Door Opening Facing Zone","stockingDoorOpeningScheduleFacingZone",true,"",0.0,1.0},
{"SetpointManagerScheduled","(Exact, Min, Max) Temperature","schedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"SetpointManagerScheduled","(Exact, Min, Max) Humidity Ratio","schedule",true,"",0.0,OptionalDouble()},
{"SetpointManagerScheduled","(Exact, Min, Max) Mass Flow Rate","schedule",true,"MassFlowRate",OptionalDouble(),OptionalDouble()},
{"SetpointManagerScheduledDualSetpoint","High Setpoint","highSetpointSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"SetpointManagerScheduledDualSetpoint","Low Setpoint","lowSetpointSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"SetpointManagerOutdoorAirReset","Setpoint Manager Outdoor Air Reset","schedule",true,"",0.0,OptionalDouble()},
{"ShadingSurface","Transmittance","transmittanceSchedule",true,"",0.0,1.0},
{"SiteWaterMainsTemperature","Temperature","temperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{ "SolarCollectorPerformancePhotovoltaicThermalSimple", "Thermal Conversion Efficiency", "thermalConversionEfficiencySchedule", true, "", 0.0, 1.0 },
{"SurfacePropertyConvectionCoefficients", "Convection Coefficient 1", "convectionCoefficient1Schedule", true, "", 0.1, 1000},
{"SurfacePropertyConvectionCoefficients", "Convection Coefficient 2", "convectionCoefficient2Schedule", true, "", 0.1, 1000},
{"SurfacePropertyOtherSideCoefficients","Constant Temperature","constantTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"SpaceInfiltrationDesignFlowRate","Infiltration","schedule",true,"",0.0,1.0},
{"SpaceInfiltrationEffectiveLeakageArea","Infiltration","schedule",true,"",0.0,1.0},
{"SteamEquipment","Steam Equipment","schedule",true,"",0.0,1.0},
{"SurfacePropertyConvectionCoefficients","Convection Coefficient 1","convectionCoefficient1Schedule",true,"",OptionalDouble(),OptionalDouble() },
{"SurfacePropertyConvectionCoefficients","Convection Coefficient 2","convectionCoefficient2Schedule",true,"",OptionalDouble(),OptionalDouble() },
{"SurfacePropertyConvectionCoefficientsMultipleSurface","Convection Coefficient 1","convectionCoefficient1Schedule",true,"",OptionalDouble(),OptionalDouble() },
{"SurfacePropertyConvectionCoefficientsMultipleSurface","Convection Coefficient 2","convectionCoefficient2Schedule",true,"",OptionalDouble(),OptionalDouble() },
{"ThermalStorageIceDetailed","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"ThermalStorageChilledWaterStratified","Setpoint Temperature","setpointTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ThermalStorageChilledWaterStratified","Ambient Temperature","ambientTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ThermalStorageChilledWaterStratified","Use Side Availability","useSideAvailabilitySchedule",false,"Availability",0.0,1.0},
{"ThermalStorageChilledWaterStratified","Source Side Availability","sourceSideAvailabilitySchedule",false,"Availability",0.0,1.0},
{"ThermostatSetpointDualSetpoint","Heating Setpoint Temperature","heatingSetpointTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ThermostatSetpointDualSetpoint","Cooling Setpoint Temperature","coolingSetpointTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ZoneControlThermostatStagedDualSetpoint","Heating Temperature Setpoint Schedule","heatingTemperatureSetpointSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ZoneControlThermostatStagedDualSetpoint","Cooling Temperature Setpoint Base Schedule","coolingTemperatureSetpointBaseSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ZoneControlContaminantController","Carbon Dioxide Control Availability","carbonDioxideControlAvailabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneControlContaminantController","Carbon Dioxide Setpoint","carbonDioxideSetpointSchedule",true,"",0.0,OptionalDouble()},
{"ZoneControlContaminantController","Minimum Carbon Dioxide Concentration","minimumCarbonDioxideConcentrationSchedule",true,"",0.0,OptionalDouble()},
{"ZoneControlContaminantController","Generic Contaminant Control Availability","genericContaminantControlAvailabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneControlContaminantController","Generic Contaminant Setpoint","genericContaminantSetpointSchedule",true,"",0.0,OptionalDouble()},
{"ZoneHVACEquipmentList","Sequential Cooling Fraction", "sequentialCoolingFractionSchedule",true,"",0.0,1.0},
{"ZoneHVACEquipmentList","Sequential Heating Fraction", "sequentialHeatingFractionSchedule",true,"",0.0,1.0},
{"WaterHeaterMixed","Setpoint Temperature","setpointTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterMixed","Ambient Temperature","ambientTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterMixed","Use Flow Rate Fraction","useFlowRateFractionSchedule",true,"",0.0,1.0},
{"WaterHeaterMixed","Cold Water Supply Temperature","coldWaterSupplyTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterMixed","Indirect Alternate Setpoint Temperature","indirectAlternateSetpointTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterHeatPump","Availability Schedule","availabilitySchedule",false,"Availability",0.0,1.0},
{"WaterHeaterHeatPump","Compressor Setpoint Temperature Schedule","compressorSetpointTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterHeatPump","Inlet Air Temperature Schedule","inletAirTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterHeatPump","Inlet Air Humidity Schedule","inletAirHumiditySchedule",true,"",0.0,OptionalDouble()},
{"WaterHeaterHeatPump","Compressor Ambient Temperature Schedule","compressorAmbientTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterHeatPump","Inlet Air Mixer Schedule","inletAirMixerSchedule",true,"",0.0,1.0},
{"WaterHeaterHeatPumpWrappedCondenser","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"WaterHeaterHeatPumpWrappedCondenser","Compressor Setpoint Temperature","compressorSetpointTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterHeatPumpWrappedCondenser","Inlet Air Temperature","inletAirTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterHeatPumpWrappedCondenser","Inlet Air Humidity","inletAirHumiditySchedule",true,"",0.0,OptionalDouble()},
{"WaterHeaterHeatPumpWrappedCondenser","Compressor Ambient Temperature","compressorAmbientTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterHeatPumpWrappedCondenser","Inlet Air Mixer","inletAirMixerSchedule",true,"",0.0,1.0},
{"WaterHeaterStratified","Heater 1 Setpoint Temperature","heater1SetpointTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterStratified","Heater 2 Setpoint Temperature","heater2SetpointTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterStratified","Ambient Temperature","ambientTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterStratified","Use Flow Rate Fraction","useFlowRateFractionSchedule",true,"",0.0,1.0},
{"WaterHeaterStratified","Cold Water Supply Temperature","coldWaterSupplyTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterHeaterStratified","Indirect Alternate Setpoint Temperature","indirectAlternateSetpointTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterUseConnections","Hot Water Supply Temperature","hotWaterSupplyTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterUseConnections","Cold Water Supply Temperature","coldWaterSupplyTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterUseEquipment","Flow Rate Fraction","flowRateFractionSchedule",true,"",0.0,1.0},
{"WaterUseEquipment","Target Temperature","targetTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterUseEquipment","Hot Water Supply Temperature","hotWaterSupplyTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterUseEquipment","Cold Water Supply Temperature","coldWaterSupplyTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"WaterUseEquipment","Sensible Fraction","sensibleFractionSchedule",true,"",0.0,1.0},
{"WaterUseEquipment","Latent Fraction","latentFractionSchedule",true,"",0.0,1.0},
{"ZoneAirContaminantBalance","Outdoor Carbon Dioxide","outdoorCarbonDioxideSchedule",true,"",0.0,OptionalDouble()},
{"ZoneControlHumidistat","Humidifying Relative Humidity Setpoint","humidifyingRelativeHumiditySetpointSchedule",true,"Percent",0.0,100.0},
{"ZoneControlHumidistat","Dehumidifying Relative Humidity Setpoint","dehumidifyingRelativeHumiditySetpointSchedule",true,"Percent",0.0,100.0},
{"ZoneHVACBaseboardConvectiveElectric","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACBaseboardConvectiveWater","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACIdealLoadsAirSystem","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACIdealLoadsAirSystem","Heating Availability","heatingAvailabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACIdealLoadsAirSystem","Cooling Availability","coolingAvailabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACFourPipeFanCoil","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACFourPipeFanCoil","Outdoor Air","outdoorAirSchedule",true,"",0.0,1.0},
{"ZoneHVACFourPipeFanCoil","Supply Air Fan Operating Mode","supplyAirFanOperatingModeSchedule",false,"ControlMode",0.0,1.0},
{"ZoneHVACLowTemperatureRadiantElectric","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACLowTemperatureRadiantElectric","Heating Setpoint Temperature","heatingSetpointTemperature",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ZoneHVACLowTempRadiantConstFlow","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACLowTempRadiantConstFlow","Pump Flow Rate","pumpFlowRateSchedule",false,"Availability",0.0,1.0},
{"ZoneHVACLowTempRadiantVarFlow","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACPackagedTerminalAirConditioner","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACPackagedTerminalAirConditioner","Supply Air Fan Operating Mode","supplyAirFanOperatingModeSchedule",false,"ControlMode",0.0,1.0},
{"ZoneHVACPackagedTerminalHeatPump","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACPackagedTerminalHeatPump","Supply Air Fan Operating Mode","supplyAirFanOperatingModeSchedule",false,"ControlMode",0.0,1.0},
{"ZoneVentilationDesignFlowRate","Zone Ventilation Design Flow Rate","schedule",true,"",0.0,1.0},
{"ZoneVentilationDesignFlowRate","Minimum Indoor Temperature","minimumIndoorTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ZoneVentilationDesignFlowRate","Maximum Indoor Temperature","maximumIndoorTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ZoneVentilationDesignFlowRate","Delta Temperature","deltaTemperatureSchedule",true,"DeltaTemperature",OptionalDouble(),OptionalDouble()},
{"ZoneVentilationDesignFlowRate","Minimum Outdoor Temperature","minimumOutdoorTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ZoneVentilationDesignFlowRate","Maximum Outdoor Temperature","maximumOutdoorTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ZoneVentilationWindandStackOpenArea","Opening Area Fraction Schedule","openingAreaFractionSchedule",true,"",0.0,1.0},
{"ZoneVentilationWindandStackOpenArea","Minimum Indoor Temperature","minimumIndoorTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ZoneVentilationWindandStackOpenArea","Maximum Indoor Temperature","maximumIndoorTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ZoneVentilationWindandStackOpenArea","Delta Temperature","deltaTemperatureSchedule",true,"DeltaTemperature",OptionalDouble(),OptionalDouble()},
{"ZoneVentilationWindandStackOpenArea","Minimum Outdoor Temperature","minimumOutdoorTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ZoneVentilationWindandStackOpenArea","Maximum Outdoor Temperature","maximumOutdoorTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"RefrigerationAirChiller","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"RefrigerationAirChiller","Heating Power","heatingPowerSchedule",true,"",0.0,1.0},
{"RefrigerationAirChiller","Defrost","defrostSchedule",true,"",0.0,1.0},
{"RefrigerationAirChiller","Defrost Drip-Down","defrostDripDownSchedule",true,"",0.0,1.0},
{"ZoneHVACBaseboardRadiantConvectiveElectric","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACBaseboardRadiantConvectiveWater","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACDehumidifierDX","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACEnergyRecoveryVentilator","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACEnergyRecoveryVentilatorController","Time of Day Economizer Flow Control","timeofDayEconomizerFlowControlSchedule",true,"",0.0,1.0},
{"ZoneHVACTerminalUnitVariableRefrigerantFlow","Terminal Unit Availability schedule","terminalUnitAvailabilityschedule",false,"Availability",0.0,1.0},
{"ZoneHVACTerminalUnitVariableRefrigerantFlow","Supply Air Fan Operating Mode Schedule","supplyAirFanOperatingModeSchedule",false,"ControlMode",0.0,1.0},
{"ZoneHVACHighTemperatureRadiant","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACHighTemperatureRadiant","Heating Setpoint Temperature","heatingSetpointTemperatureSchedule",true,"Temperature",OptionalDouble(),OptionalDouble()},
{"ZoneHVACWaterToAirHeatPump","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACWaterToAirHeatPump","Supply Air Fan Operating Mode","supplyAirFanOperatingModeSchedule",false,"ControlMode",0.0,1.0},
{"ZoneHVACUnitHeater","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACUnitVentilator","Availability","availabilitySchedule",false,"Availability",0.0,1.0},
{"ZoneHVACUnitVentilator","Minimum Outdoor Air","minimumOutdoorAirSchedule",true,"",0.0,1.0},
{"ZoneHVACUnitVentilator","Maximum Outdoor Air Fraction or Temperature","maximumOutdoorAirFractionorTemperatureSchedule",true,"",OptionalDouble(),OptionalDouble()},
{"ZoneHVACUnitVentilator","Supply Air Fan Operating Mode","supplyAirFanOperatingModeSchedule",false,"ControlMode",0.0,1.0},
{"ZoneMixing", "Zone Mixing", "schedule", true, "Dimensionless", 0.0, 1.0},
{"ZoneMixing", "Delta Temperature", "deltaTemperatureSchedule", true, "DeltaTemperature", OptionalDouble(), OptionalDouble() },
{"ZoneMixing", "Minimum Zone Temperature", "minimumZoneTemperatureSchedule", true, "Temperature", OptionalDouble(), OptionalDouble() },
{"ZoneMixing", "Maximum Zone Temperature", "maximumZoneTemperatureSchedule", true, "Temperature", OptionalDouble(), OptionalDouble() },
{"ZoneMixing", "Minimum Source Zone Temperature", "minimumSourceZoneTemperatureSchedule", true, "Temperature", OptionalDouble(), OptionalDouble() },
{"ZoneMixing", "Maximum Source Zone Temperature", "maximumSourceZoneTemperatureSchedule", true, "Temperature", OptionalDouble(), OptionalDouble() },
{"ZoneMixing", "Minimum Outdoor Temperature", "minimumOutdoorTemperatureSchedule", true, "Temperature", OptionalDouble(), OptionalDouble() },
{"ZoneMixing", "Maximum Outdoor Temperature", "maximumOutdoorTemperatureSchedule", true, "Temperature", OptionalDouble(), OptionalDouble() },
{"","","",true,"",OptionalDouble(),OptionalDouble()}
};
int i(0);
while (!scheduleTypes[i].className.empty()) {
auto it = m_classNameToScheduleTypesMap.find(scheduleTypes[i].className);
if (it == m_classNameToScheduleTypesMap.end()) {
m_classNameToScheduleTypesMap.insert(ClassNameToScheduleTypesMap::value_type(scheduleTypes[i].className,ScheduleTypeVector(1u,scheduleTypes[i])));
}
else {
it->second.push_back(scheduleTypes[i]);
}
++i;
}
}
std::string ScheduleTypeRegistrySingleton::getDefaultName(const ScheduleType& scheduleType) const
{
std::string result = scheduleType.unitType;
if (result.empty()) {
if (scheduleType.isContinuous) {
if (scheduleType.lowerLimitValue && (scheduleType.lowerLimitValue == 0.0) &&
scheduleType.upperLimitValue && (scheduleType.upperLimitValue == 1.0))
{
result = "Fractional";
}
else {
result = "Dimensionless";
}
}
else {
if (scheduleType.lowerLimitValue && (scheduleType.lowerLimitValue == 0.0) &&
scheduleType.upperLimitValue && (scheduleType.upperLimitValue == 1.0))
{
result = "Binary";
}
else {
result = "Integer";
}
}
}
else if (result == "Availability") {
result = "OnOff";
}
return result;
}
bool isCompatible(const std::string& className,
const std::string& scheduleDisplayName,
const ScheduleTypeLimits& candidate)
{
ScheduleType scheduleType = ScheduleTypeRegistry::instance().getScheduleType(className,scheduleDisplayName);
// Always call with isString=false
return isCompatible(scheduleType, candidate, false);
}
bool isCompatible(const ScheduleType& scheduleType,
const ScheduleTypeLimits& candidate,
bool isStringent)
{
// do not check continuous/discrete
// check unit type
std::string unitType = candidate.unitType();
if (ScheduleTypeLimits::units(scheduleType.unitType,false) != ScheduleTypeLimits::units(unitType,false)) {
return false;
}
// check lower limit
if (scheduleType.lowerLimitValue) {
if (!candidate.lowerLimitValue() ||
(candidate.lowerLimitValue().get() < scheduleType.lowerLimitValue.get()))
{
return false;
}
} else {
if (isStringent && candidate.lowerLimitValue()) {
return false;
}
}
// check upper limit
if (scheduleType.upperLimitValue) {
if (!candidate.upperLimitValue() ||
(candidate.upperLimitValue().get() > scheduleType.upperLimitValue.get()))
{
return false;
}
} else {
if (isStringent && candidate.upperLimitValue()) {
return false;
}
}
// passed all checks
return true;
}
bool checkOrAssignScheduleTypeLimits(const std::string& className,
const std::string& scheduleDisplayName,
Schedule& schedule)
{
ScheduleType scheduleType = ScheduleTypeRegistry::instance().getScheduleType(
className,
scheduleDisplayName);
bool result(true);
if (OptionalScheduleTypeLimits scheduleTypeLimits = schedule.scheduleTypeLimits()) {
// isStringent = false, we do not enforce NOT having lower / upper limits if our object accepts any.
// This is user-specified, so user is free to do this
if (!isCompatible(scheduleType, *scheduleTypeLimits, false)) {
result = false;
}
}
else {
Model model = schedule.model();
ScheduleTypeLimits candidate = ScheduleTypeRegistry::instance().getOrCreateScheduleTypeLimits(
scheduleType,
model);
result = schedule.setScheduleTypeLimits(candidate);
if (!result && (candidate.directUseCount(false) == 0)) {
candidate.remove();
}
}
return result;
}
std::vector<ScheduleTypeLimits> getCompatibleScheduleTypeLimits(const Model& model,
const std::string& className,
const std::string& scheduleDisplayName)
{
ScheduleTypeLimitsVector result;
ScheduleTypeLimitsVector candidates = model.getConcreteModelObjects<ScheduleTypeLimits>();
ScheduleType scheduleType = ScheduleTypeRegistry::instance().getScheduleType(className,scheduleDisplayName);
for (const ScheduleTypeLimits& candidate : candidates) {
// Pass isStringent = true, so we don't return for eg a Dimensionless schedule with limits [0.5, 0.7] when our object accepts any number
if (isCompatible(scheduleType, candidate, true)) {
result.push_back(candidate);
}
}
return result;
}
std::vector<Schedule> getCompatibleSchedules(const Model& model,
const std::string& className,
const std::string& scheduleDisplayName)
{
ScheduleVector result;
ScheduleVector candidates = model.getModelObjects<Schedule>();
ScheduleTypeLimitsVector okTypes = getCompatibleScheduleTypeLimits(model,className,scheduleDisplayName);
for (const Schedule& candidate : candidates) {
if (OptionalScheduleTypeLimits candidateType = candidate.scheduleTypeLimits()) {
if (std::find(okTypes.begin(),okTypes.end(),*candidateType) != okTypes.end()) {
result.push_back(candidate);
}
}
else {
// by default, keep all non-typed schedules
result.push_back(candidate);
}
}
return result;
}
} // model
} // openstudio