NREL-Sienna / PowerSimulationsDynamics.jl

Julia package to run Dynamic Power System simulations. Part of the Scalable Integrated Infrastructure Planning Initiative at the National Renewable Energy Lab.
https://nrel-sienna.github.io/PowerSimulationsDynamics.jl/stable/
BSD 3-Clause "New" or "Revised" License
177 stars 42 forks source link

Fix NetworkSwitch perturbation tutorial #342

Open rodrigomha opened 1 year ago

rodrigomha commented 1 year ago

We need to explicitly state to use using PowerNetworkMatrices when creating Ybus.

In addition, we should discuss if NetworkSwitch should ONLY use a SparseMatrix or not. From a user perspective we should allow the user to use directly a dense matrix if they want.

In any case, we need to update the tutorial of Perturbations since it is using Dense Matrices: https://nrel-sienna.github.io/PowerSimulationsDynamics.jl/stable/perturbations/

image

jd-lara commented 1 year ago

I don't think this is a bug. We have always assumed that the user would pass a Bus object which is by default sparse.