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

Missing Transformer data in the save2psse function #56

Closed
Amin0G opened this issue Jan 17, 2019 · 1 comment
Closed

Missing Transformer data in the save2psse function #56

Amin0G opened this issue Jan 17, 2019 · 1 comment
Assignees
Labels

Comments

@Amin0G
Copy link

Amin0G commented Jan 17, 2019

In the save2psse file, in the TRANSFORMER DATA part, two pieces of information are missing, namely, VMA1 and VMI1. Therefore, two columns similar to RMA1 and RMI1 should be added.
The original code is:
fprintf(fd, '%6d, %6d, %d, %d, %d, %d, %d, %d, %d, %d, '' '', %d, %d, %d, %d, %d, %d, %d, %d, %d, '' ''\n%g, %g, %g\n%5g, %d, %5g, %7g, %7g, %7g, %d, %d, %g, %g, %d, %d, %g, %g, %g\n%5g, %g\n', ... [ mpc.branch(it, [F_BUS T_BUS]) zeros(nt, 1) ones(nt, 4) ... zeros(nt, 2) 2*ones(nt, 1) mpc.branch(it, BR_STATUS) ones(nt, 2) ... zeros(nt, 1) ones(nt, 1) zeros(nt, 1) ones(nt, 1) ... zeros(nt, 1) ones(nt, 1) ... mpc.branch(it, [BR_R BR_X]) mpc.baseMVA*ones(nt, 1) ... mpc.branch(it, TAP) zeros(nt, 1) mpc.branch(it, SHIFT) ... mpc.branch(it, [RATE_A RATE_B RATE_C]) zeros(nt, 2) ... 1.1*ones(nt, 1) 0.9*ones(nt, 1) 33*ones(nt, 1) zeros(nt, 4) ... ones(nt, 1) zeros(nt, 1) ... ]');

It seems that it should be as follows:

fprintf(fd, '%6d, %6d, %d, %d, %d, %d, %d, %d, %d, %d, '' '', %d, %d, %d, %d, %d, %d, %d, %d, %d, '' ''\n%g, %g, %g\n%5g, %d, %5g, %7g, %7g, %7g, %d, %d, %g, %d, %g, %g, %d, %d, %g, %g, %g\n%5g, %g\n', ... [ mpc.branch(it, [F_BUS T_BUS]) zeros(nt, 1) ones(nt, 4) ... zeros(nt, 2) 2*ones(nt, 1) mpc.branch(it, BR_STATUS) ones(nt, 2) ... zeros(nt, 1) ones(nt, 1) zeros(nt, 1) ones(nt, 1) ... zeros(nt, 1) ones(nt, 1) ... mpc.branch(it, [BR_R BR_X]) mpc.baseMVA*ones(nt, 1) ... mpc.branch(it, TAP) zeros(nt, 1) mpc.branch(it, SHIFT) ... mpc.branch(it, [RATE_A RATE_B RATE_C]) zeros(nt, 2) ... 1.1*ones(nt, 1) 0.9*ones(nt, 1) 1.1*ones(nt, 1) 0.9*ones(nt, 1) 33*ones(nt, 1) zeros(nt, 4) ... ones(nt, 1) zeros(nt, 1) ... ]');

Please note that an additional 1.1*ones(nt, 1) 0.9*ones(nt, 1) is added to the code (the second line from below).
Thanks.

@rdzman rdzman self-assigned this Jan 17, 2019
@rdzman rdzman added the bug label Jan 17, 2019
@rdzman
Copy link
Member

rdzman commented Jan 17, 2019

Confirmed. Thanks for reporting this.

rdzman added a commit that referenced this issue Jan 17, 2019
@rdzman rdzman closed this as completed in 62da553 Jan 17, 2019
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