Closed BDonnot closed 1 month ago
Hello,
Does someone has any news about this issue ?
Hi @BDonnot ,
Thank you for pointing this out!
We are looking closely at the G and B in pandapower calculations at the moment, we will take a look at this issue as well. I think we will be done with the G and B issue in a couple of weeks.
Best regards, Roman
Hi @BDonnot thanks for bringing that up! The difference is due to pandapower's assumption of a T-equivalent circuit for trafos, matpower/mpc formats assume Pi-equivalent circuit. So in the conversion pd2ppc pandapower does a Wye-Delta conversion to bring it into the Pi-equivalent circuit: https://github.com/e2nIEE/pandapower/blob/ed0e8e534193927b6bfe0d5a31fd8014e7dc0cca/pandapower/build_branch.py#L325
selecting trafo_model='pi' in runpp gives the same results
import pandapower as pp
import pandapower.networks as pn
case = pn.case118()
# run a powerflow to force the computation of the "branch" data
pp.runpp(case, trafo_model='pi')
# retrieve the "branch" data
case["_ppc"]["internal"]["branch"][180, 2:5] # to retrieve the r, x and h value
# > array([0.00138+0.j, 0.016 +0.j, 0.638 +0.j])
# should be as far I understand:
# 0.00138, 0.016, 0.638 in pypower https://github.com/rwl/PYPOWER/blob/977e1a237c5dc4a6c2e8c5ad2038b0c4d5cd64e0/pypower/case118.py#L323C18-L323C39
# 0.00138 0.016 0.638 if you prefer https://matpower.org/docs/ref/matpower5.0/case118.html (line 0313)
Thank you @pawellytaev !
Bug report checklis
[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
[X] Reproduced the issue after updating with
pip install --upgrade pandapower
(orgit pull
)[X] Tried basic troubleshooting (if a bug/error) like restarting the interpreter and checking the pythonpath
Reproducible Example
Issue Description and Traceback
As far as I understand (from the doc here https://pandapower.readthedocs.io/en/latest/networks/power_system_test_cases.html#case-118), the 118 grid "case118" should match the data coming from the ieee 118 dataset.
This dataset is given in "per unit" convention. Pandapower uses "engineering" units (ohm, siemens, etc.) so I expect values in the
trafo
andline
table of pandapower to be different to the value given in the litterature for the 118 (that are given in per unit)But what I would have expected is that once converted back (internally) to per unit values, this would give the parameters in the litterature (I checked and pypower has the same one as matpower which has the same one as the original cdf one).
Unfortunately when i looked at the "branch" data of the internal pandapower
case["_ppc"]["internal"]["branch"]
it does not match the original data (slight difference for some rows, I put one here but there 1 or 2 others)Expected Behavior
The "per united" values should match the one in the original file (as far as I understand)
Installed Versions
Label