EXAMPLE.zip

  • 兜兜转子
    了解作者
  • Others
    开发工具
  • 1.7MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 10 积分
    下载积分
  • 0
    下载次数
  • 2021-03-17 22:03
    上传日期
PSSE电气系统仿真常用算例 帮助测试软件功能和学习基本操作
EXAMPLE.zip
  • RAS
  • pssuserpf.py
    2.1KB
  • ras.py
    3.1KB
  • savnwchn.idv
    2KB
  • 1.CNH
    0B
  • savnw.bkd
    370B
  • conet.flx
    179B
  • bench.dyr
    124.1KB
  • gic_report.py
    59.7KB
  • savnw.gcp
    204B
  • iec60909_testnetwork_50Hz_IndMachine.sav
    9.6KB
  • OpenCase.py
    108B
  • pssexcel_demo.py
    5.2KB
  • sensitivity_factors.py
    5.3KB
  • ieee_gic_test_case.sav
    10.3KB
  • sample.gic
    10.4KB
  • savnw_nb.sav
    46.2KB
  • iec60909_testnetwork_wind_PV.iec
    549B
  • 230 Horizontal-1-2sw.cor
    1.3KB
  • bench.sav
    729.1KB
  • preparer_transfomers_iec_data.py
    12.7KB
  • bench_ds.idv
    604B
  • iec60909_testnetwork.sld
    52.3KB
  • ieee_25bus.mon
    140B
  • savnw.sld
    137.9KB
  • sample.raw
    56.5KB
  • Slider.dtd
    8.2KB
  • savnw.trp
    417B
  • RunSolutAndReport.idv
    82B
  • savnw.grp
    3.8KB
  • ascc_report.py
    12KB
  • PTU_INFILE.dat
    457B
  • dyntools_demo.py
    17.6KB
  • savnw.dyr
    2.8KB
  • iec60909_testnetwork_IndMachine.iec
    282B
  • iec60909_testnetwork_calculations.py
    18.6KB
  • compile.bat
    1.1KB
  • COMMON.DTD
    549B
  • sample_nb.sav
    65.6KB
  • sample_nb.raw
    85.9KB
  • savnw.prb
    270B
  • savnw.raw
    22.5KB
  • savnw.sav
    17.4KB
  • 345 Horizontal-2-2sw.cor
    1.3KB
  • savnw.snp
    18.7KB
  • savnw.mwm
    797B
  • bench2.raw
    5.5MB
  • ieee_gic_test_case.gic
    2.2KB
  • pout_report.py
    24.5KB
  • conddata.csv
    260.3KB
  • pv_export.py
    4KB
  • iec60909_testnetwork_IndMachine_wind_PV.iec
    558B
  • sample.seq
    11.3KB
  • rex2.idv
    262B
  • bench2.sav
    3.6MB
  • bench.idv
    296B
  • ieee_25bus.sub
    157B
  • wordpy_demo.py
    6.5KB
  • savnw.seq
    7.9KB
  • brnflows_csv.py
    9.6KB
  • rex1.idv
    39B
  • qv_export.py
    3.9KB
  • savnw.drw
    5.9KB
  • UTP_INFILE.dat
    1.5KB
  • savnw.rop
    5KB
  • savnw.sub
    93B
  • ieee_25bus.sav
    16.5KB
  • iecs_report.py
    13.9KB
  • 500 Horizontal-3-2sw.cor
    1.3KB
  • savnw.con
    744B
  • 8x11template.sld
    1.3KB
  • sample.sld
    256.5KB
  • savnw.pssxml
    2.2KB
  • savnw.mon
    424B
  • bench2.idv
    315B
  • otdffactors_excel.py
    6.3KB
  • usrgrpg.py
    6.7KB
  • 765 Horizontal-4-2sw.cor
    1.3KB
  • pout_excel.py
    35.3KB
  • accc_reports.py
    21.1KB
  • iec60909_testnetwork_50Hz.sav
    9.4KB
  • otdffactors_report.py
    4.7KB
  • ExampleCorridor.cor
    2.2KB
  • RunIdle.py
    337B
  • 11x17template.sld
    3KB
  • ieee_25bus_N11.con
    1.9KB
  • buildcases.idv
    1.7KB
  • BPA2PSSE.py
    87.3KB
  • bench.raw
    1.1MB
  • NewYork.sld
    6.7KB
  • Psse.dtd
    2.8KB
  • sample.sav
    44.1KB
  • savcnv.sav
    17.4KB
  • 115 Delta-1-1sw.cor
    1KB
  • ieee_25bus_N1.con
    1.9KB
  • sample.ltl
    638B
  • epc2raw_dcname.dat
    1.1KB
  • iec60909_testnetwork.iec
    300B
  • savnw_nb.raw
    61.9KB
  • ieee_gic_test_case.sld
    97.3KB
内容介绍
import os import string from math import sqrt # ---------------------------------------------------------------------------------------------------- def isfloat(str): """Checks if the string is a floating point number.""" try: float(str) return True #Returns true if the string is a floating point number except (ValueError, TypeError) as e: return False #Returns false otherwise # ---------------------------------------------------------------------------------------------------- def isint(str): """Checks if the string is an integer.""" try: int(str) return True #Returns true if the string is an integer except (ValueError, TypeError) as e: return False #Returns false otherwise # ---------------------------------------------------------------------------------------------------- def OpenFile(): """Opens the BPA file specified in prompt.""" psspy.prompt("Enter the BPA file path, followed by its name:\n") ierr, fnamestr = psspy.userin() #User types in the path name if ierr != 0: return fpath, fext = os.path.splitext(fnamestr) if not fext: fnamestr = fpath + '.dat' #To add the extension if left blank if os.path.isfile(fnamestr) == False: psspy.alert("The specified path or file name is invalid\n") return bpa_file = open(fnamestr, 'r') #Opens the file in read mode return bpa_file # ---------------------------------------------------------------------------------------------------- def GetMVA(bpa_file, bpa_str): """Gets the base MVA in the BPA file.""" pos = string.find(bpa_str, "MVA_BASE") if pos != -1: bpa_file.seek(pos) bpa_file.readline() #Just to position on to the next line mva_base_str = bpa_file.readline() mva_base_str = mva_base_str.replace(' ', '') #To delete any spaces mva_base_str = mva_base_str.strip() #To remove trailing and leading whitespaces mva_base_str = mva_base_str[10:] #To remove the "/MVA_BASE=" part basemva = float(mva_base_str[:-1]) else: basemva = 100.0 #The default base MVA in BPA is 100 MVA return basemva # ---------------------------------------------------------------------------------------------------- def GetTitles(bpa_file, bpa_str): """Gets the titles from the BPA file.""" pos = string.find(bpa_str, "CASEID") #To find title1 if pos != -1: bpa_file.seek(pos) title_data = bpa_file.readline() pos1 = string.find(title_data, '=') pos2 = string.find(title_data, ',') case_id = title_data[pos1 + 1 : pos2] case_id = case_id.strip() #To remove trailing and leading whitespaces else: case_id = "" #Title1 is blank by default pos = string.find(bpa_str, "PROJECT") #To find title2 if pos != -1: bpa_file.seek(pos) title_data = bpa_file.readline() pos1 = string.find(title_data, '=') pos2 = string.find(title_data, ',') if pos2 == -1: #If there are no other parameters, the line finishes with ')' pos2 = string.find(title_data, ')') project_id = title_data[pos1 + 1 : pos2] project_id = project_id.strip() #To remove trailing and leading whitespaces else: project_id = "" #Title2 is blank by default return case_id, project_id # ---------------------------------------------------------------------------------------------------- def GetPCard(bpa_str_ar): """Gets the scale data from the BPA file.""" scale_str = [] for line in bpa_str_ar: #Loop over every line of the BPA file line = line.lstrip() line = line.rstrip('\n') if line == "": continue #To continue if it is a blank line if line[0] == 'P' and line[2] == ' ': #If the line is a P card line = line + ' '*(80-len(line)) #To pad each line with spaces up to 80 records scale_str.append(line) return scale_str #Returns an array of P cards # ---------------------------------------------------------------------------------------------------- def GetScaleData(scale_str, owner_name, zone_name, type_code): """Gets the scale factors for each load and generator.""" scale_ar = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0] #Default factors are unit factors for line in scale_str: #For each P card if line[1] == 'O' and line[3:6].strip() == owner_name: if zone_name == line[34:36].strip() or zone_name == line[37:39].strip() or zone_name == line[40:42].strip() or zone_name == line[43:45].strip()\ or zone_name == line[46:48].strip() or zone_name == line[49:51].strip() or zone_name == line[52:54].strip() or zone_name == line[55:57].strip()\ or zone_name == line[58:60].strip() or zone_name == line[61:63].strip() or zone_name == line[64:66].strip() or zone_name == line[67:69].strip()\ or zone_name == line[70:72].strip() or zone_name == line[73:75].strip() or zone_name == line[76:78].strip() or line[34:80].strip() == "": if isfloat(line[9:14]): scale_ar[0] = scale_ar[0] * float(line[9:14]) #Load P factor if isfloat(line[15:20]): scale_ar[1] = scale_ar[1] * float(line[15:20]) #Load Q factor elif isfloat(line[9:14]): scale_ar[1] = scale_ar[1] * float(line[9:14]) #Load Q factor is load P factor if isfloat(line[21:26]): scale_ar[6] = scale_ar[6] * float(line[21:26]) #Generation P factor if isfloat(line[27:32]): scale_ar[7] = scale_ar[7] * float(line[27:32]) #Generation Q factor elif isfloat(line[21:26]): scale_ar[7] = scale_ar[7] * float(line[21:26]) #Generation Q factor is generation P factor elif line[1] == 'Z' and line[3:5].strip() == zone_name or line[1] == 'N' and line[3:5].strip() == zone_name and type_code == 'N': if owner_name == line[34:37].strip() or owner_name == line[38:41].strip() or owner_name == line[42:45].strip() or owner_name == line[46:49].strip()\ or owner_name == line[50:53].strip() or owner_name == line[54:57].strip() or owner_name == line[58:61].strip() or owner_name == line[62:65].strip()\ or owner_name == line[66:69].strip() or owner_name == line[70:73].strip() or owner_name == line[74:77].strip() or line[34:80].strip() == "": if isfloat(line[9:14]): scale_ar[0] = scale_ar[0] * float(line[9:14]) #Load P factor if isfloat(line[15:20]): scale_ar[1] = scale_ar[1] * float(line[15:20]) #Load Q factor elif isfloat(line[9:14]): scale_ar[1] = scale_ar[1] * float(line[9:14]) #Load Q factor is load P factor if isfloat(line[21:26]): scale_ar[6] = scale_ar[6] * float(line[21:26]) #Generation P factor if isfloat(line[27:32]): scale_ar[7] = scale_ar[7] * float(line[27:32]) #Generation Q factor elif isfloat(line[21:26]): scale_ar[7] = scale_ar[7] * float(line[21:26]) #Generation Q factor is generation P factor elif line[1] == 'A': if isfloat(line[9:14]): scale_ar[0] = scale_ar[0] * float(line[9:14]) #Load P factor if isfloat(line[15:20]): scale_ar[1] = scale_ar[1] * float(line[15:20]) #Load Q factor elif isfloat(line[9:14]): scale_ar[1] = scale_ar[1] * float(line[9:14]) #Load Q factor is load P factor if isfloat(line[21:26]): scale_ar[6] = scale_ar[6] * float(line[21:26]) #Generation P factor if isfloat(line[27:32]): scale_ar[7] = scale_ar[7] * float(line[27:32]) #Generation Q factor elif isfloat(line[21:26]): scale_ar[7] = scale_ar[7] * float(line[21:26]) #Generation Q factor is generation P factor elif line[1] == 'B' and type_code == 'X' and line[3
评论
    相关推荐
    • PSSE-experience-guide.zip
      PSSE实验指导教程,适合于初学者,对其了解基本操作有一定帮助。
    • DIgSILENT_Powerfactory_introduction.rar
      DigsILENT 软件入门介绍及风机建模知识。资源出自西安交通大学
    • POUCH.rar
      Pss/E 仿真结果输出到Matlab环境,便于后续分析、作图等
    • 采用输出反馈方式的电力系统非线性励磁控制_阮阳.rar
      现有的电力系统非线性励磁控制器多基于状态反馈设 计,需要测量同步发电机的转子角和部分变量的微分,并且 控制器以发电机相对转子角驱至参考值为控制目标,在系统
    • cd4ef1.ZIP
      能量变换器四机系统低频振荡控制方法研究Energy converter machine system low frequency oscillation control method research
    • matlab资料,好全的
      取名测名之用,很好的。希望大家多下。本人近斯学学习用到的,在网上找了好久才找到
    • AudioDrv.rar
      惠普CQ40-514TX声卡XP系统驱动
    • moban.rar
      有6套后台管理系统静态页面模板非常不错的可以看下非产搞好
    • DRIVER.rar
      驱动开发工具集,含DebugView,DriverMonitor,IRPTrace,WinObj,DeviceTree.exe,DiskView.exe,EzDriverInstaller.exe,IceSword.exe 很齐全
    • SoftwareTestPPT.rar
      软件测试课件 黑盒测试 白盒测试 测试自动化