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

Geothermal CLI Issue

asked 2018-03-13 14:34:40 -0500

jmoody gravatar image

updated 2018-03-13 14:58:43 -0500

Alright, so still learning the CLI and have been successful at making my life easier on our larger models by using it to overwrite large amounts of repetitive inputs. I have, however, ran into a snag. I am modifying the AEDG GSHP measure for my purposes. Basically I want to set the outdoor air on the ZoneWatertoAirHeatPumps to 0 and then build the loop and connect the heat pumps to the condenser loop. The following script works at two out of the three tasks mentioned but I cannot get the heat pumps connected to the condenser loop. I was trying to loop through the CoilHeatingWaterToAirHeatPumpEquationFit and assign them to the condenser loop but I keep getting an error. Same with the Cooling Coil.

Here is the script for where I am trying to make a connection:

model.getCoilHeatingWaterToAirHeatPumpEquationFit.each do |heating_coil|

When I run it form the CLI I get and Exception: wrong number of arguments (0 for 1).

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-03-13 14:42:57 -0500

updated 2018-03-13 14:43:20 -0500

It should be model.getCoilHeatingWaterToAirHeatPumpEquationFits (note the "s" on the end). This paradigm is true for all OpenStudio objects where, for object Foo, you specify model.getFoos.

edit flag offensive delete link more


Thank you so much. I just glazed right over that. I had seen it before in other measures and was pretty sure that was the case but you just verified it.

jmoody gravatar imagejmoody ( 2018-03-13 14:49:23 -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: 2018-03-13 14:34:40 -0500

Seen: 25 times

Last updated: Mar 13