Skip to content

Commit

Permalink
Allow steady state power flow to be solved when DPLine is off.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuihantao committed Mar 10, 2024
1 parent 5cb1a91 commit d409483
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions andes/models/line/line.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,16 @@ def __init__(self, system=None, config=None):
self.idd = State(info='real current',
tex_name='idd',
v_str='1e-8',
e_str='u * ( -(x+1e-8)*iqq - (r+1e-8)*idd - v2*sin(a2) + v1*sin(a1) )',
t_const=self.Leq)
e_str='u * ( -(x+1e-8)*iqq - (r+1e-8)*idd - v2*sin(a2) + v1*sin(a1) ) + (1-u) * idd',
t_const=self.Leq,
)

self.iqq = State(info='real current',
tex_name='iqq',
v_str='1e-8',
e_str='u * (1*(x+1e-8)*idd - (r+1e-8)*iqq - v2*cos(a2) + v1*cos(a1) )',
t_const=self.Leq)
e_str='u * (1*(x+1e-8)*idd - (r+1e-8)*iqq - v2*cos(a2) + v1*cos(a1) ) + (1-u) * iqq',
t_const=self.Leq,
)

self.a1.e_str = 'u * (idd*v1*sin(a1) + iqq*v1*cos(a1))'

Expand Down

0 comments on commit d409483

Please sign in to comment.