Implicit versus Explicit Connection Structures

An implicit connection structure has the nice property that additional components can be added to the structure without the need for additional explicit connections. A new component becomes automatically connected to the system.

Consider the CircuitBoard Modelica code below. New components added to the compvec vector within the compTwo model instance become automatically connected. The reason is that all outer envHeat connectors within the compvec vector automatically reference the inner envHeat definition connector declared in the CircuitBoard.

Explicit Connection

As a comparison we show the same example modeled using traditional explicit connections depicted in with corresponding Modelica code below.Each time we add a new component to the compvec vector in the compTwo instance, an additional explicit connection has to be added into the TwoComponents class as a connect-equation