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

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

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 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 OpenStudio@nrel.gov

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.

( 2018-11-19 16:13:14 -0500 )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 OpenStudio@nrel.gov

( 2018-11-19 16:43:43 -0500 )edit

Sort by » oldest newest most voted

@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.

more

It worked. Thank you very much for your help!

( 2018-11-20 14:06:18 -0500 )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?

( 2019-01-30 20:17:13 -0500 )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?

( 2019-01-30 20:25:21 -0500 )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?

( 2019-01-30 21:00:46 -0500 )edit

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

( 2019-01-30 21:09:33 -0500 )edit