__license__ = "GPL" __version__ = "1.0.0" import textwrap from elem_obj import ReadParam, WriteParam, PSSE_Fn, Element from elem_obj import make_param_dict, get_real, get_imag COMMON_READ_FN_KEY = "load" slurp_flags = {'flag': 4} read_params = [ ReadParam(name='NUMBER', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """)), ReadParam(name='AREA', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """)), ReadParam(name='ZONE', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\
__license__ = "GPL" __version__ = "1.0.0" import textwrap from elem_obj import ReadParam, WriteParam, PSSE_Fn, Element from elem_obj import make_param_dict, get_real, get_imag COMMON_READ_FN_KEY = "fxshunt" slurp_flags = {'flag': 4} read_params = [ ReadParam(name='NUMBER', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """)), ReadParam(name='STATUS', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """)), # ReadParam(name='PU_GBZERO', # data_type='real', # read_fn_key='COMMON_READ_FN_KEY', # display_name="", # description=textwrap.dedent("""\
__license__ = "GPL" __version__ = "1.0.0" import textwrap from elem_obj import ReadParam, WriteParam, PSSE_Fn, Element from elem_obj import make_param_dict, get_real, get_imag COMMON_READ_FN_KEY = "wnd" slurp_flags = {'ties': 3, 'flag': 3} read_params = [ ReadParam(name='WNDBUSNUMBER', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """) ), ReadParam(name='OTHER1NUMBER', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """) ), ReadParam(name='OTHER2NUMBER', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="",
read_params=[ # ----- int data ReadParam(name='NUMBER', data_type='int', read_fn_key=COMMON_READ_FN_KEY, display_name='number', description=textwrap.dedent("""\ Bus number (1 through 999997). No default allowed. """) ), ReadParam(name='TYPE', data_type='int', read_fn_key=COMMON_READ_FN_KEY, display_name='type', description=textwrap.dedent("""\ IDE Bus type code: 1 for a load bus or passive node (no generator boundary condition) 2 for a generator or plant bus (either voltage regulating or fixed Mvar) 3 for a swing bus 4 for a disconnected (isolated) bus 1 by default. """) ), ReadParam(name='AREA', data_type='int', read_fn_key=COMMON_READ_FN_KEY, display_name='area', description=textwrap.dedent("""\ Area number (1 through 9999). AREA = 1 by default. """) ), ReadParam(name='ZONE', data_type='int', read_fn_key=COMMON_READ_FN_KEY, display_name='zone', description=textwrap.dedent("""\ Zone number (1 through 9999). ZONE = 1 by default. """) ), ReadParam(name='OWNER', data_type='int', read_fn_key=COMMON_READ_FN_KEY, display_name='owner', description=textwrap.dedent("""\ Owner number (1 through 9999). OWNER = 1 by default. """) ), ReadParam(name='DUMMY', data_type='int', read_fn_key=COMMON_READ_FN_KEY, display_name='dummy', description=textwrap.dedent("""\ Returns 1 if the bus is a dummy bus of a multisection line, or 0 if it is not. """) ), # ----- real data ReadParam(name='BASE', data_type='real', read_fn_key=COMMON_READ_FN_KEY, display_name='basekv', description=textwrap.dedent("""\ Bus base voltage; entered in kV. BASKV = 0.0 by default. """) ), #Commented out since there is no need to compare final voltage/angle values from PF # ReadParam(name='PU', # data_type='real', # read_fn_key=COMMON_READ_FN_KEY, # display_name='pu', # description=textwrap.dedent("""\ # WRITE: VM, bus voltage magnitude in pu. (1.0 by default) # READ: Actual bus voltage magnitude, in pu. # """) # ), # ReadParam(name='KV', # data_type='real', # read_fn_key=COMMON_READ_FN_KEY, # display_name='kV', # description=textwrap.dedent("""\ # Actual bus voltage magnitude, in kV (in pu if base voltage is 0.0). # """) # ), # ReadParam(name='ANGLE', # data_type='real', # read_fn_key=COMMON_READ_FN_KEY, # display_name='angle (rad)', # description=textwrap.dedent("""\ # Bus voltage phase angle, in radians. # """) # ), # ReadParam(name='ANGLED', # data_type='real', # read_fn_key=COMMON_READ_FN_KEY, # display_name='angle (deg)', # description=textwrap.dedent("""\ # Bus voltage phase angle, in degrees. # """) # ), # -- real parameters "MISMATCH" and "O_MISMATCH" are superseded by the cplx # parameters of the same name. # ReadParam(name='MISMATCH', # data_type='real', # read_fn_key=COMMON_READ_FN_KEY, # display_name='mismatch', # description=textwrap.dedent("""\ # Bus mismatch in MVA (0.0 if bus type code > 3). # """) # ), # ReadParam(name='O_MISMATCH', # data_type='real', # read_fn_key=COMMON_READ_FN_KEY, # display_name='o_mismatch', # description=textwrap.dedent("""\ # Bus mismatch, in units determined by the power output option # setting (0.0 if bus type code > 3). # """) # ), # ----- cplx data # ReadParam(name='VOLTAGE', # data_type='cplx', # read_fn_key=COMMON_READ_FN_KEY, # display_name='voltage cplx', # description=textwrap.dedent("""\ # Actual bus voltage, in pu, rectangular coordinates. # """) # ), ReadParam(name='SHUNTACT', data_type='cplx', read_fn_key=COMMON_READ_FN_KEY, description=textwrap.dedent("""\ Actual total in-service fixed bus shunt, in MW and Mvar. """) ), ReadParam(name='O_SHUNTACT', data_type='cplx', read_fn_key=COMMON_READ_FN_KEY, description=textwrap.dedent("""\ Actual total in-service fixed bus shunt, in units determined by the power output option setting. """) ), ReadParam(name='SHUNTNOM', data_type='cplx', read_fn_key=COMMON_READ_FN_KEY, description=textwrap.dedent("""\ Nominal total in-service fixed bus shunt, in MW and Mvar at 1.0 pu voltage. """) ), ReadParam(name='O_SHUNTNOM', data_type='cplx', read_fn_key=COMMON_READ_FN_KEY, description=textwrap.dedent("""\ Nominal total in-service fixed bus shunt, in units determined by the power output option setting at 1.0 pu voltage. """) ), ReadParam(name='SHUNTN', data_type='cplx', read_fn_key=COMMON_READ_FN_KEY, description=textwrap.dedent("""\ Negative sequence shunt (pu, nominal). """) ), ReadParam(name='SHUNTZ', data_type='cplx', read_fn_key=COMMON_READ_FN_KEY, description=textwrap.dedent("""\ Zero sequence shunt (pu, nominal). """) ), ReadParam(name='MISMATCH', data_type='cplx', read_fn_key=COMMON_READ_FN_KEY, description=textwrap.dedent("""\ Bus mismatch, in MW and Mvar (0.0 if bus type code > 3). """) ), ReadParam(name='O_MISMATCH', data_type='cplx', read_fn_key=COMMON_READ_FN_KEY, description=textwrap.dedent("""\ Bus mismatch, in units determined by the power output option setting (0.0 if bus type code > 3). """) ), # ----- char data ReadParam(name='NAME', data_type='char', read_fn_key=COMMON_READ_FN_KEY, display_name='name', description=textwrap.dedent("""\ Bus name (12 characters). """) ), ReadParam(name='EXNAME', data_type='char', read_fn_key=COMMON_READ_FN_KEY, display_name='extended name', description=textwrap.dedent("""\ Extended bus name (18 characters). """) ), ]
__license__ = "GPL" __version__ = "1.0.0" import textwrap from elem_obj import ReadParam, WriteParam, PSSE_Fn, Element from elem_obj import make_param_dict, get_real, get_imag COMMON_READ_FN_KEY = "fxshunt" slurp_flags = {'flag': 4} read_params = [ ReadParam(name='NUMBER', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """) ), ReadParam(name='TYPE', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """) ), ReadParam(name='AREA', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="",
__license__ = "GPL" __version__ = "1.0.0" import textwrap from elem_obj import ReadParam, WriteParam, PSSE_Fn, Element from elem_obj import make_param_dict, get_real, get_imag COMMON_READ_FN_KEY = "brn" slurp_flags = {'ties': 3, 'flag': 2} read_params = [ ReadParam(name='FROMNUMBER', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """)), ReadParam(name='TONUMBER', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """)), ReadParam(name='STATUS', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\
__license__ = "GPL" __version__ = "1.0.0" import textwrap from elem_obj import ReadParam, WriteParam, PSSE_Fn, Element from elem_obj import make_param_dict, get_real, get_imag COMMON_READ_FN_KEY = "mach" slurp_flags = {'flag': 4} read_params = [ ReadParam(name='NUMBER', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """)), ReadParam(name='STATUS', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """)), ReadParam(name='WMOD', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\
__version__ = "1.0.0" import textwrap from elem_obj import ReadParam, WriteParam, PSSE_Fn, Element from elem_obj import make_param_dict, get_real, get_imag from elem_obj import Parameter, tr3_Elem COMMON_READ_FN_KEY = "tr3" slurp_flags = {'ties': 3, 'flag': 2} read_params = [ ReadParam(name='WIND1NUMBER', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """)), ReadParam(name='WIND2NUMBER', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """)), ReadParam(name='WIND3NUMBER', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\
__license__ = "GPL" __version__ = "1.0.0" import textwrap from elem_obj import ReadParam, WriteParam, PSSE_Fn, Element from elem_obj import make_param_dict, get_real, get_imag COMMON_READ_FN_KEY = "genbus" slurp_flags = {'flag': 4} read_params = [ ReadParam(name='NUMBER', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """)), ReadParam(name='TYPE', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\ """)), ReadParam(name='AREA', data_type='int', read_fn_key='COMMON_READ_FN_KEY', display_name="", description=textwrap.dedent("""\