openstudio-calibration 0.3.1 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +3 -1
  4. data/CHANGELOG.md +18 -0
  5. data/Gemfile +6 -0
  6. data/Jenkinsfile +4 -3
  7. data/LICENSE.md +1 -1
  8. data/README.md +13 -2
  9. data/Rakefile +1 -1
  10. data/doc_templates/LICENSE.md +1 -1
  11. data/doc_templates/copyright_erb.txt +1 -1
  12. data/doc_templates/copyright_js.txt +1 -1
  13. data/doc_templates/copyright_ruby.txt +1 -1
  14. data/lib/measures/AddMonthlyJSONUtilityData/LICENSE.md +1 -1
  15. data/lib/measures/AddMonthlyJSONUtilityData/measure.rb +1 -1
  16. data/lib/measures/AddMonthlyJSONUtilityData/measure.xml +12 -11
  17. data/lib/measures/AddMonthlyUtilityData/LICENSE.md +1 -1
  18. data/lib/measures/AddMonthlyUtilityData/measure.rb +1 -1
  19. data/lib/measures/AddMonthlyUtilityData/measure.xml +13 -12
  20. data/lib/measures/CalibrationReports/LICENSE.md +1 -1
  21. data/lib/measures/CalibrationReports/README.md +2 -2
  22. data/lib/measures/CalibrationReports/measure.rb +1 -1
  23. data/lib/measures/CalibrationReports/measure.xml +11 -11
  24. data/lib/measures/CalibrationReportsEnhanced/LICENSE.md +1 -1
  25. data/lib/measures/CalibrationReportsEnhanced/measure.rb +2 -2
  26. data/lib/measures/CalibrationReportsEnhanced/measure.xml +18 -17
  27. data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/LICENSE.md +1 -1
  28. data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.rb +1 -1
  29. data/lib/measures/CoilCoolingDXSingleSpeedMultiplier/measure.xml +14 -13
  30. data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/LICENSE.md +1 -1
  31. data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.rb +1 -1
  32. data/lib/measures/CoilCoolingDXSingleSpeedPercentChange/measure.xml +14 -13
  33. data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/LICENSE.md +1 -1
  34. data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.rb +1 -1
  35. data/lib/measures/CoilCoolingDXTwoSpeedMultiplier/measure.xml +14 -13
  36. data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/LICENSE.md +1 -1
  37. data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.rb +1 -1
  38. data/lib/measures/CoilCoolingDXTwoSpeedPercentChange/measure.xml +14 -13
  39. data/lib/measures/CoilCoolingWaterMultiplier/LICENSE.md +1 -1
  40. data/lib/measures/CoilCoolingWaterMultiplier/measure.rb +1 -1
  41. data/lib/measures/CoilCoolingWaterMultiplier/measure.xml +14 -13
  42. data/lib/measures/CoilCoolingWaterPercentChange/LICENSE.md +1 -1
  43. data/lib/measures/CoilCoolingWaterPercentChange/measure.rb +1 -1
  44. data/lib/measures/CoilCoolingWaterPercentChange/measure.xml +14 -13
  45. data/lib/measures/CoilHeatingElectricMultiplier/LICENSE.md +1 -1
  46. data/lib/measures/CoilHeatingElectricMultiplier/measure.rb +1 -1
  47. data/lib/measures/CoilHeatingElectricMultiplier/measure.xml +14 -13
  48. data/lib/measures/CoilHeatingElectricPercentChange/LICENSE.md +1 -1
  49. data/lib/measures/CoilHeatingElectricPercentChange/measure.rb +1 -1
  50. data/lib/measures/CoilHeatingElectricPercentChange/measure.xml +14 -13
  51. data/lib/measures/CoilHeatingGasMultiplier/LICENSE.md +1 -1
  52. data/lib/measures/CoilHeatingGasMultiplier/measure.rb +1 -1
  53. data/lib/measures/CoilHeatingGasMultiplier/measure.xml +14 -13
  54. data/lib/measures/CoilHeatingGasPercentChange/LICENSE.md +1 -1
  55. data/lib/measures/CoilHeatingGasPercentChange/measure.rb +1 -1
  56. data/lib/measures/CoilHeatingGasPercentChange/measure.xml +14 -13
  57. data/lib/measures/CoilHeatingWaterMultiplier/LICENSE.md +1 -1
  58. data/lib/measures/CoilHeatingWaterMultiplier/measure.rb +1 -1
  59. data/lib/measures/CoilHeatingWaterMultiplier/measure.xml +14 -13
  60. data/lib/measures/CoilHeatingWaterPercentChange/LICENSE.md +1 -1
  61. data/lib/measures/CoilHeatingWaterPercentChange/measure.rb +1 -1
  62. data/lib/measures/CoilHeatingWaterPercentChange/measure.xml +14 -13
  63. data/lib/measures/ConstructionLayerZeroMaterialProperties/LICENSE.md +1 -1
  64. data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.rb +1 -1
  65. data/lib/measures/ConstructionLayerZeroMaterialProperties/measure.xml +12 -11
  66. data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/LICENSE.md +1 -1
  67. data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/measure.rb +1 -1
  68. data/lib/measures/ElectricBaseboardEfficiencyAndCapacity/measure.xml +12 -11
  69. data/lib/measures/ExteriorWallThermalPropertiesMultiplier/LICENSE.md +1 -1
  70. data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.rb +3 -3
  71. data/lib/measures/ExteriorWallThermalPropertiesMultiplier/measure.xml +25 -13
  72. data/lib/measures/ExteriorWallThermalPropertiesPercentChange/LICENSE.md +1 -1
  73. data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.rb +3 -3
  74. data/lib/measures/ExteriorWallThermalPropertiesPercentChange/measure.xml +25 -13
  75. data/lib/measures/FansMultiplier/LICENSE.md +1 -1
  76. data/lib/measures/FansMultiplier/measure.rb +1 -1
  77. data/lib/measures/FansMultiplier/measure.xml +14 -13
  78. data/lib/measures/FansPercentChange/LICENSE.md +1 -1
  79. data/lib/measures/FansPercentChange/measure.rb +1 -1
  80. data/lib/measures/FansPercentChange/measure.xml +14 -13
  81. data/lib/measures/GeneralCalibrationMeasureMultiplier/LICENSE.md +1 -1
  82. data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.rb +1 -1
  83. data/lib/measures/GeneralCalibrationMeasureMultiplier/measure.xml +16 -15
  84. data/lib/measures/GeneralCalibrationMeasurePercentChange/LICENSE.md +1 -1
  85. data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.rb +1 -1
  86. data/lib/measures/GeneralCalibrationMeasurePercentChange/measure.xml +16 -15
  87. data/lib/measures/HardSizeHvac/LICENSE.md +1 -1
  88. data/lib/measures/HardSizeHvac/measure.rb +9 -7
  89. data/lib/measures/HardSizeHvac/measure.xml +26 -13
  90. data/lib/measures/RValueOfInsulationForConstructionMultiplier/LICENSE.md +1 -1
  91. data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.rb +1 -1
  92. data/lib/measures/RValueOfInsulationForConstructionMultiplier/measure.xml +12 -11
  93. data/lib/measures/RValueOfInsulationForConstructionPercentageChange/LICENSE.md +1 -1
  94. data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.rb +1 -1
  95. data/lib/measures/RValueOfInsulationForConstructionPercentageChange/measure.xml +12 -11
  96. data/lib/measures/RoofThermalPropertiesMultiplier/LICENSE.md +1 -1
  97. data/lib/measures/RoofThermalPropertiesMultiplier/measure.rb +3 -3
  98. data/lib/measures/RoofThermalPropertiesMultiplier/measure.xml +25 -13
  99. data/lib/measures/RoofThermalPropertiesPercentChange/LICENSE.md +1 -1
  100. data/lib/measures/RoofThermalPropertiesPercentChange/measure.rb +3 -3
  101. data/lib/measures/RoofThermalPropertiesPercentChange/measure.xml +25 -13
  102. data/lib/measures/TimeseriesObjectiveFunction/LICENSE.md +1 -1
  103. data/lib/measures/TimeseriesObjectiveFunction/README.md +171 -5
  104. data/lib/measures/TimeseriesObjectiveFunction/measure.rb +2 -2
  105. data/lib/measures/TimeseriesObjectiveFunction/measure.xml +6 -81
  106. data/lib/measures/TimeseriesObjectiveFunction/resources/report.html.erb +4 -1
  107. data/lib/measures/TimeseriesPlot/LICENSE.md +1 -1
  108. data/lib/measures/TimeseriesPlot/README.md +35 -5
  109. data/lib/measures/TimeseriesPlot/measure.rb +2 -2
  110. data/lib/measures/TimeseriesPlot/measure.xml +11 -26
  111. data/lib/measures/TimeseriesPlot/resources/report.html.erb +4 -1
  112. data/lib/measures/WaterHeaterMixedMultiplier/LICENSE.md +1 -1
  113. data/lib/measures/WaterHeaterMixedMultiplier/measure.rb +1 -1
  114. data/lib/measures/WaterHeaterMixedMultiplier/measure.xml +14 -13
  115. data/lib/measures/WaterHeaterMixedPercentChange/LICENSE.md +1 -1
  116. data/lib/measures/WaterHeaterMixedPercentChange/measure.rb +1 -1
  117. data/lib/measures/WaterHeaterMixedPercentChange/measure.xml +14 -13
  118. data/lib/measures/{zone_report → inspect_and_edit_parametric_schedules}/LICENSE.md +1 -1
  119. data/lib/measures/inspect_and_edit_parametric_schedules/README.md +41 -0
  120. data/lib/measures/inspect_and_edit_parametric_schedules/README.md.erb +53 -0
  121. data/lib/measures/inspect_and_edit_parametric_schedules/docs/apply_measures_now.png +0 -0
  122. data/lib/measures/inspect_and_edit_parametric_schedules/measure.rb +224 -0
  123. data/lib/measures/inspect_and_edit_parametric_schedules/measure.xml +125 -0
  124. data/lib/measures/shift_hours_of_operation/LICENSE.md +27 -0
  125. data/lib/measures/shift_hours_of_operation/README.md +147 -0
  126. data/lib/measures/{zone_report → shift_hours_of_operation}/README.md.erb +5 -0
  127. data/lib/measures/shift_hours_of_operation/docs/.gitkeep +0 -0
  128. data/lib/measures/shift_hours_of_operation/measure.rb +525 -0
  129. data/lib/measures/shift_hours_of_operation/measure.xml +280 -0
  130. data/lib/openstudio/calibration/extension.rb +1 -1
  131. data/lib/openstudio/calibration/version.rb +2 -2
  132. data/lib/openstudio/calibration.rb +1 -1
  133. data/lib/openstudio-calibration.rb +1 -1
  134. data/openstudio-calibration.gemspec +3 -3
  135. metadata +23 -17
  136. data/lib/measures/zone_report/README.md +0 -26
  137. data/lib/measures/zone_report/measure.rb +0 -706
  138. data/lib/measures/zone_report/measure.xml +0 -69
  139. data/lib/measures/zone_report/resources/report.html.in +0 -342
@@ -1,9 +1,10 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>r_value_of_insulation_for_construction_percentage_change</name>
4
5
  <uid>7ee248fd-052a-48d6-a8eb-b1fc6a0dc348</uid>
5
- <version_id>d3e7d8ca-283c-4a2d-ba56-d012b3615261</version_id>
6
- <version_modified>20200325T030945Z</version_modified>
6
+ <version_id>5c1ec598-5269-4fec-8c70-ef1c1ffb3070</version_id>
7
+ <version_modified>20210304T152739Z</version_modified>
7
8
  <xml_checksum>0BF71A3E</xml_checksum>
8
9
  <class_name>RValueOfInsulationForConstructionPercentageChange</class_name>
9
10
  <display_name>Change R-value of Insulation Layer for Construction By a Specified Percentage</display_name>
@@ -26,8 +27,8 @@
26
27
  <default_value>0</default_value>
27
28
  </argument>
28
29
  </arguments>
29
- <outputs/>
30
- <provenances/>
30
+ <outputs />
31
+ <provenances />
31
32
  <tags>
32
33
  <tag>Envelope.Opaque</tag>
33
34
  </tags>
@@ -99,12 +100,6 @@
99
100
  </attribute>
100
101
  </attributes>
101
102
  <files>
102
- <file>
103
- <filename>LICENSE.md</filename>
104
- <filetype>md</filetype>
105
- <usage_type>license</usage_type>
106
- <checksum>E0468DD6</checksum>
107
- </file>
108
103
  <file>
109
104
  <filename>README.md.erb</filename>
110
105
  <filetype>erb</filetype>
@@ -117,6 +112,12 @@
117
112
  <usage_type>readme</usage_type>
118
113
  <checksum>49A7DFFE</checksum>
119
114
  </file>
115
+ <file>
116
+ <filename>LICENSE.md</filename>
117
+ <filetype>md</filetype>
118
+ <usage_type>license</usage_type>
119
+ <checksum>A21A3ED2</checksum>
120
+ </file>
120
121
  <file>
121
122
  <version>
122
123
  <software_program>OpenStudio</software_program>
@@ -126,7 +127,7 @@
126
127
  <filename>measure.rb</filename>
127
128
  <filetype>rb</filetype>
128
129
  <usage_type>script</usage_type>
129
- <checksum>6F9D31D5</checksum>
130
+ <checksum>6C4824F5</checksum>
130
131
  </file>
131
132
  </files>
132
133
  </measure>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
1
+ OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted
4
4
  provided that the following conditions are met:
@@ -1,5 +1,5 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
2
+ # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
3
3
  # All rights reserved.
4
4
  # Redistribution and use in source and binary forms, with or without
5
5
  # modification, are permitted provided that the following conditions are met:
@@ -232,8 +232,8 @@ class RoofThermalPropertiesMultiplier < OpenStudio::Measure::ModelMeasure
232
232
  new_construction.setLayer(lay_index, new_layer)
233
233
  # calculate properties of new layer and output nice names
234
234
  final_r_val[con_index][lay_index] = new_construction.layers[lay_index].to_OpaqueMaterial.get.thermalResistance if layer.to_OpaqueMaterial.is_initialized
235
- final_sol_abs[con_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.getSolarAbsorptance.value if lay_index == 0 && layer.to_StandardOpaqueMaterial.is_initialized
236
- final_thm_mass[con_index][lay_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.getDensity.value if layer.to_StandardOpaqueMaterial.is_initialized
235
+ final_sol_abs[con_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.solarAbsorptance if lay_index == 0 && layer.to_StandardOpaqueMaterial.is_initialized
236
+ final_thm_mass[con_index][lay_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.density if layer.to_StandardOpaqueMaterial.is_initialized
237
237
  final_r_val_d[con_index][lay_index] = neat_numbers(final_r_val[con_index][lay_index])
238
238
  final_sol_abs_d[con_index] = neat_numbers(final_sol_abs[con_index]) if lay_index == 0 && layer.to_StandardOpaqueMaterial.is_initialized
239
239
  final_thm_mass_d[con_index][lay_index] = neat_numbers(final_thm_mass[con_index][lay_index]) if layer.to_StandardOpaqueMaterial.is_initialized
@@ -1,10 +1,11 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>roof_thermal_properties_multiplier</name>
4
5
  <uid>6c4eb22b-770f-456c-bcd1-084cfad89eeb</uid>
5
- <version_id>9a139a76-636f-4ac8-82e0-7d59fcb85d25</version_id>
6
- <version_modified>20200325T030949Z</version_modified>
7
- <xml_checksum>31085437</xml_checksum>
6
+ <version_id>5fbeb5c9-bf38-4798-876e-ec5f23962ef0</version_id>
7
+ <version_modified>20220223T012552Z</version_modified>
8
+ <xml_checksum>EB1A0C08</xml_checksum>
8
9
  <class_name>RoofThermalPropertiesMultiplier</class_name>
9
10
  <display_name>Roof Thermal Properties Multiplier</display_name>
10
11
  <description>Change Roof by altering the thermal resistance, density, and solar absorptance of the wall constructions by a Multiplier</description>
@@ -35,11 +36,10 @@
35
36
  <default_value>1</default_value>
36
37
  </argument>
37
38
  </arguments>
38
- <outputs/>
39
- <provenances/>
39
+ <outputs />
40
+ <provenances />
40
41
  <tags>
41
42
  <tag>Envelope.Opaque</tag>
42
- <tag>Calibration</tag>
43
43
  </tags>
44
44
  <attributes>
45
45
  <attribute>
@@ -64,12 +64,6 @@
64
64
  </attribute>
65
65
  </attributes>
66
66
  <files>
67
- <file>
68
- <filename>LICENSE.md</filename>
69
- <filetype>md</filetype>
70
- <usage_type>license</usage_type>
71
- <checksum>E0468DD6</checksum>
72
- </file>
73
67
  <file>
74
68
  <filename>README.md.erb</filename>
75
69
  <filetype>erb</filetype>
@@ -82,6 +76,18 @@
82
76
  <usage_type>readme</usage_type>
83
77
  <checksum>44F0EAFF</checksum>
84
78
  </file>
79
+ <file>
80
+ <filename>example_model.osm</filename>
81
+ <filetype>osm</filetype>
82
+ <usage_type>test</usage_type>
83
+ <checksum>53D14E69</checksum>
84
+ </file>
85
+ <file>
86
+ <filename>LICENSE.md</filename>
87
+ <filetype>md</filetype>
88
+ <usage_type>license</usage_type>
89
+ <checksum>A21A3ED2</checksum>
90
+ </file>
85
91
  <file>
86
92
  <version>
87
93
  <software_program>OpenStudio</software_program>
@@ -91,7 +97,13 @@
91
97
  <filename>measure.rb</filename>
92
98
  <filetype>rb</filetype>
93
99
  <usage_type>script</usage_type>
94
- <checksum>EEBB9B30</checksum>
100
+ <checksum>B99C2385</checksum>
101
+ </file>
102
+ <file>
103
+ <filename>RoofThermalPropertiesMultiplier_test.rb</filename>
104
+ <filetype>rb</filetype>
105
+ <usage_type>test</usage_type>
106
+ <checksum>F8BC079A</checksum>
95
107
  </file>
96
108
  </files>
97
109
  </measure>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
1
+ OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted
4
4
  provided that the following conditions are met:
@@ -1,5 +1,5 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
2
+ # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
3
3
  # All rights reserved.
4
4
  # Redistribution and use in source and binary forms, with or without
5
5
  # modification, are permitted provided that the following conditions are met:
@@ -222,8 +222,8 @@ class RoofThermalPropertiesPercentChange < OpenStudio::Measure::ModelMeasure
222
222
  new_construction.setLayer(lay_index, new_layer)
223
223
  # calculate properties of new layer and output nice names
224
224
  final_r_val[con_index][lay_index] = new_construction.layers[lay_index].to_OpaqueMaterial.get.thermalResistance if layer.to_OpaqueMaterial.is_initialized
225
- final_sol_abs[con_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.getSolarAbsorptance.value if lay_index == 0 && layer.to_StandardOpaqueMaterial.is_initialized
226
- final_thm_mass[con_index][lay_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.getDensity.value if layer.to_StandardOpaqueMaterial.is_initialized
225
+ final_sol_abs[con_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.solarAbsorptance if lay_index == 0 && layer.to_StandardOpaqueMaterial.is_initialized
226
+ final_thm_mass[con_index][lay_index] = new_construction.layers[lay_index].to_StandardOpaqueMaterial.get.density if layer.to_StandardOpaqueMaterial.is_initialized
227
227
  final_r_val_d[con_index][lay_index] = neat_numbers(final_r_val[con_index][lay_index])
228
228
  final_sol_abs_d[con_index] = neat_numbers(final_sol_abs[con_index]) if lay_index == 0 && layer.to_StandardOpaqueMaterial.is_initialized
229
229
  final_thm_mass_d[con_index][lay_index] = neat_numbers(final_thm_mass[con_index][lay_index]) if layer.to_StandardOpaqueMaterial.is_initialized
@@ -1,10 +1,11 @@
1
+ <?xml version="1.0"?>
1
2
  <measure>
2
3
  <schema_version>3.0</schema_version>
3
4
  <name>roof_thermal_properties_percent_change</name>
4
5
  <uid>07516685-60fd-4da8-9872-1154a995047d</uid>
5
- <version_id>67036cfb-21bd-435f-900c-26b300c87f76</version_id>
6
- <version_modified>20200325T030945Z</version_modified>
7
- <xml_checksum>31085437</xml_checksum>
6
+ <version_id>19d0d728-74c8-4344-94ea-af1f1e406f16</version_id>
7
+ <version_modified>20220223T012552Z</version_modified>
8
+ <xml_checksum>EB1A0C08</xml_checksum>
8
9
  <class_name>RoofThermalPropertiesPercentChange</class_name>
9
10
  <display_name>Roof Thermal Properties Percent Change</display_name>
10
11
  <description>Change Roof by altering the thermal resistance, density, and solar absorptance of the wall constructions by a Percent Change</description>
@@ -35,11 +36,10 @@
35
36
  <default_value>0</default_value>
36
37
  </argument>
37
38
  </arguments>
38
- <outputs/>
39
- <provenances/>
39
+ <outputs />
40
+ <provenances />
40
41
  <tags>
41
42
  <tag>Envelope.Opaque</tag>
42
- <tag>Calibration</tag>
43
43
  </tags>
44
44
  <attributes>
45
45
  <attribute>
@@ -64,12 +64,6 @@
64
64
  </attribute>
65
65
  </attributes>
66
66
  <files>
67
- <file>
68
- <filename>LICENSE.md</filename>
69
- <filetype>md</filetype>
70
- <usage_type>license</usage_type>
71
- <checksum>E0468DD6</checksum>
72
- </file>
73
67
  <file>
74
68
  <filename>README.md.erb</filename>
75
69
  <filetype>erb</filetype>
@@ -82,6 +76,18 @@
82
76
  <usage_type>readme</usage_type>
83
77
  <checksum>76CA84A4</checksum>
84
78
  </file>
79
+ <file>
80
+ <filename>example_model.osm</filename>
81
+ <filetype>osm</filetype>
82
+ <usage_type>test</usage_type>
83
+ <checksum>53D14E69</checksum>
84
+ </file>
85
+ <file>
86
+ <filename>LICENSE.md</filename>
87
+ <filetype>md</filetype>
88
+ <usage_type>license</usage_type>
89
+ <checksum>A21A3ED2</checksum>
90
+ </file>
85
91
  <file>
86
92
  <version>
87
93
  <software_program>OpenStudio</software_program>
@@ -91,7 +97,13 @@
91
97
  <filename>measure.rb</filename>
92
98
  <filetype>rb</filetype>
93
99
  <usage_type>script</usage_type>
94
- <checksum>31F3DB3D</checksum>
100
+ <checksum>CBD9407B</checksum>
101
+ </file>
102
+ <file>
103
+ <filename>RoofThermalPropertiesMultiplier_test.rb</filename>
104
+ <filetype>rb</filetype>
105
+ <usage_type>test</usage_type>
106
+ <checksum>B3F71A6F</checksum>
95
107
  </file>
96
108
  </files>
97
109
  </measure>
@@ -1,4 +1,4 @@
1
- OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC. All rights reserved.
1
+ OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC. All rights reserved.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification, are permitted
4
4
  provided that the following conditions are met:
@@ -2,16 +2,16 @@
2
2
 
3
3
  ###### (Automatically generated documentation)
4
4
 
5
- #
5
+ # TimeSeries Objective Function
6
6
 
7
7
  ## Description
8
-
8
+ Creates Objective Function from Timeseries Data
9
9
 
10
10
  ## Modeler Description
11
-
11
+ Creates Objective Function from Timeseries Data. The measure applies a Norm at each timestep between the difference of CSV metered data and SQL model data. A timeseries plot can also be created. Possible outputs are 'cvrmse', 'nmbe', 'simdata' = sum of the simulated data, 'csvdata' = sum of metered data, 'diff' = P Norm between the metered and simulated data if Norm is 1 or 2, else its just the Difference.
12
12
 
13
13
  ## Measure Type
14
- ModelMeasure
14
+ ReportingMeasure
15
15
 
16
16
  ## Taxonomy
17
17
 
@@ -19,9 +19,175 @@ ModelMeasure
19
19
  ## Arguments
20
20
 
21
21
 
22
+ ### Path to CSV file for the metered data
23
+ Path to CSV file including file name.
24
+ **Name:** csv_name,
25
+ **Type:** String,
26
+ **Units:** ,
27
+ **Required:** true,
28
+ **Model Dependent:** false
29
+
30
+ ### CSV Time Header
31
+ CSV Time Header Value. Used to determine the timestamp column in the CSV file
32
+ **Name:** csv_time_header,
33
+ **Type:** String,
34
+ **Units:** ,
35
+ **Required:** true,
36
+ **Model Dependent:** false
37
+
38
+ ### CSV variable name
39
+ CSV variable name. Used to determine the variable column in the CSV file
40
+ **Name:** csv_var,
41
+ **Type:** String,
42
+ **Units:** ,
43
+ **Required:** true,
44
+ **Model Dependent:** false
45
+
46
+ ### Convert Units
47
+ Convert Units in Metered Data
48
+ **Name:** convert_data,
49
+ **Type:** Choice,
50
+ **Units:** ,
51
+ **Required:** true,
52
+ **Model Dependent:** false
53
+
54
+ ### CSV variable display name
55
+ CSV variable display name. Not yet Implemented
56
+ **Name:** csv_var_dn,
57
+ **Type:** String,
58
+ **Units:** ,
59
+ **Required:** true,
60
+ **Model Dependent:** false
61
+
62
+ ### Year in csv data timestamp
63
+ Is the Year in the csv data timestamp => mm:dd:yy or mm:dd (true/false)
64
+ **Name:** year,
65
+ **Type:** Boolean,
66
+ **Units:** ,
67
+ **Required:** true,
68
+ **Model Dependent:** false
69
+
70
+ ### Seconds in csv data timestamp
71
+ Is the Seconds in the csv data timestamp => hh:mm:ss or hh:mm (true/false)
72
+ **Name:** seconds,
73
+ **Type:** Boolean,
74
+ **Units:** ,
75
+ **Required:** true,
76
+ **Model Dependent:** false
77
+
78
+ ### SQL key value
79
+ SQL key value for the SQL query to find the variable in the SQL file
80
+ **Name:** key_value,
81
+ **Type:** String,
82
+ **Units:** ,
83
+ **Required:** true,
84
+ **Model Dependent:** false
85
+
86
+ ### TimeSeries Name
87
+ TimeSeries Name for the SQL query to find the variable in the SQL file
88
+ **Name:** timeseries_name,
89
+ **Type:** String,
90
+ **Units:** ,
91
+ **Required:** true,
92
+ **Model Dependent:** false
93
+
94
+ ### Reporting Frequency
95
+ Reporting Frequency for SQL Query
96
+ **Name:** reporting_frequency,
97
+ **Type:** Choice,
98
+ **Units:** ,
99
+ **Required:** true,
100
+ **Model Dependent:** false
101
+
102
+ ### Environment Period
103
+ Environment Period for SQL query
104
+ **Name:** environment_period,
105
+ **Type:** String,
106
+ **Units:** ,
107
+ **Required:** true,
108
+ **Model Dependent:** false
109
+
110
+ ### Norm of the difference of csv and sql
111
+ Norm of the difference of csv and sql. 1 is absolute value. 2 is euclidean distance. 3 is raw difference.
112
+ **Name:** norm,
113
+ **Type:** Double,
114
+ **Units:** ,
115
+ **Required:** true,
116
+ **Model Dependent:** false
117
+
118
+ ### Scale factor to apply to the difference
119
+ Scale factor to apply to the difference (1 is no scale)
120
+ **Name:** scale,
121
+ **Type:** Double,
122
+ **Units:** ,
123
+ **Required:** true,
124
+ **Model Dependent:** false
125
+
126
+ ### Find Available data in the SQL file
127
+ Will RegisterInfo all the 'EnvPeriod', 'ReportingFrequencies', 'VariableNames', 'KeyValues' in the SQL file. Useful for debugging SQL issues.
128
+ **Name:** find_avail,
129
+ **Type:** Boolean,
130
+ **Units:** ,
131
+ **Required:** true,
132
+ **Model Dependent:** false
133
+
134
+ ### algorithm_download
135
+ Make JSON data available for algorithm_download (true/false)
136
+ **Name:** algorithm_download,
137
+ **Type:** Boolean,
138
+ **Units:** ,
139
+ **Required:** true,
140
+ **Model Dependent:** false
141
+
142
+ ### plot_flag timeseries data
143
+ Create plot of timeseries data (true/false)
144
+ **Name:** plot_flag,
145
+ **Type:** Boolean,
146
+ **Units:** ,
147
+ **Required:** true,
148
+ **Model Dependent:** false
149
+
150
+ ### Plot name
151
+ Name to include in reporting file name.
152
+ **Name:** plot_name,
153
+ **Type:** String,
154
+ **Units:** ,
155
+ **Required:** true,
156
+ **Model Dependent:** false
157
+
158
+ ### verbose_messages
159
+ verbose messages. Useful for debugging but MAJOR Performance Hit.
160
+ **Name:** verbose_messages,
161
+ **Type:** Boolean,
162
+ **Units:** ,
163
+ **Required:** true,
164
+ **Model Dependent:** false
165
+
166
+ ### warning_messages
167
+ Warn on missing data.
168
+ **Name:** warning_messages,
169
+ **Type:** Boolean,
170
+ **Units:** ,
171
+ **Required:** true,
172
+ **Model Dependent:** false
173
+
174
+ ### add_first_zero_for_plots
175
+ Add a point of zero value to the plot at the beginning of the runperiod.
176
+ **Name:** add_first_zero_for_plots,
177
+ **Type:** Boolean,
178
+ **Units:** ,
179
+ **Required:** true,
180
+ **Model Dependent:** false
181
+
182
+ ### add_last_zero_for_plots
183
+ Add a point of zero value to the plot at the end of the runperiod.
184
+ **Name:** add_last_zero_for_plots,
185
+ **Type:** Boolean,
186
+ **Units:** ,
187
+ **Required:** true,
188
+ **Model Dependent:** false
22
189
 
23
190
 
24
- This measure does not have any user arguments
25
191
 
26
192
 
27
193
 
@@ -1,5 +1,5 @@
1
1
  # *******************************************************************************
2
- # OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
2
+ # OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
3
3
  # All rights reserved.
4
4
  # Redistribution and use in source and binary forms, with or without
5
5
  # modification, are permitted provided that the following conditions are met:
@@ -59,7 +59,7 @@ class TimeseriesObjectiveFunction < OpenStudio::Measure::ReportingMeasure
59
59
  end
60
60
 
61
61
  # define the arguments that the user will input
62
- def arguments
62
+ def arguments(model = nil)
63
63
  args = OpenStudio::Measure::OSArgumentVector.new
64
64
 
65
65
  # the name of the sql file