openstudio-common-measures 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test_with_openstudio.yml +2 -2
- data/CHANGELOG.md +4 -0
- data/Gemfile +10 -5
- data/Jenkinsfile +1 -1
- data/README.md +1 -0
- data/lib/measures/.rubocop.yml +6 -0
- data/lib/measures/AddCostPerAreaToConstruction/measure.xml +21 -21
- data/lib/measures/AddCostPerFloorAreaToBuilding/measure.xml +25 -25
- data/lib/measures/AddCostPerFloorAreaToElectricEquipment/measure.xml +21 -21
- data/lib/measures/AddCostPerFloorAreaToLights/measure.xml +21 -21
- data/lib/measures/AddCostPerFloorAreaUnusedToLights/measure.xml +21 -21
- data/lib/measures/AddCostToSupplySideHVACComponentByAirLoop/measure.xml +24 -24
- data/lib/measures/AddCostperAreatoUnusedConstruction/measure.xml +21 -21
- data/lib/measures/AddExteriorLights/measure.xml +19 -19
- data/lib/measures/AddMeter/measure.xml +15 -15
- data/lib/measures/AddOutputDiagnostics/measure.xml +18 -18
- data/lib/measures/AddOutputVariable/measure.xml +15 -15
- data/lib/measures/AddSimplePvToShadingSurfacesByType/measure.xml +24 -24
- data/lib/measures/AddThermalComfortModelTypes/measure.xml +21 -21
- data/lib/measures/AdjustSystemEfficiencies/measure.xml +12 -12
- data/lib/measures/AdjustThermostatSetpointsByDegrees/measure.xml +23 -23
- data/lib/measures/ChangeBuildingLocation/README.md +1 -1
- data/lib/measures/ChangeBuildingLocation/measure.rb +8 -13
- data/lib/measures/ChangeBuildingLocation/measure.xml +89 -89
- data/lib/measures/EnableIdealAirLoadsForAllZones/measure.xml +22 -22
- data/lib/measures/ExportScheduleCSV/measure.xml +29 -29
- data/lib/measures/ImportEnvelopeAndInternalLoadsFromIdf/measure.xml +29 -29
- data/lib/measures/MeterFlodPlot/measure.xml +35 -35
- data/lib/measures/ModifyEnergyPlusCoilCoolingDXSingleSpeedObjects/measure.xml +24 -24
- data/lib/measures/ModifyEnergyPlusFanVariableVolumeObjects/measure.xml +24 -24
- data/lib/measures/PredictedMeanVote/measure.xml +23 -23
- data/lib/measures/RemoveInternalLoadsDirectlyAssignedToSpaces/measure.xml +21 -21
- data/lib/measures/RemoveUnusedDefaultProfiles/measure.xml +19 -19
- data/lib/measures/ReplaceExteriorWindowConstruction/measure.xml +29 -29
- data/lib/measures/ReplaceModel/README.md +1 -3
- data/lib/measures/ReplaceModel/measure.xml +32 -14
- data/lib/measures/ReplaceThermostatSchedules/measure.xml +17 -17
- data/lib/measures/ReportModelChanges/measure.xml +23 -23
- data/lib/measures/RunPeriod/measure.xml +14 -14
- data/lib/measures/RunPeriodMultiple/measure.xml +12 -12
- data/lib/measures/ServerDirectoryCleanup/measure.xml +30 -30
- data/lib/measures/SetCOPforSingleSpeedDXCoolingUnits/measure.xml +23 -23
- data/lib/measures/SetCOPforTwoSpeedDXCoolingUnits/measure.xml +23 -23
- data/lib/measures/SetEnergyPlusInfiltrationFlowRatePerFloorArea/measure.xml +24 -24
- data/lib/measures/SetEnergyPlusLightObjectsLPD/measure.xml +24 -24
- data/lib/measures/SetEnergyPlusMinimumOutdoorAirFlowRate/measure.xml +24 -24
- data/lib/measures/SetGasBurnerEfficiency/measure.xml +23 -23
- data/lib/measures/SetLifecycleCostParameters/measure.xml +15 -15
- data/lib/measures/SetLightingLoadsByLPD/measure.xml +35 -35
- data/lib/measures/SetSpaceInfiltrationByExteriorSurfaceArea/measure.xml +25 -25
- data/lib/measures/SetThermostatSchedules/measure.xml +17 -17
- data/lib/measures/ShiftScheduleProfileTime/measure.xml +23 -23
- data/lib/measures/SwapLightsDefinition/measure.xml +25 -25
- data/lib/measures/UnmetLoadHoursTroubleshooting/measure.xml +43 -43
- data/lib/measures/VentilationQAQC/measure.xml +31 -31
- data/lib/measures/XcelEDAReportingandQAQC/measure.xml +3 -3
- data/lib/measures/XcelEDATariffSelectionandModelSetup/measure.xml +73 -73
- data/lib/measures/ZoneReport/measure.xml +35 -35
- data/lib/measures/add_ems_emissions_reporting/measure.rb +0 -2
- data/lib/measures/add_ems_emissions_reporting/measure.xml +23 -23
- data/lib/measures/add_ems_to_control_ev_charging/measure.rb +0 -2
- data/lib/measures/add_ems_to_control_ev_charging/measure.xml +21 -21
- data/lib/measures/add_ev_load/measure.xml +35 -35
- data/lib/measures/add_rooftop_pv/measure.rb +5 -7
- data/lib/measures/add_rooftop_pv/measure.xml +25 -25
- data/lib/measures/add_zone_mixing_object/measure.xml +19 -19
- data/lib/measures/add_zone_ventilation_design_flow_rate_object/measure.xml +21 -21
- data/lib/measures/air_wall_zone_mixing/measure.rb +4 -6
- data/lib/measures/air_wall_zone_mixing/measure.xml +27 -27
- data/lib/measures/create_csv_output/measure.xml +28 -28
- data/lib/measures/envelope_and_internal_load_breakdown/measure.rb +0 -4
- data/lib/measures/envelope_and_internal_load_breakdown/measure.xml +52 -52
- data/lib/measures/envelope_and_internal_load_breakdown/resources/report.html.erb +1 -0
- data/lib/measures/example_report/measure.rb +2 -5
- data/lib/measures/example_report/measure.xml +41 -41
- data/lib/measures/example_report/resources/report.html.erb +1 -0
- data/lib/measures/gem_env_report/measure.xml +32 -32
- data/lib/measures/generic_qaqc/measure.rb +8 -15
- data/lib/measures/generic_qaqc/measure.xml +13 -13
- data/lib/measures/generic_qaqc/resources/check_air_sys_temps.rb +2 -2
- data/lib/measures/generic_qaqc/resources/check_domestic_hot_water.rb +4 -4
- data/lib/measures/generic_qaqc/resources/check_envelope_conductance.rb +7 -5
- data/lib/measures/generic_qaqc/resources/check_internal_loads.rb +2 -2
- data/lib/measures/generic_qaqc/resources/check_mech_sys_type.rb +1 -1
- data/lib/measures/generic_qaqc/resources/check_plant_temps.rb +6 -6
- data/lib/measures/generic_qaqc/resources/check_schedules.rb +7 -7
- data/lib/measures/generic_qaqc/resources/check_supply_air_and_thermostat_temp_difference.rb +5 -2
- data/lib/measures/generic_qaqc/resources/report.html.erb +1 -0
- data/lib/measures/get_site_from_building_component_library/measure.rb +4 -8
- data/lib/measures/get_site_from_building_component_library/measure.xml +28 -28
- data/lib/measures/hvac_psychrometric_chart/measure.xml +29 -29
- data/lib/measures/hvac_psychrometric_chart/resources/report.html.erb +1 -0
- data/lib/measures/inject_idf_objects/measure.xml +31 -31
- data/lib/measures/openstudio_results/measure.rb +2 -6
- data/lib/measures/openstudio_results/measure.xml +348 -360
- data/lib/measures/openstudio_results/resources/os_lib_reporting.rb +8 -8
- data/lib/measures/openstudio_results/resources/report.html.erb +1 -0
- data/lib/measures/remove_orphan_objects_and_unused_resources/measure.xml +24 -24
- data/lib/measures/set_electric_equipment_loads_by_epd/measure.xml +33 -33
- data/lib/measures/set_exterior_walls_and_floors_to_adiabatic/measure.xml +19 -19
- data/lib/measures/set_run_period/measure.xml +19 -19
- data/lib/measures/set_space_infiltration_per_exterior_area/measure.xml +22 -22
- data/lib/measures/shadow_calculation/measure.xml +18 -18
- data/lib/measures/tariff_selection_block/measure.rb +2 -5
- data/lib/measures/tariff_selection_block/measure.xml +25 -25
- data/lib/measures/tariff_selection_flat/measure.rb +3 -5
- data/lib/measures/tariff_selection_flat/measure.xml +25 -25
- data/lib/measures/tariff_selection_generic/measure.rb +2 -5
- data/lib/measures/tariff_selection_generic/measure.xml +39 -39
- data/lib/measures/tariff_selection_time_and_date_dependant/measure.rb +19 -15
- data/lib/measures/tariff_selection_time_and_date_dependant/measure.xml +37 -25
- data/lib/measures/view_data/measure.xml +41 -41
- data/lib/measures/view_model/measure.xml +35 -35
- data/lib/openstudio/common_measures/version.rb +1 -1
- data/openstudio-common-measures.gemspec +11 -4
- metadata +72 -15
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>add_ems_emissions_reporting</name>
|
5
5
|
<uid>e8fe9153-5e70-4769-afa0-6da0045aa529</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>a433902c-9979-4067-bc02-69a17cc9e2fe</version_id>
|
7
|
+
<version_modified>2024-07-11T14:32:05Z</version_modified>
|
8
8
|
<xml_checksum>976EB6EB</xml_checksum>
|
9
9
|
<class_name>AddEMSEmissionsReporting</class_name>
|
10
10
|
<display_name>Add EMS to Report Emissions</display_name>
|
@@ -447,10 +447,10 @@
|
|
447
447
|
</attributes>
|
448
448
|
<files>
|
449
449
|
<file>
|
450
|
-
<filename>
|
451
|
-
<filetype>
|
452
|
-
<usage_type>
|
453
|
-
<checksum>
|
450
|
+
<filename>LICENSE.md</filename>
|
451
|
+
<filetype>md</filetype>
|
452
|
+
<usage_type>license</usage_type>
|
453
|
+
<checksum>BFFB1AA6</checksum>
|
454
454
|
</file>
|
455
455
|
<file>
|
456
456
|
<filename>README.md</filename>
|
@@ -458,6 +458,17 @@
|
|
458
458
|
<usage_type>readme</usage_type>
|
459
459
|
<checksum>D90928F0</checksum>
|
460
460
|
</file>
|
461
|
+
<file>
|
462
|
+
<version>
|
463
|
+
<software_program>OpenStudio</software_program>
|
464
|
+
<identifier>2.5.1</identifier>
|
465
|
+
<min_compatible>3.8.0</min_compatible>
|
466
|
+
</version>
|
467
|
+
<filename>measure.rb</filename>
|
468
|
+
<filetype>rb</filetype>
|
469
|
+
<usage_type>script</usage_type>
|
470
|
+
<checksum>88A306FD</checksum>
|
471
|
+
</file>
|
461
472
|
<file>
|
462
473
|
<filename>future_annual_co2e.csv</filename>
|
463
474
|
<filetype>csv</filetype>
|
@@ -572,28 +583,17 @@
|
|
572
583
|
<usage_type>resource</usage_type>
|
573
584
|
<checksum>6C952ECC</checksum>
|
574
585
|
</file>
|
575
|
-
<file>
|
576
|
-
<filename>LICENSE.md</filename>
|
577
|
-
<filetype>md</filetype>
|
578
|
-
<usage_type>license</usage_type>
|
579
|
-
<checksum>64FFEBDE</checksum>
|
580
|
-
</file>
|
581
586
|
<file>
|
582
587
|
<filename>add_ems_emissions_reporting_test.rb</filename>
|
583
588
|
<filetype>rb</filetype>
|
584
589
|
<usage_type>test</usage_type>
|
585
|
-
<checksum>
|
590
|
+
<checksum>8A2D4011</checksum>
|
586
591
|
</file>
|
587
592
|
<file>
|
588
|
-
<
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
</version>
|
593
|
-
<filename>measure.rb</filename>
|
594
|
-
<filetype>rb</filetype>
|
595
|
-
<usage_type>script</usage_type>
|
596
|
-
<checksum>471C0F9A</checksum>
|
593
|
+
<filename>example_model.osm</filename>
|
594
|
+
<filetype>osm</filetype>
|
595
|
+
<usage_type>test</usage_type>
|
596
|
+
<checksum>8EA06A27</checksum>
|
597
597
|
</file>
|
598
598
|
</files>
|
599
599
|
</measure>
|
@@ -4,8 +4,6 @@
|
|
4
4
|
# *******************************************************************************
|
5
5
|
|
6
6
|
# start the measure
|
7
|
-
require 'openstudio-extension'
|
8
|
-
require 'openstudio/extension/core/os_lib_helper_methods'
|
9
7
|
class AddEMSToControlEVCharging < OpenStudio::Measure::ModelMeasure
|
10
8
|
# human readable name
|
11
9
|
def name
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>add_ems_to_control_ev_charging</name>
|
5
5
|
<uid>df97997f-d02a-4e35-af7a-5aed16cb5772</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>cb1e5410-6ed7-43a8-8ff7-a7134be49ef7</version_id>
|
7
|
+
<version_modified>2024-07-11T14:32:06Z</version_modified>
|
8
8
|
<xml_checksum>976EB6EB</xml_checksum>
|
9
9
|
<class_name>AddEMSToControlEVCharging</class_name>
|
10
10
|
<display_name>Add EMS to Control EV Charging</display_name>
|
@@ -50,10 +50,10 @@
|
|
50
50
|
</attributes>
|
51
51
|
<files>
|
52
52
|
<file>
|
53
|
-
<filename>
|
54
|
-
<filetype>
|
55
|
-
<usage_type>
|
56
|
-
<checksum>
|
53
|
+
<filename>LICENSE.md</filename>
|
54
|
+
<filetype>md</filetype>
|
55
|
+
<usage_type>license</usage_type>
|
56
|
+
<checksum>BFFB1AA6</checksum>
|
57
57
|
</file>
|
58
58
|
<file>
|
59
59
|
<filename>README.md</filename>
|
@@ -61,28 +61,28 @@
|
|
61
61
|
<usage_type>readme</usage_type>
|
62
62
|
<checksum>70CA2C6E</checksum>
|
63
63
|
</file>
|
64
|
-
<file>
|
65
|
-
<filename>LICENSE.md</filename>
|
66
|
-
<filetype>md</filetype>
|
67
|
-
<usage_type>license</usage_type>
|
68
|
-
<checksum>64FFEBDE</checksum>
|
69
|
-
</file>
|
70
|
-
<file>
|
71
|
-
<filename>add_ems_to_control_ev_charging_test.rb</filename>
|
72
|
-
<filetype>rb</filetype>
|
73
|
-
<usage_type>test</usage_type>
|
74
|
-
<checksum>0BFC4A8F</checksum>
|
75
|
-
</file>
|
76
64
|
<file>
|
77
65
|
<version>
|
78
66
|
<software_program>OpenStudio</software_program>
|
79
67
|
<identifier>2.5.1</identifier>
|
80
|
-
<min_compatible>
|
68
|
+
<min_compatible>3.8.0</min_compatible>
|
81
69
|
</version>
|
82
70
|
<filename>measure.rb</filename>
|
83
71
|
<filetype>rb</filetype>
|
84
72
|
<usage_type>script</usage_type>
|
85
|
-
<checksum>
|
73
|
+
<checksum>D2FD7CFE</checksum>
|
74
|
+
</file>
|
75
|
+
<file>
|
76
|
+
<filename>add_ems_to_control_ev_charging_test.rb</filename>
|
77
|
+
<filetype>rb</filetype>
|
78
|
+
<usage_type>test</usage_type>
|
79
|
+
<checksum>D10942F4</checksum>
|
80
|
+
</file>
|
81
|
+
<file>
|
82
|
+
<filename>example_model.osm</filename>
|
83
|
+
<filetype>osm</filetype>
|
84
|
+
<usage_type>test</usage_type>
|
85
|
+
<checksum>E925F127</checksum>
|
86
86
|
</file>
|
87
87
|
</files>
|
88
88
|
</measure>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>add_ev_load</name>
|
5
5
|
<uid>a23e0493-7357-48ca-b089-4d902efd6b50</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>6b5494cf-80bb-43d4-99d5-59325f977d4f</version_id>
|
7
|
+
<version_modified>2024-07-11T14:32:04Z</version_modified>
|
8
8
|
<xml_checksum>9A202986</xml_checksum>
|
9
9
|
<class_name>AddEVLoad</class_name>
|
10
10
|
<display_name>Add_EV_Load</display_name>
|
@@ -136,10 +136,10 @@
|
|
136
136
|
</attributes>
|
137
137
|
<files>
|
138
138
|
<file>
|
139
|
-
<filename>
|
140
|
-
<filetype>
|
141
|
-
<usage_type>
|
142
|
-
<checksum>
|
139
|
+
<filename>LICENSE.md</filename>
|
140
|
+
<filetype>md</filetype>
|
141
|
+
<usage_type>license</usage_type>
|
142
|
+
<checksum>BFFB1AA6</checksum>
|
143
143
|
</file>
|
144
144
|
<file>
|
145
145
|
<filename>README.md</filename>
|
@@ -147,6 +147,29 @@
|
|
147
147
|
<usage_type>readme</usage_type>
|
148
148
|
<checksum>2293F4B3</checksum>
|
149
149
|
</file>
|
150
|
+
<file>
|
151
|
+
<version>
|
152
|
+
<software_program>OpenStudio</software_program>
|
153
|
+
<identifier>2.5.1</identifier>
|
154
|
+
<min_compatible>2.5.1</min_compatible>
|
155
|
+
</version>
|
156
|
+
<filename>measure.rb</filename>
|
157
|
+
<filetype>rb</filetype>
|
158
|
+
<usage_type>script</usage_type>
|
159
|
+
<checksum>D3110BC3</checksum>
|
160
|
+
</file>
|
161
|
+
<file>
|
162
|
+
<filename>PSN_BuildingKey.csv</filename>
|
163
|
+
<filetype>csv</filetype>
|
164
|
+
<usage_type>resource</usage_type>
|
165
|
+
<checksum>153D4BBA</checksum>
|
166
|
+
</file>
|
167
|
+
<file>
|
168
|
+
<filename>PSN_BuildingKey_v2.csv</filename>
|
169
|
+
<filetype>csv</filetype>
|
170
|
+
<usage_type>resource</usage_type>
|
171
|
+
<checksum>1000C8E8</checksum>
|
172
|
+
</file>
|
150
173
|
<file>
|
151
174
|
<filename>chg1_dow1_flex1.csv</filename>
|
152
175
|
<filetype>csv</filetype>
|
@@ -327,40 +350,17 @@
|
|
327
350
|
<usage_type>resource</usage_type>
|
328
351
|
<checksum>114F9EA1</checksum>
|
329
352
|
</file>
|
330
|
-
<file>
|
331
|
-
<filename>PSN_BuildingKey.csv</filename>
|
332
|
-
<filetype>csv</filetype>
|
333
|
-
<usage_type>resource</usage_type>
|
334
|
-
<checksum>153D4BBA</checksum>
|
335
|
-
</file>
|
336
|
-
<file>
|
337
|
-
<filename>PSN_BuildingKey_v2.csv</filename>
|
338
|
-
<filetype>csv</filetype>
|
339
|
-
<usage_type>resource</usage_type>
|
340
|
-
<checksum>1000C8E8</checksum>
|
341
|
-
</file>
|
342
|
-
<file>
|
343
|
-
<filename>LICENSE.md</filename>
|
344
|
-
<filetype>md</filetype>
|
345
|
-
<usage_type>license</usage_type>
|
346
|
-
<checksum>64FFEBDE</checksum>
|
347
|
-
</file>
|
348
353
|
<file>
|
349
354
|
<filename>add_ev_load_test.rb</filename>
|
350
355
|
<filetype>rb</filetype>
|
351
356
|
<usage_type>test</usage_type>
|
352
|
-
<checksum>
|
357
|
+
<checksum>5381CBDE</checksum>
|
353
358
|
</file>
|
354
359
|
<file>
|
355
|
-
<
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
</version>
|
360
|
-
<filename>measure.rb</filename>
|
361
|
-
<filetype>rb</filetype>
|
362
|
-
<usage_type>script</usage_type>
|
363
|
-
<checksum>488C2195</checksum>
|
360
|
+
<filename>example_model.osm</filename>
|
361
|
+
<filetype>osm</filetype>
|
362
|
+
<usage_type>test</usage_type>
|
363
|
+
<checksum>E925F127</checksum>
|
364
364
|
</file>
|
365
365
|
</files>
|
366
366
|
</measure>
|
@@ -6,13 +6,10 @@
|
|
6
6
|
# see the URL below for information on how to write OpenStudio measures
|
7
7
|
# http://nrel.github.io/OpenStudio-user-documentation/measures/measure_writing_guide/
|
8
8
|
|
9
|
-
# load OpenStudio measure libraries from openstudio-extension gem
|
10
|
-
require 'openstudio-extension'
|
11
|
-
require 'openstudio/extension/core/os_lib_helper_methods'
|
12
|
-
require 'openstudio/extension/core/os_lib_schedules'
|
13
|
-
|
14
9
|
# start the measure
|
15
10
|
class AddRooftopPV < OpenStudio::Measure::ModelMeasure
|
11
|
+
require 'openstudio-standards'
|
12
|
+
|
16
13
|
# human readable name
|
17
14
|
def name
|
18
15
|
return 'Add Rooftop PV'
|
@@ -68,7 +65,8 @@ class AddRooftopPV < OpenStudio::Measure::ModelMeasure
|
|
68
65
|
end
|
69
66
|
|
70
67
|
# assign the user inputs to variables
|
71
|
-
args =
|
68
|
+
args = runner.getArgumentValues(arguments(model), user_arguments)
|
69
|
+
args = Hash[args.collect{ |k, v| [k.to_s, v] }]
|
72
70
|
if !args then return false end
|
73
71
|
|
74
72
|
# check expected values of double arguments
|
@@ -101,7 +99,7 @@ class AddRooftopPV < OpenStudio::Measure::ModelMeasure
|
|
101
99
|
'summerTimeValuePairs' => { 24.0 => target_transmittance },
|
102
100
|
'defaultTimeValuePairs' => { 24.0 => target_transmittance }
|
103
101
|
}
|
104
|
-
pv_shading_transmittance_schedule =
|
102
|
+
pv_shading_transmittance_schedule = OpenstudioStandards::Schedules.create_simple_schedule(model, inputs)
|
105
103
|
runner.registerInfo("Created transmittance schedule for PV shading surfaces with constant value of #{target_transmittance}")
|
106
104
|
|
107
105
|
model.getSurfaces.each do |surface|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>add_rooftop_pv</name>
|
5
5
|
<uid>34550614-0c87-44db-9252-0ca0915b1e64</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>f6dcae0f-c0e6-42dc-bc4b-1caca12e71f3</version_id>
|
7
|
+
<version_modified>2024-07-11T14:32:06Z</version_modified>
|
8
8
|
<xml_checksum>178163B6</xml_checksum>
|
9
9
|
<class_name>AddRooftopPV</class_name>
|
10
10
|
<display_name>Add Rooftop PV</display_name>
|
@@ -88,16 +88,10 @@
|
|
88
88
|
</attributes>
|
89
89
|
<files>
|
90
90
|
<file>
|
91
|
-
<filename>
|
92
|
-
<filetype>
|
93
|
-
<usage_type>
|
94
|
-
<checksum>
|
95
|
-
</file>
|
96
|
-
<file>
|
97
|
-
<filename>README.md.erb</filename>
|
98
|
-
<filetype>erb</filetype>
|
99
|
-
<usage_type>readmeerb</usage_type>
|
100
|
-
<checksum>703C9964</checksum>
|
91
|
+
<filename>LICENSE.md</filename>
|
92
|
+
<filetype>md</filetype>
|
93
|
+
<usage_type>license</usage_type>
|
94
|
+
<checksum>BFFB1AA6</checksum>
|
101
95
|
</file>
|
102
96
|
<file>
|
103
97
|
<filename>README.md</filename>
|
@@ -106,27 +100,33 @@
|
|
106
100
|
<checksum>936FAC3C</checksum>
|
107
101
|
</file>
|
108
102
|
<file>
|
109
|
-
<filename>
|
110
|
-
<filetype>
|
111
|
-
<usage_type>
|
112
|
-
<checksum>
|
113
|
-
</file>
|
114
|
-
<file>
|
115
|
-
<filename>add_rooftop_pv_test.rb</filename>
|
116
|
-
<filetype>rb</filetype>
|
117
|
-
<usage_type>test</usage_type>
|
118
|
-
<checksum>450F2645</checksum>
|
103
|
+
<filename>README.md.erb</filename>
|
104
|
+
<filetype>erb</filetype>
|
105
|
+
<usage_type>readmeerb</usage_type>
|
106
|
+
<checksum>703C9964</checksum>
|
119
107
|
</file>
|
120
108
|
<file>
|
121
109
|
<version>
|
122
110
|
<software_program>OpenStudio</software_program>
|
123
111
|
<identifier>2.0.0</identifier>
|
124
|
-
<min_compatible>
|
112
|
+
<min_compatible>3.8.0</min_compatible>
|
125
113
|
</version>
|
126
114
|
<filename>measure.rb</filename>
|
127
115
|
<filetype>rb</filetype>
|
128
116
|
<usage_type>script</usage_type>
|
129
|
-
<checksum>
|
117
|
+
<checksum>9AA2D6EE</checksum>
|
118
|
+
</file>
|
119
|
+
<file>
|
120
|
+
<filename>add_rooftop_pv_test.rb</filename>
|
121
|
+
<filetype>rb</filetype>
|
122
|
+
<usage_type>test</usage_type>
|
123
|
+
<checksum>5432FFC3</checksum>
|
124
|
+
</file>
|
125
|
+
<file>
|
126
|
+
<filename>pv_test_input.osm</filename>
|
127
|
+
<filetype>osm</filetype>
|
128
|
+
<usage_type>test</usage_type>
|
129
|
+
<checksum>AB14A2B3</checksum>
|
130
130
|
</file>
|
131
131
|
</files>
|
132
132
|
</measure>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>add_zone_mixing_object</name>
|
5
5
|
<uid>6ed65817-1d97-43da-a4c2-1d738eafcde5</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>422d82bc-c2d0-44ac-b1ed-9b40cb21bf6a</version_id>
|
7
|
+
<version_modified>2024-07-11T14:32:05Z</version_modified>
|
8
8
|
<xml_checksum>61000E02</xml_checksum>
|
9
9
|
<class_name>AddZoneMixingObject</class_name>
|
10
10
|
<display_name>Add Zone Mixing Object</display_name>
|
@@ -70,16 +70,10 @@
|
|
70
70
|
</attributes>
|
71
71
|
<files>
|
72
72
|
<file>
|
73
|
-
<filename>
|
74
|
-
<filetype>
|
75
|
-
<usage_type>
|
76
|
-
<checksum>
|
77
|
-
</file>
|
78
|
-
<file>
|
79
|
-
<filename>README.md.erb</filename>
|
80
|
-
<filetype>erb</filetype>
|
81
|
-
<usage_type>readmeerb</usage_type>
|
82
|
-
<checksum>703C9964</checksum>
|
73
|
+
<filename>LICENSE.md</filename>
|
74
|
+
<filetype>md</filetype>
|
75
|
+
<usage_type>license</usage_type>
|
76
|
+
<checksum>BFFB1AA6</checksum>
|
83
77
|
</file>
|
84
78
|
<file>
|
85
79
|
<filename>README.md</filename>
|
@@ -88,10 +82,10 @@
|
|
88
82
|
<checksum>9C34D6E1</checksum>
|
89
83
|
</file>
|
90
84
|
<file>
|
91
|
-
<filename>
|
92
|
-
<filetype>
|
93
|
-
<usage_type>
|
94
|
-
<checksum>
|
85
|
+
<filename>README.md.erb</filename>
|
86
|
+
<filetype>erb</filetype>
|
87
|
+
<usage_type>readmeerb</usage_type>
|
88
|
+
<checksum>703C9964</checksum>
|
95
89
|
</file>
|
96
90
|
<file>
|
97
91
|
<version>
|
@@ -102,13 +96,19 @@
|
|
102
96
|
<filename>measure.rb</filename>
|
103
97
|
<filetype>rb</filetype>
|
104
98
|
<usage_type>script</usage_type>
|
105
|
-
<checksum>
|
99
|
+
<checksum>968CA324</checksum>
|
100
|
+
</file>
|
101
|
+
<file>
|
102
|
+
<filename>ZoneMixingTestModel.osm</filename>
|
103
|
+
<filetype>osm</filetype>
|
104
|
+
<usage_type>test</usage_type>
|
105
|
+
<checksum>4451DD5D</checksum>
|
106
106
|
</file>
|
107
107
|
<file>
|
108
108
|
<filename>add_zone_mixing_object_test.rb</filename>
|
109
109
|
<filetype>rb</filetype>
|
110
110
|
<usage_type>test</usage_type>
|
111
|
-
<checksum>
|
111
|
+
<checksum>A0A93765</checksum>
|
112
112
|
</file>
|
113
113
|
</files>
|
114
114
|
</measure>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>add_zone_ventilation_design_flow_rate_object</name>
|
5
5
|
<uid>c31e2212-720d-413f-bdb9-f38e198dcfa3</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>e54d0d73-cb66-40f7-8934-e1e211940976</version_id>
|
7
|
+
<version_modified>2024-07-11T14:31:57Z</version_modified>
|
8
8
|
<xml_checksum>3B6B95A6</xml_checksum>
|
9
9
|
<class_name>AddZoneVentilationDesignFlowRateObject</class_name>
|
10
10
|
<display_name>Add Zone Ventilation Design Flow Rate Object</display_name>
|
@@ -105,16 +105,10 @@
|
|
105
105
|
</attributes>
|
106
106
|
<files>
|
107
107
|
<file>
|
108
|
-
<filename>
|
109
|
-
<filetype>
|
110
|
-
<usage_type>
|
111
|
-
<checksum>
|
112
|
-
</file>
|
113
|
-
<file>
|
114
|
-
<filename>README.md.erb</filename>
|
115
|
-
<filetype>erb</filetype>
|
116
|
-
<usage_type>readmeerb</usage_type>
|
117
|
-
<checksum>703C9964</checksum>
|
108
|
+
<filename>LICENSE.md</filename>
|
109
|
+
<filetype>md</filetype>
|
110
|
+
<usage_type>license</usage_type>
|
111
|
+
<checksum>BFFB1AA6</checksum>
|
118
112
|
</file>
|
119
113
|
<file>
|
120
114
|
<filename>README.md</filename>
|
@@ -122,6 +116,12 @@
|
|
122
116
|
<usage_type>readme</usage_type>
|
123
117
|
<checksum>8C13CD27</checksum>
|
124
118
|
</file>
|
119
|
+
<file>
|
120
|
+
<filename>README.md.erb</filename>
|
121
|
+
<filetype>erb</filetype>
|
122
|
+
<usage_type>readmeerb</usage_type>
|
123
|
+
<checksum>703C9964</checksum>
|
124
|
+
</file>
|
125
125
|
<file>
|
126
126
|
<version>
|
127
127
|
<software_program>OpenStudio</software_program>
|
@@ -131,19 +131,19 @@
|
|
131
131
|
<filename>measure.rb</filename>
|
132
132
|
<filetype>rb</filetype>
|
133
133
|
<usage_type>script</usage_type>
|
134
|
-
<checksum>
|
135
|
-
</file>
|
136
|
-
<file>
|
137
|
-
<filename>LICENSE.md</filename>
|
138
|
-
<filetype>md</filetype>
|
139
|
-
<usage_type>license</usage_type>
|
140
|
-
<checksum>64FFEBDE</checksum>
|
134
|
+
<checksum>27698FB7</checksum>
|
141
135
|
</file>
|
142
136
|
<file>
|
143
137
|
<filename>add_zone_ventilation_design_flow_rate_object_test.rb</filename>
|
144
138
|
<filetype>rb</filetype>
|
145
139
|
<usage_type>test</usage_type>
|
146
|
-
<checksum>
|
140
|
+
<checksum>1C95B333</checksum>
|
141
|
+
</file>
|
142
|
+
<file>
|
143
|
+
<filename>example_model.osm</filename>
|
144
|
+
<filetype>osm</filetype>
|
145
|
+
<usage_type>test</usage_type>
|
146
|
+
<checksum>2492F353</checksum>
|
147
147
|
</file>
|
148
148
|
</files>
|
149
149
|
</measure>
|
@@ -6,12 +6,10 @@
|
|
6
6
|
# see the URL below for information on how to write OpenStudio measures
|
7
7
|
# http://nrel.github.io/OpenStudio-user-documentation/measures/measure_writing_guide/
|
8
8
|
|
9
|
-
# load OpenStudio measure libraries from openstudio-extension gem
|
10
|
-
require 'openstudio-extension'
|
11
|
-
require 'openstudio/extension/core/os_lib_geometry'
|
12
|
-
|
13
9
|
# start the measure
|
14
10
|
class AirWallZoneMixing < OpenStudio::Measure::ModelMeasure
|
11
|
+
require 'openstudio-standards'
|
12
|
+
|
15
13
|
# human readable name
|
16
14
|
def name
|
17
15
|
return 'Air Wall Zone Mixing'
|
@@ -78,8 +76,8 @@ Zone mixing will only be added where there is an air wall and where the matched
|
|
78
76
|
max_space_height = 0
|
79
77
|
zone.spaces.each do |space|
|
80
78
|
volume_counter += space.volume
|
81
|
-
min_space_zvalue =
|
82
|
-
max_space_zvalue =
|
79
|
+
min_space_zvalue = OpenstudioStandards::Geometry.surfaces_get_z_values(space.surfaces).sort.first # this expects an array of surfaces
|
80
|
+
max_space_zvalue = OpenstudioStandards::Geometry.surfaces_get_z_values(space.surfaces).sort.last # this expects an array of surfaces
|
83
81
|
if max_space_zvalue - min_space_zvalue > max_space_height
|
84
82
|
max_space_height = max_space_zvalue - min_space_zvalue
|
85
83
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<?xml version="1.0"?>
|
2
2
|
<measure>
|
3
|
-
<schema_version>3.
|
3
|
+
<schema_version>3.1</schema_version>
|
4
4
|
<name>air_wall_zone_mixing</name>
|
5
5
|
<uid>fd04f73e-a530-4144-9e1e-c1878b1394bc</uid>
|
6
|
-
<version_id>
|
7
|
-
<version_modified>
|
6
|
+
<version_id>05a68d53-908d-4baf-9dd5-40c526bfc76f</version_id>
|
7
|
+
<version_modified>2024-07-11T14:32:03Z</version_modified>
|
8
8
|
<xml_checksum>772B7164</xml_checksum>
|
9
9
|
<class_name>AirWallZoneMixing</class_name>
|
10
10
|
<display_name>Air Wall Zone Mixing</display_name>
|
@@ -70,16 +70,10 @@ Zone mixing will only be added where there is an air wall and where the matched
|
|
70
70
|
</attributes>
|
71
71
|
<files>
|
72
72
|
<file>
|
73
|
-
<filename>
|
74
|
-
<filetype>
|
75
|
-
<usage_type>
|
76
|
-
<checksum>
|
77
|
-
</file>
|
78
|
-
<file>
|
79
|
-
<filename>SimpleTest.osm</filename>
|
80
|
-
<filetype>osm</filetype>
|
81
|
-
<usage_type>test</usage_type>
|
82
|
-
<checksum>38ED88B9</checksum>
|
73
|
+
<filename>LICENSE.md</filename>
|
74
|
+
<filetype>md</filetype>
|
75
|
+
<usage_type>license</usage_type>
|
76
|
+
<checksum>BFFB1AA6</checksum>
|
83
77
|
</file>
|
84
78
|
<file>
|
85
79
|
<filename>README.md</filename>
|
@@ -129,28 +123,34 @@ Zone mixing will only be added where there is an air wall and where the matched
|
|
129
123
|
<usage_type>doc</usage_type>
|
130
124
|
<checksum>95902986</checksum>
|
131
125
|
</file>
|
132
|
-
<file>
|
133
|
-
<filename>LICENSE.md</filename>
|
134
|
-
<filetype>md</filetype>
|
135
|
-
<usage_type>license</usage_type>
|
136
|
-
<checksum>64FFEBDE</checksum>
|
137
|
-
</file>
|
138
|
-
<file>
|
139
|
-
<filename>air_wall_zone_mixing_test.rb</filename>
|
140
|
-
<filetype>rb</filetype>
|
141
|
-
<usage_type>test</usage_type>
|
142
|
-
<checksum>F33CA3D2</checksum>
|
143
|
-
</file>
|
144
126
|
<file>
|
145
127
|
<version>
|
146
128
|
<software_program>OpenStudio</software_program>
|
147
129
|
<identifier>2.0.0</identifier>
|
148
|
-
<min_compatible>
|
130
|
+
<min_compatible>3.8.0</min_compatible>
|
149
131
|
</version>
|
150
132
|
<filename>measure.rb</filename>
|
151
133
|
<filetype>rb</filetype>
|
152
134
|
<usage_type>script</usage_type>
|
153
|
-
<checksum>
|
135
|
+
<checksum>2E6E39F8</checksum>
|
136
|
+
</file>
|
137
|
+
<file>
|
138
|
+
<filename>SimpleTest.osm</filename>
|
139
|
+
<filetype>osm</filetype>
|
140
|
+
<usage_type>test</usage_type>
|
141
|
+
<checksum>38ED88B9</checksum>
|
142
|
+
</file>
|
143
|
+
<file>
|
144
|
+
<filename>air_wall_zone_mixing_test.rb</filename>
|
145
|
+
<filetype>rb</filetype>
|
146
|
+
<usage_type>test</usage_type>
|
147
|
+
<checksum>856448EA</checksum>
|
148
|
+
</file>
|
149
|
+
<file>
|
150
|
+
<filename>example_model.osm</filename>
|
151
|
+
<filetype>osm</filetype>
|
152
|
+
<usage_type>test</usage_type>
|
153
|
+
<checksum>AD3A8B94</checksum>
|
154
154
|
</file>
|
155
155
|
</files>
|
156
156
|
</measure>
|