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

Revision history [back]

You should call addBranchForZone(Model&, HVACComponent& atu) instead:

[1] OpenStudio-PAT(main)> m = Model.new; z = ThermalZone.new(m); a = AirLoopHVAC.new(m); c = CoilHeatingElectric.new(m); fan = FanConstantVolume.new(m); atu = AirTerminalSingleDuctSeriesPIUReheat.new(m, fan, c);
[2] OpenStudio-PAT(main)> a.multiAddBranchForZone(z, atu) # or a.addBranchForZone(z, atu)
=> true
[3] OpenStudio-PAT(main)> puts atu
OS:AirTerminal:SingleDuct:SeriesPIU:Reheat,
  {b5c222b7-ca79-41c7-8521-3f524e131e93}, !- Handle
  Air Terminal Single Duct Series PIU Reheat 1, !- Name
  ,                                       !- Availability Schedule Name
  autosize,                               !- Maximum Air Flow Rate {m3/s}
  autosize,                               !- Maximum Primary Air Flow Rate {m3/s}
  autosize,                               !- Minimum Primary Air Flow Fraction
  {cd4e2d2f-3b79-4df3-8891-68f67d55c5ab}, !- Supply Air Inlet Node
  {c9e506f7-f556-4c32-869a-8ca153044dbc}, !- Secondary Air Inlet Node
  {d361476e-9149-439e-b96f-708cc63df0e8}, !- Outlet Node
  ,                                       !- Reheat Coil Air Inlet Node
  ,                                       !- Zone Mixer Name
  {fc792d34-967a-45a2-84d4-723347679657}, !- Fan Name
  {c25187dc-a753-4f97-a78c-ee26673b8efa}, !- Reheat Coil Name
  autosize,                               !- Maximum Hot Water or Steam Flow Rate {m3/s}
  0,                                      !- Minimum Hot Water or Steam Flow Rate {m3/s}
  0.001;                                  !- Convergence Tolerance

You should call addBranchForZone(Model&, HVACComponent& atu) instead:instead. This is a known bug cf OpenStudio#2023

[1] OpenStudio-PAT(main)> m = Model.new; z = ThermalZone.new(m); a = AirLoopHVAC.new(m); c = CoilHeatingElectric.new(m); fan = FanConstantVolume.new(m); atu = AirTerminalSingleDuctSeriesPIUReheat.new(m, fan, c);
[2] OpenStudio-PAT(main)> a.multiAddBranchForZone(z, atu) # or a.addBranchForZone(z, atu)
=> true
[3] OpenStudio-PAT(main)> puts atu
OS:AirTerminal:SingleDuct:SeriesPIU:Reheat,
  {b5c222b7-ca79-41c7-8521-3f524e131e93}, !- Handle
  Air Terminal Single Duct Series PIU Reheat 1, !- Name
  ,                                       !- Availability Schedule Name
  autosize,                               !- Maximum Air Flow Rate {m3/s}
  autosize,                               !- Maximum Primary Air Flow Rate {m3/s}
  autosize,                               !- Minimum Primary Air Flow Fraction
  {cd4e2d2f-3b79-4df3-8891-68f67d55c5ab}, !- Supply Air Inlet Node
  {c9e506f7-f556-4c32-869a-8ca153044dbc}, !- Secondary Air Inlet Node
  {d361476e-9149-439e-b96f-708cc63df0e8}, !- Outlet Node
  ,                                       !- Reheat Coil Air Inlet Node
  ,                                       !- Zone Mixer Name
  {fc792d34-967a-45a2-84d4-723347679657}, !- Fan Name
  {c25187dc-a753-4f97-a78c-ee26673b8efa}, !- Reheat Coil Name
  autosize,                               !- Maximum Hot Water or Steam Flow Rate {m3/s}
  0,                                      !- Minimum Hot Water or Steam Flow Rate {m3/s}
  0.001;                                  !- Convergence Tolerance