First time here? Check our help page!
1

Geothermal CLI Issue

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|
  condenser_loop.addDemandBranchForComponent(heating_coil)
end

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

jmoody's avatar
355
jmoody
asked 2018-03-13 14:34:40 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2018-03-13 14:58:43 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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.

shorowit's avatar
11.8k
shorowit
answered 2018-03-13 14:42:57 -0500, updated 2018-03-13 14:43:20 -0500
edit flag offensive 0 remove flag delete link

Comments

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's avatar jmoody (2018-03-13 14:49:23 -0500) edit
add a comment see more comments