Skip to content

Commit

Permalink
Add more common params in Group
Browse files Browse the repository at this point in the history
  • Loading branch information
jinningwang committed Mar 24, 2024
1 parent 994a453 commit e90a0f1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ams/models/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,21 +199,25 @@ class StaticGen(GroupBase):

def __init__(self):
super().__init__()
self.common_params.extend(('Sn', 'Vn', 'p0', 'q0', 'ra', 'xs', 'subidx'))
self.common_params.extend(('Sn', 'Vn', 'p0', 'q0', 'ra', 'xs', 'subidx',
'pmax', 'pmin', 'pg0', 'ctrl'))
self.common_vars.extend(('p', 'q'))


class ACLine(GroupBase):
def __init__(self):
super(ACLine, self).__init__()
super().__init__()
self.common_params.extend(('bus1', 'bus2', 'r', 'x'))


class StaticLoad(GroupBase):
"""
Static load group.
"""
pass

def __init__(self):
super().__init__()
self.common_params.extend(('p0',))


class StaticShunt(GroupBase):
Expand Down

0 comments on commit e90a0f1

Please sign in to comment.