1

Add ChillerElectricEIR to tertiary loop

I'm trying to revive an old OpenStudio measure I wrote from a few years back that added the ChillerElectricEIR object to a tertiary loop to function as a heat recovery system so I would end up with a supply-side connection on a chiller water loop and a hot water loop as well as a demand-side connection on a condenser system. We can't manually drag/drop the object in the GUI to a third plant loop so the measure relied on the function 'addToTertiaryNode.' It appears this function is not longer available in the newer versions of OS so I'm looking for something equivalent. Does that function exist?

jt1234's avatar
331
jt1234
asked 2023-12-07 06:38:22 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2023-12-07 08:52:41 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0
  1. Yes, you can do it in the OpenStudio Application.

    • Put a chiller onto the supply side of the Chilled water loop, and then on the demand side (via the My Model tab!) of the condenser loop.
    • Now go to your heat recovery loop, and drag again the same chiller from "My Model" tab to the demand side of that loop. Your chiller will be on all three loops.
    • The OpenStudio SDK logic in addToNode is that if you try to connect a ChillerElectricEIR to the demand side of a loop, if it's already connected on the demand side and does not have a Heat Recovery yet, then addToTertiaryNode is called. (see C++ source here)
  2. addToTertiaryNode is still perfectly valid. ChillerElectricEIR is a WaterToWaterComponent, and the method is there (and functional, I just tested). https://s3.amazonaws.com/openstudio-s...

    • Your mistake is very likely that you aren't working with the chiller as a ChillerElectricEIR or a WaterToWaterComponent but probably as an HVACComponent or a ModelObject. You need to cast it, via modelObject.to_ChillerElectricEIR.get
Julien Marrec's avatar
29.7k
Julien Marrec
answered 2023-12-07 09:05:52 -0500, updated 2023-12-07 09:06:09 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments