Branch
Source: GridKit/Model/PhasorDynamics/Branch/README.md
Branch Model
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.
\(G\) and \(B\) are total branch shunt values split equally between terminals.
The branch has no solver-owned variables; it contributes current residuals directly to the connected buses.
Circuit Diagram
An ideal complex tap is placed on the bus-1 side of the branch equivalent. The ordinary transmission-line \(\pi\) model is recovered with \(\tau = 1\) and \(\theta = 0\).
Figure 1: Branch equivalent circuit
Model Parameters
Symbol |
Units |
Description |
Typical Value |
Note |
|---|---|---|---|---|
\(R\) |
[p.u.] |
Branch series resistance |
||
\(X\) |
[p.u.] |
Branch series reactance |
||
\(G\) |
[p.u.] |
Total branch shunt conductance |
0 |
|
\(B\) |
[p.u.] |
Total branch shunt susceptance |
0 |
|
\(\tau\) |
[p.u.] |
Off-nominal tap magnitude on bus-1 side |
1 |
Parameter name: |
\(\theta\) |
[rad] |
Phase-shift angle |
0 |
Parameter name: |
Parameter Validation
Invalid Branch parameter sets are rejected by the following checks:
Model Derived Parameters
The series and shunt admittances are:
The nominal \(\pi\)-branch admittance matrix is the sum of the series and shunt admittance contributions:
The off-nominal transformer transformation uses bus 1 as the tap side:
For the equations below, write each entry as \(Y_{mn}=G_{mn}+jB_{mn}\).
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
Differential Equations
None.
Algebraic 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. Initial terminal current and power monitor values are evaluated from the connected bus voltages. Parameter verification rejects the invalid cases listed above.
Model Outputs
Output |
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 |
Current magnitudes are:
Complex power at each end is defined as \(S=VI^{\ast}\):