Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

Has MaterialProperty:GlazingSpectralData been wrapped in OS?

asked 2017-03-23 12:11:27 -0600

gokul's avatar

updated 2020-01-25 18:25:14 -0600

I am trying to import my Glazing properties from WINDOW into OS 1.14.0, by generating an idf and importing it into OS. When I do this, my Spectral data set doesn't forward translate to idf, similar to this issue. The 'Window Glass Spectral Data Set Name' is blank(image) image.

The issue mentioned above in Github asks the same question, and identifies that the MaterialProperty:GlazingSpectralData is not wrapped in OS. But it seems to have been marked as a milestone for OS 1.14 and closed, so I was wondering if this has been fixed? If not, do I have to write an Eplus script to read this object from the idf? Thanks,

edit retag flag offensive close merge delete

Comments

Also, if I use this glazing with 'Optical Data Type' set as SpectralAverage, the model runs to completion, even if the Solar and Visible transmittance fields are blank. Where do the values for these come from? Sorry in advance for the barrage of questions.

gokul's avatar gokul  ( 2017-03-23 14:18:16 -0600 )edit
1

From your question it sounds like you're trying to import IDF objects to OS, which would require a reverse translation of the WINDOW objects not a forward translation. Are you using the Inject IDF Objects measure?

MatthewSteen's avatar MatthewSteen  ( 2017-03-23 16:32:37 -0600 )edit

I was using the 'Import> idfConstructionSchedules' measure in SketchUp OS Plugin.

gokul's avatar gokul  ( 2017-03-23 17:07:11 -0600 )edit
1

I'm not familiar with the Extensions > OpenStudio > Import > Import EnergyPlus Idf Constructions measure in the SketchUp Plugin, but it doesn't seem appropriate for importing these objects.

MatthewSteen's avatar MatthewSteen  ( 2017-03-23 20:00:17 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2017-03-27 13:22:22 -0600

gokul's avatar

Thanks Matthew, that's exactly what I managed to do. To summarize what I did:

I imported my constructions from WINDOW 6 through the SketchUp script: Extensions>>Openstudio>>Import>>Import EnergyPlus Idf Constructions. This doesn't import the MaterialProperty:GlazingSpectralData object, and leaves the 'Window Glass Spectral Data Set Name' blank in the imported 'WindowMaterial:Glazing'.

I created an EnergyPlus script which imports 'MaterialProperty:GlazingSpectralData' object from the specified idf path and also searches and stores the 'Name' of the Spectral Data Set. I then set the 'Window Glass Spectral Data Set Name' of the required WindowMaterial:Glazing with the Name extracted.

Note: I realized that the it would have been easier to import the whole idf through the Eplus script, but then I couldn't assign my new window constructions to specific windows in the SketchUp app. Also, I'm including this as an answer, and not a comment because of the length of the response.

edit flag offensive delete link more
2

answered 2017-03-23 14:22:41 -0600

updated 2017-03-23 14:46:30 -0600

Yes, it looks like MaterialPropertyGlazingSpectralData was added to the SDK for version 1.14.0.

Testing with the Ruby bindings confirms it.


require 'openstudio'

model = OpenStudio::Model::Model.new

mpgsd = OpenStudio::Model::MaterialPropertyGlazingSpectralData.new(model)

puts model

OS:Version,
  {aaed64b9-c1d7-4808-8a19-0b323eaa3884}, !- Handle
  1.14.0;                                 !- Version Identifier

OS:MaterialProperty:GlazingSpectralData,
  {8404302e-0f13-4db1-9fda-2b6e4f2dcb35}, !- Handle
  Material Property Glazing Spectral Data 1; !- Name
edit flag offensive delete link more

Comments

Thanks Matthew Steen, I am not sure why OS is not recognizing the 'Window Glass Spectral Data Set Name' from the imported idf in that case.

gokul's avatar gokul  ( 2017-03-23 15:10:00 -0600 )edit
1

Ok, trying to reverse translate the IDFs from WINDOW shows this:

[openstudio.model.StandardGlazing] <0> StandardGlazing::setWindowGlassSpectralDataSetName is deprecated, use StandardGlazing::setWindowGlassSpectralDataSet

So this could be a bug. Maybe @macumber can comment.

MatthewSteen's avatar MatthewSteen  ( 2017-03-23 20:36:40 -0600 )edit
1

Which leads me to believe that you'll need a "hybrid" EnergyPlus/OpenStudio approach, e.g. make your OSM ready to accept the WINDOW IDF and then use an EnergyPlus measure at runtime.

MatthewSteen's avatar MatthewSteen  ( 2017-03-23 20:37:00 -0600 )edit

Thanks for all the help Matthew:) Used these to create an Eplus script approach, and have detailed the procedure below (It was too ling of a response to comment!)

gokul's avatar gokul  ( 2017-03-27 13:24:04 -0600 )edit
1

Nice. Feel free to accept your own answer as well.

MatthewSteen's avatar MatthewSteen  ( 2017-03-27 13:39:10 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2017-03-23 12:11:27 -0600

Seen: 655 times

Last updated: Mar 27 '17