honeybee-openstudio 2.22.4 → 2.22.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/honeybee-openstudio.gemspec +1 -1
 - data/lib/honeybee/_defaults/energy_default.json +8 -2
 - data/lib/honeybee/model.rb +1 -0
 - data/lib/measures/from_honeybee_model_to_gbxml/measure.rb +1 -0
 - data/lib/to_openstudio/construction/window.rb +18 -9
 - data/lib/to_openstudio/geometry/room.rb +8 -0
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: facc419b5d36dbaf133a0d28ad9b23c62f9118b3188f3c181427f12b35106a88
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c3a317bbb9c039e61faff574cbaa5d13c4a878fd67aed76d2e9e968ad41c36df
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: b7bae7a4d908596590889e1d3effeb73854d97745530c8ff07b71c5870a1e4b16decade9637bd85ed5eb1a7fea11334f6b27e38cb441566996e660ed02c539a5
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: d97616471898b7d43fd6344725d684156471741a8729657d70a78f24c1efe42709e891833f09a9ec229d1c0594328e79a7cf4e6af80e2ee62ac319c3c59954d2
         
     | 
    
        data/honeybee-openstudio.gemspec
    CHANGED
    
    | 
         @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) 
     | 
|
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            Gem::Specification.new do |spec|
         
     | 
| 
       6 
6 
     | 
    
         
             
              spec.name          = 'honeybee-openstudio'
         
     | 
| 
       7 
     | 
    
         
            -
              spec.version       = '2.22. 
     | 
| 
      
 7 
     | 
    
         
            +
              spec.version       = '2.22.5'
         
     | 
| 
       8 
8 
     | 
    
         
             
              spec.authors       = ['Tanushree Charan', 'Dan Macumber', 'Chris Mackey', 'Mostapha Sadeghipour Roudsari']
         
     | 
| 
       9 
9 
     | 
    
         
             
              spec.email         = ['tanushree.charan@nrel.gov', 'chris@ladybug.tools']
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
         @@ -54,7 +54,10 @@ 
     | 
|
| 
       54 
54 
     | 
    
         
             
                        "identifier": "Generic Single Pane",
         
     | 
| 
       55 
55 
     | 
    
         
             
                        "materials": [
         
     | 
| 
       56 
56 
     | 
    
         
             
                            "Generic Clear Glass"
         
     | 
| 
       57 
     | 
    
         
            -
                        ]
         
     | 
| 
      
 57 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 58 
     | 
    
         
            +
                        "u_factor": 5.731373,
         
     | 
| 
      
 59 
     | 
    
         
            +
                        "shgc": 0.824407,
         
     | 
| 
      
 60 
     | 
    
         
            +
                        "vt": 0.88
         
     | 
| 
       58 
61 
     | 
    
         
             
                    },
         
     | 
| 
       59 
62 
     | 
    
         
             
                    {
         
     | 
| 
       60 
63 
     | 
    
         
             
                        "type": "ShadeConstruction",
         
     | 
| 
         @@ -170,7 +173,10 @@ 
     | 
|
| 
       170 
173 
     | 
    
         
             
                            "Generic Low-e Glass",
         
     | 
| 
       171 
174 
     | 
    
         
             
                            "Generic Window Air Gap",
         
     | 
| 
       172 
175 
     | 
    
         
             
                            "Generic Clear Glass"
         
     | 
| 
       173 
     | 
    
         
            -
                        ]
         
     | 
| 
      
 176 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 177 
     | 
    
         
            +
                        "u_factor": 1.687787,
         
     | 
| 
      
 178 
     | 
    
         
            +
                        "shgc": 0.43651,
         
     | 
| 
      
 179 
     | 
    
         
            +
                        "vt": 0.635473
         
     | 
| 
       174 
180 
     | 
    
         
             
                    },
         
     | 
| 
       175 
181 
     | 
    
         
             
                    {
         
     | 
| 
       176 
182 
     | 
    
         
             
                        "type": "OpaqueConstructionAbridged",
         
     | 
    
        data/lib/honeybee/model.rb
    CHANGED
    
    
| 
         @@ -86,6 +86,7 @@ class FromHoneybeeModelToGbxml < OpenStudio::Measure::ModelMeasure 
     | 
|
| 
       86 
86 
     | 
    
         
             
                  return false
         
     | 
| 
       87 
87 
     | 
    
         
             
                end
         
     | 
| 
       88 
88 
     | 
    
         
             
                honeybee_model = Honeybee::Model.read_from_disk(model_json)
         
     | 
| 
      
 89 
     | 
    
         
            +
                $simple_window_cons = true
         
     | 
| 
       89 
90 
     | 
    
         
             
                STDOUT.flush
         
     | 
| 
       90 
91 
     | 
    
         
             
                os_model = honeybee_model.to_openstudio_model(model)
         
     | 
| 
       91 
92 
     | 
    
         
             
                STDOUT.flush
         
     | 
| 
         @@ -50,16 +50,25 @@ module Honeybee 
     | 
|
| 
       50 
50 
     | 
    
         
             
                  # create material vector
         
     | 
| 
       51 
51 
     | 
    
         
             
                  os_materials = OpenStudio::Model::MaterialVector.new
         
     | 
| 
       52 
52 
     | 
    
         
             
                  # loop through each layer and add to material vector
         
     | 
| 
       53 
     | 
    
         
            -
                  if @hash 
     | 
| 
       54 
     | 
    
         
            -
                     
     | 
| 
      
 53 
     | 
    
         
            +
                  if $simple_window_cons && @hash[:u_factor]
         
     | 
| 
      
 54 
     | 
    
         
            +
                    os_simple_glazing = OpenStudio::Model::SimpleGlazing.new(openstudio_model)
         
     | 
| 
      
 55 
     | 
    
         
            +
                    os_simple_glazing.setName(@hash[:identifier] + '_SimpleGlazSys')
         
     | 
| 
      
 56 
     | 
    
         
            +
                    os_simple_glazing.setUFactor(@hash[:u_factor])
         
     | 
| 
      
 57 
     | 
    
         
            +
                    os_simple_glazing.setSolarHeatGainCoefficient(@hash[:shgc])
         
     | 
| 
      
 58 
     | 
    
         
            +
                    os_simple_glazing.setVisibleTransmittance(@hash[:vt])
         
     | 
| 
      
 59 
     | 
    
         
            +
                    os_materials << os_simple_glazing
         
     | 
| 
       55 
60 
     | 
    
         
             
                  else
         
     | 
| 
       56 
     | 
    
         
            -
                     
     | 
| 
       57 
     | 
    
         
            -
             
     | 
| 
       58 
     | 
    
         
            -
             
     | 
| 
       59 
     | 
    
         
            -
             
     | 
| 
       60 
     | 
    
         
            -
                     
     | 
| 
       61 
     | 
    
         
            -
             
     | 
| 
       62 
     | 
    
         
            -
                       
     | 
| 
      
 61 
     | 
    
         
            +
                    if @hash.key?(:layers)
         
     | 
| 
      
 62 
     | 
    
         
            +
                      mat_key = :layers
         
     | 
| 
      
 63 
     | 
    
         
            +
                    else
         
     | 
| 
      
 64 
     | 
    
         
            +
                      mat_key = :materials
         
     | 
| 
      
 65 
     | 
    
         
            +
                    end
         
     | 
| 
      
 66 
     | 
    
         
            +
                    @hash[mat_key].each do |material_identifier|
         
     | 
| 
      
 67 
     | 
    
         
            +
                      material = openstudio_model.getMaterialByName(material_identifier)
         
     | 
| 
      
 68 
     | 
    
         
            +
                      unless material.empty?
         
     | 
| 
      
 69 
     | 
    
         
            +
                        os_material = material.get
         
     | 
| 
      
 70 
     | 
    
         
            +
                        os_materials << os_material
         
     | 
| 
      
 71 
     | 
    
         
            +
                      end
         
     | 
| 
       63 
72 
     | 
    
         
             
                    end
         
     | 
| 
       64 
73 
     | 
    
         
             
                  end
         
     | 
| 
       65 
74 
     | 
    
         
             
                  os_construction.setLayers(os_materials)
         
     | 
| 
         @@ -105,6 +105,14 @@ module Honeybee 
     | 
|
| 
       105 
105 
     | 
    
         
             
                    os_thermal_zone.setMultiplier(@hash[:multiplier])
         
     | 
| 
       106 
106 
     | 
    
         
             
                  end
         
     | 
| 
       107 
107 
     | 
    
         | 
| 
      
 108 
     | 
    
         
            +
                  # assign the geometry properties if they exist
         
     | 
| 
      
 109 
     | 
    
         
            +
                  if @hash[:ceiling_height]
         
     | 
| 
      
 110 
     | 
    
         
            +
                    os_thermal_zone.setCeilingHeight(@hash[:ceiling_height])
         
     | 
| 
      
 111 
     | 
    
         
            +
                  end
         
     | 
| 
      
 112 
     | 
    
         
            +
                  if @hash[:volume]
         
     | 
| 
      
 113 
     | 
    
         
            +
                    os_thermal_zone.setVolume(@hash[:volume])
         
     | 
| 
      
 114 
     | 
    
         
            +
                  end
         
     | 
| 
      
 115 
     | 
    
         
            +
             
     | 
| 
       108 
116 
     | 
    
         
             
                  # assign the story
         
     | 
| 
       109 
117 
     | 
    
         
             
                  if @hash[:story]  # the users has specified the name of the story
         
     | 
| 
       110 
118 
     | 
    
         
             
                    story = openstudio_model.getBuildingStoryByName(@hash[:story])
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: honeybee-openstudio
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 2.22. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.22.5
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Tanushree Charan
         
     | 
| 
         @@ -11,7 +11,7 @@ authors: 
     | 
|
| 
       11 
11 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       12 
12 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       13 
13 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       14 
     | 
    
         
            -
            date: 2021-09- 
     | 
| 
      
 14 
     | 
    
         
            +
            date: 2021-09-12 00:00:00.000000000 Z
         
     | 
| 
       15 
15 
     | 
    
         
             
            dependencies:
         
     | 
| 
       16 
16 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       17 
17 
     | 
    
         
             
              name: bundler
         
     |