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
In the Dynamic Phasors (shifted-frequency) domain a physical quantity is written as a slowly varying complex envelope on a carrier $\omega_s$,
so that differentiation maps to $\frac{dx}{dt} \rightarrow \frac{dX}{dt} + j \omega_s X$. The physical state-space model therefore becomes, for the envelope,
DPsim does not solve the dynamic-phasor system as a complex matrix: every complex admittance $g = g_r + j g_i$ is stamped as a real $2 \times 2$ block $\left[\begin{smallmatrix} g_r & -g_i \ g_i & g_r \end{smallmatrix}\right]$, with the real and imaginary node parts living in separate halves of a real-valued system. The DP-SSN model matches this by carrying the envelope in real/imaginary-split form $[\mathbf{X}_r; \mathbf{X}_i]$ and writing the carrier shift explicitly as a real augmented model,
The same real trapezoidal discretisation used by the EMT SSN models then applies unchanged, the Norton conductance comes out as a real block that stamps directly into the augmented network, and the interface reads and writes the real and imaginary node halves directly with no complex assembly. The $\pm \omega_s$ coupling block is algebraically exact; placing a rotating-frame term inside the real state matrix follows the established SSN practice for rotating-machine models.
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.
Validation and Examples
Two notebooks accompany the 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.
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