Skip to content

Commit

Permalink
Bug fix in pvder-DSS-PSSE initialization loop
Browse files Browse the repository at this point in the history
  • Loading branch information
sibyjackgrove committed Jul 22, 2020
1 parent 145be03 commit 0f57be0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tdcosim/model/opendss/procedure/opendss_procedure.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ def initialize(self,targetS ,Vpcc ,tol):
V0 = self._opendssinterface.getVoltage(vtype='actual')
pvdermap = self._pvderAggProcedure.setup(S0, V0)
self._opendssinterface.setupDER(pvdermap)
for n in range(2):# 25 cycles to synchronize
for n in range(200):# 25 cycles to synchronize
V = self._opendssinterface.getVoltage(vtype='actual')
derP, derQ = self._pvderAggProcedure.run(V)
self._opendssinterface.pvderInjection(derP, derQ)
P,Q,Converged = self._opendssinterface.getS(pccName='Vsource.source')

return P, Q

Expand Down

0 comments on commit 0f57be0

Please sign in to comment.