Open Sciemon opened 3 days ago
Hi @Sciemon, in general I agree, the entry on the non-diagonal entries on the Ybus matrix should be the negative line admittance connecting the two buses. Do you have a minimal example where we can see the inconsitency? Do the lines in your model have parallel>1
?
FYI, here is where we calculate the base impedance and branch impedance in p.u.: https://github.com/e2nIEE/pandapower/blob/d9ada108b1ac144f58ce7a8b7d8c093c9a9d0ec7/pandapower/build_branch.py#L203
... and here's where we calculate the Ybus matrix entries: https://github.com/e2nIEE/pandapower/blob/d9ada108b1ac144f58ce7a8b7d8c093c9a9d0ec7/pandapower/pypower/makeYbus.py#L46
Feature Checklist
[X] Searched the issues page for similar reports
[X] Read the relevant sections of the documentation
[X] Browse the tutorials and tests for usefull code snippets and examples of use
Issue
I am trying to understand the entries of the admittance matrix (net._ppc["internal"]["Ybus"]) as illustrated for example in the internal data structure tutorial, but I cannot figure out the correct base impedance/admittance for the per unit conversion.
I would assume that an entry in the matrix that represents a line between two buses could be calculated as follows:
where
vn_kv
is the nominal voltage of the from bus andr_ohm_per_km
andx_ohm_per_km
are parameters of the line.But the results don't match the non diagonal entries of line branches in Ybus (other branch elements I have not checked). Could you point me to what I am missing? What would be the correct
Z_base
?Thanks!
Label