Skip to content

Commit

Permalink
Merge pull request #130 from NREL/3.7.0-rc1
Browse files Browse the repository at this point in the history
Initial setup of branch for 3.7.0 release
  • Loading branch information
kflemin authored Dec 14, 2023
2 parents ad8065f + f3bd73a commit acbb65f
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 68 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# OpenStudio Model Articulation Gems

## Version 0.9.0
* Support for OpenStudio 3.7 (upgrade to standards gem 0.5.0, extension gem 0.6.0)
* Fixed [#128]( https://github.com/NREL/openstudio-model-articulation-gem/pull/128 ), fix infiltration design day schedule inversion
* Fixed [#133]( https://github.com/NREL/openstudio-model-articulation-gem/pull/133 ), remove minimum_operation argument

## Version 0.8.0
* Fixed [#120]( https://github.com/NREL/openstudio-model-articulation-gem/pull/120 ), add set_nist_infiltration_correlations
* Fixed [#121]( https://github.com/NREL/openstudio-model-articulation-gem/pull/121 ), added better infiltration area logging
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ bundle exec rake openstudio:test_with_openstudio

|OpenStudio Model Articulation Gem|OpenStudio|Ruby|
|:--------------:|:----------:|:--------:|
| 0.9.0 | 3.7 | 2.7 |
| 0.8.0 | 3.6 | 2.7 |
| 0.7.0 | 3.5 | 2.7 |
| 0.6.0 - 0.6.1 | 3.4 | 2.7 |
Expand Down
8 changes: 0 additions & 8 deletions lib/measures/radiant_slab_with_doas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,6 @@ Only applicable in radiant floor systems. This will greatly reduce system effect
**Required:** true,
**Model Dependent:** false

### Minimum Operating Hours
Fractional Hours Allowed, e.g. 30 min = 0.5
**Name:** minimum_operation,
**Type:** Double,
**Units:** ,
**Required:** true,
**Model Dependent:** false

### Switch Over Time
Minimum time limitation for when the system can switch between heating and cooling. Fractional hours allowed, e.g. 30 min = 0.5.
**Name:** switch_over_time,
Expand Down
9 changes: 0 additions & 9 deletions lib/measures/radiant_slab_with_doas/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,6 @@ def arguments(model)
proportional_gain.setDefaultValue(0.3)
args << proportional_gain

# make an argument for minimum operating hours
minimum_operation = OpenStudio::Measure::OSArgument.makeDoubleArgument('minimum_operation', true)
minimum_operation.setDisplayName('Minimum Operating Hours')
minimum_operation.setDescription('Fractional Hours Allowed, e.g. 30 min = 0.5')
minimum_operation.setDefaultValue(1.0)
args << minimum_operation

# make an argument for switch over time
switch_over_time = OpenStudio::Measure::OSArgument.makeDoubleArgument('switch_over_time', true)
switch_over_time.setDisplayName('Switch Over Time')
Expand Down Expand Up @@ -176,7 +169,6 @@ def run(model, runner, user_arguments)
include_carpet = runner.getBoolArgumentValue('include_carpet', user_arguments)
control_strategy = runner.getStringArgumentValue('control_strategy', user_arguments)
proportional_gain = runner.getDoubleArgumentValue('proportional_gain', user_arguments)
minimum_operation = runner.getDoubleArgumentValue('minimum_operation', user_arguments)
switch_over_time = runner.getDoubleArgumentValue('switch_over_time', user_arguments)
radiant_lockout = runner.getBoolArgumentValue('radiant_lockout', user_arguments)
lockout_start_time = runner.getDoubleArgumentValue('lockout_start_time', user_arguments)
Expand Down Expand Up @@ -289,7 +281,6 @@ def run(model, runner, user_arguments)
include_carpet: include_carpet,
control_strategy: control_strategy,
proportional_gain: proportional_gain,
minimum_operation: minimum_operation,
switch_over_time: switch_over_time,
radiant_lockout: radiant_lockout,
radiant_lockout_start_time: lockout_start_time,
Expand Down
71 changes: 31 additions & 40 deletions lib/measures/radiant_slab_with_doas/measure.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0"?>
<measure>
<schema_version>3.0</schema_version>
<schema_version>3.1</schema_version>
<name>radiant_slab_with_doas</name>
<uid>8091a0c3-7760-4da6-adf4-133d55872816</uid>
<version_id>d7f5c831-95c6-49e7-ad76-7f2052b7f620</version_id>
<version_modified>20230602T160042Z</version_modified>
<version_id>0aa5894b-04df-4143-9346-85d813fdac98</version_id>
<version_modified>2023-10-30T17:38:24Z</version_modified>
<xml_checksum>C49A7DAB</xml_checksum>
<class_name>RadiantSlabWithDoas</class_name>
<display_name>Radiant Slab with DOAS</display_name>
Expand Down Expand Up @@ -158,15 +158,6 @@ To reduce unmet hours, use an expanded comfort range as mentioned above, remove
<model_dependent>false</model_dependent>
<default_value>0.3</default_value>
</argument>
<argument>
<name>minimum_operation</name>
<display_name>Minimum Operating Hours</display_name>
<description>Fractional Hours Allowed, e.g. 30 min = 0.5</description>
<type>Double</type>
<required>true</required>
<model_dependent>false</model_dependent>
<default_value>1</default_value>
</argument>
<argument>
<name>switch_over_time</name>
<display_name>Switch Over Time</display_name>
Expand Down Expand Up @@ -283,12 +274,35 @@ To reduce unmet hours, use an expanded comfort range as mentioned above, remove
</attribute>
</attributes>
<files>
<file>
<filename>LICENSE.md</filename>
<filetype>md</filetype>
<usage_type>license</usage_type>
<checksum>BFFB1AA6</checksum>
</file>
<file>
<filename>README.md</filename>
<filetype>md</filetype>
<usage_type>readme</usage_type>
<checksum>9B9C0291</checksum>
</file>
<file>
<filename>README.md.erb</filename>
<filetype>erb</filetype>
<usage_type>readmeerb</usage_type>
<checksum>703C9964</checksum>
</file>
<file>
<version>
<software_program>OpenStudio</software_program>
<identifier>2.9.0</identifier>
<min_compatible>2.9.0</min_compatible>
</version>
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>10219EED</checksum>
</file>
<file>
<filename>USA_CA_San.Francisco.Intl.AP.724940_TMY3.epw</filename>
<filetype>epw</filetype>
Expand All @@ -307,40 +321,17 @@ To reduce unmet hours, use an expanded comfort range as mentioned above, remove
<usage_type>test</usage_type>
<checksum>7CBAD8AA</checksum>
</file>
<file>
<filename>single_zone_office_5A.osm</filename>
<filetype>osm</filetype>
<usage_type>test</usage_type>
<checksum>44FD3DF2</checksum>
</file>
<file>
<filename>README.md</filename>
<filetype>md</filetype>
<usage_type>readme</usage_type>
<checksum>8618B20F</checksum>
</file>
<file>
<filename>LICENSE.md</filename>
<filetype>md</filetype>
<usage_type>license</usage_type>
<checksum>BFFB1AA6</checksum>
</file>
<file>
<filename>radiant_slab_with_doas_test.rb</filename>
<filetype>rb</filetype>
<usage_type>test</usage_type>
<checksum>363DB98B</checksum>
<checksum>36014A9D</checksum>
</file>
<file>
<version>
<software_program>OpenStudio</software_program>
<identifier>2.9.0</identifier>
<min_compatible>2.9.0</min_compatible>
</version>
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>BE3F5928</checksum>
<filename>single_zone_office_5A.osm</filename>
<filetype>osm</filetype>
<usage_type>test</usage_type>
<checksum>44FD3DF2</checksum>
</file>
</files>
</measure>
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def test_number_of_arguments_and_argument_names

# get arguments and test that they are what we are expecting
arguments = measure.arguments(model)
assert_equal(15, arguments.size)
assert_equal(14, arguments.size)
assert_equal('remove_existing_hvac', arguments[0].name)
assert_equal('heating_plant_type', arguments[1].name)
assert_equal('cooling_plant_type', arguments[2].name)
Expand All @@ -146,13 +146,12 @@ def test_number_of_arguments_and_argument_names
assert_equal('include_carpet', arguments[5].name)
assert_equal('control_strategy', arguments[6].name)
assert_equal('proportional_gain', arguments[7].name)
assert_equal('minimum_operation', arguments[8].name)
assert_equal('switch_over_time', arguments[9].name)
assert_equal('radiant_lockout', arguments[10].name)
assert_equal('lockout_start_time', arguments[11].name)
assert_equal('lockout_end_time', arguments[12].name)
assert_equal('add_output_variables', arguments[13].name)
assert_equal('standards_template', arguments[14].name)
assert_equal('switch_over_time', arguments[8].name)
assert_equal('radiant_lockout', arguments[9].name)
assert_equal('lockout_start_time', arguments[10].name)
assert_equal('lockout_end_time', arguments[11].name)
assert_equal('add_output_variables', arguments[12].name)
assert_equal('standards_template', arguments[13].name)
end

def test_single_zone_office_5A_floor
Expand Down
2 changes: 1 addition & 1 deletion lib/openstudio/model_articulation/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

module OpenStudio
module ModelArticulation
VERSION = '0.8.0'
VERSION = '0.9.0'
end
end
4 changes: 2 additions & 2 deletions openstudio-model-articulation.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '~> 2.7.0'

spec.add_dependency 'bundler', '~> 2.1'
spec.add_dependency 'openstudio-extension', '~> 0.6.1'
spec.add_dependency 'openstudio-standards', '~> 0.4.0'
spec.add_dependency 'openstudio-extension', '~> 0.7.0'
spec.add_dependency 'openstudio-standards', '~> 0.5.0'

spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.9'
Expand Down

0 comments on commit acbb65f

Please sign in to comment.