State-Space Nodal
The state-space nodal (SSN) method represents a component by its own continuous state-space model and couples it to the network through the nodal admittance matrix. A component is described by
where $\mathbf{x}$ is the internal state, and the input $\mathbf{u}$ and output $\mathbf{y}$ are the terminal quantities exchanged with the network (a voltage and the corresponding current). Trapezoidal discretisation of $(\mathbf{A}, \mathbf{B})$ yields a discrete model $(\mathbf{A}_d, \mathbf{B}_d)$ and a Norton equivalent: a constant conductance $\mathbf{W}$ stamped into the system matrix plus a history current source recomputed each step from the previous state and input. Because the component is solved simultaneously with the network in the same nodal system, SSN is numerically robust without the parasitic snubbers that delayed current-injection schemes require.
This builds directly on Nodal Analysis and is the companion of State-Space Extraction, which recovers a state-space model from an MNA simulation rather than starting from one.
Shift to the Dynamic-Phasor Envelope
The same component model is discretised differently in an envelope domain: the operator becomes $\frac{d}{dt} + j\omega_s$, so what is discretised is $\mathbf{A} - j\omega_s\mathbf{I}$ rather than $\mathbf{A}$, and splitting the envelope into real and imaginary parts turns that into a real system of twice the size. This is derived in full under SSN across domains, together with why the equivalent admittance is complex in an envelope domain and real in an instantaneous one.
The real-augmented form matches how the rest of the dynamic phasor system is already assembled: a complex admittance $g = g_r + j g_i$ is stamped as the real block $\left[\begin{smallmatrix} g_r & -g_i \ g_i & g_r \end{smallmatrix}\right]$, with real and imaginary node parts in separate halves of a real-valued system. The SSN component therefore needs no complex assembly of its own, and the trapezoidal discretisation used by the instantaneous models applies unchanged.
Components
The single-phase dynamic-phasor SSN models are:
Full_Serial_RLC, a series resistor-inductor-capacitor one-port with a hand-derived state-space model, used as the reference component.GenericTwoTerminalVTypeSSNandGenericTwoTerminalITypeSSN, which accept a user-supplied $(\mathbf{A}, \mathbf{B}, \mathbf{C}, \mathbf{D})$ and build the V-type (voltage input, current output) or I-type (current input, voltage output) stamping accordingly.
All three reproduce the classical dynamic-phasor stamping of the same circuit, and the reconstructed time-domain waveform matches the EMT and EMT-SSN results within discretisation error.
Three-Phase Components
The same real-augmented model extends per phase to DP::Ph3. The
$3 \times 3$ $\mathbf{A}$, $\mathbf{B}$, $\mathbf{C}$, $\mathbf{D}$ matrices
are general, so off-diagonal entries can couple the phases together:
Full_Serial_RLC, the three-phase series RLC one-port.GenericTwoTerminalVTypeSSNandGenericTwoTerminalITypeSSN, the three-phase generic V-type and I-type components.
As in the single-phase case, all three reproduce the classical three-phase
dynamic-phasor stamping exactly, and the reconstructed time-domain waveform
matches the EMT and EMT-SSN results within discretisation error once
corrected for the RMS-to-peak scaling that EMT::Ph3 sources apply and
DP::Ph3 sources do not, since the DP envelope already carries the complex
amplitude directly. The notebooks below only exercise the symmetrical,
diagonal case; coupling between phases is not covered by existing tests.
Variable Components
The components above are fixed-parameter LTI systems: $(\mathbf{A}, \mathbf{B}, \mathbf{C}, \mathbf{D})$ are built once from the component’s parameters and never change. Some SSN components instead depend on the operating point and are relinearized and re-stamped every step: the same simultaneous nodal solve, but around a Jacobian frozen at the previous step’s converged state rather than a constant matrix. The averaged grid-following inverter is one such component, and its three-phase analogue carries a complex envelope per phase while sharing a single positive-sequence dq control frame; see Power Electronics for their state vectors and model equations.
Validation and Examples
Two notebooks accompany the single-phase models, both on a single-carrier
series RLC one-port. examples/Notebooks/Circuits/DP_generalizedSSN_RLC.ipynb
validates the DP-SSN models against the classical dynamic-phasor stamping and
the EMT and EMT-SSN waveforms. examples/Notebooks/Circuits/DP_SSN_RLC_accuracy.ipynb
studies the time-step and frequency-dependent accuracy against a small-step
EMT reference.
The three-phase analogues,
examples/Notebooks/Circuits/DP_Ph3_generalizedSSN_RLC.ipynb and
examples/Notebooks/Circuits/DP_Ph3_SSN_RLC_accuracy.ipynb, repeat both
studies on DP::Ph3 circuits, including a current-driven network with generic
V-type and I-type components and a three-phase fault transient.
Further Reading
- C. Dufour, J. Mahseredjian, and J. Bélanger, A Combined State-Space Nodal Method for the Simulation of Power System Transients, IEEE Transactions on Power Delivery, vol. 26, no. 2, pp. 928–935, 2011. https://doi.org/10.1109/TPWRD.2010.2090364
- C. Dufour and D. S. Nasrallah, State-space-nodal rotating machine models with improved numerical stability, IECON 2016 – 42nd Annual Conference of the IEEE Industrial Electronics Society, 2016. https://doi.org/10.1109/IECON.2016.7793690
- A. A. Kida, A. C. S. Lima, F. A. Moreira, J. R. Martí, and J. Tarazona, Inaccuracies due to the frequency warping in simulation of electrical systems using combined state–space nodal analysis, Electric Power Systems Research, vol. 223, art. 109657, 2023. https://doi.org/10.1016/j.epsr.2023.109657