# IMPORT ----------------------------------------------------------------------- import sys, os, time PATH_FILE, PY_FILE = os.path.split(os.path.abspath(__file__)) PATH_LIB = os.path.split(PATH_FILE)[0] if PATH_LIB not in sys.path: os.environ['PATH'] = PATH_LIB + ";" + os.environ['PATH'] sys.path.insert(0, PATH_LIB) # import OlxAPILib from OlxAPIConst import * import AppUtils # INPUTS cmdline --------------------------------------------------------------- PARSER_INPUTS = AppUtils.iniInput( usage="\n\tList all remote end of all branches of the selected bus\ \n\tAll taps are ignored. Close switches are included") PARSER_INPUTS.add_argument('-fi', help='*(str) OLR file path', default="", metavar='') PARSER_INPUTS.add_argument('-pk', help='*(str) Selected Bus in the 1-line diagram', default=[], nargs='+', metavar='') PARSER_INPUTS.add_argument('-fo', help=' (str) Path name of the report file', default="", metavar='') ARGVS = AppUtils.parseInput(PARSER_INPUTS, demo=1)
__version__ = "1.2.1" # IMPORT ----------------------------------------------------------------------- import sys, os, time PATH_FILE, PY_FILE = os.path.split(os.path.abspath(__file__)) PATH_LIB = os.path.split(PATH_FILE)[0] if PATH_LIB not in sys.path: os.environ['PATH'] = PATH_LIB + ";" + os.environ['PATH'] sys.path.insert(0, PATH_LIB) # import OlxAPILib from OlxAPIConst import * import AppUtils # INPUTS cmdline --------------------------------------------------------------- PARSER_INPUTS = AppUtils.iniInput( usage= "\n\tList the Relay Group(s) on the remoted terminal(s)\n\tof the selected line or transformer" ) PARSER_INPUTS.add_argument('-fi', metavar='', help='*(str) OLR input file', default="") PARSER_INPUTS.add_argument( '-pk', metavar='', help='*(str) Selected Relay Group in the 1-line diagram', default=[], nargs='+') PARSER_INPUTS.add_argument('-fo', metavar='', help=' (str) Path name of the report file', default="")
from OlxAPIConst import * import AppUtils # INPUTS cmdline --------------------------------------------------------------- PARSER_INPUTS = AppUtils.iniInput( usage="\n\tRun DoArcFlash with input data from a template file\ \n\tin CSV/Excel format with columns (fields) in following order:\ \n\ \nIEEE-1584 2018 Arc flash\ \n 1. 'No.' - Bus number (optional)\ \n 2. 'Bus Name' - bus name\ \n 3. 'kV' - bus kv\ \n 4. 'Electrode config' - 0: VCB 1: VCBB 2: HCB 3: VOA 4: HOA\ \n 5. 'Enclosure H (in.)' - Applicable for electrode configs VCB, VCBB, HCB\ \n 6. 'Enclosure W (in.)' - Applicable for electrode configs VCB, VCBB, HCB\ \n 7. 'Enclosure D (in.)' - Applicable for electrode configs VCB, VCBB, HCB at voltage 600V or lower\ \n 8. 'Conductor Gap (mm)'\ \n 9. 'Working Distance (inches)'\ \n 10. 'Breaker interrupting Time (cycles)'\ \n 11. 'Fault Clearing' - FUSE: Use fuse curve\ \n - FIXED: Use fixed duration\ \n - FASTEST: Use fastest trip time of device in vicinity\ \n 12. 'Fault clearing option\ \n - For clearing time option FASTEST: NO of tiers\ \n - For clearing time option FIXED: Fixed delay\ \n - For clearing Time Option FUSE: fuse LibraryName:CurveName" ) # ft_default = os.path.join(PATH_FILE, 'InputTemplate2018.xlsx') if not os.path.isfile(ft_default): ft_default = ''
import sys, os PATH_FILE, PY_FILE = os.path.split(os.path.abspath(__file__)) PATH_LIB = os.path.split(PATH_FILE)[0] if PATH_LIB not in sys.path: os.environ['PATH'] = PATH_LIB + ";" + os.environ['PATH'] sys.path.insert(0, PATH_LIB) import OlxAPI import OlxAPILib from OlxAPIConst import * import AppUtils # INPUTS cmdline --------------------------------------------------------------- PARSER_INPUTS = AppUtils.iniInput( usage= "\n\tCheck phase shift of all 2-winding transformers with wye-delta connection\ \n\tWhen a transformer with high side lagging the low side is found,\ \n\tthis function converts it to make the high side lead" ) # PARSER_INPUTS.add_argument('-fi', help='*(str) OLR input file path', default='', type=str, metavar='') PARSER_INPUTS.add_argument('-fo', help=' (str) OLR corrected file path', default='', type=str, metavar='') # ARGVS = AppUtils.parseInput(PARSER_INPUTS, demo=1)
PATH_FILE, PY_FILE = os.path.split(os.path.abspath(__file__)) PATH_LIB = os.path.split(PATH_FILE)[0] if PATH_LIB not in sys.path: os.environ['PATH'] = PATH_LIB + ";" + os.environ['PATH'] sys.path.insert(0, PATH_LIB) # import OlxAPILib from OlxAPIConst import * import AppUtils # INPUTS cmdline --------------------------------------------------------------- PARSER_INPUTS = AppUtils.iniInput( usage="\n\tSimulate 3PH and 1LN fault on the selected bus.\ \n\tDo simulation with single and double branch outages\ \n\tRecord maximum fault current\ \n\tOutput to a file:\ \n\t\t- Fault current\ \n\t\t- Max fault current and location") # PARSER_INPUTS.add_argument('-fi', help='*(str) OLR file path', default='', type=str, metavar='') PARSER_INPUTS.add_argument('-pk', help='*(str) Selected Bus in the 1-Liner diagram', default=[], nargs='+', metavar='') PARSER_INPUTS.add_argument('-fo',
__version__ = "1.2.1" # import sys,os PATH_FILE,PY_FILE = os.path.split(os.path.abspath(__file__)) PATH_LIB = os.path.split(PATH_FILE)[0] if PATH_LIB not in sys.path: os.environ['PATH'] = PATH_LIB + ";" + os.environ['PATH'] sys.path.insert(0, PATH_LIB) # import OlxAPILib from OlxAPIConst import * import AppUtils # INPUTS cmdline --------------------------------------------------------------- PARSER_INPUTS = AppUtils.iniInput(usage= "\n\tSimulate faults on the selected bus.\ \n\tRecord fault current, Thevenin impedance and X/R\ \n\tin a CSV file") # PARSER_INPUTS.add_argument('-fi' , help = '*(str) OLR file path', default = '',metavar='') PARSER_INPUTS.add_argument('-pk' , help = '*(str) Selected Bus in the 1-Liner diagram', default = [],nargs='+',metavar='') PARSER_INPUTS.add_argument('-fo' , help = ' (str) Path name of the report file ',default = '',metavar='') ARGVS = AppUtils.parseInput(PARSER_INPUTS,demo=1) # def do1busFlt1(bhnd): # fltConn = [1,1,1,1] # fltOpt = [0]*15 fltOpt[0] = 1 # Bus or Close-in OlxAPILib.doFault(bhnd,fltConn, fltOpt, outageOpt=[], outageLst=[], fltR=0, fltX=0, clearPrev=1) OlxAPILib.pick1stFault()
# IMPORT ----------------------------------------------------------------------- import sys, os, time PATH_FILE, PY_FILE = os.path.split(os.path.abspath(__file__)) PATH_LIB = os.path.split(PATH_FILE)[0] if PATH_LIB not in sys.path: os.environ['PATH'] = PATH_LIB + ";" + os.environ['PATH'] sys.path.insert(0, PATH_LIB) # import OlxAPI import OlxAPILib from OlxAPIConst import * import AppUtils # INPUTS cmdline --------------------------------------------------------------- PARSER_INPUTS = AppUtils.iniInput( usage="\n\tReduce a network to a smaller boundary equivalent.") # PARSER_INPUTS.add_argument('-fi', help='*(str) OLR input file path', default="", metavar='') PARSER_INPUTS.add_argument( '-pk', help='*(str) Selected Objects in the 1-line diagram', default=[], nargs='+', metavar='') # PARSER_INPUTS.add_argument('-fb', help=' (str) Report bus file', default="",