OpenStudio uses a connection model that differs significantly from EnergyPlus. While EnergyPlus connects components using shared unique node names, OpenStudio uses explicit OS:Connection objects to join Ports between components.
Key Concepts:
- Ports: Every HVAC component has inlets and outlets called
Ports. These are identified by an index (e.g., port "5", port "6"). - OS:Connection: An object that references a Source Object and its Outlet Port, and a Target Object and its Inlet Port. This allows for arbitrary connections between any two components.
- OS:Node: In OpenStudio, a
Node is a component type itself within the HVAC topology, rather than just a name. While most connections involve an intermediate OS:Node, it is not strictly required; components can be connected directly via an OS:Connection.
// EnergyPlus (Node-based)
Coil:Heating:Fuel, ..., Node 19, Node 20, ...;
Fan:ConstantVolume, ..., Node 20, Node 12, ...;
// OpenStudio (Connection-based)
OS:Connection,
{connection-handle}, !- Handle
{connection-name}, !- Name
{source-handle}, !- Source Object
6, !- Outlet Port
{target-handle}, !- Target Object
2; !- Inlet Port