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

Running WWR with DOE Prototype building giving this error optional not Initialized

asked 2021-06-30 08:52:46 -0500

Rwadhwa910's avatar

updated 2021-07-11 16:05:17 -0500

I am running set wwr measure along with DOE prototype building (Secondary School) in PAT and OS but its giving me error when I apply set WWR measure.Below is the error that I am getting.

Optional not initialized C:/Users/rwadhwa/AppData/Local/Temp/osmodel-1625060736-1/resources/measures/Set Window to Wall Ratio by Facade/measure.rb:220:in get' C:/Users/rwadhwa/AppData/Local/Temp/osmodel-1625060736-1/resources/measures/Set Window to Wall Ratio by Facade/measure.rb:220:inblock in run' C:/Users/rwadhwa/AppData/Local/Temp/osmodel-1625060736-1/resources/measures/Set Window to Wall Ratio by Facade/measure.rb:208:in each' C:/Users/rwadhwa/AppData/Local/Temp/osmodel-1625060736-1/resources/measures/Set Window to Wall Ratio by Facade/measure.rb:208:inrun' :/ruby/2.5.0/gems/openstudio-workflow-2.1.0/lib/openstudio/workflow/util/measure.rb:515:in `apply_measure'

The strange part is When I change the Buildign type to primary school or other the measure will run without any error.

edit retag flag offensive close merge delete

Comments

Similar to other prototype WWR question did you intend to tag this as legacy-openstudio? Related to this error, the directory name of the measure with spaces is suspicions. It doesn't match the GiitHub.com name or the UUID string that would come from BCL. the reason I ask is maybe that measure has been modified. Line 220 does get parent surface for a sub-surface and then gets the parent space for the surface. If the model had be hand edited in text editor without the SDK or otherwise had orphaned surfaces this could happen.

David Goldwasser's avatar David Goldwasser  ( 2021-07-02 14:31:12 -0500 )edit

@David Goldwasser So now I am using the measure from the directory that you have specified, I am stilling getting the same error, The main concern is when I am using create doe prototype building measure and using Secondary school as my building I am getting this error If I select any other building type it won't give me this error also If I run the measure using my openstudio model I won' t get any error.

Rwadhwa910's avatar Rwadhwa910  ( 2021-07-08 10:45:35 -0500 )edit

"[10:39:08.277871 ERROR] Optional not initialized ", " C:/Users/rwadhwa/sim/Bar_model/temp_data/analysis_c7ac3195-6b44-4980-8218-c73eb0932e1d/measures/SetWindowToWallRatioByFacade/measure.rb:220:in get' ", " C:/Users/rwadhwa/sim/Bar_model/temp_data/analysis_c7ac3195-6b44-4980-8218-c73eb0932e1d/measures/SetWindowToWallRatioByFacade/measure.rb:220:inblock in run' ", " C:/Users/rwadhwa/sim/Bar_model/temp_data/analysis_c7ac3195-6b44-4980-8218-c73eb0932e1d/measures/SetWindowToWallRatioByFacade/measure.rb:208:in `each' ", " C:/Users/rwadhwa/sim/Bar_model/temp_data/analysis_c7ac3195-6b44-4980-8218

Rwadhwa910's avatar Rwadhwa910  ( 2021-07-08 10:46:15 -0500 )edit

I can see this and filed an issue, will look at it soon https://github.com/NREL/openstudio-mo...

David Goldwasser's avatar David Goldwasser  ( 2021-07-09 18:31:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-07-09 22:56:54 -0500

@Rwadhwa910 It appears there is an orphan sub-surface in the geometry for the prototype secondary school used for the measure. If you run the measure to remove orphan objects it will remove this. I have an issue filed about the orphan surface.

Follow advise on this post to change exterior door logic argument to Remove Doors until the issues with splitting base surfaces at doors can be resolved.

edit flag offensive delete link more

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: 2021-06-30 08:52:46 -0500

Seen: 122 times

Last updated: Jul 09 '21