Branch
The Branch model represents a two-terminal phasor-domain \(\pi\) branch with an optional off-nominal tap magnitude and phase shift on bus 1. Terminal current contributions are oriented entering the adjacent buses.
Notes
Setting \(\tau = 1\) and \(\theta = 0\) gives the ordinary symmetric transmission-line \(\pi\) model.
The total line shunt \(G + jB\) is split equally between the two terminals, while the magnetizing shunt \(G_\mathrm{mag} + jB_\mathrm{mag}\) is connected at bus 1; both shunts are added outside the \(\mathbf{M}\) transformation.
The branch has no solver-owned variables; it contributes current residuals directly to the connected buses.
Taking a branch out of service can make the system Jacobian singular, which the model does not detect. See Appendix A and Appendix B.
Block Diagram

Figure 1: Branch model.
Model Parameters
Symbol |
Units |
JSON |
Description |
Typical Value |
Note |
|---|---|---|---|---|---|
\(R\) |
[p.u.] |
|
Branch series resistance |
||
\(X\) |
[p.u.] |
|
Branch series reactance |
||
\(G\) |
[p.u.] |
|
Total line shunt conductance |
0.0 |
|
\(B\) |
[p.u.] |
|
Total line shunt susceptance |
0.0 |
|
\(G_\mathrm{mag}\) |
[p.u.] |
|
Magnetizing shunt conductance at bus 1 |
0.0 |
|
\(B_\mathrm{mag}\) |
[p.u.] |
|
Magnetizing shunt susceptance at bus 1 |
0.0 |
|
\(\tau\) |
[p.u.] |
|
Off-nominal tap magnitude on bus-1 side |
1.0 |
|
\(\theta\) |
[rad] |
|
Phase-shift angle |
0.0 |
Parameter Validation
A valid Branch parameter set must satisfy the following conditions:
Model Derived Parameters
The series, magnetizing shunt, and line shunt admittances are:
The series, magnetizing shunt, and line shunt admittance matrices are:
The off-nominal transformer transformation uses bus 1 as the tap side:
The magnetizing and line shunts are added outside the transformation, and the service status \(u\) scales the whole branch:
For the equations below, write each entry as \(Y_{mn}=G_{mn}+jB_{mn}\).
Model Ports
Name |
Port |
Init |
Description |
|---|---|---|---|
|
Bus |
Known |
Required bus-1 terminal; the tapped side |
|
Bus |
Known |
Required bus-2 terminal |
Model Variables
Internal Variables
Differential
None.
Algebraic
None.
External Variables
Differential
None.
Algebraic
Symbol |
Units |
Description |
Note |
|---|---|---|---|
\(V_{r1}\) |
[p.u.] |
Terminal voltage, real component, bus 1 |
Owned by bus object |
\(V_{i1}\) |
[p.u.] |
Terminal voltage, imaginary component, bus 1 |
Owned by bus object |
\(V_{r2}\) |
[p.u.] |
Terminal voltage, real component, bus 2 |
Owned by bus object |
\(V_{i2}\) |
[p.u.] |
Terminal voltage, imaginary component, bus 2 |
Owned by bus object |
Model Equations
Internal Equations
Differential
None.
Algebraic
None.
External Equations
The branch current relation is \(0 = -\mathbf{I} + \mathbf{Y}\mathbf{V}\).
These current contributions are added to the connected bus residuals with positive sign because branch current is oriented entering the bus.
Initialization
The Branch model has no internal state to initialize. During construction or parameter updates, the component computes \(\mathbf{Y}\) from the current parameter values. Terminal current and power monitor values are evaluated from the connected bus voltages when read. Parameter verification enforces the conditions in Parameter Validation.
Monitors
Monitor |
Units |
Description |
Note |
|---|---|---|---|
|
[p.u.] |
Terminal current, real component, bus 1 |
Oriented entering bus 1 |
|
[p.u.] |
Terminal current, imaginary component, bus 1 |
Oriented entering bus 1 |
|
[p.u.] |
Terminal current magnitude, bus 1 |
|
|
[p.u.] |
Active power at bus 1 terminal |
Positive entering bus 1 |
|
[p.u.] |
Reactive power at bus 1 terminal |
Positive entering bus 1 |
|
[p.u.] |
Terminal current, real component, bus 2 |
Oriented entering bus 2 |
|
[p.u.] |
Terminal current, imaginary component, bus 2 |
Oriented entering bus 2 |
|
[p.u.] |
Terminal current magnitude, bus 2 |
|
|
[p.u.] |
Active power at bus 2 terminal |
Positive entering bus 2 |
|
[p.u.] |
Reactive power at bus 2 terminal |
Positive entering bus 2 |
Appendix A: Out-of-Service Branches
Taking a branch out of service changes the system Jacobian and can make it singular. Let the system be described by the DAE \(\mathbf{F}(\mathbf{x}, \dot{\mathbf{x}}, t) = \mathbf{0}\). For a purely algebraic network, \(\mathbf{x} = \mathbf{V}\) are the bus voltages and
where \(\mathbf{I}\) is the current injected by devices and \(\mathbf{Y}\) is the bus admittance matrix. In the three-bus example below, bus 1 has a Norton generator, a constant \(I_G\) in parallel with \(Y_G\), and the branch statuses are \(u_{12}\) and \(u_{23}\).

Since \(\mathbf{I} = (I_G, 0, 0)\) is constant, the Jacobian is the admittance matrix:
Scenario A.1: Isolated Bus

With \(u_{23} = 0\) and \(Y_L = 0\):
The bus 3 row is zero, so \(V_3\) is undetermined.
Scenario A.2: Floating Island

With \(u_{12} = 0\) and \(Y_L = 0\):
The island rows sum to zero, so \(V_2 = V_3\) is undetermined. (Edge case: Parallel branches whose taps or phase shifts disagree make the island nonsingular).
Scenario A.3: Grounded Island

With \(u_{12} = 0\) and \(Y_L \neq 0\):
The load grounds the island. A fault or generator at bus 3 does the same.
Appendix B: Series Resonance
An outage can also make \(\mathbf{J}\) singular without creating an island. In the two-bus example below, bus 1 has a Norton generator with a capacitive \(Y_G\), as when a capacitor bank outweighs the generator’s own admittance, and the second circuit has status \(u\).

With \(Y_G = j\), \(Y_{12} = -j2\) per circuit, and \(Y_L = -j2\):
Scenario B.1: Circuit Trip

With \(u = 0\):
The network stays connected, but the loop impedance \(1/Y_G + 1/Y_{12} + 1/Y_L = -j + j0.5 + j0.5\) is zero, so the loop through ground is series resonant. Any resistance makes \(\det \mathbf{J} \neq 0\), but a nearly lossless loop still leaves \(\mathbf{J}\) ill-conditioned.