-
Notifications
You must be signed in to change notification settings - Fork 378
/
PurchasedAirManager.cc
3619 lines (3320 loc) · 215 KB
/
PurchasedAirManager.cc
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
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// EnergyPlus, Copyright (c) 1996-2021, The Board of Trustees of the University of Illinois,
// The Regents of the University of California, through Lawrence Berkeley National Laboratory
// (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
// National Laboratory, managed by UT-Battelle, Alliance for Sustainable Energy, LLC, and other
// contributors. All rights reserved.
//
// NOTICE: This Software was developed under funding from the U.S. Department of Energy and the
// U.S. Government consequently retains certain rights. As such, the U.S. Government has been
// granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable,
// worldwide license in the Software to reproduce, distribute copies to the public, prepare
// derivative works, and perform publicly and display publicly, and to permit others to do so.
//
// 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 University of California, Lawrence Berkeley National Laboratory,
// the University of Illinois, U.S. Dept. of Energy nor the names of its contributors may be
// used to endorse or promote products derived from this software without specific prior
// written permission.
//
// (4) Use of EnergyPlus(TM) Name. If Licensee (i) distributes the software in stand-alone form
// without changes from the version obtained under this License, or (ii) Licensee makes a
// reference solely to the software portion of its product, Licensee must refer to the
// software as "EnergyPlus version X" software, where "X" is the version number Licensee
// obtained under this License and may not use a different name for the software. Except as
// specifically required in this Section (4), Licensee shall not use in a company name, a
// product name, in advertising, publicity, or other promotional activities any name, trade
// name, trademark, logo, or other designation of "EnergyPlus", "E+", "e+" or confusingly
// similar designation, without the U.S. Department of Energy's prior written consent.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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 OWNER OR
// CONTRIBUTORS 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.
// C++ Headers
#include <cmath>
// ObjexxFCL Headers
#include <ObjexxFCL/Array.functions.hh>
#include <ObjexxFCL/Fmath.hh>
#include <ObjexxFCL/string.functions.hh>
// EnergyPlus Headers
#include <EnergyPlus/Autosizing/CoolingAirFlowSizing.hh>
#include <EnergyPlus/Autosizing/CoolingCapacitySizing.hh>
#include <EnergyPlus/Autosizing/HeatingAirFlowSizing.hh>
#include <EnergyPlus/Autosizing/HeatingCapacitySizing.hh>
#include <EnergyPlus/Data/EnergyPlusData.hh>
#include <EnergyPlus/DataContaminantBalance.hh>
#include <EnergyPlus/DataEnvironment.hh>
#include <EnergyPlus/DataHVACGlobals.hh>
#include <EnergyPlus/DataHeatBalFanSys.hh>
#include <EnergyPlus/DataHeatBalance.hh>
#include <EnergyPlus/DataIPShortCuts.hh>
#include <EnergyPlus/DataLoopNode.hh>
#include <EnergyPlus/DataSizing.hh>
#include <EnergyPlus/DataZoneEnergyDemands.hh>
#include <EnergyPlus/DataZoneEquipment.hh>
#include <EnergyPlus/EMSManager.hh>
#include <EnergyPlus/General.hh>
#include <EnergyPlus/GeneralRoutines.hh>
#include <EnergyPlus/InputProcessing/InputProcessor.hh>
#include <EnergyPlus/NodeInputManager.hh>
#include <EnergyPlus/OutAirNodeManager.hh>
#include <EnergyPlus/OutputProcessor.hh>
#include <EnergyPlus/Psychrometrics.hh>
#include <EnergyPlus/PurchasedAirManager.hh>
#include <EnergyPlus/ScheduleManager.hh>
#include <EnergyPlus/UtilityRoutines.hh>
#include <EnergyPlus/ZonePlenum.hh>
namespace EnergyPlus::PurchasedAirManager {
// Module containing data and routines dealing with Ideal Loads Air System (formerly PURCHASED AIR).
// MODULE INFORMATION:
// AUTHOR Russ Taylor
// DATE WRITTEN May 1997
// MODIFIED Fred Buhl Dec 1999
// B. Griffith Dec 2006. added OA lookup function, moved getinputflag up to Module
// M. Witte June 2011, add new features including DCV, economizer, dehumidification and humidification
// NOTE: MJW Sep 13, 2011: Still need to review checks for negative loads and impossible supply temps???
// There are no Deallocate statements in here - should there be?
// RE-ENGINEERED na
// PURPOSE OF THIS MODULE:
// To encapsulate the data and algorithms required to simulate the
// Zone Ideal Loads Air System component. This component supplies hot or cold air
// at a fixed or variable temperature to a zone to meet the zone load.
// With the June 2011 enhancements it will also supply outdoor air with optional demand-controlled ventilation
// and economizer controls, plus new options for controlling zone humidity.
// METHODOLOGY EMPLOYED:
// The user can choose via input the max/min hot and cold supply air
// temperature and humidity ratio. The air mass flow rate is chosen
// to meet the (remaining) zone load or based on the outdoor air flow requirement.
// If the outdoor air flow sets the flow rate, the supply air temperature and
// humidity ratio are adjusted to meet the zone load.
// Using/Aliasing
using namespace DataHVACGlobals;
using DataHeatBalFanSys::ZoneAirHumRat;
using DataHeatBalFanSys::ZoneThermostatSetPointHi;
using DataHeatBalFanSys::ZoneThermostatSetPointLo;
using namespace ScheduleManager;
using Psychrometrics::PsyCpAirFnW;
using Psychrometrics::PsyHFnTdbW;
using Psychrometrics::PsyRhoAirFnPbTdbW;
using Psychrometrics::PsyTdbFnHW;
using Psychrometrics::PsyTsatFnHPb;
using Psychrometrics::PsyWFnTdbH;
using Psychrometrics::PsyWFnTdbRhPb;
// Delta humidity ratio limit, 0.00025 equals delta between 45F dewpoint and 46F dewpoint
// used to prevent dividing by near zero
Real64 constexpr SmallDeltaHumRat(0.00025);
void SimPurchasedAir(EnergyPlusData &state,
std::string const &PurchAirName,
Real64 &SysOutputProvided,
Real64 &MoistOutputProvided, // Moisture output provided (kg/s), dehumidification = negative
bool const FirstHVACIteration,
int const ControlledZoneNum,
int const ActualZoneNum,
int &CompIndex)
{
// SUBROUTINE INFORMATION:
// AUTHOR Russ Taylor
// DATE WRITTEN May 1997
// MODIFIED Don Shirey, Aug 2009 (LatOutputProvided - now MoistOutputProvided)
// RE-ENGINEERED na
// PURPOSE OF THIS SUBROUTINE:
// This subroutine manages Purchased Air component simulation.
// It is called from SimZoneEquipment in the ZoneEquipmentManager
// at the system time step.
int PurchAirNum;
if (state.dataPurchasedAirMgr->GetPurchAirInputFlag) {
GetPurchasedAir(state);
state.dataPurchasedAirMgr->GetPurchAirInputFlag = false;
}
// Find the correct PurchasedAir Equipment
if (CompIndex == 0) {
PurchAirNum = UtilityRoutines::FindItemInList(PurchAirName, state.dataPurchasedAirMgr->PurchAir);
if (PurchAirNum == 0) {
ShowFatalError(state, "SimPurchasedAir: Unit not found=" + PurchAirName);
}
CompIndex = PurchAirNum;
} else {
PurchAirNum = CompIndex;
if (PurchAirNum > state.dataPurchasedAirMgr->NumPurchAir || PurchAirNum < 1) {
ShowFatalError(state,
format("SimPurchasedAir: Invalid CompIndex passed={}, Number of Units={}, Entered Unit name={}",
PurchAirNum,
state.dataPurchasedAirMgr->NumPurchAir,
PurchAirName));
}
if (state.dataPurchasedAirMgr->CheckEquipName(PurchAirNum)) {
if (PurchAirName != state.dataPurchasedAirMgr->PurchAir(PurchAirNum).Name) {
ShowFatalError(state,
format("SimPurchasedAir: Invalid CompIndex passed={}, Unit name={}, stored Unit Name for that index={}",
PurchAirNum,
PurchAirName,
state.dataPurchasedAirMgr->PurchAir(PurchAirNum).Name));
}
state.dataPurchasedAirMgr->CheckEquipName(PurchAirNum) = false;
}
}
InitPurchasedAir(state, PurchAirNum, FirstHVACIteration, ControlledZoneNum, ActualZoneNum);
CalcPurchAirLoads(state, PurchAirNum, SysOutputProvided, MoistOutputProvided, ControlledZoneNum, ActualZoneNum);
UpdatePurchasedAir(state, PurchAirNum, FirstHVACIteration);
ReportPurchasedAir(state, PurchAirNum);
}
void GetPurchasedAir(EnergyPlusData &state)
{
// SUBROUTINE INFORMATION:
// AUTHOR Russ Taylor
// DATE WRITTEN June 1997
// MODIFIED M. Witte, June 2011, add new features including DCV, economizer, dehumidification
// and humidification controls
// RE-ENGINEERED na
// PURPOSE OF THIS SUBROUTINE:
// Get the input data for the Purchased Air objects.
// Set up output variables.
// Using/Aliasing
using NodeInputManager::CheckUniqueNodes;
using NodeInputManager::EndUniqueNodeCheck;
using NodeInputManager::GetOnlySingleNode;
using NodeInputManager::InitUniqueNodeCheck;
using OutAirNodeManager::CheckAndAddAirNodeNumber;
using namespace DataLoopNode;
using namespace DataIPShortCuts;
using DataSizing::OARequirements; // to find DesignSpecification:OutdoorAir pointer
using DataSizing::ZoneHVACSizing;
using ZonePlenum::GetReturnPlenumIndex;
// SUBROUTINE LOCAL VARIABLE DECLARATIONS:
int PurchAirNum;
int NumAlphas;
int NumNums;
int IOStat;
int CtrlZone; // zone index
int NodeNum; // node index
static std::string const RoutineName("GetPurchasedAir: "); // include trailing blank space
bool ErrorsFound(false); // If errors detected in input
bool IsOANodeListed; // Flag for OA node name listed in OutdoorAir:Node or Nodelist
bool UniqueNodeError; // Flag for non-unique node error(s)
cCurrentModuleObject = "ZoneHVAC:IdealLoadsAirSystem";
auto &PurchAir(state.dataPurchasedAirMgr->PurchAir);
state.dataPurchasedAirMgr->NumPurchAir = inputProcessor->getNumObjectsFound(state, cCurrentModuleObject);
PurchAir.allocate(state.dataPurchasedAirMgr->NumPurchAir);
state.dataPurchasedAirMgr->CheckEquipName.allocate(state.dataPurchasedAirMgr->NumPurchAir);
state.dataPurchasedAirMgr->PurchAirNumericFields.allocate(state.dataPurchasedAirMgr->NumPurchAir);
state.dataPurchasedAirMgr->CheckEquipName = true;
if (state.dataPurchasedAirMgr->NumPurchAir > 0) {
InitUniqueNodeCheck(state, cCurrentModuleObject);
for (PurchAirNum = 1; PurchAirNum <= state.dataPurchasedAirMgr->NumPurchAir; ++PurchAirNum) {
PurchAir(PurchAirNum).cObjectName = cCurrentModuleObject;
inputProcessor->getObjectItem(state,
cCurrentModuleObject,
PurchAirNum,
cAlphaArgs,
NumAlphas,
rNumericArgs,
NumNums,
IOStat,
lNumericFieldBlanks,
lAlphaFieldBlanks,
cAlphaFieldNames,
cNumericFieldNames);
state.dataPurchasedAirMgr->PurchAirNumericFields(PurchAirNum).FieldNames.allocate(NumNums);
state.dataPurchasedAirMgr->PurchAirNumericFields(PurchAirNum).FieldNames = "";
state.dataPurchasedAirMgr->PurchAirNumericFields(PurchAirNum).FieldNames = cNumericFieldNames;
UtilityRoutines::IsNameEmpty(state, cAlphaArgs(1), cCurrentModuleObject, ErrorsFound);
PurchAir(PurchAirNum).Name = cAlphaArgs(1);
// get optional availability schedule
PurchAir(PurchAirNum).AvailSched = cAlphaArgs(2);
if (lAlphaFieldBlanks(2)) {
PurchAir(PurchAirNum).AvailSchedPtr = DataGlobalConstants::ScheduleAlwaysOn;
} else {
PurchAir(PurchAirNum).AvailSchedPtr = GetScheduleIndex(state, cAlphaArgs(2));
if (PurchAir(PurchAirNum).AvailSchedPtr == 0) {
ShowSevereError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " invalid data");
ShowContinueError(state, "Invalid-not found " + cAlphaFieldNames(2) + "=\"" + cAlphaArgs(2) + "\".");
ErrorsFound = true;
}
}
// Purchased air supply air node is an outlet node
PurchAir(PurchAirNum).ZoneSupplyAirNodeNum = GetOnlySingleNode(state,
cAlphaArgs(3),
ErrorsFound,
cCurrentModuleObject,
cAlphaArgs(1),
NodeType_Air,
NodeConnectionType_Outlet,
1,
ObjectIsNotParent);
UniqueNodeError = false;
CheckUniqueNodes(state, cAlphaFieldNames(3), "NodeName", UniqueNodeError, cAlphaArgs(3), _, cAlphaArgs(1));
if (UniqueNodeError) ErrorsFound = true;
// If new (optional) exhaust air node name is present, then register it as inlet
if (!lAlphaFieldBlanks(4)) {
if (lAlphaFieldBlanks(5)) {
PurchAir(PurchAirNum).ZoneExhaustAirNodeNum = GetOnlySingleNode(state,
cAlphaArgs(4),
ErrorsFound,
cCurrentModuleObject,
cAlphaArgs(1),
NodeType_Air,
NodeConnectionType_Inlet,
1,
ObjectIsNotParent);
} else {
PurchAir(PurchAirNum).ZoneExhaustAirNodeNum = GetOnlySingleNode(state,
cAlphaArgs(4),
ErrorsFound,
cCurrentModuleObject,
cAlphaArgs(1),
NodeType_Air,
NodeConnectionType_Outlet,
1,
ObjectIsNotParent);
}
UniqueNodeError = false;
CheckUniqueNodes(state, cAlphaFieldNames(4), "NodeName", UniqueNodeError, cAlphaArgs(4), _, cAlphaArgs(1));
if (UniqueNodeError) ErrorsFound = true;
}
if (!lAlphaFieldBlanks(5)) {
PurchAir(PurchAirNum).PlenumExhaustAirNodeNum = GetOnlySingleNode(state,
cAlphaArgs(5),
ErrorsFound,
cCurrentModuleObject,
cAlphaArgs(1),
NodeType_Air,
NodeConnectionType_Inlet,
1,
ObjectIsNotParent);
}
PurchAir(PurchAirNum).MaxHeatSuppAirTemp = rNumericArgs(1);
PurchAir(PurchAirNum).MinCoolSuppAirTemp = rNumericArgs(2);
PurchAir(PurchAirNum).MaxHeatSuppAirHumRat = rNumericArgs(3);
PurchAir(PurchAirNum).MinCoolSuppAirHumRat = rNumericArgs(4);
if (UtilityRoutines::SameString(cAlphaArgs(6), "NoLimit")) {
PurchAir(PurchAirNum).HeatingLimit = LimitType::NoLimit;
} else if (UtilityRoutines::SameString(cAlphaArgs(6), "LimitFlowRate")) {
if (lNumericFieldBlanks(5)) {
PurchAir(PurchAirNum).HeatingLimit = LimitType::NoLimit;
} else {
PurchAir(PurchAirNum).HeatingLimit = LimitType::LimitFlowRate;
}
} else if (UtilityRoutines::SameString(cAlphaArgs(6), "LimitCapacity")) {
if (lNumericFieldBlanks(6)) {
PurchAir(PurchAirNum).HeatingLimit = LimitType::NoLimit;
} else {
PurchAir(PurchAirNum).HeatingLimit = LimitType::LimitCapacity;
}
} else if (UtilityRoutines::SameString(cAlphaArgs(6), "LimitFlowRateAndCapacity")) {
if (lNumericFieldBlanks(5) && lNumericFieldBlanks(6)) {
PurchAir(PurchAirNum).HeatingLimit = LimitType::NoLimit;
} else if (lNumericFieldBlanks(5)) {
PurchAir(PurchAirNum).HeatingLimit = LimitType::LimitCapacity;
} else if (lNumericFieldBlanks(6)) {
PurchAir(PurchAirNum).HeatingLimit = LimitType::LimitFlowRate;
} else {
PurchAir(PurchAirNum).HeatingLimit = LimitType::LimitFlowRateAndCapacity;
}
} else {
ShowSevereError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " invalid data");
ShowContinueError(state, "Invalid-entry " + cAlphaFieldNames(6) + "=\"" + cAlphaArgs(6) + "\".");
ShowContinueError(state, "Valid entries are NoLimit, LimitFlowRate, LimitCapacity, or LimitFlowRateAndCapacity");
ErrorsFound = true;
}
PurchAir(PurchAirNum).MaxHeatVolFlowRate = rNumericArgs(5);
PurchAir(PurchAirNum).MaxHeatSensCap = rNumericArgs(6);
if (UtilityRoutines::SameString(cAlphaArgs(7), "NoLimit")) {
PurchAir(PurchAirNum).CoolingLimit = LimitType::NoLimit;
} else if (UtilityRoutines::SameString(cAlphaArgs(7), "LimitFlowRate")) {
if (lNumericFieldBlanks(7)) {
PurchAir(PurchAirNum).CoolingLimit = LimitType::NoLimit;
} else {
PurchAir(PurchAirNum).CoolingLimit = LimitType::LimitFlowRate;
}
} else if (UtilityRoutines::SameString(cAlphaArgs(7), "LimitCapacity")) {
if (lNumericFieldBlanks(8)) {
PurchAir(PurchAirNum).CoolingLimit = LimitType::NoLimit;
} else {
PurchAir(PurchAirNum).CoolingLimit = LimitType::LimitCapacity;
}
} else if (UtilityRoutines::SameString(cAlphaArgs(7), "LimitFlowRateAndCapacity")) {
if (lNumericFieldBlanks(7) && lNumericFieldBlanks(8)) {
PurchAir(PurchAirNum).CoolingLimit = LimitType::NoLimit;
} else if (lNumericFieldBlanks(7)) {
PurchAir(PurchAirNum).CoolingLimit = LimitType::LimitCapacity;
} else if (lNumericFieldBlanks(8)) {
PurchAir(PurchAirNum).CoolingLimit = LimitType::LimitFlowRate;
} else {
PurchAir(PurchAirNum).CoolingLimit = LimitType::LimitFlowRateAndCapacity;
}
} else {
ShowSevereError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " invalid data");
ShowContinueError(state, "Invalid-entry " + cAlphaFieldNames(7) + "=\"" + cAlphaArgs(7) + "\".");
ShowContinueError(state, "Valid entries are NoLimit, LimitFlowRate, LimitCapacity, or LimitFlowRateAndCapacity");
ErrorsFound = true;
}
PurchAir(PurchAirNum).MaxCoolVolFlowRate = rNumericArgs(7);
PurchAir(PurchAirNum).MaxCoolTotCap = rNumericArgs(8);
// get optional heating availability schedule
PurchAir(PurchAirNum).HeatSched = cAlphaArgs(8);
if (lAlphaFieldBlanks(8)) {
PurchAir(PurchAirNum).HeatSchedPtr = DataGlobalConstants::ScheduleAlwaysOn;
} else {
PurchAir(PurchAirNum).HeatSchedPtr = GetScheduleIndex(state, cAlphaArgs(8));
if (PurchAir(PurchAirNum).HeatSchedPtr == 0) {
ShowSevereError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " invalid data");
ShowContinueError(state, "Invalid-not found " + cAlphaFieldNames(8) + "=\"" + cAlphaArgs(8) + "\".");
ErrorsFound = true;
}
}
// get optional cooling availability schedule
PurchAir(PurchAirNum).CoolSched = cAlphaArgs(9);
if (lAlphaFieldBlanks(9)) {
PurchAir(PurchAirNum).CoolSchedPtr = DataGlobalConstants::ScheduleAlwaysOn;
} else {
PurchAir(PurchAirNum).CoolSchedPtr = GetScheduleIndex(state, cAlphaArgs(9));
if (PurchAir(PurchAirNum).CoolSchedPtr == 0) {
ShowSevereError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " invalid data");
ShowContinueError(state, "Invalid-not found " + cAlphaFieldNames(9) + "=\"" + cAlphaArgs(9) + "\".");
ErrorsFound = true;
}
}
// get Dehumidification control type
if (UtilityRoutines::SameString(cAlphaArgs(10), "None")) {
PurchAir(PurchAirNum).DehumidCtrlType = HumControl::None;
} else if (UtilityRoutines::SameString(cAlphaArgs(10), "ConstantSensibleHeatRatio")) {
PurchAir(PurchAirNum).DehumidCtrlType = HumControl::ConstantSensibleHeatRatio;
} else if (UtilityRoutines::SameString(cAlphaArgs(10), "Humidistat")) {
PurchAir(PurchAirNum).DehumidCtrlType = HumControl::Humidistat;
} else if (UtilityRoutines::SameString(cAlphaArgs(10), "ConstantSupplyHumidityRatio")) {
PurchAir(PurchAirNum).DehumidCtrlType = HumControl::ConstantSupplyHumidityRatio;
} else {
ShowSevereError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " invalid data");
ShowContinueError(state, "Invalid-entry " + cAlphaFieldNames(10) + "=\"" + cAlphaArgs(10) + "\".");
ShowContinueError(state, "Valid entries are ConstantSensibleHeatRatio, Humidistat, or ConstantSupplyHumidityRatio");
ErrorsFound = true;
}
PurchAir(PurchAirNum).CoolSHR = rNumericArgs(9);
// get Humidification control type
if (UtilityRoutines::SameString(cAlphaArgs(11), "None")) {
PurchAir(PurchAirNum).HumidCtrlType = HumControl::None;
} else if (UtilityRoutines::SameString(cAlphaArgs(11), "Humidistat")) {
PurchAir(PurchAirNum).HumidCtrlType = HumControl::Humidistat;
} else if (UtilityRoutines::SameString(cAlphaArgs(11), "ConstantSupplyHumidityRatio")) {
PurchAir(PurchAirNum).HumidCtrlType = HumControl::ConstantSupplyHumidityRatio;
} else {
ShowSevereError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " invalid data");
ShowContinueError(state, "Invalid-entry " + cAlphaFieldNames(11) + "=\"" + cAlphaArgs(11) + "\".");
ShowContinueError(state, "Valid entries are None, Humidistat, or ConstantSupplyHumidityRatio");
ErrorsFound = true;
}
// get Design specification outdoor air object
if (!lAlphaFieldBlanks(12)) {
PurchAir(PurchAirNum).OARequirementsPtr = UtilityRoutines::FindItemInList(cAlphaArgs(12), OARequirements);
if (PurchAir(PurchAirNum).OARequirementsPtr == 0) {
ShowSevereError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " invalid data");
ShowContinueError(state, "Invalid-not found" + cAlphaFieldNames(12) + "=\"" + cAlphaArgs(12) + "\".");
ErrorsFound = true;
} else {
PurchAir(PurchAirNum).OutdoorAir = true;
}
}
// If outdoor air specified, then get Outdoor air inlet node and other outdoor air inputs
if (PurchAir(PurchAirNum).OutdoorAir) {
if (lAlphaFieldBlanks(13)) {
// If there is outdoor air and outdoor air inlet node is blank, then create one
if (len(cAlphaArgs(1)) < DataGlobalConstants::MaxNameLength - 23) { // protect against long name leading to > 100 chars
cAlphaArgs(13) = cAlphaArgs(1) + " OUTDOOR AIR INLET NODE";
} else {
cAlphaArgs(13) = cAlphaArgs(1).substr(0, 75) + " OUTDOOR AIR INLET NODE";
}
if (state.dataGlobal->DisplayExtraWarnings) {
ShowWarningError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " blank field");
ShowContinueError(state, cAlphaFieldNames(13) + " is blank, but there is outdoor air requested for this system.");
ShowContinueError(state, "Creating node name =" + cAlphaArgs(13));
}
}
// Register OA node
PurchAir(PurchAirNum).OutdoorAirNodeNum = GetOnlySingleNode(state,
cAlphaArgs(13),
ErrorsFound,
cCurrentModuleObject,
cAlphaArgs(1),
NodeType_Air,
NodeConnectionType_Outlet,
1,
ObjectIsNotParent);
// Check if OA node is initialized in OutdoorAir:Node or OutdoorAir:Nodelist
CheckAndAddAirNodeNumber(state, PurchAir(PurchAirNum).OutdoorAirNodeNum, IsOANodeListed);
if ((!IsOANodeListed) && state.dataGlobal->DisplayExtraWarnings) {
ShowWarningError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " missing data");
ShowContinueError(state, cAlphaArgs(13) + " does not appear in an OutdoorAir:NodeList or as an OutdoorAir:Node.");
ShowContinueError(state, "Adding OutdoorAir:Node=" + cAlphaArgs(13));
}
UniqueNodeError = false;
CheckUniqueNodes(state, cAlphaFieldNames(13), "NodeName", UniqueNodeError, cAlphaArgs(13), _, cAlphaArgs(1));
if (UniqueNodeError) ErrorsFound = true;
// get Demand controlled ventilation type
if (UtilityRoutines::SameString(cAlphaArgs(14), "None")) {
PurchAir(PurchAirNum).DCVType = DCV::NoDCV;
} else if (UtilityRoutines::SameString(cAlphaArgs(14), "OccupancySchedule")) {
PurchAir(PurchAirNum).DCVType = DCV::OccupancySchedule;
} else if (UtilityRoutines::SameString(cAlphaArgs(14), "CO2Setpoint")) {
if (state.dataContaminantBalance->Contaminant.CO2Simulation) {
PurchAir(PurchAirNum).DCVType = DCV::CO2SetPoint;
} else {
PurchAir(PurchAirNum).DCVType = DCV::NoDCV;
ShowWarningError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " invalid data");
ShowContinueError(state, cAlphaFieldNames(14) + '=' + cAlphaArgs(14) + " but CO2 simulation is not active.");
ShowContinueError(state, "Resetting " + cAlphaFieldNames(14) + " to NoDCV");
ShowContinueError(state,
"To activate CO2 simulation, use ZoneAirContaminantBalance object and specify \"Carbon Dioxide "
"Concentration\"=\"Yes\".");
}
} else {
ShowSevereError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " invalid data");
ShowContinueError(state, "Invalid-entry " + cAlphaFieldNames(14) + '=' + cAlphaArgs(14));
ShowContinueError(state, "Valid entries are None, OccupancySchedule, or CO2Setpoint");
ErrorsFound = true;
}
// get Outdoor air economizer type
if (UtilityRoutines::SameString(cAlphaArgs(15), "NoEconomizer")) {
PurchAir(PurchAirNum).EconomizerType = Econ::NoEconomizer;
} else if (UtilityRoutines::SameString(cAlphaArgs(15), "DifferentialDryBulb")) {
PurchAir(PurchAirNum).EconomizerType = Econ::DifferentialDryBulb;
} else if (UtilityRoutines::SameString(cAlphaArgs(15), "DifferentialEnthalpy")) {
PurchAir(PurchAirNum).EconomizerType = Econ::DifferentialEnthalpy;
} else {
ShowSevereError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " invalid data");
ShowContinueError(state, "Invalid-entry " + cAlphaFieldNames(15) + '=' + cAlphaArgs(15));
ShowContinueError(state, "Valid entries are NoEconomizer, DifferentialDryBulb, or DifferentialEnthalpy");
ErrorsFound = true;
}
// get Outdoor air heat recovery type and effectiveness
if (UtilityRoutines::SameString(cAlphaArgs(16), "None")) {
PurchAir(PurchAirNum).HtRecType = HeatRecovery::NoHeatRecovery;
} else if (UtilityRoutines::SameString(cAlphaArgs(16), "Sensible")) {
PurchAir(PurchAirNum).HtRecType = HeatRecovery::Sensible;
} else if (UtilityRoutines::SameString(cAlphaArgs(16), "Enthalpy")) {
PurchAir(PurchAirNum).HtRecType = HeatRecovery::Enthalpy;
} else {
ShowSevereError(state, RoutineName + cCurrentModuleObject + "=\"" + cAlphaArgs(1) + " invalid data");
ShowContinueError(state, "Invalid-entry " + cAlphaFieldNames(16) + '=' + cAlphaArgs(16));
ShowContinueError(state, "Valid entries are None, Sensible, or Enthalpy");
ErrorsFound = true;
}
} else { // No outdoorair
PurchAir(PurchAirNum).DCVType = DCV::NoDCV;
PurchAir(PurchAirNum).EconomizerType = Econ::NoEconomizer;
PurchAir(PurchAirNum).HtRecType = HeatRecovery::NoHeatRecovery;
}
PurchAir(PurchAirNum).HtRecSenEff = rNumericArgs(10);
PurchAir(PurchAirNum).HtRecLatEff = rNumericArgs(11);
for (CtrlZone = 1; CtrlZone <= state.dataGlobal->NumOfZones; ++CtrlZone) {
if (!state.dataZoneEquip->ZoneEquipConfig(CtrlZone).IsControlled) continue;
for (NodeNum = 1; NodeNum <= state.dataZoneEquip->ZoneEquipConfig(CtrlZone).NumInletNodes; ++NodeNum) {
if (PurchAir(PurchAirNum).ZoneSupplyAirNodeNum == state.dataZoneEquip->ZoneEquipConfig(CtrlZone).InletNode(NodeNum)) {
PurchAir(PurchAirNum).ZonePtr = CtrlZone;
}
}
}
PurchAir(PurchAirNum).HVACSizingIndex = 0;
if (!lAlphaFieldBlanks(17)) {
PurchAir(PurchAirNum).HVACSizingIndex = UtilityRoutines::FindItemInList(cAlphaArgs(17), ZoneHVACSizing);
if (PurchAir(PurchAirNum).HVACSizingIndex == 0) {
ShowSevereError(state, cAlphaFieldNames(17) + " = " + cAlphaArgs(17) + " not found.");
ShowContinueError(state, "Occurs in " + cCurrentModuleObject + " = " + PurchAir(PurchAirNum).Name);
ErrorsFound = true;
}
}
// initialize the calculated and report values
PurchAir(PurchAirNum).MaxHeatMassFlowRate = 0.0;
PurchAir(PurchAirNum).MaxCoolMassFlowRate = 0.0;
PurchAir(PurchAirNum).SenHeatEnergy = 0.0;
PurchAir(PurchAirNum).LatHeatEnergy = 0.0;
PurchAir(PurchAirNum).TotHeatEnergy = 0.0;
PurchAir(PurchAirNum).SenCoolEnergy = 0.0;
PurchAir(PurchAirNum).LatCoolEnergy = 0.0;
PurchAir(PurchAirNum).TotCoolEnergy = 0.0;
PurchAir(PurchAirNum).ZoneSenHeatEnergy = 0.0;
PurchAir(PurchAirNum).ZoneLatHeatEnergy = 0.0;
PurchAir(PurchAirNum).ZoneTotHeatEnergy = 0.0;
PurchAir(PurchAirNum).ZoneSenCoolEnergy = 0.0;
PurchAir(PurchAirNum).ZoneLatCoolEnergy = 0.0;
PurchAir(PurchAirNum).ZoneTotCoolEnergy = 0.0;
PurchAir(PurchAirNum).OASenHeatEnergy = 0.0;
PurchAir(PurchAirNum).OALatHeatEnergy = 0.0;
PurchAir(PurchAirNum).OATotHeatEnergy = 0.0;
PurchAir(PurchAirNum).OASenCoolEnergy = 0.0;
PurchAir(PurchAirNum).OALatCoolEnergy = 0.0;
PurchAir(PurchAirNum).OATotCoolEnergy = 0.0;
PurchAir(PurchAirNum).HtRecSenHeatEnergy = 0.0;
PurchAir(PurchAirNum).HtRecLatHeatEnergy = 0.0;
PurchAir(PurchAirNum).HtRecTotHeatEnergy = 0.0;
PurchAir(PurchAirNum).HtRecSenCoolEnergy = 0.0;
PurchAir(PurchAirNum).HtRecLatCoolEnergy = 0.0;
PurchAir(PurchAirNum).HtRecTotCoolEnergy = 0.0;
PurchAir(PurchAirNum).SenHeatRate = 0.0;
PurchAir(PurchAirNum).LatHeatRate = 0.0;
PurchAir(PurchAirNum).TotHeatRate = 0.0;
PurchAir(PurchAirNum).SenCoolRate = 0.0;
PurchAir(PurchAirNum).LatCoolRate = 0.0;
PurchAir(PurchAirNum).TotCoolRate = 0.0;
PurchAir(PurchAirNum).ZoneSenHeatRate = 0.0;
PurchAir(PurchAirNum).ZoneLatHeatRate = 0.0;
PurchAir(PurchAirNum).ZoneTotHeatRate = 0.0;
PurchAir(PurchAirNum).ZoneSenCoolRate = 0.0;
PurchAir(PurchAirNum).ZoneLatCoolRate = 0.0;
PurchAir(PurchAirNum).ZoneTotCoolRate = 0.0;
PurchAir(PurchAirNum).OASenHeatRate = 0.0;
PurchAir(PurchAirNum).OALatHeatRate = 0.0;
PurchAir(PurchAirNum).OATotHeatRate = 0.0;
PurchAir(PurchAirNum).OASenCoolRate = 0.0;
PurchAir(PurchAirNum).OALatCoolRate = 0.0;
PurchAir(PurchAirNum).OATotCoolRate = 0.0;
PurchAir(PurchAirNum).HtRecSenHeatRate = 0.0;
PurchAir(PurchAirNum).HtRecLatHeatRate = 0.0;
PurchAir(PurchAirNum).HtRecTotHeatRate = 0.0;
PurchAir(PurchAirNum).HtRecSenCoolRate = 0.0;
PurchAir(PurchAirNum).HtRecLatCoolRate = 0.0;
PurchAir(PurchAirNum).HtRecTotCoolRate = 0.0;
PurchAir(PurchAirNum).OutdoorAirMassFlowRate = 0.0;
PurchAir(PurchAirNum).OutdoorAirVolFlowRateStdRho = 0.0;
PurchAir(PurchAirNum).SupplyAirMassFlowRate = 0.0;
PurchAir(PurchAirNum).SupplyAirVolFlowRateStdRho = 0.0;
}
EndUniqueNodeCheck(state, cCurrentModuleObject);
}
for (PurchAirNum = 1; PurchAirNum <= state.dataPurchasedAirMgr->NumPurchAir; ++PurchAirNum) {
// Setup Output variables
// energy variables
SetupOutputVariable(state,
"Zone Ideal Loads Supply Air Sensible Heating Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).SenHeatEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Supply Air Latent Heating Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).LatHeatEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Supply Air Total Heating Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).TotHeatEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name,
_,
"DISTRICTHEATING",
"Heating",
_,
"System");
SetupOutputVariable(state,
"Zone Ideal Loads Supply Air Sensible Cooling Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).SenCoolEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Supply Air Latent Cooling Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).LatCoolEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Supply Air Total Cooling Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).TotCoolEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name,
_,
"DISTRICTCOOLING",
"Cooling",
_,
"System");
SetupOutputVariable(state,
"Zone Ideal Loads Zone Sensible Heating Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).ZoneSenHeatEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Zone Latent Heating Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).ZoneLatHeatEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Zone Total Heating Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).ZoneTotHeatEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Zone Sensible Cooling Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).ZoneSenCoolEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Zone Latent Cooling Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).ZoneLatCoolEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Zone Total Cooling Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).ZoneTotCoolEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Outdoor Air Sensible Heating Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).OASenHeatEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Outdoor Air Latent Heating Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).OALatHeatEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Outdoor Air Total Heating Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).OATotHeatEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Outdoor Air Sensible Cooling Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).OASenCoolEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Outdoor Air Latent Cooling Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).OALatCoolEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Outdoor Air Total Cooling Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).OATotCoolEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Heat Recovery Sensible Heating Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).HtRecSenHeatEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Heat Recovery Latent Heating Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).HtRecLatHeatEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Heat Recovery Total Heating Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).HtRecTotHeatEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Heat Recovery Sensible Cooling Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).HtRecSenCoolEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Heat Recovery Latent Cooling Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).HtRecLatCoolEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Heat Recovery Total Cooling Energy",
OutputProcessor::Unit::J,
PurchAir(PurchAirNum).HtRecTotCoolEnergy,
"System",
"Sum",
PurchAir(PurchAirNum).Name);
// rate variables
SetupOutputVariable(state,
"Zone Ideal Loads Supply Air Sensible Heating Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).SenHeatRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Supply Air Latent Heating Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).LatHeatRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Supply Air Total Heating Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).TotHeatRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Supply Air Sensible Cooling Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).SenCoolRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Supply Air Latent Cooling Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).LatCoolRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Supply Air Total Cooling Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).TotCoolRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Zone Sensible Heating Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).ZoneSenHeatRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Zone Latent Heating Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).ZoneLatHeatRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Zone Total Heating Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).ZoneTotHeatRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Zone Sensible Cooling Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).ZoneSenCoolRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Zone Latent Cooling Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).ZoneLatCoolRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Zone Total Cooling Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).ZoneTotCoolRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Outdoor Air Sensible Heating Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).OASenHeatRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Outdoor Air Latent Heating Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).OALatHeatRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Outdoor Air Total Heating Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).OATotHeatRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Outdoor Air Sensible Cooling Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).OASenCoolRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Outdoor Air Latent Cooling Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).OALatCoolRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Outdoor Air Total Cooling Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).OATotCoolRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Heat Recovery Sensible Heating Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).HtRecSenHeatRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Heat Recovery Latent Heating Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).HtRecLatHeatRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Heat Recovery Total Heating Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).HtRecTotHeatRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Heat Recovery Sensible Cooling Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).HtRecSenCoolRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Heat Recovery Latent Cooling Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).HtRecLatCoolRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Heat Recovery Total Cooling Rate",
OutputProcessor::Unit::W,
PurchAir(PurchAirNum).HtRecTotCoolRate,
"System",
"Average",
PurchAir(PurchAirNum).Name);
SetupOutputVariable(state,
"Zone Ideal Loads Economizer Active Time",
OutputProcessor::Unit::hr,
PurchAir(PurchAirNum).TimeEconoActive,
"System",