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

Why do I get an error when applying "AedgOfficeHvacRadiantDoas" measure for DOE prototype buildings in Open Studio?

asked 2018-11-17 16:23:22 -0600

andresgallardo gravatar image

updated 2018-11-20 08:35:39 -0600

I want to modify the existing HVAC system of a DOE prototype building with a Radiant heating/cooling system. For doing this, I wanted to apply the "AedgOfficeHvacRadiantDoas" measure to a Medium office DOE prototype building previously loaded as a measure in OpenStudio. However, I am getting an error that says: "undefined local variable or method 'plantLoop' for OsLib_HVAC:Module". How can I solve this issue? Thanks in advance for any help you can provide.

edit retag flag offensive close merge delete


Can you confirm that you have the most current version of the measure on BCL. If you still see the same issue with that version then please email the seed model and the argument values you used for the measure to

Can you also confirm what version of OpenStudio you are using, and if you have any other measures in your workflow in addition to AedgOfficeHvacRadiantDoas.

David Goldwasser gravatar image David Goldwasser  ( 2018-11-19 16:13:14 -0600 )edit

I have the most current version of the "AedgOfficeHvacRadiantDoas" measure. I am using OpenStudio v2.6. I also have the "Create DOE Prototype building measure" in my workflow which is applied before the "AedgOfficeHvacRadiantDoas" measure. As you suggested, I am sending the seed model to

andresgallardo gravatar image andresgallardo  ( 2018-11-19 16:43:43 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-11-19 21:56:18 -0600

@andresgallardo thanks for the file. I filed an OpenStudio issue for this, and I'll update it on BCL when I get a chance but you can update your local copy pretty easily for now.

The "os_lib_hvac.rb" file has a method to remove existing plant loops that aren't used for SWH. starts a loop with this line.

plantLoops.each do |plantloop|

Then a few lines below on line 230 I refer to "platLoop" with uppercase "L" instead of "plantloop". The same error is made on line 238. If you fix line 230 and 238 the measure runs.

One note related to the optional argument for return air plenum zones. Select the space type used in the prototype model as the plenum which is named "Plenum Space Type". The measure will loop through spaces assigned to this space type, and will identify conditioned zones below them. It will then assign the select space as a return air plenum for the lower zone.

edit flag offensive delete link more


It worked. Thank you very much for your help!

andresgallardo gravatar image andresgallardo  ( 2018-11-20 14:06:18 -0600 )edit

@andresgallardo @Davidgoldwasser I am trying the same measure but getting an error. I am not able to edit the ruby file. Where should I look for the file to edit line 230?

Ranjani gravatar image Ranjani  ( 2019-01-30 20:17:13 -0600 )edit

@andresgallardo I could open the os_lib_havc.rb file and tried editing line 230, but it still throws an error. Can you please help me with this?

Ranjani gravatar image Ranjani  ( 2019-01-30 20:25:21 -0600 )edit

@andresgallardo I fixed the error and the simulation was successful. But I didnt select any space type under the Input section. Will that be okay?

Ranjani gravatar image Ranjani  ( 2019-01-30 21:00:46 -0600 )edit

also want to confirm if this measure is for electric radiant systems? not hyrdronic?

Ranjani gravatar image Ranjani  ( 2019-01-30 21:09:33 -0600 )edit

Your Answer

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

Add Answer


Question Tools


Asked: 2018-11-17 16:23:22 -0600

Seen: 1,911 times

Last updated: Nov 19 '18