Connecting Electrical Circuits by User-Defined Couplings
A more general way to connect a physics interface to the Electrical Circuit interface is to:
In the Settings window for the Electrical Circuit interface feature, selecting the User-defined option and entering the name of the variable or expression using coupling operators defined in the previous step.
Determining a Current or Voltage Variable Name
To determine a current or voltage variable name, look at the Dependent Variables node under the Study node. To do this:
1
In the Model Builder, right-click the Study node and select Show Default Solver.
2
Expand the Solver>Dependent Variables node and click the state node, in this example, Current through device R1 (comp1.currents). The variable name is shown in the Settings window for State.
Typically, voltage variables are named cir.Xn_v and current variables cir.Xn_i, where n is the “External” device number — 1, 2, and so on.