Skip to content

Commit

Permalink
Merge pull request #114 from Energinet-AIG/113-bug-in-setting-grid-im…
Browse files Browse the repository at this point in the history
…pedance

113 bug in setting grid impedance
  • Loading branch information
matbkri authored Mar 28, 2023
2 parents 2f3a3b0 + 78ac935 commit f5bfb4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Powerfactory/setupCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ def setupGrid(case : SimpleNamespace, grid : SimpleNamespace, plantInfo : Simple
Xgrid = case.GridImped * Rgrid * plantInfo.XRRATIO # ohm
Lgrid = Xgrid/2/50/math.pi # H

grid.impedance.SetAttribute('rrea', Rgrid)
grid.impedance.SetAttribute('lrea', Lgrid*1000) # mH
grid.impedance.SetAttribute('ucn',plantInfo.VN)
grid.impedance.SetAttribute('Sn', plantInfo.PN)
grid.impedance.SetAttribute('rrea', Rgrid)
grid.impedance.SetAttribute('lrea', Lgrid*1000) # mH
for term in grid.terminals:
term.SetAttribute('uknom', plantInfo.VN)
grid.voltageSource.SetAttribute('usetp', case.U0)
Expand Down

0 comments on commit f5bfb4f

Please sign in to comment.