Node Types
The currently implementes node types are
- Purely Algebraic:
PowerDynBase.PQAlgebraic(PQ-bus)PowerDynBase.PVAlgebraic(PV-bus)PowerDynBase.SlackAlgebraic(Slack-bus / Vφ-bus)
- Synchronous Machine Models:
PowerDynBase.SwingEq(2nd order)PowerDynBase.SwingEqLVS(2nd order with an additional term for numerical voltage stability)PowerDynBase.FourthEq(4th order)
- Voltage Source Inverters:
They are all subtypes of PowerDynBase.AbstractNodeParameters.
Abstract super type for all node parameter types.
PowerDynBase.PQAlgebraic — Type.PQAlgebraic(;S)A node type that locally fixes the active ($P$) and reactive power ($Q$) output of the node.
Keyword Arguments
S = P + Q*im: the complex power output
Mathematical Representation
Using PQAlgebraic for node $a$ applies the equation
PowerDynBase.PVAlgebraic — Type.PVAlgebraic(;P,V)A node type that locally fixes the active power ($P$) and the voltage magnitude ($V$) of the node.
Keyword Arguments
P: the active (real) power outputV: voltage magnitude
Mathematical Representation
Using PVAlgebraic for node $a$ applies the equations
PowerDynBase.SlackAlgebraic — Type.SlackAlgebraic(;U)A node type that locally fixes the complex voltage ($U$) of the node.
As the complex voltage can be represented as $U=Ve^{i\phi}$, this is equivlant to fixing the voltage magnitude $V$ and the angle $\phi$.
Keyword Arguments
U: the complex voltage
Mathematical Representation
Using SlackAlgebraic for node $a$ applies the equation
PowerDynBase.SwingEq — Type.SwingEq(;H, P, D, Ω)A node type that applies the swing equation to the frequency/angle dynamics and keeps the voltage magnitude as is.
Additionally to $u$, it has the internal dynamic variable $\omega$ representing the frequency of the rotator relative to the grid frequency $\Omega$, i.e. the real frequency $\omega_r$ of the rotator is given as $\omega_r = \Omega + \omega$.
Keyword Arguments
H: inertiaP: active (real) power outputD: damping coefficientΩ: rated frequency of the power grid, often 50Hz
Mathematical Representation
Using SwingEq for node $a$ applies the equations
which is equivalent to
PowerDynBase.SwingEqLVS — Type.SwingEqLVS(;H, P, D, Ω, Γ, V)A node type that applies the swing equation to the frequency/angle dynamics and has a linear voltage stability (LVS) term.
Additionally to $u$, it has the internal dynamic variable $\omega$ representing the frequency of the rotator relative to the grid frequency $\Omega$, i.e. the real frequency $\omega_r$ of the rotator is given as $\omega_r = \Omega + \omega$.
Keyword Arguments
H: inertiaP: active (real) power outputD: damping coefficientΩ: rated frequency of the power grid, often 50HzΓ: voltage stability coefficientV: set voltage, usually1
Mathematical Representation
Using SwingEq for node $a$ applies the equations
which is equivalent to
PowerDynBase.FourthEq — Type.FourthEq(H, P, D, Ω, E_f, T_d_dash ,T_q_dash ,X_q_dash ,X_d_dash,X_d, X_q)A node type that applies the 4th-order synchronous machine model with frequency/angle and voltage dynamics.
Additionally to $u$, it has the internal dynamic variables
- $\omega$ representing the frequency of the rotator relative to the grid frequency $\Omega$, i.e. the real frequency $\omega_r$ of the rotator is given as $\omega_r = \Omega + \omega$ and
- $\theta$ representing the relative angle of the rotor with respect to the voltage angle $\phi$.
Keyword Arguments
H: inertiaP: active (real) power outputD: damping coefficientΩ: rated frequency of the power grid, often 50HzT_d_dash: time constant of d-axisT_q_dash: time constant of q-axisX_d_dash: transient reactance of d-axisX_q_dash: transient reactance of q-axisX_d: reactance of d-axisX_d: reactance of q-axis
Mathematical Representation
Using FourthEq for node $a$ applies the equations
The fourth-order equations read (according to Sauer, p. 140, eqs. (6110)-(6114)) and p. 35 eqs(3.90)-(3.91)
With the PowerDynamics.jl \time{naming conventions} of $i$ and $u$ they read as
PowerDynBase.VSIMinimal — Type.VSIMinimal(;τ_P,τ_Q,K_P,K_Q,E_r,P,Q)A node type that applies the frequency and voltage droop control to control the frequency and voltage dynamics.
Additionally to $u$, it has the internal dynamic variable $\omega$ representing the frequency of the rotator relative to the grid frequency $\Omega$, i.e. the real frequency $\omega_r$ of the rotator is given as $\omega_r = \Omega + \omega$.
Keyword Arguments
τ_p: time constant active power measurementτ_Q: time constant reactive power measurementK_P: droop constant frequency droopK_Q: droop constant voltage droopV_r: reference/ desired voltageP: active (real) power infeedQ: reactive (imag) power infeed
Mathematical Representation
Using VSIMinimal for node $a$ applies the equations
```
PowerDynBase.VSIVoltagePT1 — Type.VSIVoltagePT1(;τ_v,τ_P,τ_Q,K_P,K_Q,E_r,P,Q)A node type that applies the frequency and voltage droop control to control the frequency and voltage dynamics.
Additionally to $u$, it has the internal dynamic variable $\omega$ representing the frequency of the rotator relative to the grid frequency $\Omega$, i.e. the real frequency $\omega_r$ of the rotator is given as $\omega_r = \Omega + \omega$.
Keyword Arguments
τ_v: time constant voltage control delayτ_p: time constant active power measurementτ_Q: time constant reactive power measurementK_P: droop constant frequency droopK_Q: droop constant voltage droopV_r: reference/ desired voltageP: active (real) power infeedQ: reactive (imag) power infeed
Mathematical Representation
Using VSIVoltagePT1 for node $a$ applies the equations