def __init__(self): base_device.__init__(self) self._data.update({ 'type': 2, 'vwn': 16, 'rho': 1.225, 'Tw': 0.5, 'deltat': 0.01, 'cw': 20, 'kw': 2 }) self._type = 'Wind' self._name = 'Wind' self.n = 0 self._data.update({'vwa': 1, 'time': [], 'svw': [], 'vwt': -1.0}) self._algebs = ['ws'] self._states = ['vw'] self._params.extend( ['vwn', 'rho', 'deltat', 'cw', 'kw', 'Tw', 'rho', 'vw']) #self.n_PV = 0 #self._voltages = ['V0'] #self._powers = ['Pg'] self.properties.update({ 'gcall': True, 'Gycall': True, 'fcall': True, 'Fxcall': True })
def __init__(self): base_device.__init__(self) self._data.update({ 'bus': None, 'Sn': 0, 'Vn': 0, 'fn': 50, 'tf': 0, 'tc': 0, 'rf': 1, 'xf': 1 }) self.u = [] self.properties.update({'gcall': True, 'Gycall': True}) self._type = 'Fault' self._name = 'Fault' self._bus = {'bus': ['a', 'v']} self._algebs = ['Va', 'V0'] self._params.extend(['rf', 'xf']) #要转成矩阵的元素 self._z = ['rf', 'xf'] self.y = 0 + 0 * 1j self.dat = [0, 0] self.n = 0
def __init__(self): base_device.__init__(self) self._data.update({ 'bus': None, 'fn': 60, 'type': 3, 'Sn': 100, 'Vn': 230, 'sup': 0, 'rs': 0, 'xs': 0, 'rr1': 0.18, 'xr1': 0.12, 'rr2': 0.12, 'xr2': 0.001, 'xm': 0.04, 'Hm': 3.5, 'a1': 1, 'b': 0.51, 'c': 0, 'tup': 0.51, 'allow': 0 }) self._type = 'Ind' self._name = 'Ind' self._bus = {'bus': ['a', 'v']} self._algebs = [] self._states = ['slip', 'e1r', 'e1m'] self._params.extend([ 'fn', 'Sn', 'Vn', 'sup', 'rs', 'xs', 'rr1', 'xr1', 'rr2', 'xr2', 'xm', 'Hm', 'a1', 'b', 'c', 'tup', 'allow' ]) self._z = ['rs', 'xs', 'rr1', 'xr1', 'rr2', 'xr2', 'xm'] self._powers = ['Hm', 'a1', 'b', 'c']
def __init__(self): base_device.__init__(self) self._data.update({ 'Pg': 1, 'pq': 0, 'qg': 0, 'bus': None, 'qgmax': 6, 'qgmin': -6, 'V0': 1.05, 'Vmax': 1.1, 'Vmin': 0.95 }) self._type = 'PV' self._name = 'PV' self.n = 0 self._bus = {'bus': ['a', 'v']} self._algebs = ['Va', 'V0'] self._params.extend(['Pg', 'qgmax', 'qgmin', 'V0', 'Vmax', 'Vmin']) self.n_PV = 0 self._voltages = ['V0'] self._powers = ['Pg'] self.properties.update({ 'gcall': True, 'Gycall': True, 'fcall': True, 'Fxcall': True })
def __init__(self): base_device.__init__(self) self.u = mul(matrix(self.u), matrix(system.PV.u)) self._data.update({ 'bus': None, 'Type': 1, 'vrmax': 3.3, 'vrmin': -2.6, 'K0': 0, 'T1': 0, 'T2': 0, 'T3': 0, 'T4': 0, 'Te': 0, 'Tr': 0, 'Ae': 0, 'Be': 0 }) self._type = 'Avr1' self._name = 'Avr1' self._bus = {'bus': ['a', 'v']} self._algebs = ['vref'] # 后续得修改 self._states = ['vm', 'vr1', 'vr2', 'vf'] # 后续得修改 self._params.extend([ 'u', 'vrmax', 'vrmin', 'K0', 'T1', 'T2', 'T3', 'T4', 'Te', 'Tr', 'Ae', 'Be' ]) self._voltages = ['V0'] # 后续得修改 self._powers = ['Pg'] # 后续得修改 self.ba = [] self.bv = []
def __init__(self): base_device.__init__(self) self._data.update({ 'bus': None, 'fn': 50, 'm_model': 6, 'xl': 0, 'ra': 0, 'xd': 0, 'xd1': 0, 'xd2': 0, 'Td01': 0, 'Td02': 0, 'xq': 0, 'xq1': 0, 'xq2': 0, 'Tq01': 0, 'Tq02': 0, 'M': 0, 'D': 0 }) self._type = 'Syn6' self._name = 'Syn6' self._bus = {'bus': ['a', 'v']} self._algebs = ['Va', 'V0'] self._states = ['delta', 'omega', 'e1q', 'e1d', 'e2q', 'e2d'] self._params.extend([ 'fn', 'xl', 'ra', 'xd', 'xd1', 'xd2', 'Td01', 'Td02', 'xq', 'xq1', 'xq2', 'Tq01', 'Tq02', 'M', 'D' ]) self._voltages = ['V0'] # 后续得修改 self._powers = ['Pg'] # 后续得修改
def __init__(self): base_device.__init__(self) self._data.update({ 'bus': None, 'fn': 50, 'm_model': 6, 'xl': 0, 'ra': 0, 'xd': 1.9, 'xd1': 0.302, 'xd2': 0, 'Td01': 0, 'Td02': 0, 'xq': 0, 'xq1': 0, 'xq2': 0, 'Tq01': 0, 'Tq02': 0, 'M': 10, 'D': 0, 'pm0': 0, 'vf0': 0, 'J11': 0, 'J12': 0, 'J21': 0, 'J22': 0, 'Komega': 0, 'KP': 0, 'ganmaP': 1, 'ganmaQ': 1, 'Taa': 0, 'S10': 0, 'S12': 0, 'nCOI': 0 }) self._type = 'Syn6' self._name = 'Syn6' self.n = 0 self._bus = {'bus': ['a', 'v']} self._algebs = ['vf', 'pm', 'p', 'q'] self._states = ['delta', 'omega', 'e1q', 'e1d', 'e2q', 'e2d'] self._params.extend([ 'fn', 'xl', 'ra', 'xd', 'xd1', 'xd2', 'Td01', 'Td02', 'xq', 'xq1', 'xq2', 'Tq01', 'Tq02', 'M', 'D', 'u', 'ganmaP', 'ganmaQ', 'Taa', 'S10', 'S12', 'pm0', 'vf0', 'J11', 'J12', 'J21', 'J22', 'Komega', 'KP', 'nCOI', 'vf' ]) self._z = ['xl', 'ra', 'xd', 'xd1', 'xd2', 'xq', 'xq1', 'xq2'] self._powers = ['M', 'D'] # 后续得修改 self.suijipm0 = [] self.properties.update({ 'gcall': True, 'Gycall': True, 'fcall': True, 'Fxcall': True })
def __init__(self): base_device.__init__(self) self._data.update({'fn': 50, 'bus': None, 'g': 1, 'b': 1.1}) self._type = 'Shunt' self._name = 'Shunt' self._bus = {'bus': ['a', 'v']} self._params.extend(['fn', 'g', 'b']) self._y = ['g', 'b']
def __init__(self): base_device.__init__(self) self._data.update({'Pl': 1, 'bus': None, 'Ql': 1, 'Vmax': 1.2, 'Vmin': 0.95}) self._type = 'PQ' self._name = 'PQ' self._bus = {'bus': ['a', 'v']} self._algebs = ['V0', 'Va'] self._params.extend(['Pl', 'Ql', 'Vmax', 'Vmin']) self._powers = ['Pl', 'Ql']
def __init__(self): base_device.__init__(self) self._data.update({'fn': 50, 'f_bus': None, 'to_bus': None, 'l': 0, 'kT': 1, 'r': 2, 'x': 1.1, 'b': 1, 'tap_ratio': 1.1, 'theta': 0.1, 'Imax': 0, 'Pmax': 0, 'Smax': 0, 'tf': -1, 'tc': -1}) self._type = 'Line' self._name = 'Line' self.n = 0 self._bus = {'f_bus': ['af', 'vf'], 'to_bus': ['at', 'vt']} self._params.extend(['fn', 'kT', 'r', 'x', 'tap_ratio', 'theta', 'Imax', 'Pmax', 'Smax']) self.z = ['r', 'x'] self.properties.update({'gcall': True, 'Gycall': True})
def __init__(self): base_device.__init__(self) self._data.update({ 'fn': 50, 'bus': None, 'wind': None, 'rs': 0.0101, 'xs': 0.0747, 'rr': 0.0031, 'xr': 0.0098, 'xm': 5.6903, 'Hm': 3, 'Kp': 200, 'Tp': 2, 'Kv': 0.1, 'Te': 0.01, 'R': 37.5, 'np': 4, 'nb': 3, 'nGB': 1 / 104.5, 'pmax': 1.2, 'pmin': -0.1, 'qmax': 0.8, 'qmin': -0.7, 'ng': 1, 'u': 1 }) self._type = 'Dfig' self._name = 'Dfig' self.n = 0 self._data.update({'wind': 0}) self._bus = {'bus': ['a', 'v']} self._algebs = ['pwa', 'vref'] self._states = ['omega_m', 'theta_p', 'idr', 'iqr'] self._z = ['rs', 'xs', 'rr', 'xr', 'xm'] self._powers = ['Hm', 'pmax', 'pmin', 'qmax', 'qmin'] self._params.extend([ 'fn', 'rs', 'xs', 'rr', 'xr', 'xm', 'Sn', 'Vn', 'Hm', 'Kp', 'Tp', 'Kv', 'Te', 'R', 'np', 'nb', 'nGB', 'pmax', 'pmin', 'qmax', 'qmin', 'ng' ]) # self._params.extend(['Pg', 'qgmax', 'qgmin', 'V0', 'Vmax', 'Vmin']) # self.n_PV = 0 # self._voltages = ['V0'] # self._powers = ['Pg'] self.properties.update({ 'gcall': True, 'Gycall': True, 'fcall': True, 'Fxcall': True })
def __init__(self): base_device.__init__(self) self._data.update({'Sn': 1, 'bus': None, 'Vn': 1, 'Imax': 1.2, 'Imin': 0.95, 'fn': 50, 'Kr':1,'Tr':1 ,'gsh':0.1,'bsh':-0.1,'Vref':1.0}) self._type = 'Statcom' self._name = 'Statcom' self._bus = {'bus': ['a', 'v']} self._algebs = ['V0', 'Va'] self._states = ['Vsh','Vsha'] # self._voltages = ['Vref'] # self.y = ['gsh', 'bsh'] self._params.extend(['Sn', 'Vn', 'Imax', 'Imin', 'fn', 'Kr','Tr','gsh','bsh','Vref'])
def __init__(self): base_device.__init__(self) self._data.update({'fn': 50, 'bus': None, 'g': 1, 'b': 1.1}) self._type = 'Shunt' self._name = 'Shunt' self.n = 0 self._bus = {'bus': ['a', 'v']} self._params.extend(['fn', 'g', 'b']) self._y = ['g', 'b'] self.properties.update({'gcall': True, 'Gycall': True})
def __init__(self): base_device.__init__(self) self._data.update({ 'avr': None, 'm_model': 2, 'ni': 1, 'vsmax': 0.1, 'vsmin': -0.1, 'Kw': 8, 'Tw': 10, 'T1': 0.8, 'T2': 0.05, 'T3': 0.8, 'T4': 0.05, 'Ka': 0, 'Ta': 0, 'Kp': 0, 'Kv': 0, 'vamax': 0, 'va1max': 0, 'vs1max': 0, 'vs1min': 0, 'ethr': 0, 'wthr': 0, 's2': 0, 'u': 1, 'syn': 0 }) self._type = 'Pss2' self._name = 'Pss2' # self._bus = {'bus': ['a', 'v']} self.n = 0 self._algebs = ['vss'] self._states = ['v1', 'v2', 'v3'] self._params.extend([ 'ni', 'vsmax', 'vsmin', 'Kw', 'Tw', 'T1', 'T2', 'T3', 'T4', 'Ka', 'Ta', 'Kp', 'Kv', 'vamax', 'va1max', 'vs1max', 'vs1min', 'ethr', 'wthr', 's2' ]) self._voltages = ['V0'] # 后续得修改 self._powers = ['Pg'] # 后续得修改 self.properties.update({ 'gcall': True, 'Gycall': True, 'fcall': True, 'Fxcall': True })
def __init__(self): base_device.__init__(self) self._data.update({ 'L': 0, 'bus': None, 'gse': 0.1, 'bse': -0.1, 'Pref': 1.0 }) self._type = 'Sssc' self._name = 'Sssc' self._bus = {'bus': ['a', 'v']} self._algebs = ['V0', 'Va'] self._states = ['Vse', 'Vsea'] self._params.extend(['L', 'bus', 'gse', 'bse', 'Pref'])
def __init__(self): base_device.__init__(self) self._data.update({ 'bus': None, 'Vb': 10.5, 'Pl': 0, 'Ql': 0, 'Pg': 0, 'Qg': 0 }) self._type = 'Bus' self._name = 'Bus' self._bus = {'bus': ['a', 'v']} self._algebs = ['Va', 'V0'] self._params.extend(['Vb', 'Pl', 'Ql', 'Pg', 'Qg'])
def __init__(self): base_device.__init__(self) self._data.update({ 'bus': 0, 'line': 0, 'Sn': 100, 'Vn': 220, 'fn': 50, 'u': 0, 't1': 0, 't2': 0, 'u1': 1, 'u2': 1 }) self._type = 'breaker' self._name = 'breaker' self.n = 0
def __init__(self): base_device.__init__(self) # self.u = mul(matrix(self.u), matrix(system.Syn6.u)) self._data.update({'bus': None, 'Type': 1, 'wref0': 1, 'R': 0.04, 'Pmax': 1.1, 'Pmin': 0, 'Ts': 0.03, 'Tc': 0.5, 'T3': 0, 'T4': 0.02, 'T5': 1}) self._name = 'Tg1' self._type = 'Tg1' self._bus = {'bus': ['a', 'v']} self._algebs = ['wref'] self._states = ['tg1', 'tg2', 'tg3'] self._params.extend(['wref0', 'R', 'Pmax', 'Pmin', 'Ts', 'u', 'Tc', 'T3', 'T4', 'T5']) self._voltages = ['V0'] # 后续得修改 self._powers = ['Pg'] # 后续得修改 self.ba = [] self.bv = []
def __init__(self): base_device.__init__(self) self.u = mul(matrix(self.u), matrix(system.PV.u)) self._data.update({ 'bus': None, 'Type': 2, 'vrmax': 5, 'vrmin': 0, 'Ka': 0, 'Ta': 0, 'Kf': 0, 'Tf': 0, 'Ke': 0, 'Te': 0, 'Tr': 0, 'Ae': 0, 'Be': 0 }) self._type = 'Avr2' self._name = 'Avr2' self.n = 0 self._bus = {'bus': ['a', 'v']} self._algebs = ['vref'] # 后续得修改 self._states = ['vm', 'vr1', 'vr2', 'vf'] # 后续得修改 self._params.extend([ 'u', 'vrmax', 'vrmin', 'Ka', 'Ta', 'Kf', 'Tf', 'Ke', 'Te', 'Tr', 'Ae', 'Be' ]) self._voltages = ['V0'] # 后续得修改 self._powers = ['Pg'] # 后续得修改 self.ba = [] self.bv = [] self.properties.update({ 'gcall': True, 'Gycall': True, 'fcall': True, 'Fxcall': True })
def __init__(self): base_device.__init__(self) self._data.update({ 'Pl': 1, 'bus': None, 'Ql': 1, 'Vmax': 1.2, 'Vmin': 0.95, 'z': 1, 'gen': 0, 'shunt': 0 }) self._type = 'PQ' self._name = 'PQ' self._bus = {'bus': ['a', 'v']} self.n = 0 self._algebs = ['V0', 'Va'] self._params.extend(['Pl', 'Ql', 'Vmax', 'Vmin']) self._powers = ['Pl', 'Ql'] self._voltages = ['Vmax', 'Vmin'] self.properties.update({'gcall': True, 'Gycall': True})
def __init__(self): base_device.__init__(self) self._data.update({ 'Pg': 1, 'dq': 0, 'bus': None, 'qgmax': 6, 'qgmin': -6, 'V0': 1.05, 'Vmax': 1.1, 'Vmin': 0.95, 'Va': 0 }) self._type = 'SW' self._name = 'SW' self._bus = {'bus': ['a', 'v']} self._algebs = ['V0', 'Va'] self._params.extend( ['Pg', 'qgmax', 'qgmin', 'V0', 'Vmax', 'Vmin', 'Va']) self._voltages = ['V0'] self._powers = ['Pg']
def __init__(self): base_device.__init__(self) return