First time here? Check out the Help page!

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 8 years ago

gokul's avatar

updated 5 years ago

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,

Preview: (hide)

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  ( 8 years ago )
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  ( 8 years ago )

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

gokul's avatar gokul  ( 8 years ago )
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  ( 8 years ago )

2 Answers

Sort by » oldest newest most voted
2

answered 8 years ago

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.

Preview: (hide)
link
2

answered 8 years ago

updated 8 years ago

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
Preview: (hide)
link

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  ( 8 years ago )
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  ( 8 years ago )
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  ( 8 years ago )

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  ( 8 years ago )
1

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

MatthewSteen's avatar MatthewSteen  ( 8 years ago )

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: 8 years ago

Seen: 682 times

Last updated: Mar 27 '17