First time here? Check out the Help page!

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

Defining Inlet and Outlet Node Names

asked 1 year ago

MDW's avatar

updated 1 year ago

Hello, I am writing an ASHP measure on Ruby to be used in Open Studio and am encountering an error. The error file reads as the following:

  ** Severe  ** <root>[Coil:Cooling:DX:SingleSpeed][Coil Cooling DX Single Speed 3] - Missing required property 'air_inlet_node_name'.
   ** Severe  ** <root>[Coil:Cooling:DX:SingleSpeed][Coil Cooling DX Single Speed 3] - Missing required property 'air_outlet_node_name'.
   ** Severe  ** <root>[CoilSystem:Cooling:DX][Coil Cooling DX Single Speed 3 CoilSystem] - Missing required property 'dx_cooling_coil_system_inlet_node_name'.
   ** Severe  ** <root>[CoilSystem:Cooling:DX][Coil Cooling DX Single Speed 3 CoilSystem] - Missing required property 'dx_cooling_coil_system_outlet_node_name'.
   ** Severe  ** <root>[CoilSystem:Cooling:DX][Coil Cooling DX Single Speed 3 CoilSystem] - Missing required property 'dx_cooling_coil_system_sensor_node_name'.
** Severe  ** <root>[SetpointManager:MixedAir][Setpoint Manager Mixed Air 2] - Missing required property 'fan_inlet_node_name'.
  ** Severe  ** <root>[SetpointManager:SingleZone:Reheat][Setpoint Manager Single Zone Reheat 1] - Missing required property 'control_zone_name'.
** Severe  ** <root>[SetpointManager:SingleZone:Reheat][Setpoint Manager Single Zone Reheat 1] - Missing required property 'zone_inlet_node_name'.
** Severe  ** <root>[SetpointManager:SingleZone:Reheat][Setpoint Manager Single Zone Reheat 1] - Missing required property 'zone_node_name'.
**  Fatal  ** Errors occurred on processing input file. Preceding condition(s) cause termination.

Seems like the DX cooling coil doesn't know where to go because the nodes are not defined. Is there a method that can define the nodes for the system in a standardized way? As context, I initialized a new cooling coil with the following lines (similar for heating coil):

new_cooling_coil = OpenStudio::Model::CoilCoolingDXSingleSpeed.new(model)
air_loop_hvac_unitary_system.setCoolingCoil(new_cooling_coil)

Thank you!

Preview: (hide)

Comments

Learning that chatGPT doesn't produce valid code eh? :) Something just need to be hooked somewhere. Maybe you forgot to add the Unitary to an AirLoopHVAC or a ThermalZone? It's hard to tell without seeing the code in its entirety. You can find some examples on the OpenStudio-resources repository (this the regression testing suite we use to test the OpenStudio SDK and also serves as an API demonstration). Check out for eg unitary_system.rb

Julien Marrec's avatar Julien Marrec  ( 1 year ago )
1

Thank you for the tips, Julien. Ah that unitary_system script is helpful - and yes, I had not added the supply node to the unitary system.

Although I wrote this measure on my own, I also have a different version with AI as a start point (can be helpful as a jumping off point sometimes, but definitely far from perfect!)

MDW's avatar MDW  ( 1 year ago )

@MDW I turned it into an answer. So you can accept it to mark the thread as resolved.

Julien Marrec's avatar Julien Marrec  ( 1 year ago )

1 Answer

Sort by » oldest newest most voted
0

answered 1 year ago

Something just need to be hooked somewhere. Maybe you forgot to add the Unitary to an AirLoopHVAC or a ThermalZone? It's hard to tell without seeing the code in its entirety.

You can find some examples on the OpenStudio-resources repository (this the regression testing suite we use to test the OpenStudio SDK and also serves as an API demonstration). Check out for eg unitary_system.rb

Preview: (hide)
link

Comments

That was helpful, thank you.

I am still seeing that the zone inlet node name and control zone name properties are missing though in the error log - I am creating an AirLoopHVACUnitarySystem similar to the unitary_system.rb measure linked above. After getting the airOutletModelObject, I use SetpointManagerSingleZoneReheat.. seems from this documentation that I am missing the properties as per my error https://bigladdersoftware.com/epx/doc...

Any ideas on how to define these properties, if they should be

MDW's avatar MDW  ( 1 year ago )

Make a new question and include enough info to reproduce the error. But basically, if you have added the ThermalZone to the airloopHVAC before you added the SetpointManager (spm) to the loop node, the Control Zone should be filled automatically. Otherwise, call spm.setControlZone(z). It's also possible your thermal zone is not being translated because of lack of geometry / loads.

Julien Marrec's avatar Julien Marrec  ( 1 year ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 1 year ago

Seen: 203 times

Last updated: Jun 06 '23