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

Error : Undefined local variable

asked 2019-11-07 22:02:21 -0500

RabindraKumar's avatar

I am solving baseline model using measure for multi-storey building. During the execution of measure one error encountered. Could you please look into it & suggest the way of rectify the model.image description

Here I attached my file for the concern.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-11-08 14:30:53 -0500

Have you tried running your model before applying the baseline measure?

In the model you linked, 500 out of 666 spaces do not have a thermal zone. EnergyPlus is based on thermal zones and will fail if you have spaces in your model without them.

Get your proposed model running first before trying to implement the baseline building measure.

edit flag offensive delete link more


Thank You.

As per your suggestion I changed all the spaces as unconditioned & run the simulation. Baseline for hvac loop is working fine But when I use base line measure for space it was showing the same error as per the attachment. link text


link text

RabindraKumar's avatar RabindraKumar  ( 2019-11-11 07:30:47 -0500 )edit

I get many severe errors in the .osm file you linked to above that cause the simulation to fail. There are multiple surfaces with different numbers of vertices than the surfaces they are matched to. To fix this, first greatly reduce the number of spaces in your model. Combine spaces with like internal loads and exterior exposure, and assign like adjacent spaces to the same thermal zone. Then run the surface intersection and matching measure on BCL. Run your model without any measures for 1 week and see if you can get the model to simulate without errors.

mdahlhausen's avatar mdahlhausen  ( 2019-11-11 09:59:57 -0500 )edit

Can you please give me a favor through a video tutorial? I couldn't understand how to make number of rooms into a single space where each room having different loads. If I run surface matching through BCl it creates more number of surfaces. I would be more grateful for your tutorial.

RabindraKumar's avatar RabindraKumar  ( 2019-11-11 22:19:48 -0500 )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

1 follower


Asked: 2019-11-07 22:02:21 -0500

Seen: 118 times

Last updated: Nov 08 '19