openstudio-calibration 0.1.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.rubocop.yml +7 -0
- data/CHANGELOG.md +40 -8
- data/Gemfile +6 -3
- data/Jenkinsfile +7 -2
- data/LICENSE.md +1 -1
- data/README.md +15 -4
- data/Rakefile +6 -6
- data/doc_templates/LICENSE.md +1 -1
- data/doc_templates/copyright_erb.txt +1 -1
- data/doc_templates/copyright_js.txt +1 -1
- data/doc_templates/copyright_ruby.txt +1 -1
- data/lib/measures/AddMonthlyJSONUtilityData/LICENSE.md +1 -1
- data/lib/measures/AddMonthlyJSONUtilityData/measure.rb +1 -1
- data/lib/measures/AddMonthlyJSONUtilityData/measure.xml +12 -11
- data/lib/measures/AddMonthlyUtilityData/LICENSE.md +1 -1
- data/lib/measures/AddMonthlyUtilityData/measure.rb +1 -1
- data/lib/measures/AddMonthlyUtilityData/measure.xml +13 -12
- data/lib/measures/CalibrationReports/LICENSE.md +1 -1
- data/lib/measures/CalibrationReports/README.md +2 -2
- data/lib/measures/CalibrationReports/measure.rb +1 -1
- data/lib/measures/CalibrationReports/measure.xml +11 -11
- data/lib/measures/CalibrationReportsEnhanced/LICENSE.md +1 -1
- data/lib/measures/CalibrationReportsEnhanced/measure.rb +2 -2
- data/lib/measures/CalibrationReportsEnhanced/measure.xml +18 -17
- data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/LICENSE.md +1 -1
- data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.rb +1 -1
- data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.xml +14 -13
- data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/LICENSE.md +1 -1
- data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.rb +1 -1
- data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.xml +14 -13
- data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/LICENSE.md +1 -1
- data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.rb +1 -1
- data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.xml +14 -13
- data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/LICENSE.md +1 -1
- data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.rb +1 -1
- data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.xml +14 -13
- data/lib/measures/CoilCoolingWaterMultiplier/LICENSE.md +1 -1
- data/lib/measures/CoilCoolingWaterMultiplier/measure.rb +1 -1
- data/lib/measures/CoilCoolingWaterMultiplier/measure.xml +14 -13
- data/lib/measures/CoilCoolingWaterPercentChange/LICENSE.md +1 -1
- data/lib/measures/CoilCoolingWaterPercentChange/measure.rb +1 -1
- data/lib/measures/CoilCoolingWaterPercentChange/measure.xml +14 -13
- data/lib/measures/CoilHeatingElectricMultiplier/LICENSE.md +1 -1
- data/lib/measures/CoilHeatingElectricMultiplier/measure.rb +1 -1
- data/lib/measures/CoilHeatingElectricMultiplier/measure.xml +14 -13
- data/lib/measures/CoilHeatingElectricPercentChange/LICENSE.md +1 -1
- data/lib/measures/CoilHeatingElectricPercentChange/measure.rb +1 -1
- data/lib/measures/CoilHeatingElectricPercentChange/measure.xml +14 -13
- data/lib/measures/CoilHeatingGasMultiplier/LICENSE.md +1 -1
- data/lib/measures/CoilHeatingGasMultiplier/measure.rb +1 -1
- data/lib/measures/CoilHeatingGasMultiplier/measure.xml +14 -13
- data/lib/measures/CoilHeatingGasPercentChange/LICENSE.md +1 -1
- data/lib/measures/CoilHeatingGasPercentChange/measure.rb +1 -1
- data/lib/measures/CoilHeatingGasPercentChange/measure.xml +14 -13
- data/lib/measures/CoilHeatingWaterMultiplier/LICENSE.md +1 -1
- data/lib/measures/CoilHeatingWaterMultiplier/measure.rb +1 -1
- data/lib/measures/CoilHeatingWaterMultiplier/measure.xml +14 -13
- data/lib/measures/CoilHeatingWaterPercentChange/LICENSE.md +1 -1
- data/lib/measures/CoilHeatingWaterPercentChange/measure.rb +1 -1
- data/lib/measures/CoilHeatingWaterPercentChange/measure.xml +14 -13
- data/lib/measures/ConstructionLayerZeroMaterialProperties/LICENSE.md +1 -1
- data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.rb +1 -1
- data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.xml +12 -11
- data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/LICENSE.md +1 -1
- data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/measure.rb +1 -1
- data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/measure.xml +12 -11
- data/lib/measures/ExteriorWallThermalPropertiesMultiplier/LICENSE.md +1 -1
- data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.rb +3 -3
- data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.xml +24 -11
- data/lib/measures/ExteriorWallThermalPropertiesPercentChange/LICENSE.md +1 -1
- data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.rb +3 -3
- data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.xml +24 -11
- data/lib/measures/FansMultiplier/LICENSE.md +1 -1
- data/lib/measures/FansMultiplier/measure.rb +1 -1
- data/lib/measures/FansMultiplier/measure.xml +14 -13
- data/lib/measures/FansPercentChange/LICENSE.md +1 -1
- data/lib/measures/FansPercentChange/measure.rb +1 -1
- data/lib/measures/FansPercentChange/measure.xml +14 -13
- data/lib/measures/GeneralCalibrationMeasureMultiplier/LICENSE.md +1 -1
- data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.rb +1 -1
- data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.xml +16 -15
- data/lib/measures/GeneralCalibrationMeasurePercentChange/LICENSE.md +1 -1
- data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.rb +1 -1
- data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.xml +16 -15
- data/lib/measures/HardSizeHvac/LICENSE.md +1 -1
- data/lib/measures/HardSizeHvac/measure.rb +1 -1
- data/lib/measures/HardSizeHvac/measure.xml +13 -12
- data/lib/measures/RValueOfInsulationForConstructionMultiplier/LICENSE.md +1 -1
- data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.rb +1 -1
- data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.xml +12 -11
- data/lib/measures/RValueOfInsulationForConstructionPercentageChange/LICENSE.md +1 -1
- data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.rb +1 -1
- data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.xml +12 -11
- data/lib/measures/RoofThermalPropertiesMultiplier/LICENSE.md +1 -1
- data/lib/measures/RoofThermalPropertiesMultiplier/measure.rb +3 -3
- data/lib/measures/RoofThermalPropertiesMultiplier/measure.xml +24 -11
- data/lib/measures/RoofThermalPropertiesPercentChange/LICENSE.md +1 -1
- data/lib/measures/RoofThermalPropertiesPercentChange/measure.rb +3 -3
- data/lib/measures/RoofThermalPropertiesPercentChange/measure.xml +24 -11
- data/lib/measures/TimeseriesObjectiveFunction/LICENSE.md +1 -1
- data/lib/measures/TimeseriesObjectiveFunction/README.md +5 -171
- data/lib/measures/TimeseriesObjectiveFunction/measure.rb +3 -7
- data/lib/measures/TimeseriesObjectiveFunction/measure.xml +84 -9
- data/lib/measures/TimeseriesObjectiveFunction/resources/report.html.erb +6 -1
- data/lib/measures/TimeseriesPlot/LICENSE.md +1 -1
- data/lib/measures/TimeseriesPlot/README.md +5 -35
- data/lib/measures/TimeseriesPlot/measure.rb +1 -1
- data/lib/measures/TimeseriesPlot/measure.xml +28 -13
- data/lib/measures/TimeseriesPlot/resources/report.html.erb +6 -1
- data/lib/measures/WaterHeaterMixedMultiplier/LICENSE.md +1 -1
- data/lib/measures/WaterHeaterMixedMultiplier/measure.rb +1 -1
- data/lib/measures/WaterHeaterMixedMultiplier/measure.xml +14 -13
- data/lib/measures/WaterHeaterMixedPercentChange/LICENSE.md +1 -1
- data/lib/measures/WaterHeaterMixedPercentChange/measure.rb +1 -1
- data/lib/measures/WaterHeaterMixedPercentChange/measure.xml +14 -13
- data/lib/measures/{CalibrationReportsEnhanced21 → inspect_and_edit_parametric_schedules}/LICENSE.md +1 -1
- data/lib/measures/inspect_and_edit_parametric_schedules/README.md +41 -0
- data/lib/measures/{zone_report → inspect_and_edit_parametric_schedules}/README.md.erb +12 -1
- data/lib/measures/inspect_and_edit_parametric_schedules/docs/.gitkeep +0 -0
- data/lib/measures/inspect_and_edit_parametric_schedules/docs/apply_measures_now.png +0 -0
- data/lib/measures/inspect_and_edit_parametric_schedules/measure.rb +224 -0
- data/lib/measures/inspect_and_edit_parametric_schedules/measure.xml +125 -0
- data/lib/measures/{zone_report → shift_hours_of_operation}/LICENSE.md +1 -1
- data/lib/measures/shift_hours_of_operation/README.md +147 -0
- data/lib/measures/{MaalkaMonthlyJSONUtilityData → shift_hours_of_operation}/README.md.erb +5 -0
- data/lib/measures/shift_hours_of_operation/docs/.gitkeep +0 -0
- data/lib/measures/shift_hours_of_operation/measure.rb +525 -0
- data/lib/measures/shift_hours_of_operation/measure.xml +280 -0
- data/lib/openstudio/{calibration_measures → calibration}/extension.rb +2 -2
- data/lib/openstudio/{calibration_measures → calibration}/version.rb +3 -3
- data/lib/openstudio/{calibration_measures.rb → calibration.rb} +3 -3
- data/lib/{openstudio-calibration-measures.rb → openstudio-calibration.rb} +2 -2
- data/openstudio-calibration.gemspec +38 -0
- metadata +50 -61
- data/lib/measures/AddMonthlyUtilityData/tests/AddMonthlyUtilityData_Test.rb +0 -88
- data/lib/measures/AddMonthlyUtilityData/tests/electric_billed_usages.json +0 -198
- data/lib/measures/AddMonthlyUtilityData/tests/gas_billed_usages.json +0 -198
- data/lib/measures/CalibrationReports/tests/CalibrationReports_Test.rb +0 -523
- data/lib/measures/CalibrationReports/tests/ExampleModel.osm +0 -10497
- data/lib/measures/CalibrationReports/tests/ExampleModelNoDemandInput.osm +0 -10560
- data/lib/measures/CalibrationReports/tests/ExampleModelNoGasInput.osm +0 -10456
- data/lib/measures/CalibrationReports/tests/USA_CO_Golden-NREL.724666_TMY3.epw +0 -8768
- data/lib/measures/CalibrationReportsEnhanced/tests/CalibrationReportsEnhanced_Test.rb +0 -734
- data/lib/measures/CalibrationReportsEnhanced/tests/ExampleModel.osm +0 -10497
- data/lib/measures/CalibrationReportsEnhanced/tests/ExampleModel_FuelOil.osm +0 -12740
- data/lib/measures/CalibrationReportsEnhanced/tests/USA_CO_Golden-NREL.724666_TMY3.epw +0 -8768
- data/lib/measures/CalibrationReportsEnhanced21/README.md +0 -109
- data/lib/measures/CalibrationReportsEnhanced21/README.md.erb +0 -42
- data/lib/measures/CalibrationReportsEnhanced21/measure.rb +0 -690
- data/lib/measures/CalibrationReportsEnhanced21/measure.xml +0 -269
- data/lib/measures/CalibrationReportsEnhanced21/resources/report.html.in +0 -380
- data/lib/measures/MaalkaMonthlyJSONUtilityData/LICENSE.md +0 -27
- data/lib/measures/MaalkaMonthlyJSONUtilityData/README.md +0 -104
- data/lib/measures/MaalkaMonthlyJSONUtilityData/measure.rb +0 -304
- data/lib/measures/MaalkaMonthlyJSONUtilityData/measure.xml +0 -216
- data/lib/measures/zone_report/README.md +0 -26
- data/lib/measures/zone_report/measure.rb +0 -706
- data/lib/measures/zone_report/measure.xml +0 -67
- data/lib/measures/zone_report/resources/report.html.in +0 -342
- data/openstudio-calibration-measures.gemspec +0 -30
@@ -1,67 +0,0 @@
|
|
1
|
-
<measure>
|
2
|
-
<schema_version>3.0</schema_version>
|
3
|
-
<name>zone_report</name>
|
4
|
-
<uid>f3531642-27ce-4624-95ab-0bfcd5b9f5fe</uid>
|
5
|
-
<version_id>338beba4-8b3e-4296-adba-4b7eae6f55aa</version_id>
|
6
|
-
<version_modified>20200325T030944Z</version_modified>
|
7
|
-
<xml_checksum>2C8A3EEF</xml_checksum>
|
8
|
-
<class_name>ZoneReport</class_name>
|
9
|
-
<display_name>Zone Report</display_name>
|
10
|
-
<description> This measure provides Thermal Zone level HVAC information. Output includes thermal zone equipment descriptions and details, zone sizing information for heating and cooling, and a disaggregation of the contributions of envelope and internal gains to the HVAC loads.</description>
|
11
|
-
<modeler_description> This measure will not report uncontrolled air terminals, or zone level radiant HVAC equipment.</modeler_description>
|
12
|
-
<arguments/>
|
13
|
-
<outputs/>
|
14
|
-
<provenances/>
|
15
|
-
<tags>
|
16
|
-
<tag>Reporting.QAQC</tag>
|
17
|
-
</tags>
|
18
|
-
<attributes>
|
19
|
-
<attribute>
|
20
|
-
<name>Measure Type</name>
|
21
|
-
<value>ReportingMeasure</value>
|
22
|
-
<datatype>string</datatype>
|
23
|
-
</attribute>
|
24
|
-
<attribute>
|
25
|
-
<name>Uses SketchUp API</name>
|
26
|
-
<value>false</value>
|
27
|
-
<datatype>boolean</datatype>
|
28
|
-
</attribute>
|
29
|
-
</attributes>
|
30
|
-
<files>
|
31
|
-
<file>
|
32
|
-
<filename>report.html.in</filename>
|
33
|
-
<filetype>in</filetype>
|
34
|
-
<usage_type>resource</usage_type>
|
35
|
-
<checksum>9863EEC5</checksum>
|
36
|
-
</file>
|
37
|
-
<file>
|
38
|
-
<filename>LICENSE.md</filename>
|
39
|
-
<filetype>md</filetype>
|
40
|
-
<usage_type>license</usage_type>
|
41
|
-
<checksum>E0468DD6</checksum>
|
42
|
-
</file>
|
43
|
-
<file>
|
44
|
-
<filename>README.md.erb</filename>
|
45
|
-
<filetype>erb</filetype>
|
46
|
-
<usage_type>readmeerb</usage_type>
|
47
|
-
<checksum>703C9964</checksum>
|
48
|
-
</file>
|
49
|
-
<file>
|
50
|
-
<filename>README.md</filename>
|
51
|
-
<filetype>md</filetype>
|
52
|
-
<usage_type>readme</usage_type>
|
53
|
-
<checksum>C013AECE</checksum>
|
54
|
-
</file>
|
55
|
-
<file>
|
56
|
-
<version>
|
57
|
-
<software_program>OpenStudio</software_program>
|
58
|
-
<identifier>1.5.0</identifier>
|
59
|
-
<min_compatible>1.8.0</min_compatible>
|
60
|
-
</version>
|
61
|
-
<filename>measure.rb</filename>
|
62
|
-
<filetype>rb</filetype>
|
63
|
-
<usage_type>script</usage_type>
|
64
|
-
<checksum>34E82F27</checksum>
|
65
|
-
</file>
|
66
|
-
</files>
|
67
|
-
</measure>
|
@@ -1,342 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<title>Zone Report</title>
|
6
|
-
<link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
|
7
|
-
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
|
8
|
-
<script type="text/javascript" src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
|
9
|
-
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.3.9/d3.min.js"></script>
|
10
|
-
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/dygraph/1.0.1/dygraph-combined.js"></script>
|
11
|
-
<style>
|
12
|
-
body {
|
13
|
-
position: relative;
|
14
|
-
height: 100%;
|
15
|
-
}
|
16
|
-
|
17
|
-
#tocItems > .nav > li > a {
|
18
|
-
padding-top: 4px;
|
19
|
-
padding-bottom: 4px;
|
20
|
-
}
|
21
|
-
|
22
|
-
#tocItems {
|
23
|
-
overflow-y: scroll;
|
24
|
-
max-height: 100%;
|
25
|
-
}
|
26
|
-
|
27
|
-
td.equipmentCategory{
|
28
|
-
font-weight:bold;
|
29
|
-
}
|
30
|
-
|
31
|
-
td.valWide{
|
32
|
-
text-align:center;
|
33
|
-
}
|
34
|
-
|
35
|
-
.dygraph-legend {
|
36
|
-
float: left;
|
37
|
-
top: -270px;
|
38
|
-
background-color: transparent !important;
|
39
|
-
left: 810px !important;
|
40
|
-
position: relative;
|
41
|
-
}
|
42
|
-
</style>
|
43
|
-
<script type="text/javascript">
|
44
|
-
// Create a timeseries graph of the data for each zone
|
45
|
-
$(document).ready(function () {
|
46
|
-
|
47
|
-
function stackedColumnPlotter(e) {
|
48
|
-
// We need to handle all the series simultaneously.
|
49
|
-
if (e.seriesIndex !== 0) return;
|
50
|
-
|
51
|
-
var g = e.dygraph;
|
52
|
-
var ctx = e.drawingContext;
|
53
|
-
var sets = e.allSeriesPoints;
|
54
|
-
|
55
|
-
ctx.fillStyle="#000000";
|
56
|
-
ctx.fillRect( 0, e.dygraph.toDomYCoord(0), 940, 2 );
|
57
|
-
|
58
|
-
// Find the minimum separation between x-values.
|
59
|
-
// This determines the bar width.
|
60
|
-
var min_sep = Infinity;
|
61
|
-
for (var j = 0; j < sets.length; j++) {
|
62
|
-
var points = sets[j];
|
63
|
-
for (var i = 1; i < points.length; i++) {
|
64
|
-
var sep = points[i].canvasx - points[i - 1].canvasx;
|
65
|
-
if (sep < min_sep) min_sep = sep;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
var bar_width = Math.floor(2.0 / 2.6 * min_sep);
|
69
|
-
|
70
|
-
var fillColors = [];
|
71
|
-
var strokeColors = g.getColors();
|
72
|
-
for (var i = 0; i < strokeColors.length; i++) {
|
73
|
-
var color = new RGBColorParser(strokeColors[i]);
|
74
|
-
color.r = Math.floor((255 + color.r) / 2);
|
75
|
-
color.g = Math.floor((255 + color.g) / 2);
|
76
|
-
color.b = Math.floor((255 + color.b) / 2);
|
77
|
-
fillColors.push(color.toRGB());
|
78
|
-
}
|
79
|
-
|
80
|
-
var ranges = []
|
81
|
-
|
82
|
-
for (var j = 0; j < sets.length; j++) {
|
83
|
-
ctx.fillStyle = fillColors[j];
|
84
|
-
ctx.strokeStyle = strokeColors[j];
|
85
|
-
// Category 0 is used for min/max graph autoscaling; don't plot category 0
|
86
|
-
// The last category is used for spacing; don't plot the last category
|
87
|
-
for (var i = 1; i<sets[j].length-1; i++) {
|
88
|
-
var p = sets[j][i];
|
89
|
-
var center_x = p.canvasx;
|
90
|
-
var x_left = center_x - (bar_width / 2);
|
91
|
-
var x_right = center_x + (bar_width / 2);
|
92
|
-
|
93
|
-
if (p.yval != 0) {
|
94
|
-
|
95
|
-
var from = 0
|
96
|
-
var to = 0
|
97
|
-
var r = ranges[p.xval] || [0.0, 0.0]
|
98
|
-
|
99
|
-
if (p.yval >= 0) {
|
100
|
-
to = r[0]
|
101
|
-
r[0] = from = to + p.yval
|
102
|
-
}
|
103
|
-
else {
|
104
|
-
from = r[1]
|
105
|
-
r[1] = to = from + p.yval
|
106
|
-
}
|
107
|
-
|
108
|
-
ranges[p.xval] = r
|
109
|
-
|
110
|
-
var y_top = e.dygraph.toDomYCoord(from)
|
111
|
-
var y_bottom = e.dygraph.toDomYCoord(to)
|
112
|
-
var bar_height = y_bottom-y_top
|
113
|
-
|
114
|
-
ctx.fillRect(x_left, y_top,
|
115
|
-
bar_width, bar_height);
|
116
|
-
|
117
|
-
ctx.strokeRect(x_left, y_top,
|
118
|
-
bar_width, bar_height);
|
119
|
-
|
120
|
-
//ctx.fillStyle = fillColors[j];
|
121
|
-
//fillstring = fillColors[j].substring(4);
|
122
|
-
|
123
|
-
ctx.fillStyle="rgba( 0, 0, 0, 0.70)";
|
124
|
-
ctx.font = '16px sans-serif';
|
125
|
-
ctx.fillText(p.name + " " + p.yval, x_left + 10, y_top + ( bar_height / 2 ));
|
126
|
-
|
127
|
-
ctx.fillStyle = fillColors[j];
|
128
|
-
}
|
129
|
-
}
|
130
|
-
}
|
131
|
-
};
|
132
|
-
|
133
|
-
$.each(graph_data, function (index, graphData) {
|
134
|
-
var graph = graph_data[index];
|
135
|
-
|
136
|
-
$('#graphs_' + index).append('<div><div id="data_div_' + index + '"></div><div id="labels_div_' + index + '" class="dygraph-legend" style="margin-right: 56px"></div></div>');
|
137
|
-
|
138
|
-
g = new Dygraph(document.getElementById('data_div_' + index), graph.data, {
|
139
|
-
title: graph.title,
|
140
|
-
xlabel: graph.xaxislabel,
|
141
|
-
ylabel: graph.yaxislabel,
|
142
|
-
labels: graph.labels,
|
143
|
-
colors: graph.colors,
|
144
|
-
labelsDiv: document.getElementById('labels_div_' + index),
|
145
|
-
labelsSeparateLines: true,
|
146
|
-
labelsShowZeroValues: false,
|
147
|
-
showLabelsOnHighlight: false,
|
148
|
-
legend: "never",
|
149
|
-
height: 520,
|
150
|
-
axes: {
|
151
|
-
x: {
|
152
|
-
axisLabelFormatter: function(d, gran) {
|
153
|
-
switch(d){
|
154
|
-
case 1: return "Net Heating"; break;
|
155
|
-
case 2: return "Heating"; break;
|
156
|
-
case 3: return "Cooling"; break;
|
157
|
-
case 4: return "Net Cooling"; break;
|
158
|
-
default: return "";
|
159
|
-
}
|
160
|
-
}
|
161
|
-
}
|
162
|
-
},
|
163
|
-
plotter: stackedColumnPlotter,
|
164
|
-
highlightCircleSize:0,
|
165
|
-
highlightCallback: highlightCol
|
166
|
-
});
|
167
|
-
|
168
|
-
var annotations = []
|
169
|
-
for (var i=1; i<graph.data.length-1; ++i) { // First and last points are not shown on graph
|
170
|
-
points = graph.data[i]
|
171
|
-
for (var e=1; e<points.length; ++e) {
|
172
|
-
if (points[e] != 0) {
|
173
|
-
var labeltext = graph.labels[e] + ": " + points[e]
|
174
|
-
a = {series:graph.labels[e] , x:points[0], shortText:labeltext, text:labeltext, cssClass:'stackedbarlabel', width:100}
|
175
|
-
annotations.push(a)
|
176
|
-
}
|
177
|
-
}
|
178
|
-
}
|
179
|
-
//g.setAnnotations(annotations)
|
180
|
-
|
181
|
-
$('#series_div_' + index ).append( "<button type='button' id='data_export_" + index + "' onclick='exportData(" + index + ")' class='btn btn-default btn-xs'>Export</button>" );
|
182
|
-
});
|
183
|
-
});
|
184
|
-
|
185
|
-
function highlightCol( event, x, points, row, seriesName ){
|
186
|
-
for (var e = 0 ; e < points.length; ++e ) {
|
187
|
-
if ( points[e] != 0 ) {
|
188
|
-
//alert( points[e].name + "-" + points[e].yval );
|
189
|
-
}
|
190
|
-
}
|
191
|
-
|
192
|
-
|
193
|
-
}
|
194
|
-
|
195
|
-
function exportData( index ){
|
196
|
-
|
197
|
-
var graph = graph_data[index];
|
198
|
-
var csvContent = "data:text/csv;charset=utf-8,";
|
199
|
-
csvContent = graph.data.join("\n");
|
200
|
-
|
201
|
-
var encodedUri = encodeURI(csvContent);
|
202
|
-
window.open(encodedUri);
|
203
|
-
}
|
204
|
-
</script>
|
205
|
-
<script type="text/javascript">
|
206
|
-
var graph_data = <%= @graph_data %>;
|
207
|
-
</script>
|
208
|
-
|
209
|
-
</head>
|
210
|
-
<body data-spy="scroll" data-target="#tocItems">
|
211
|
-
|
212
|
-
<div id="content" class="container-fluid">
|
213
|
-
|
214
|
-
<div id="toc" class="col-md-3" role="complementary">
|
215
|
-
<div id="tocItems" class="hidden-print well affix" role="complementary" style="margin-top: 40px;">
|
216
|
-
<ul class="nav nav-pills nav-stacked" role="navigation">
|
217
|
-
<% counter = 0 %>
|
218
|
-
<% zone_collection.each do |z| %>
|
219
|
-
|
220
|
-
<li>
|
221
|
-
<a href="#zone_<%= counter %>"><%= z[:name] %></a>
|
222
|
-
</li>
|
223
|
-
<% counter = counter + 1 %>
|
224
|
-
<% end %>
|
225
|
-
</ul>
|
226
|
-
</div>
|
227
|
-
</div>
|
228
|
-
|
229
|
-
<div class="col-md-9" style="padding-top:25px;" role="main">
|
230
|
-
|
231
|
-
<h1>Zone Equipment Report</h1>
|
232
|
-
|
233
|
-
<% counter = 0 %>
|
234
|
-
<% zone_collection.each do |z| %>
|
235
|
-
<h3 id="zone_<%= counter %>"><%= z[:name] %></h3>
|
236
|
-
|
237
|
-
<h4>Zone Equipment Summary</h4>
|
238
|
-
|
239
|
-
<table class="table table-striped table-bordered table-condensed zoneGrid">
|
240
|
-
<% report_sort_order = {"Heating" => 0, "Backup Heating" => 1, "Cooling" => 2, "Fans" => 3} %>
|
241
|
-
<% z[:equipment].sort_by{|k,v| report_sort_order[k]}.each do |reporting_type, equipments| %>
|
242
|
-
<% type_properties = equipments[0].keys %>
|
243
|
-
<% type_properties.each_with_index do |key, i| %>
|
244
|
-
<tr>
|
245
|
-
<td class="equipmentCategory"><%= i == 0 ? reporting_type : " " %></td>
|
246
|
-
<td class="propertyName"><%= key %></td>
|
247
|
-
<% (0...max_zone_equipments).each do |equip_index| %>
|
248
|
-
<% if equip_index < equipments.length
|
249
|
-
value = equipments[equip_index][key]
|
250
|
-
if value.kind_of?(Array) %>
|
251
|
-
<td class="valWide"><%= "#{value[0]} #{value[1]}" %></td>
|
252
|
-
<% else %>
|
253
|
-
<td class="valWide"><%= value %></td>
|
254
|
-
<% end %>
|
255
|
-
<% else %>
|
256
|
-
<td> </td>
|
257
|
-
<% end %>
|
258
|
-
<% end %>
|
259
|
-
</tr>
|
260
|
-
<% end %>
|
261
|
-
<% end %>
|
262
|
-
</table>
|
263
|
-
|
264
|
-
<h4>Zone Sizing and Load Summary</h4>
|
265
|
-
|
266
|
-
<table class="table table-striped table-bordered table-condensed zoneGrid">
|
267
|
-
<tr>
|
268
|
-
<td>Zone Name</td><td><%=z[:name]%></td><td>Zone Size (ft2)</td><td><%=z[:area]%></td>
|
269
|
-
</tr>
|
270
|
-
<tr>
|
271
|
-
<td>Unmet Load Hours (Htg)</td><td><%=z[:vals][:vp]%></td><td>Unmet Load Hours (Clg)</td><td><%=z[:vals][:vq]%></td>
|
272
|
-
</tr>
|
273
|
-
</table>
|
274
|
-
|
275
|
-
<table class="table table-striped table-bordered table-condensed">
|
276
|
-
<tr>
|
277
|
-
<td>Zone Load Summary</td><td>Zone Conditioned</td><td>Peak kBtu/hr/ft2</td><td>Time of Peak</td><td> kBtu/ft2 per Run Period</td>
|
278
|
-
</tr>
|
279
|
-
<tr><td>Heating Loads</td><td><%=z[:vals][:vf]%></td><td><%=z[:vals][:vae]%></td><td><%=z[:vals][:vaf]%></td><td><%=z[:vals][:vad]%></td></tr>
|
280
|
-
<tr><td>Cooling Loads</td><td><%=z[:vals][:vf]%></td><td><%=z[:vals][:vah]%></td><td><%=z[:vals][:vai]%></td><td><%=z[:vals][:vag]%></td></tr>
|
281
|
-
</table>
|
282
|
-
|
283
|
-
<table class="table table-striped table-bordered table-condensed">
|
284
|
-
<tr>
|
285
|
-
<td>Zone HVAC Sizing Summary</td><td>User Design Load (kBtu/hr)</td><td>Date/Time of Peak</td><td>User Design Airflow (ft3/min)</td>
|
286
|
-
</tr>
|
287
|
-
<tr><td>Heating Loads</td><td><%=z[:vals][:vg]%></td><td><%=z[:vals][:vo]%></td><td><%=z[:vals][:vh]%></td></tr>
|
288
|
-
<tr><td>Cooling Loads</td><td><%=z[:vals][:vi]%></td><td><%=z[:vals][:vn]%></td><td><%=z[:vals][:vj]%></td></tr>
|
289
|
-
</table>
|
290
|
-
|
291
|
-
<table class="table table-striped table-bordered table-condensed">
|
292
|
-
<tr>
|
293
|
-
<td colspan="2">Int Lighting, Equip & People - Density</td><td>Avg Vent (ACH)</td><td>Avg Infil (ACH)</td>
|
294
|
-
</tr>
|
295
|
-
<tr><td>Lights - Density (W/ft2)</td><td><%=z[:vals][:va]%></td><td><%=z[:vals][:vk]%></td><td><%=z[:vals][:vl]%></td></tr>
|
296
|
-
<tr><td>People - Density (ft2/Person)</td><td><%=z[:vals][:vm]%></td><td></td><td></td></tr>
|
297
|
-
<tr><td>Plug and Process Density (W/ft2)</td><td><%=z[:vals][:vd]%></td><td>Zone Lights - EFLH</td><td><%=z[:vals][:vb]%></td></tr>
|
298
|
-
</table>
|
299
|
-
|
300
|
-
<table class="table table-striped table-bordered table-condensed">
|
301
|
-
<tr>
|
302
|
-
<td></td><td>Peak Heating Load (Btu/hr/ft2)</td><td>Peak Cooling Load (Btu/hr/ft2)</td>
|
303
|
-
</tr>
|
304
|
-
<tr><td>Date/Time of Peak</td><td><%=z[:vals][:vbh]%></td><td><%=z[:vals][:vcg]%></td></tr>
|
305
|
-
<tr><td>People</td><td><%=z[:vals][:vaj]%></td><td><%=z[:vals][:vbi]%></td></tr>
|
306
|
-
<tr><td>Interior Lights</td><td><%=z[:vals][:vak]%></td><td><%=z[:vals][:vbj]%></td></tr>
|
307
|
-
<tr><td>Interior Equipment</td><td><%=z[:vals][:val]%></td><td><%=z[:vals][:vbk]%></td></tr>
|
308
|
-
<tr><td>Refrigeration</td><td><%=z[:vals][:vam]%></td><td><%=z[:vals][:vbl]%></td></tr>
|
309
|
-
<tr><td>Other</td><td><%=z[:vals][:sumOtherHeating]%></td><td><%=z[:vals][:sumOtherCooling]%></td></tr>
|
310
|
-
<tr><td>Infiltration</td><td><%=z[:vals][:vaq]%></td><td><%=z[:vals][:vbp]%></td></tr>
|
311
|
-
<tr><td>Zone Ventilation</td><td><%=z[:vals][:var]%></td><td><%=z[:vals][:vbq]%></td></tr>
|
312
|
-
<tr><td>Interzone Mixing</td><td><%=z[:vals][:vas]%></td><td><%=z[:vals][:vbr]%></td></tr>
|
313
|
-
<tr><td>Walls / Doors</td><td><%=z[:vals][:sumWallDoorHeating]%></td><td><%=z[:vals][:sumWallDoorCooling]%></td></tr>
|
314
|
-
<tr><td>Roof/Ceiling</td><td><%=z[:vals][:sumRoofCeilingHeating]%></td><td><%=z[:vals][:sumRoofCeilingCooling]%></td></tr>
|
315
|
-
<tr><td>Floor</td><td><%=z[:vals][:sumFloorHeating]%></td><td><%=z[:vals][:sumFloorCooling]%></td></tr>
|
316
|
-
<tr><td>Windows</td><td><%=z[:vals][:sumWindowsHeating]%></td><td><%=z[:vals][:sumWindowsCooling]%></td></tr>
|
317
|
-
<tr><td>Total</td><td><%=z[:vals][:sumHeatingTotal]%></td><td><%=z[:vals][:sumCoolingTotal]%></td></tr>
|
318
|
-
</table>
|
319
|
-
|
320
|
-
<table class="table table-striped table-bordered table-condensed">
|
321
|
-
<tr>
|
322
|
-
<td colspan="2">Int Lighting and Equip - Metered Usage (Run Period)</td><td colspan="2">Int Lighting, Equip , Htg and Clg Loads - Peak </td><td>Time of Peak</td>
|
323
|
-
</tr>
|
324
|
-
<tr><td>Int Lighting (kWh)</td><td><%=z[:vals][:vc]%></td><td>Int Lighting (kW)</td><td><%=z[:vals][:vv]%></td><td><%=z[:vals][:vw]%></td></tr>
|
325
|
-
<tr><td>Int Equip - Elec (kWh)</td><td><%=z[:vals][:vs]%></td><td>Int Equip - Elec (kW)</td><td><%=z[:vals][:vy]%></td><td><%=z[:vals][:vz]%></td></tr>
|
326
|
-
<tr><td>Int Equip - Steam (kBtu)</td><td><%=z[:vals][:vaa]%></td><td>Int Equip - Steam (kBtu/Hr)</td><td><%=z[:vals][:vab]%></td><td><%=z[:vals][:vac]%></td></tr>
|
327
|
-
<tr><td>Int Equip - Gas (Therms)</td><td><%=z[:vals][:vr]%></td><td>Int Equip - Gas (KBtu/Hr)</td><td><%=z[:vals][:vt]%></td><td><%=z[:vals][:vu]%></td></tr>
|
328
|
-
</table>
|
329
|
-
|
330
|
-
<h4>Peak Load Contributions</h4>
|
331
|
-
|
332
|
-
<div id="graphs_<%= counter %>" class="zoneChart zoneGrid" style="background-color: white"></div>
|
333
|
-
|
334
|
-
<% counter = counter + 1 %>
|
335
|
-
<% end %>
|
336
|
-
|
337
|
-
</div>
|
338
|
-
|
339
|
-
</div>
|
340
|
-
|
341
|
-
</body>
|
342
|
-
</html>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
lib = File.expand_path('lib', __dir__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require 'openstudio/calibration_measures/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = 'openstudio-calibration'
|
7
|
-
spec.version = OpenStudio::CalibrationMeasures::VERSION
|
8
|
-
spec.authors = ['Brian Ball', 'Nicholas Long']
|
9
|
-
spec.email = ['brian.ball@nrel.gov', 'nicholas.long@nrel.gov']
|
10
|
-
|
11
|
-
spec.summary = 'Library and measures for OpenStudio Calibration'
|
12
|
-
spec.description = 'Library and measures for OpenStudio Calibration'
|
13
|
-
spec.homepage = 'https://openstudio.net'
|
14
|
-
|
15
|
-
# Specify which files should be added to the gem when it is released.
|
16
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
17
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
18
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
|
-
end
|
20
|
-
spec.bindir = 'exe'
|
21
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
-
spec.require_paths = ['lib']
|
23
|
-
|
24
|
-
spec.add_dependency 'openstudio-extension', '~> 0.1.6'
|
25
|
-
spec.add_dependency 'openstudio-standards', '~> 0.2.10'
|
26
|
-
|
27
|
-
spec.add_development_dependency 'bundler', '~> 1.14'
|
28
|
-
spec.add_development_dependency 'rake', '12.3.1'
|
29
|
-
spec.add_development_dependency 'rspec', '3.7.0'
|
30
|
-
end
|