Closed karatekid2501 closed 1 month ago
Hi @karatekid2501, could you share your net.trafo.shift_degree? You see there is an exact 150 degree voltage angle difference between your results and the results from the tutorial. if you set your trafo shift to 0, there should be no difference.
Thanks for bringing that up, it's a bug in the minimal example tutorial :-)
Hi @karatekid2501, could you share your net.trafo.shift_degree? You see there is an exact 150 degree voltage angle difference between your results and the results from the tutorial. if you set your trafo shift to 0, there should be no difference.
Thanks for bringing that up, it's a bug in the minimal example tutorial :-)
Hi @pawellytaev,
Thanks for getting back to me, at least this confirms that I am not going mad and it is a bug.
When printing net.trafo.shift_degree, it is reporting back 150. I'm assuming I would need to use the create_transformer_from_parameters function but I am unsure what to put in the extra parameters required to ensure that the results match the minimal tutorial outcome.
Hi @karatekid2501, this should work:
traf0 = pp.create_transformer_from_parameters(net, hv_bus=bus1, lv_bus=bus2, name="Trafo", sn_mva=0.4, vn_hv_kv=20.0,
vn_lv_kv=0.4, vk_percent=6.0, vkr_percent=1.425, pfe_kw=1.35, i0_percent=0.3375,
shift_degree=0, tap_min=-2, tap_max=2, tap_pos=0)
I basically copied all the trafo parameters from the net.trafo table but made shift_degree=0
. You can find more information on how to create customized elements here: https://github.com/e2nIEE/pandapower/blob/develop/tutorials/create_advanced.ipynb
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 testing PandaPower and for some reason when inputting the minimal example code into my project and test the results of the buses I'm getting these results:
Instead of this result
As you can see for some reason the va_degree in both bus 2 and 3 are not the same. I've doubled check on the code to make sure that the code is correct and it is:
So I am completely stuck on what the issue could be. Any help is appreciated.
Label