By generating connection equations we mean the conversion of connect statements to the two different forms of equations to be used for non-flow and flow variables respectively. The process of converting connect statements can be divided into two steps: Building connections sets from connect statements and Generating connection equations for the complete model. Connections sets are needed to generate the connection equations of a model.
A practical way to generate these sets is to first create a small connection set from each connect statement consisting of its two arguments. If any of these connector arguments are members of other connections sets, the corresponding connection sets are merged.
ResistorCircuit
ECircuit
The situation is somewhat different regarding the ECircuit model below since it contains a structured c
omponent E1 that contains both inside and outside connectors.