-
Notifications
You must be signed in to change notification settings - Fork 228
Expand file tree
/
Copy pathSqlFile.hpp
More file actions
1371 lines (1032 loc) · 62.7 KB
/
SqlFile.hpp
File metadata and controls
1371 lines (1032 loc) · 62.7 KB
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
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
* See also https://openstudio.net/license
***********************************************************************************************************************/
#ifndef UTILITIES_SQL_SQLFILE_HPP
#define UTILITIES_SQL_SQLFILE_HPP
#include "../UtilitiesAPI.hpp"
#include "SummaryData.hpp"
#include "SqlFileDataDictionary.hpp"
#include "SqlFileEnums.hpp"
#include "SqlFile_Impl.hpp"
#include "../data/Vector.hpp"
#include "../data/Matrix.hpp"
#include "../data/DataEnums.hpp"
#include "../data/EndUses.hpp"
#include "../units/SIUnit.hpp"
#include "../core/Path.hpp"
#include "../core/Logger.hpp"
#include "../core/Optional.hpp"
#include "../core/Deprecated.hpp"
#include <boost/optional.hpp>
#include <string>
namespace openstudio {
// forward declarations
class DateTime;
class EpwFile;
class Calendar;
class SqlFileTimeSeriesQuery;
//namespace detail {
//class SqlFile_Impl;
//}
/** SqlFile class is a transaction script around the sql output of EnergyPlus. */
class UTILITIES_API SqlFile
{
public:
/** @name Constructors */
//@{
/// default constructor
SqlFile();
/// constructor from path
/// Creates indexes by default, pass in false for no new indexes and quicker opening
explicit SqlFile(const openstudio::path& path, const bool createIndexes = true);
/// initializes a new sql file for output
/// Creates indexes by default, pass in false for no indexes and quicker creation
SqlFile(const openstudio::path& t_path, const openstudio::EpwFile& t_epwFile, const openstudio::DateTime& t_simulationTime,
const openstudio::Calendar& t_calendar, const bool createIndexes = true);
// virtual destructor
virtual ~SqlFile() = default;
// Remove indexes that exist, useful for performance reasons.
void removeIndexes();
// create indexes on the sql file if they do not exist
void createIndexes();
//@}
/** @name File Queries and Operations */
//@{
/// returns whether or not connection is open
bool connectionOpen() const;
/// get the path
openstudio::path path() const;
/// \returns true if the sqlfile is of a version that's in our supported range
bool supportedVersion() const;
// Check if the SQLFile contains the 'Year' field (Added in E+ 8.9.0, but perhaps not working for 8.9.0 itself)
bool hasYear() const;
// Check if the SqlFile contains 'Year' field for DaylightMapHourlyReports (added Year in 9.2.0)
bool hasIlluminanceMapYear() const;
// return a fenestration value for matching subSurfaceName (RowName) and columnName
boost::optional<double> getExteriorFenestrationValue(const std::string& subSurfaceName, const std::string& columnName) const;
// return an Assembly U-Factor value for matching subSurfaceName (RowName)
boost::optional<double> assemblyUFactor(const std::string& subSurfaceName) const;
// return an Assembly SHGC value for matching subSurfaceName (RowName)
boost::optional<double> assemblySHGC(const std::string& subSurfaceName) const;
// return an Assembly Visible Transmittance value for matching subSurfaceName (RowName)
boost::optional<double> assemblyVisibleTransmittance(const std::string& subSurfaceName) const;
/// close the file
bool close();
/// re-open the file
bool reopen();
/// Energy Plus eplusout.sql file name
std::string energyPlusSqliteFile() const;
//@}
/** @name Standard Queries */
//@{
/// hours simulated
boost::optional<double> hoursSimulated() const;
/// net site energy in GJ
boost::optional<double> netSiteEnergy() const;
/// net source energy in GJ
boost::optional<double> netSourceEnergy() const;
/// total site energy in GJ
boost::optional<double> totalSiteEnergy() const;
/// total source energy in GJ
boost::optional<double> totalSourceEnergy() const;
/// Returns the annual total cost associated with the given fuel type in dollars.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> annualTotalCost(const FuelType& fuel) const;
/// Returns the annual total cost per total building area associated with the given fuel type in dollars per square meter.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> annualTotalCostPerBldgArea(const FuelType& fuel) const;
/// Returns the annual total cost per net conditioned building area associated with the given fuel type in dollars per square meter.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> annualTotalCostPerNetConditionedBldgArea(const FuelType& fuel) const;
/// Returns the annual total cost for all fuel types in dollars. Requires EnergyPlus simulation output to calculate.
boost::optional<double> annualTotalUtilityCost() const;
/// Returns the total energy cost over the analysis period in dollars according to the discounting convention.
/// Requires EnergyPlus simulation output and LifeCycleCost_Parameters input object to calculate.
boost::optional<double> economicsEnergyCost() const;
OptionalDouble getElecOrGasUse(bool t_getGas = true) const;
OptionalDouble getElecOrGasCost(bool t_getGas = true) const;
/// Returns an EndUses object containing all end uses for the simulation.
boost::optional<EndUses> endUses() const;
/// Returns the energy consumption for the given fuel type, category and month.
/// Requires BUILDING ENERGY PERFORMANCE tabular report. Value is energy use in J.
boost::optional<double> energyConsumptionByMonth(const openstudio::EndUseFuelType& t_fuelType, const openstudio::EndUseCategoryType& t_categoryType,
const openstudio::MonthOfYear& t_monthOfYear) const;
/// Returns the energy demand for the given fuel type, category and month.
/// Requires BUILDING ENERGY PERFORMANCE tabular report. Value is energy use in W.
boost::optional<double> peakEnergyDemandByMonth(const openstudio::EndUseFuelType& t_fuelType, const openstudio::EndUseCategoryType& t_categoryType,
const openstudio::MonthOfYear& t_monthOfYear) const;
/// Returns the electric energy used for heating in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityHeating() const;
/// Returns the electric energy used for cooling in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityCooling() const;
/// Returns the electric energy used for interior lighting in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityInteriorLighting() const;
/// Returns the electric energy used for exterior lighting in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityExteriorLighting() const;
/// Returns the electric energy used for interior equipment in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityInteriorEquipment() const;
/// Returns the electric energy used for exterior equipment in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityExteriorEquipment() const;
/// Returns the electric energy used for fans in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityFans() const;
/// Returns the electric energy used for pumps in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityPumps() const;
/// Returns the electric energy used for heat rejection in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityHeatRejection() const;
/// Returns the electric energy used for humidification in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityHumidification() const;
/// Returns the electric energy used for heat recovery in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityHeatRecovery() const;
/// Returns the electric energy used for water systems in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityWaterSystems() const;
/// Returns the electric energy used for refrigeration in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityRefrigeration() const;
/// Returns the electric energy used for generators in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityGenerators() const;
/// Returns the electric energy used for all uses in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> electricityTotalEndUses() const;
/// Returns the natural gas energy used for heating in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasHeating() const;
/// Returns the natural gas energy used for cooling in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasCooling() const;
/// Returns the natural gas energy used for interior lighting in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasInteriorLighting() const;
/// Returns the natural gas energy used for exterior lighting in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasExteriorLighting() const;
/// Returns the natural gas energy used for interior equipment in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasInteriorEquipment() const;
/// Returns the natural gas energy used for exterior equipment in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasExteriorEquipment() const;
/// Returns the natural gas energy used for fans in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasFans() const;
/// Returns the natural gas energy used for pumps in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasPumps() const;
/// Returns the natural gas energy used for heat rejection in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasHeatRejection() const;
/// Returns the natural gas energy used for humidification in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasHumidification() const;
/// Returns the natural gas energy used for heat recovery in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasHeatRecovery() const;
/// Returns the natural gas energy used for water systems in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasWaterSystems() const;
/// Returns the natural gas energy used for refrigeration in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasRefrigeration() const;
/// Returns the natural gas energy used for generators in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasGenerators() const;
/// Returns the natural gas energy used for all end uses in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> naturalGasTotalEndUses() const;
/// Gasoline
/// Returns the energy used for heating from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineHeating() const;
/// Returns the energy used for cooling from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineCooling() const;
/// Returns the energy used for interior lighting from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineInteriorLighting() const;
/// Returns the energy used for exterior lighting from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineExteriorLighting() const;
/// Returns the energy used for interior equipment from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineInteriorEquipment() const;
/// Returns the energy used for exterior equipment from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineExteriorEquipment() const;
/// Returns the energy used for fans from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineFans() const;
/// Returns the energy used for pumps from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolinePumps() const;
/// Returns the energy used for heat rejection from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineHeatRejection() const;
/// Returns the energy used for humidification from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineHumidification() const;
/// Returns the energy used for heat recovery from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineHeatRecovery() const;
/// Returns the energy used for water systems from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineWaterSystems() const;
/// Returns the energy used for refrigeration from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineRefrigeration() const;
/// Returns the energy used for generators from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineGenerators() const;
/// Returns the energy used for all end uses from gasoline in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> gasolineTotalEndUses() const;
/// Diesel
/// Returns the energy used for heating from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselHeating() const;
/// Returns the energy used for cooling from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselCooling() const;
/// Returns the energy used for interior lighting from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselInteriorLighting() const;
/// Returns the energy used for exterior lighting from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselExteriorLighting() const;
/// Returns the energy used for interior equipment from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselInteriorEquipment() const;
/// Returns the energy used for exterior equipment from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselExteriorEquipment() const;
/// Returns the energy used for fans from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselFans() const;
/// Returns the energy used for pumps from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselPumps() const;
/// Returns the energy used for heat rejection from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselHeatRejection() const;
/// Returns the energy used for humidification from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselHumidification() const;
/// Returns the energy used for heat recovery from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselHeatRecovery() const;
/// Returns the energy used for water systems from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselWaterSystems() const;
/// Returns the energy used for refrigeration from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselRefrigeration() const;
/// Returns the energy used for generators from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselGenerators() const;
/// Returns the energy used for all end uses from diesel in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> dieselTotalEndUses() const;
/// Coal
/// Returns the energy used for heating from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalHeating() const;
/// Returns the energy used for cooling from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalCooling() const;
/// Returns the energy used for interior lighting from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalInteriorLighting() const;
/// Returns the energy used for exterior lighting from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalExteriorLighting() const;
/// Returns the energy used for interior equipment from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalInteriorEquipment() const;
/// Returns the energy used for exterior equipment from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalExteriorEquipment() const;
/// Returns the energy used for fans from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalFans() const;
/// Returns the energy used for pumps from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalPumps() const;
/// Returns the energy used for heat rejection from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalHeatRejection() const;
/// Returns the energy used for humidification from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalHumidification() const;
/// Returns the energy used for heat recovery from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalHeatRecovery() const;
/// Returns the energy used for water systems from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalWaterSystems() const;
/// Returns the energy used for refrigeration from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalRefrigeration() const;
/// Returns the energy used for generators from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalGenerators() const;
/// Returns the energy used for all end uses from coal in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> coalTotalEndUses() const;
/// Fuel Oil No 1
/// Returns the energy used for heating from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1Heating() const;
/// Returns the energy used for cooling from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1Cooling() const;
/// Returns the energy used for interior lighting from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1InteriorLighting() const;
/// Returns the energy used for exterior lighting from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1ExteriorLighting() const;
/// Returns the energy used for interior equipment from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1InteriorEquipment() const;
/// Returns the energy used for exterior equipment from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1ExteriorEquipment() const;
/// Returns the energy used for fans from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1Fans() const;
/// Returns the energy used for pumps from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1Pumps() const;
/// Returns the energy used for heat rejection from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1HeatRejection() const;
/// Returns the energy used for humidification from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1Humidification() const;
/// Returns the energy used for heat recovery from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1HeatRecovery() const;
/// Returns the energy used for water systems from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1WaterSystems() const;
/// Returns the energy used for refrigeration from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1Refrigeration() const;
/// Returns the energy used for generators from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1Generators() const;
/// Returns the energy used for all end uses from fuelOilNo1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo1TotalEndUses() const;
/// Fuel Oil No 2
/// Returns the energy used for heating from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2Heating() const;
/// Returns the energy used for cooling from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2Cooling() const;
/// Returns the energy used for interior lighting from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2InteriorLighting() const;
/// Returns the energy used for exterior lighting from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2ExteriorLighting() const;
/// Returns the energy used for interior equipment from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2InteriorEquipment() const;
/// Returns the energy used for exterior equipment from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2ExteriorEquipment() const;
/// Returns the energy used for fans from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2Fans() const;
/// Returns the energy used for pumps from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2Pumps() const;
/// Returns the energy used for heat rejection from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2HeatRejection() const;
/// Returns the energy used for humidification from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2Humidification() const;
/// Returns the energy used for heat recovery from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2HeatRecovery() const;
/// Returns the energy used for water systems from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2WaterSystems() const;
/// Returns the energy used for refrigeration from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2Refrigeration() const;
/// Returns the energy used for generators from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2Generators() const;
/// Returns the energy used for all end uses from fuelOilNo2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> fuelOilNo2TotalEndUses() const;
/// Propane
/// Returns the energy used for heating from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneHeating() const;
/// Returns the energy used for cooling from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneCooling() const;
/// Returns the energy used for interior lighting from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneInteriorLighting() const;
/// Returns the energy used for exterior lighting from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneExteriorLighting() const;
/// Returns the energy used for interior equipment from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneInteriorEquipment() const;
/// Returns the energy used for exterior equipment from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneExteriorEquipment() const;
/// Returns the energy used for fans from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneFans() const;
/// Returns the energy used for pumps from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propanePumps() const;
/// Returns the energy used for heat rejection from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneHeatRejection() const;
/// Returns the energy used for humidification from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneHumidification() const;
/// Returns the energy used for heat recovery from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneHeatRecovery() const;
/// Returns the energy used for water systems from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneWaterSystems() const;
/// Returns the energy used for refrigeration from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneRefrigeration() const;
/// Returns the energy used for generators from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneGenerators() const;
/// Returns the energy used for all end uses from propane in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> propaneTotalEndUses() const;
/// Other Fuel 1
/// Returns the energy used for heating from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1Heating() const;
/// Returns the energy used for cooling from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1Cooling() const;
/// Returns the energy used for interior lighting from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1InteriorLighting() const;
/// Returns the energy used for exterior lighting from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1ExteriorLighting() const;
/// Returns the energy used for interior equipment from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1InteriorEquipment() const;
/// Returns the energy used for exterior equipment from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1ExteriorEquipment() const;
/// Returns the energy used for fans from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1Fans() const;
/// Returns the energy used for pumps from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1Pumps() const;
/// Returns the energy used for heat rejection from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1HeatRejection() const;
/// Returns the energy used for humidification from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1Humidification() const;
/// Returns the energy used for heat recovery from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1HeatRecovery() const;
/// Returns the energy used for water systems from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1WaterSystems() const;
/// Returns the energy used for refrigeration from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1Refrigeration() const;
/// Returns the energy used for generators from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1Generators() const;
/// Returns the energy used for all end uses from otherFuel1 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel1TotalEndUses() const;
/// Other Fuel 2
/// Returns the energy used for heating from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2Heating() const;
/// Returns the energy used for cooling from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2Cooling() const;
/// Returns the energy used for interior lighting from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2InteriorLighting() const;
/// Returns the energy used for exterior lighting from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2ExteriorLighting() const;
/// Returns the energy used for interior equipment from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2InteriorEquipment() const;
/// Returns the energy used for exterior equipment from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2ExteriorEquipment() const;
/// Returns the energy used for fans from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2Fans() const;
/// Returns the energy used for pumps from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2Pumps() const;
/// Returns the energy used for heat rejection from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2HeatRejection() const;
/// Returns the energy used for humidification from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2Humidification() const;
/// Returns the energy used for heat recovery from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2HeatRecovery() const;
/// Returns the energy used for water systems from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2WaterSystems() const;
/// Returns the energy used for refrigeration from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2Refrigeration() const;
/// Returns the energy used for generators from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2Generators() const;
/// Returns the energy used for all end uses from otherFuel2 in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> otherFuel2TotalEndUses() const;
/// Returns the district cooling energy used for heating in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingHeating() const;
/// Returns the district cooling energy used for cooling in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingCooling() const;
/// Returns the district cooling energy used for interior lighting in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingInteriorLighting() const;
/// Returns the district cooling energy used for exterior lighting in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingExteriorLighting() const;
/// Returns the district cooling energy used for interior equipment in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingInteriorEquipment() const;
/// Returns the district cooling energy used for exterior equipment in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingExteriorEquipment() const;
/// Returns the district cooling energy used for fans in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingFans() const;
/// Returns the district cooling energy used for pumps in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingPumps() const;
/// Returns the district cooling energy used for heat rejection in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingHeatRejection() const;
/// Returns the district cooling energy used for humidification in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingHumidification() const;
/// Returns the district cooling energy used for heat recovery in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingHeatRecovery() const;
/// Returns the district cooling energy used for water systems in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingWaterSystems() const;
/// Returns the district cooling energy used for refrigeration in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingRefrigeration() const;
/// Returns the district cooling energy used for generators in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingGenerators() const;
/// Returns the district cooling energy used for all end uses in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtCoolingTotalEndUses() const;
/// Returns the district heating energy used for heating in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingHeating() const;
/// Returns the district heating energy used for cooling in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingCooling() const;
/// Returns the district heating energy used for interior lighting in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingInteriorLighting() const;
/// Returns the district heating energy used for exterior lighting in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingExteriorLighting() const;
/// Returns the district heating energy used for interior equipment in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingInteriorEquipment() const;
/// Returns the district heating energy used for exterior equipment in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingExteriorEquipment() const;
/// Returns the district heating energy used for fans in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingFans() const;
/// Returns the district heating energy used for pumps in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingPumps() const;
/// Returns the district heating energy used for heat rejection in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingHeatRejection() const;
/// Returns the district heating energy used for humidification in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingHumidification() const;
/// Returns the district heating energy used for heat recovery in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingHeatRecovery() const;
/// Returns the district heating energy used for water systems in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterSystems() const;
/// Returns the district heating energy used for refrigeration in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingRefrigeration() const;
/// Returns the district heating energy used for generators in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingGenerators() const;
/// Returns the district heating energy used for all end uses in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingTotalEndUses() const;
/// Returns the district heating water energy used for heating in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterHeating() const;
/// Returns the district heating water energy used for cooling in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterCooling() const;
/// Returns the district heating water energy used for interior lighting in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterInteriorLighting() const;
/// Returns the district heating water energy used for exterior lighting in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterExteriorLighting() const;
/// Returns the district heating water energy used for interior equipment in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterInteriorEquipment() const;
/// Returns the district heating water energy used for exterior equipment in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterExteriorEquipment() const;
/// Returns the district heating water energy used for fans in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterFans() const;
/// Returns the district heating water energy used for pumps in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterPumps() const;
/// Returns the district heating water energy used for heat rejection in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterHeatRejection() const;
/// Returns the district heating water energy used for humidification in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterHumidification() const;
/// Returns the district heating water energy used for heat recovery in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterHeatRecovery() const;
/// Returns the district heating water energy used for water systems in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterWaterSystems() const;
/// Returns the district heating water energy used for refrigeration in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterRefrigeration() const;
/// Returns the district heating water energy used for generators in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterGenerators() const;
/// Returns the district heating water energy used for all end uses in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingWaterTotalEndUses() const;
/// Returns the district heating steam energy used for heating in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingSteamHeating() const;
/// Returns the district heating steam energy used for cooling in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingSteamCooling() const;
/// Returns the district heating steam energy used for interior lighting in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingSteamInteriorLighting() const;
/// Returns the district heating steam energy used for exterior lighting in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingSteamExteriorLighting() const;
/// Returns the district heating steam energy used for interior equipment in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingSteamInteriorEquipment() const;
/// Returns the district heating steam energy used for exterior equipment in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingSteamExteriorEquipment() const;
/// Returns the district heating steam energy used for fans in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingSteamFans() const;
/// Returns the district heating steam energy used for pumps in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingSteamPumps() const;
/// Returns the district heating steam energy used for heat rejection in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingSteamHeatRejection() const;
/// Returns the district heating steam energy used for humidification in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingSteamHumidification() const;
/// Returns the district heating steam energy used for heat recovery in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingSteamHeatRecovery() const;
/// Returns the district heating steam energy used for water systems in gigajoules.
/// Requires EnergyPlus simulation output to calculate.
boost::optional<double> districtHeatingSteamWaterSystems() const;