CN105718583B - A method of interface conversion between PFO data format and XLS - Google Patents
A method of interface conversion between PFO data format and XLS Download PDFInfo
- Publication number
- CN105718583B CN105718583B CN201610051212.1A CN201610051212A CN105718583B CN 105718583 B CN105718583 B CN 105718583B CN 201610051212 A CN201610051212 A CN 201610051212A CN 105718583 B CN105718583 B CN 105718583B
- Authority
- CN
- China
- Prior art keywords
- list
- information
- file
- pfo
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 14
- 238000004364 calculation method Methods 0.000 claims abstract description 32
- 238000005192 partition Methods 0.000 description 20
- 238000004458 analytical method Methods 0.000 description 3
- 238000004088 simulation Methods 0.000 description 3
- 230000001052 transient effect Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 238000002360 preparation method Methods 0.000 description 2
- 230000004308 accommodation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000005284 excitation Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000010206 sensitivity analysis Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
- G06F16/1794—Details of file format conversion
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Economics (AREA)
- Theoretical Computer Science (AREA)
- Human Resources & Organizations (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Health & Medical Sciences (AREA)
- Marketing (AREA)
- Tourism & Hospitality (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Water Supply & Treatment (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Educational Administration (AREA)
- Public Health (AREA)
- Game Theory and Decision Science (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Supply And Distribution Of Alternating Current (AREA)
Abstract
本发明提供一种PFO数据格式与XLS的接口转换方法,通过在程序中读入BPA软件导出的PFO格式文件,将BPA的潮流计算结果进行定位以及重新编排,并导出到XLS文件,解决了电力系统分析软件BPA在电力系统中得到普遍应用后,其潮流计算结果中信息量较大、难以直观得到所需关键信息的问题,具有较强的工程实用性。
The invention provides an interface conversion method between the PFO data format and XLS. By reading the PFO format file exported by the BPA software into the program, the BPA power flow calculation results are positioned and rearranged, and exported to the XLS file, which solves the problem of power consumption. After the system analysis software BPA is widely used in the power system, the amount of information in the power flow calculation results is relatively large, and it is difficult to intuitively obtain the required key information, which has strong engineering practicability.
Description
技术领域technical field
本发明属于电力系统分析应用领域,具体涉及BPA软件导出的PFO数据格式与XLS数据格式之间的接口转换方法。The invention belongs to the application field of power system analysis, and in particular relates to an interface conversion method between a PFO data format and an XLS data format exported by BPA software.
背景技术Background technique
基于Windows操作系统的PSD-BPA潮流和暂态稳定及人机界面程序自从1997年底推出以来,在电力系统规划设计、运行调度以及教学科研等部门得到了极为广泛的应用。随着BPA程序在国外和国内的大量实践应用,人们对程序的继续开发和完善不断地提出新的要求,使得BPA在美国和中国都得到了新的发展。Since the PSD-BPA power flow and transient stability and man-machine interface program based on Windows operating system was launched at the end of 1997, it has been widely used in power system planning and design, operation scheduling, teaching and scientific research and other departments. With the extensive application of BPA programs abroad and at home, people continue to put forward new requirements for the continuous development and improvement of the programs, making BPA get new developments in both the United States and China.
BPA软件包主要由潮流和暂态稳定程序构成,具有计算规模大、计算速度快、数值稳定性好、功能强等特点。潮流计算程序主要功能有:基本的潮流计算功能,计算电压、功率等;自定义输出功能;负荷静态特性模拟功能;发电机功率特性控制功能;节点P-V、P-Q、Q-V曲线计算功能;节点、线路、损耗灵敏度分析;N-1开断模拟;区域联络线功率控制。暂态稳定程序是用于分析电力系统在稳态下受到各种干扰时的系统动态行为的有力工具。可以用来模拟电力系统的运行和控制;计算短路电流;研究特高压直流输电、风电及FACTS装置等,在大电网稳定分析计算方面有广泛的作用。The BPA software package is mainly composed of power flow and transient stability programs, and has the characteristics of large calculation scale, fast calculation speed, good numerical stability, and strong functions. The main functions of the power flow calculation program are: basic power flow calculation function, calculation of voltage, power, etc.; custom output function; load static characteristic simulation function; generator power characteristic control function; node P-V, P-Q, Q-V curve calculation function; node, line , Loss sensitivity analysis; N-1 breaking simulation; regional tie line power control. The transient stability program is a powerful tool for analyzing the dynamic behavior of the power system under various disturbances in the steady state. It can be used to simulate the operation and control of the power system; calculate the short-circuit current; study UHV DC transmission, wind power and FACTS devices, etc., and has a wide range of functions in the stability analysis and calculation of large power grids.
目前,BPA可以实现的计算规模已经很大,并且仍在迅速增长。节点数目已经达到20000个,支路数量可以达到80000条;在直流线路的容纳方面,它可以包含100条直流线路以及50多条多段直流线路;可以包含100多个交换功率区域,300个分区,各分区间可有500多条功率交换联络线。At present, the calculation scale that can be realized by BPA is already very large, and it is still growing rapidly. The number of nodes has reached 20,000, and the number of branches can reach 80,000; in terms of the accommodation of DC lines, it can contain 100 DC lines and more than 50 multi-section DC lines; it can contain more than 100 switching power areas, 300 partitions, There can be more than 500 power exchange connection lines between each sub-area.
BPA软件包存在一个显著的特点,就是BPA网络数据以卡片形式输入,数据必须严格按规定的格式录入,否则软件无法识别。交流节点数据卡通常填写B卡,可选的节点类型为PQ节点、PV节点、Vθ节点。线路数据卡通常采用L卡,需要填写额定电流和电阻、电抗、对地电导G/2、对地电纳B/2的标幺值。变压器数据卡一般采用T卡或R卡,需要填写额定容量、等值电阻R、漏抗X、等值电导G、激磁电纳B的标幺值、变比。A notable feature of the BPA software package is that the BPA network data is input in the form of a card, and the data must be entered in strict accordance with the specified format, otherwise the software cannot recognize it. The AC node data card is usually filled with B card, and the optional node types are PQ node, PV node, and Vθ node. The line data card usually adopts an L card, which needs to fill in the rated current, resistance, reactance, conductance to ground G/2, and susceptance to ground B/2 per unit. The transformer data card generally adopts T card or R card, and needs to fill in rated capacity, equivalent resistance R, leakage reactance X, equivalent conductance G, per unit value of excitation susceptance B, and transformation ratio.
PSD-BPA软件具有较强的操作性以及亲切的人机交互界面,这使得其逐渐在电力系统中普及应用。很多电力公司和研究所都使用BPA软件搭建不同地区的电网模型进行仿真研究,在对这些地区电网潮流计算结果进行分析时,需要从BPA软件中导出电网以PFO数据格式保存的潮流计算结果。以PFO数据格式保存的潮流计算结果包含各个发电机的出力、各条线路上的潮流以及流经各个变压器的潮流。PSD-BPA software has strong operability and friendly human-computer interaction interface, which makes it popular and applied in power system gradually. Many power companies and research institutes use BPA software to build power grid models in different regions for simulation research. When analyzing the power flow calculation results of these areas, it is necessary to export the power flow calculation results saved in the PFO data format from the BPA software. The power flow calculation results saved in the PFO data format include the output of each generator, the power flow on each line and the power flow flowing through each transformer.
然而电力系统工作人员实际上最为关心的是电网各个分区的损耗以及薄弱环节,如电压越界节点,负载率较高线路和变压器等。若通过人工的方法将这些工作人员较为关心的指标从PFO文件中逐一提取到XLS文件,需要较大的工作量,不仅耗费时间长、效率低,而且极容易出现各种各样的错误,导致人力物力的浪费。因此,寻求一种智能的接口转化方法,将PFO格式数据中的重要信息提取到格式整齐、简洁明了的XLS文件中是非常有必要的。However, power system staff are actually most concerned about the loss and weak links of each partition of the power grid, such as voltage cross-border nodes, high-load lines and transformers. If the indicators that these staff are more concerned about are extracted from the PFO file to the XLS file one by one through manual methods, it will require a large workload, which will not only take a long time and be inefficient, but also easily cause various errors, resulting in Waste of manpower and material resources. Therefore, it is very necessary to seek an intelligent interface conversion method to extract the important information in the PFO format data into a tidy, concise and clear XLS file.
发明内容Contents of the invention
本发明的目的在于提供一种PFO数据格式与XLS的接口转换方法,该方法旨在解决BPA潮流计算结果PFO文件冗余信息较多、难以直观得到所需关键信息的问题。The purpose of the present invention is to provide a PFO data format and XLS interface conversion method, the method aims to solve the BPA power flow calculation results PFO file redundant information is more difficult to intuitively obtain the required key information problem.
为达到上述目的,本发明采用了以下技术方案:To achieve the above object, the present invention adopts the following technical solutions:
1)在程序中读入电力系统分析平台BPA的潮流计算结果PFO文件;1) Read the power flow calculation result PFO file of the power system analysis platform BPA into the program;
2)经过步骤1)后,对所述潮流计算结果的可用信息进行抽取;2) After step 1), the available information of the power flow calculation result is extracted;
3)将抽取得到的可用信息保存为XLS数据格式。3) Save the extracted available information as XLS data format.
所述程序选自具有文件读取能力的编译程序,例如C++程序。The program is selected from a compiled program capable of reading files, such as a C++ program.
所述步骤2)具体包括以下步骤:Described step 2) specifically comprises the following steps:
确定所述PFO文件中包含可用信息的数据列表的起始和结束位置,然后根据数据列表结构将对应可用信息提取并存储至结构体数组中。Determine the start and end positions of the data list containing the available information in the PFO file, and then extract and store the corresponding available information into the structure array according to the structure of the data list.
通过匹配所述数据列表表头所在行中特定位置的特征字符串(具有唯一性),从而确定所述数据列表的起始位置。The starting position of the data list is determined by matching the characteristic string (unique) at a specific position in the row where the header of the data list is located.
对于所述数据列表结束位置的判定方法为:如果所述数据列表为不包含空行的连续型列表,则自起始位置读取至第一个空行时即达到该连续型列表的结束位置;如果所述数据列表为包含空行的非连续型列表,则自起始位置读取到下一数据列表内容时即达到该非连续型列表的结束位置。The method for determining the end position of the data list is: if the data list is a continuous list that does not contain blank lines, the end position of the continuous list is reached when the first blank line is read from the start position ; If the data list is a discontinuous list containing blank lines, the end position of the discontinuous list is reached when the content of the next data list is read from the start position.
所述数据列表包括电压越界列表、系统损耗数据列表、重载线路列表以及重载变压器列表中的一种或多种。The data list includes one or more of a voltage out-of-bounds list, a system loss data list, a heavy-duty line list, and a heavy-duty transformer list.
所述可用信息包括电压越界信息、系统损耗信息、重载线路信息以及重载变压器信息中的一种或多种。The available information includes one or more of voltage out-of-bounds information, system loss information, overloaded line information, and overloaded transformer information.
本发明的有益效果体现在:The beneficial effects of the present invention are reflected in:
本发明所述PFO数据格式与XLS的接口转换方法可以作为一个接口程序,使BPA软件与多种可以识别XLS文件格式的软件有效结合,可以应用于电网的规划与运行等领域,使计算变得更方便,具有工程实用价值。The interface conversion method between the PFO data format and XLS described in the present invention can be used as an interface program, so that the BPA software can be effectively combined with a variety of software that can recognize the XLS file format, and can be applied to the fields of planning and operation of the power grid, making the calculation become It is more convenient and has engineering practical value.
进一步的,在分析电网薄弱环节或者计算网络损耗时,都需要在BPA潮流计算结果PFO文件中进行查找。如果使用人工统计信息,不仅难以快速地定位到所需信息上,而且耗费时间、极易出错。本发明跳过BPA潮流计算结果PFO文件中的控制语句以及各条线路上的潮流分布等大量不需要的信息部分,将电力系统工作人员所关心的定位于电压越界列表、分区损耗列表、重载线路列表以及重载变压器列表内的关键信息快速、准确、有效地导入到格式整齐的XLS文件中,无需人工统计信息,大大提高了计算的效率,具有较强的工程实用性。Furthermore, when analyzing the weak link of the power grid or calculating the network loss, it is necessary to search in the PFO file of the BPA power flow calculation result. If artificial statistical information is used, it is not only difficult to quickly locate the required information, but also time-consuming and error-prone. The present invention skips a large number of unnecessary information parts such as the control statements in the PFO file of the BPA power flow calculation result and the power flow distribution on each line, and locates the concerns of the power system staff in the voltage out-of-bounds list, the partition loss list, and the heavy load list. The key information in the line list and heavy-duty transformer list can be quickly, accurately and effectively imported into the neatly formatted XLS file, without manual statistical information, which greatly improves the efficiency of calculation and has strong engineering practicability.
附图说明Description of drawings
图1是本发明所述接口转换方法的流程框图。Fig. 1 is a flowchart of the interface conversion method of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明做详细说明。以潮流计算为例,但本发明具有一般性。The present invention will be described in detail below in conjunction with the accompanying drawings and embodiments. Take power flow calculations as an example, but the invention is general.
在电力系统分析软件PSD-BPA(以下简称BPA)中打开需要计算的数据文件(DAT格式),设置BPA程序所在路径以及数据文件的执行路径。然后执行BPA潮流程序,如果潮流计算结果收敛,则会在数据文件的执行路径处生成潮流计算结果PFO文件。该PFO文件中包含潮流计算结果的全部信息,如潮流结果的收敛性、待求网架各条线路上的潮流、各个节点的电压以及各个变压器上的潮流等。由于PFO文件是BPA软件自动生成,其格式是固定的,但是电力系统工作人员难以直观找到所需关键信息,因此需要对其进行转换。以下提供了由BPA软件导出的PFO文件到格式整齐的XLS文件的格式转化方法。下面做具体说明:Open the data file (DAT format) to be calculated in the power system analysis software PSD-BPA (hereinafter referred to as BPA), and set the path where the BPA program is located and the execution path of the data file. Then execute the BPA power flow program. If the power flow calculation results converge, a PFO file of the power flow calculation results will be generated at the execution path of the data file. The PFO file contains all the information of the power flow calculation results, such as the convergence of the power flow results, the power flow on each line of the grid to be requested, the voltage of each node, and the power flow on each transformer. Since the PFO file is automatically generated by BPA software, its format is fixed, but it is difficult for power system staff to intuitively find the key information needed, so it needs to be converted. The following provides the format conversion method from the PFO file exported by the BPA software to the neatly formatted XLS file. Let's explain in detail:
1.PFO文件导出1. PFO file export
在BPA软件中导出PFO文件是进行数据格式转化的准备工作,数据导出的正确与否直接关系到后面数据格式转化的正确性和准确性。下面是导出PFO文件的基本步骤:Exporting PFO files in BPA software is the preparation for data format conversion, and the correctness of data export is directly related to the correctness and accuracy of subsequent data format conversion. Here are the basic steps to export a PFO file:
1)在BPA软件中打开所需计算的DAT文件,设置BPA软件所在路径以及DAT文件所在路径,在DAT文件中对输出控制语句进行调整,使得其计算结果文件内信息存储格式为指定的格式。给定的输出控制语句如表1所示:1) Open the DAT file to be calculated in the BPA software, set the path of the BPA software and the path of the DAT file, and adjust the output control statement in the DAT file so that the information storage format in the calculation result file is the specified format. The given output control statements are shown in Table 1:
表1Table 1
2)在做好准备工作后点击BPA软件中“执行BPA潮流程序”按钮,此时BPA将完成对输入数据DAT文件的潮流计算,并将潮流计算结果的全部信息存储到DAT文件所在路径下的一个新生成的PFO文件中。2) After making preparations, click the "Execute BPA Power Flow Program" button in the BPA software. At this time, BPA will complete the power flow calculation of the input data DAT file, and store all the information of the power flow calculation results in the path where the DAT file is located. in a newly generated PFO file.
3)将得到的PFO文件重命名为“结果”,到此,便完成了PFO文件的导出工作。3) Rename the obtained PFO file to "result", and at this point, the export of the PFO file is completed.
2.PFO文件格式转化2. PFO file format conversion
在得到上面的PFO文件之后,就对其进行格式转化。本发明利用C++程序编写了接口转化程序,流程如图1所示,具体步骤如下:After getting the above PFO file, convert it into format. The present invention utilizes C++ program to write interface conversion program, and flow process is as shown in Figure 1, and concrete steps are as follows:
a、完成对电压越界列表的定位,该定位是通过判别PFO格式数据中的某一行的第1-5个字符是否为“*低”来实现的。在给定的输出控制语句下,电压越界列表的表头为“*低电压和过电压节点数据列表”,通过对其中特定位置“*低”五个字符的识别可以唯一定位到该列表。a. Complete the positioning of the voltage out-of-bounds list, which is realized by judging whether the first to fifth characters of a certain line in the PFO format data are "lowest". Under a given output control statement, the header of the voltage out-of-bounds list is "*low voltage and overvoltage node data list", and the list can be uniquely located by identifying the five characters of "*lowest" in a specific position.
电压越界列表中,电压越界节点的分区名在第12-13列、节点名在18-25列、节点额定电压在第27-32列、节点类型在第35列、节点实际电压在第42-47列、节点电压标幺值在第50-55列、电压下界在第60-65列、电压上界在第68-73列、标志电压偏高或者偏低的信息(表明越界电压值的正负)在第78-84列。根据分区名的不同,可以通过对分区名的判别来实现分区统计电压越界节点的数目,并通过对第78列字符(该列字符为“—”或“”,若为“—”则表明电压偏低;若为“”表明电压偏高)的判断来统计电压偏低节点及电压偏高节点的数目。In the voltage out-of-bounds list, the partition name of the voltage out-of-bounds node is in the 12-13 column, the node name is in the 18-25 column, the node rated voltage is in the 27-32 column, the node type is in the 35th column, and the node actual voltage is in the 42- 47 columns, the per unit value of node voltage is in the 50th-55th column, the voltage lower limit is in the 60th-65th column, the voltage upper limit is in the 68th-73rd column, the information indicating the high or low voltage (indicating the positive negative) in columns 78-84. Depending on the name of the partition, the number of partition voltage cross-border nodes can be realized by distinguishing the partition name, and the 78th column character (the column character is "—" or "", if it is "—" indicates If it is "", it means the voltage is high) to count the number of low voltage nodes and high voltage nodes.
b、获得各个分区电压越界节点数目后便可以定义若干个结构体数组,每个结构体数组的大小为所属分区电压越界节点数目。结构体的成员包括分区名、节点名、节点额定电压、节点类型、节点实际电压、节点电压标幺值、电压下界、电压上界以及越界电压值。用定义的结构体数组逐一存储各分区的电压越界信息。b. After obtaining the number of voltage out-of-bound nodes in each zone, several structure arrays can be defined, and the size of each structure array is the number of voltage out-of-bound nodes in the zone to which it belongs. The members of the structure include partition name, node name, node rated voltage, node type, node actual voltage, node voltage per unit value, voltage lower bound, voltage upper bound, and out-of-bounds voltage value. Use the defined structure array to store the voltage out-of-bounds information of each partition one by one.
c、完成对系统损耗数据列表的定位,该定位是通过判别PFO格式数据中的某一行的第6-9个字符是否为“照分”来实现的。在给定的输出控制语句下,系统损耗数据列表的表头为“*按照分区顺序的系统损耗数据列表”,通过对其中特定位置“照分”四个字符的识别可以唯一定位到该列表。c. Complete the positioning of the system loss data list, which is realized by judging whether the 6th to 9th characters of a certain line in the PFO format data are "according to points". Under the given output control statement, the header of the system loss data list is "*system loss data list according to the partition order", and the list can be uniquely located by identifying the four characters of "photograph" in a specific position.
系统损耗数据列表中,分区名在第4-5列、“小结”二字占用第12-15列的四个字符、线路有功损耗在第29-35列、线路无功损耗在第37-43列、变压器有功损耗在第48-54列、变压器无功损耗在第57-63列、直流换流器有功损耗在第67-73列、直流换流器无功损耗在77-83列、分区内总有功损耗在第86-92列、分区内总无功损耗在第96-102列,根据分区名的不同,可以通过对分区名的判别统计各个分区内不同类型的损耗。In the system loss data list, the partition name is in columns 4-5, the word "summary" occupies four characters in columns 12-15, the active power loss of the line is in columns 29-35, and the reactive power loss of the line is in 37-43 column, transformer active loss is in column 48-54, transformer reactive loss is in column 57-63, DC converter active loss is in column 67-73, DC converter reactive loss is in column 77-83, partition The total internal active power loss is listed in columns 86-92, and the total reactive power loss in the partition is listed in columns 96-102. According to the different partition names, different types of losses in each partition can be counted by distinguishing the partition name.
d、定义一个用于存储各个分区系统损耗的结构体数组,该结构体数组的大小表示分区的数目。结构体的成员包括分区名、“小结”、线路有功损耗、线路无功损耗、变压器有功损耗、变压器无功损耗、直流换流器有功损耗、直流换流器无功损耗、对应分区内总有功损耗以及总无功损耗。用该结构体数组逐一存储各个分区的系统损耗信息。d. Define a structure array for storing system loss of each partition, and the size of the structure array represents the number of partitions. The members of the structure include partition name, "summary", line active power loss, line reactive power loss, transformer active power loss, transformer reactive power loss, DC converter active power loss, DC converter reactive power loss, and total active power in the corresponding zone losses and total reactive losses. Use this structure array to store the system loss information of each partition one by one.
e、完成对重载线路列表的定位,该定位是通过判别PFO格式数据中的某一行的第6-9个字符是否为“路负”来实现的。在给定的输出控制语句下,重载线路列表的表头为“*线路负载超过额定值80.0%的数据列表”,通过对其中特定位置“路负”四个字符的识别可以唯一定位到该列表。e. Complete the positioning of the overloaded line list, which is realized by judging whether the 6th to 9th characters of a certain line in the PFO format data are "road negative". Under the given output control statement, the header of the overloaded line list is "*data list with line load exceeding 80.0% of the rated value", which can be uniquely located by identifying the four characters of "Line Negative" at the specific position list.
重载线路列表中,线路首端节点名在第4-11列、首端节点电压在第12-18列、线路末端节点名在19-26列、末端节点电压在第27-33列、线路电流在第37-44列、额定电流在第46-53列、电流比例在第56-63列、视在功率在第64-71列、额定视在功率在第73-80列、视在功率比例在第87-92列、功率因数在第94-101列、角度在第102-108列。In the list of overloaded lines, the name of the first node of the line is in columns 4-11, the voltage of the first node is in columns 12-18, the name of the end nodes of the line is in columns 19-26, the voltage of the end nodes is in columns 27-33, the line The current is in column 37-44, the rated current is in column 46-53, the current ratio is in column 56-63, the apparent power is in column 64-71, the rated apparent power is in column 73-80, the apparent power Scale is in columns 87-92, power factor is in columns 94-101, and angle is in columns 102-108.
f、统计得到重载线路数目后便可以定义用于存储重载线路信息的结构体数组,该结构体数组的大小为重载线路的数目。结构体成员包括首端节点名、首端节点电压、末端节点名、末端节点电压、线路电流、额定电流、电流比例、视在功率、额定视在功率、视在功率比例、功率因数以及角度。用该结构体数组逐一存储重载线路信息。f. After the number of overloaded lines is counted, a structure array for storing the information of the overloaded lines can be defined, and the size of the structure array is the number of overloaded lines. Structure members include head node name, head node voltage, end node name, end node voltage, line current, rated current, current ratio, apparent power, rated apparent power, apparent power ratio, power factor, and angle. Use this structure array to store overloaded line information one by one.
g、完成对重载变压器列表的定位,该定位是通过判别PFO格式数据中的某一行的第8-11个字符是否为“器负”来实现的。在给定的输出控制语句下,重载变压器列表的表头为“*变压器负载超过额定值80.0%的数据列表”,通过对其中特定位置“器负”四个字符的识别可以唯一定位到该列表。g. Complete the positioning of the list of heavy-duty transformers, which is realized by judging whether the 8th-11th characters of a certain line in the PFO format data are "equipment negative". Under the given output control statement, the header of the list of heavy-duty transformers is "*data list of transformer load exceeding 80.0% of rated value", which can be uniquely located by identifying the four characters of "device negative" in the specific position. list.
重载变压器列表中,A侧节点名在第4-11列、A侧节点电压在第12-18列、B侧节点名在第19-26列、B侧节点电压在第27-33列、视在功率在第35-42列、额定视在功率在第46-52列、功率比例在第56-61列、功率因数在第64-69列。In the list of heavy-duty transformers, the node names on side A are in columns 4-11, the node voltages on side A are in columns 12-18, the node names on side B are in columns 19-26, and the node voltages on side B are in columns 27-33. The apparent power is listed in columns 35-42, the rated apparent power is listed in columns 46-52, the power ratio is listed in columns 56-61, and the power factor is listed in columns 64-69.
h、统计得到重载变压器数目后便可以定义用于存储重载变压器信息的结构体数组,该结构体数组的大小为重载变压器的数目。结构体成员包括A侧节点名、A侧节点电压、B侧节点名、B侧节点电压、视在功率、额定视在功率、视在功率比例以及功率因数。用该结构体数组逐一存储重载变压器信息。h. After the number of heavy-duty transformers is counted, a structure array for storing information of heavy-duty transformers can be defined, and the size of the structure array is the number of heavy-duty transformers. The structure members include A-side node name, A-side node voltage, B-side node name, B-side node voltage, apparent power, rated apparent power, apparent power ratio, and power factor. Use this structure array to store overloaded transformer information one by one.
i、对于某一数据列表结束的判定:上述列表中,如果列表为连续型列表(即不包含空行的列表),则遇到空行时该连续型列表的读取结束;如果列表为非连续型列表(即包含空行的列表),则遇到下一列表内容时该非连续型列表的读取结束。i. For the determination of the end of a certain data list: in the above list, if the list is a continuous list (that is, a list that does not contain blank lines), the reading of the continuous list ends when a blank line is encountered; if the list is not For a continuous list (that is, a list containing blank lines), the reading of the non-sequential list ends when the content of the next list is encountered.
基于此,获得了分别存储着电压越界信息、系统损耗信息、重载线路信息、重载变压器信息的结构体数组。将各个结构体数组内储存的信息分别导出到不同的XLS文件中,即完成PFO文件格式转化为XLS。Based on this, a structure array is obtained which respectively stores the voltage crossing information, system loss information, overloaded line information, and overloaded transformer information. Export the information stored in each structure array to different XLS files, that is, complete the conversion of the PFO file format to XLS.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610051212.1A CN105718583B (en) | 2016-01-25 | 2016-01-25 | A method of interface conversion between PFO data format and XLS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610051212.1A CN105718583B (en) | 2016-01-25 | 2016-01-25 | A method of interface conversion between PFO data format and XLS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105718583A CN105718583A (en) | 2016-06-29 |
CN105718583B true CN105718583B (en) | 2019-12-31 |
Family
ID=56154502
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610051212.1A Active CN105718583B (en) | 2016-01-25 | 2016-01-25 | A method of interface conversion between PFO data format and XLS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105718583B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102054237A (en) * | 2011-01-28 | 2011-05-11 | 北京数码大方科技有限公司 | Method and device for processing product data |
US8285967B1 (en) * | 2009-06-30 | 2012-10-09 | Emc Corporation | Method for on-demand block map generation for direct mapped LUN |
CN103761287A (en) * | 2014-01-14 | 2014-04-30 | 西安交通大学 | DGS data format and IEEE standard format CDF interface conversion method |
CN103970862A (en) * | 2014-05-08 | 2014-08-06 | 国家电网公司 | Automatic generating system and method of power grid operation mode data |
CN104077271A (en) * | 2013-03-27 | 2014-10-01 | 珠海全志科技股份有限公司 | Wafer graph data processing method and system |
-
2016
- 2016-01-25 CN CN201610051212.1A patent/CN105718583B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8285967B1 (en) * | 2009-06-30 | 2012-10-09 | Emc Corporation | Method for on-demand block map generation for direct mapped LUN |
CN102054237A (en) * | 2011-01-28 | 2011-05-11 | 北京数码大方科技有限公司 | Method and device for processing product data |
CN104077271A (en) * | 2013-03-27 | 2014-10-01 | 珠海全志科技股份有限公司 | Wafer graph data processing method and system |
CN103761287A (en) * | 2014-01-14 | 2014-04-30 | 西安交通大学 | DGS data format and IEEE standard format CDF interface conversion method |
CN103970862A (en) * | 2014-05-08 | 2014-08-06 | 国家电网公司 | Automatic generating system and method of power grid operation mode data |
Non-Patent Citations (1)
Title |
---|
读取TXT文件内容,生成Excel文件;匿名;《CSDN博客》;20110729;第1-3页第1-134行代码 * |
Also Published As
Publication number | Publication date |
---|---|
CN105718583A (en) | 2016-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2023115842A1 (en) | Data-driven offline and online integrated simulation system and method for power distribution network | |
CN107818427B (en) | A method and system for coupling bill of quantities information and WBS information for power grid technical renovation and overhaul projects | |
CN103077268B (en) | Towards the state space method for automatic modeling of electromagnetic transient in power system emulation | |
CN102930352B (en) | Power grid basic construction project cost prediction method based on multi-core support vector regression | |
CN105515054B (en) | A kind of electric power system optimization based on implicit enumeration method cuts machine method | |
CN104978608A (en) | A wind power forecasting device and forecasting method | |
CN113076618B (en) | Power distribution network single line diagram correction method, system, terminal equipment and storage medium | |
CN108565865B (en) | A risk assessment method for an AC-DC hybrid system with wind power | |
CN110348114A (en) | A kind of non-precision fault recognition method of power grid completeness status information reconstruct | |
CN103955521A (en) | Cluster classification method for wind power plant | |
CN100563078C (en) | A Method of Accurately Calculating Power Line Loss | |
CN116706901B (en) | Power grid simulation data generation method and system integrating GIS and multi-information | |
CN105790259B (en) | A kind of electric network swim data transfer device based on CIM | |
CN107944659B (en) | Method and device for automatically generating plant station monitoring system report | |
CN103279824A (en) | Modeling method for relay protection setting calculation system | |
CN106447172A (en) | PMS account-based data check method and system | |
CN105718583B (en) | A method of interface conversion between PFO data format and XLS | |
CN106845107A (en) | User's stealing probability forecasting method, device and equipment based on Trust Region Algorithm | |
CN107465195B (en) | A two-layer iterative method for optimal power flow based on microgrid combined with power flow calculation | |
CN103091581B (en) | Limit capacity transmission calculation method based on voltage collapse indices | |
CN109254187B (en) | A system and method for determining short-circuit current of a substation system | |
CN117293906A (en) | Distributed photovoltaic bearing capacity rapid evaluation method and system for power distribution network based on gravity center theory | |
Jiangfeng et al. | Research on decision-making optimization for operation system of power grid framework under smart grid and dijkstra algorithm | |
CN111553040B (en) | A high-performance computing method and device for power grid topology analysis based on GPU acceleration | |
CN114741956A (en) | A Graph Neural Network Based Carbon Emission Flow Tracking Method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 100031 No. 86 West Chang'an Avenue, Beijing, Xicheng District Patentee after: STATE GRID CORPORATION OF CHINA Country or region after: China Patentee after: STATE GRID SHAANXI ELECTRIC POWER COMPANY ECONOMIC AND TECHNOLOGICAL Research Institute Patentee after: XI'AN JIAOTONG University Address before: 100031 No. 86 West Chang'an Avenue, Beijing, Xicheng District Patentee before: State Grid Corporation of China Country or region before: China Patentee before: STATE GRID SHAANXI ELECTRIC POWER COMPANY ECONOMIC AND TECHNOLOGICAL Research Institute Patentee before: XI'AN JIAOTONG University |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20241213 Address after: 100031 No. 86 West Chang'an Avenue, Beijing, Xicheng District Patentee after: STATE GRID CORPORATION OF CHINA Country or region after: China Patentee after: Economic and Technological Research Institute of State Grid Shaanxi Electric Power Co.,Ltd. Patentee after: XI'AN JIAOTONG University Address before: 100031 No. 86 West Chang'an Avenue, Beijing, Xicheng District Patentee before: STATE GRID CORPORATION OF CHINA Country or region before: China Patentee before: STATE GRID SHAANXI ELECTRIC POWER COMPANY ECONOMIC AND TECHNOLOGICAL Research Institute Patentee before: XI'AN JIAOTONG University |