Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Sourcebus without neutral has wrong number of terminals #421

Open
frederikgeth opened this issue Jan 10, 2023 · 1 comment
Open

[BUG] Sourcebus without neutral has wrong number of terminals #421

frederikgeth opened this issue Jan 10, 2023 · 1 comment
Labels

Comments

@frederikgeth
Copy link
Collaborator

frederikgeth commented Jan 10, 2023

Describe the bug
Case studies with implicit neutral/without neutral still have four terminals for the source bus. This shouldn't happen. The problem appears in both the ENG and MATH datamodel.

Minimum Viable Example
From the unit tests, use 'case3_unbalanced.dss', which is a 3-wire (arguably Kron-reduced, as loads connect phase-to-ground) case study:

using PowerModelsDistribution
dss_file = "case3_unbalanced.dss"

data_eng = parse_file(dss_file, transformations=[transform_loops!]);
data_eng["voltage_source"]["source"]

data_math = transform_data_model(data_eng;kron_reduce=false, phase_project=false);
sourcebus = data_math["bus_lookup"]["sourcebus"]
data_math["bus"]["$sourcebus"]

Issue:

julia> length(data_eng["voltage_source"]["source"]["connections"])
4
julia> length(data_math["bus"]["$sourcebus"]["terminals"])
4

Expected behavior
In cases without neutral, the neutral should be absent in the terminal list. E.g. for a 3-phase 3-wire config, the bus properties vm, va, vmin, vmax, grounded should all be length-3, not 4.

System Information
We believe the problem to be OS-independent

Root cause?
The problem also pops up with phase-to-ground connected loads. It's likely that the root cause is that we don't tag if a case study is Kron-reduced or not. This may need to become a required input. parse_file probably needs a field is_kron_reduced to tag if the dss file is Kron-reduced already, whereas the current kron_reduce defines the application of the Kron's reduction transformation to the data being read in.

@frederikgeth frederikgeth changed the title Sourcebus without neutral has wrong number of terminals [BUG] [BUG] Sourcebus without neutral has wrong number of terminals Jan 13, 2023
@stale
Copy link

stale bot commented Jul 12, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jul 12, 2023
@pseudocubic pseudocubic added pinned and removed wontfix This will not be worked on labels Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants