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 2023-05-31 10:07:55 -0500

MDW's avatar

updated 2023-05-31 11:13:01 -0500

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!

edit retag flag offensive close merge delete

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  ( 2023-06-01 02:07:17 -0500 )edit
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  ( 2023-06-01 10:24:44 -0500 )edit

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

Julien Marrec's avatar Julien Marrec  ( 2023-06-02 01:56:13 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-02 01:55:42 -0500

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

edit flag offensive delete link more

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  ( 2023-06-07 19:40:10 -0500 )edit

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  ( 2023-06-12 02:50:59 -0500 )edit

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: 2023-05-31 10:07:55 -0500

Seen: 154 times

Last updated: Jun 06 '23