Disclosure of Invention
In order to at least solve the problems in the prior art, the invention provides a method and a system for converting a steady-state model of a D5000-BPA power system, so as to improve the safety and the economy of a smart grid.
The technical scheme provided by the invention is as follows:
in one aspect, a method for converting a steady-state model of a power system with D5000-BPA comprises the following steps:
establishing a D5000 power system steady-state model based on D5000;
establishing a BPA power system steady-state model based on BPA;
converting the D5000 power system steady-state model to the BPA power system steady-state model.
Optionally, the establishing a D5000-based D5000 power system steady-state model includes:
acquiring power grid state estimation result data through a D5000 operating platform, and generating a QS file according to the power grid state estimation result data;
analyzing the QS file and extracting effective parameters of each power element;
determining a parameter table of each power element according to the effective parameter of each power element;
and establishing an index mode for the parameter table of each power element based on a preset rule to obtain a qsData dictionary as a D5000 power system steady-state model.
Optionally, the establishing a BPA power system steady-state model based on BPA includes:
generating a format dictionary of a data card for describing each element of the power system according to the DAT file format description of the BPA software;
establishing steady-state models of each element of the power system according to the format dictionary, wherein each steady-state model adopts a dictionary structure;
and establishing an index mode of each element in the power system according to the steady-state model of each element to obtain a dat dictionary as the steady-state model of the BPA power system.
Optionally, the converting the D5000 power system steady-state model into the BPA power system steady-state model includes:
obtaining effective parameters of a generator, effective parameters of a line, effective parameters of a transformer, effective parameters of a series compensator, effective parameters of a load and effective parameters of a parallel compensator from the D5000 power system steady-state model;
establishing a card data and node partition mapping table according to the generator effective parameters, the line effective parameters, the transformer effective parameters, the series compensator effective parameters, the load effective parameters and the parallel compensator effective parameters, wherein the card data comprises B card data, BQ card data, T card data and L card data;
and generating a DAT file by the B card data, the BQ card data, the T card data and the L card data according to the steady-state model of the BPA power system according to the node partition mapping table so as to complete data conversion.
Optionally, the generator effective parameters include: the method comprises the following steps of (1) stopping mark, node name, reference voltage, maximum active power, actual active power, maximum reactive power, minimum reactive power, arrangement voltage and partition name;
correspondingly, according to the generator effective parameters, card data are established, and the method comprises the following steps:
and establishing BQ card data according to the shutdown mark, the node name, the reference voltage, the maximum active power, the actual active power, the maximum reactive power, the minimum reactive power, the arrangement voltage and the partition name.
Optionally, the line effective parameter includes: commissioning marks at two ends, node names at the head end, node names at the tail end, reference voltage, rated current, resistance, reactance, susceptance, parallel branch numbers and partition names;
correspondingly, establishing card data according to the line effective parameters, including:
and B card data and line L card data at two ends are established according to the commissioning marks at the two ends, the node name at the head end, the node name at the tail end, the reference voltage, the rated current, the resistance, the reactance, the susceptance, the number of the parallel branch and the partition name.
Optionally, the effective parameters of the transformer include: head end node name, head end reference voltage, tail end node name, tail end reference voltage, rated capacity, copper loss equivalent resistance, leakage reactance, head end fixed tap, tail end fixed tap, parallel branch number and commissioning mark;
correspondingly, the establishing card data according to the transformer effective parameters includes:
and B card data and T card data of the transformer at two ends or three ends are established according to the head end node name, the head end reference voltage, the tail end node name, the tail end reference voltage, the rated capacity, the copper loss equivalent resistance, the leakage reactance, the head end fixed tap, the tail end fixed tap, the parallel branch number and the commissioning mark.
Optionally, the effective parameters of the series compensator include: a node name at the head end, a node name at the tail end, a reference voltage, a reactance, and an outage mark;
correspondingly, establishing card data according to the effective parameters of the series compensator, comprising:
and B card data at two ends and L card data at a branch are established according to the node name of the head end, the node name of the tail end, the reference voltage, the reactance and the shutdown mark.
Optionally, the load effective parameters include: node name, reference voltage, active load value, reactive load value and outage mark;
correspondingly, establishing card data according to the effective parameters of the load, comprising the following steps:
and establishing B card data or BQ card data according to the node name, the reference voltage, the active load value, the reactive load value and the outage mark.
Optionally, the effective parameters of the parallel compensator include: node name, reference voltage, reactive compensation quantity and outage mark;
correspondingly, establishing card data according to the effective parameters of the parallel compensator, comprising the following steps:
and establishing B card data or BQ card data according to the node name, the reference voltage, the reactive compensation quantity and the shutdown mark.
In another aspect, a conversion system for a steady state model of a power system for D5000-BPA, comprising:
the model building module is used for building a D5000 power system steady-state model based on D5000; establishing a BPA power system steady-state model based on BPA;
a conversion module to convert the D5000 power system steady-state model to the BPA power system steady-state model.
The invention has the beneficial effects that:
according to the conversion method of the D5000-BPA power system steady-state model, the D5000 power system steady-state model based on the D5000 is established, the BPA power system steady-state model based on the BPA is established, and then the D5000 power system steady-state model is converted into the BPA power system steady-state model.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It should be apparent that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
Fig. 1 is a flowchart of a method for converting a steady-state model of a D5000-BPA power system according to an embodiment of the present invention.
As shown in fig. 1, the method for converting the steady-state model of the power system with D5000-BPA of the present embodiment includes the following steps:
s11, establishing a D5000 power system steady-state model based on the D5000.
Specifically, the method comprises the steps of obtaining power grid state estimation result data through a D5000 operation platform, and generating a QS file according to the power grid state estimation result data. And operating a data acquisition and monitoring (SCADA) module of the D5000 platform, intercepting a certain operation section of the power system (namely power system operation data at a certain moment), extracting data such as the tidal current of each line of the power grid, the voltage and the load of each node at the moment, and generating a QS file.
And then analyzing the QS file, extracting effective parameters of each electric element, and determining a parameter table of each electric element according to the effective parameters of each electric element, wherein the parameter table comprises 15 parameter tables in total, such as BaseValue, substtation, bus, ACLine, unit, transformer, load, compensator _ P, compensator _ S, converter, DCline, island, topoNode, breaker, disconnectictor and the like.
Then, based on a preset rule, establishing an index mode for a parameter table of each power element, establishing a unique index mode for each element of the power system, and for single-node elements such as Bus, unit, load, compensator _ P and the like, the format of the index is node name + voltage level, and all the single-node elements connected to the same 1 node are integrated into 1 piece of data; for the dual node elements such as ACline, transformer, compensator _ S, converter, DCline, breaker, distributor, etc., the format of the index is "head node name + head voltage level + end node name + end voltage level", each dual node element connected to the same 2 nodes is integrated into 1 piece of data, and the three-winding Transformer is equivalent to a 3-dual winding Transformer. Finally, a data model qsData capable of describing the steady-state characteristics of the current power system is formed, the structure of the data model qsData is 1 complex Dictionary (Dictionary < string >, list < string >), namely the qsData Dictionary is obtained and is used as the D5000 power system steady-state model.
And S12, establishing a BPA power system steady-state model based on the BPA.
Specifically, the method comprises the following steps: a format dictionary describing the data cards for the various components of the power system is generated from the DAT file format description of the BPA software. A format dictionary describing the data cards for the various components of the power system is automatically generated based on the DAT file format specification of the BPA software. The DAT file format description of the BPA software refers to the related art, and the format description of the Excel version of the BPA software comes from a Pfcard. Csv files are read and parsed to generate a format dictionary datTab describing the data cards for each component of the power system.
And establishing steady-state models of each element of the power system according to the format dictionary, wherein each steady-state model adopts a dictionary structure. And sequentially establishing steady-state models of all elements of the power system according to the format dictionary to form data models of line cards, transformer cards, various node cards and the like. Each data model adopts a Dictionary structure (namely Dictionary < key, value >), and the one-to-one correspondence between the real power equipment and the virtual data storage unit is ensured through the uniqueness of the keyword key. The key of the data model of the double-node equipment such as the line card and the transformer card is 'head end node name + head end voltage level + tail end node name + tail end voltage level + parallel branch number', and the key of the data model of the single-node equipment such as various node cards and node continuation cards is 'node name + voltage level'.
And establishing an index mode of each element in the power system according to the steady-state model of each element to obtain a dat dictionary as the steady-state model of the BPA power system. And establishing a unique index mode for each element of the power system, classifying the elements, and forming a dat dictionary. The dat dictionary classifies different types of power elements such as nodes, lines, transformers and phase modulators, and indexes are respectively established, so that data of a certain power element can be conveniently and rapidly taken out from a huge power grid database.
And S13, converting the D5000 power system steady-state model into a BPA power system steady-state model.
In a specific implementation process, obtaining effective parameters of a generator, effective parameters of a line, effective parameters of a transformer, effective parameters of a series compensator, effective parameters of a load and effective parameters of a parallel compensator from a D5000 power system steady-state model; and establishing a card data and node partition mapping table according to the effective parameters of the generator, the effective parameters of the line, the effective parameters of the transformer, the effective parameters of the series compensator, the effective parameters of the load and the effective parameters of the parallel compensator, wherein the card data comprises B card data, BQ card data, T card data and L card data.
Specifically, the generator effective parameters include: the method comprises the following steps of (1) stopping mark, node name, reference voltage, maximum active power, actual active power, maximum reactive power, minimum reactive power, arrangement voltage and partition name; correspondingly, according to the effective parameters of the generator, card data is established, and the method comprises the following steps: and establishing BQ card data according to the outage mark, the node name, the reference voltage, the maximum active power, the actual active power, the maximum reactive power, the minimum reactive power, the arrangement voltage and the partition name. Effective parameters of the generator are extracted from the D5000-based power system steady-state model, and BQ card data and a node partition mapping table are established. The effective parameters of the generator include: the method comprises the following steps of outage marking, node names, reference voltage, maximum active power, actual active power, maximum reactive power, minimum reactive power, arrangement voltage and partition names, wherein the unique index of the device consists of the node names and the reference voltage, and if generators connected in parallel on the same bus appear, the parameters of the generators are combined. The off-stream generator does not perform data conversion.
Specifically, the line effective parameters include: commissioning marks at two ends, node names at the head end, node names at the tail end, reference voltage, rated current, resistance, reactance, susceptance, parallel branch numbers and partition names; correspondingly, according to the effective parameters of the circuit, the card data is established, which comprises the following steps: and B card data and line L card data at two ends are established according to commissioning marks at two ends, the node name at the head end, the node name at the tail end, the reference voltage, the rated current, the resistance, the reactance, the susceptance, the number of the parallel branch and the partition name. Effective parameters of a line are extracted from a D5000-based power system steady-state model, B card data and line L card data at two ends of the line are established, and a node partition mapping table is updated. The effective parameters of the line include: the system comprises commissioning marks at two ends, a node name at the head end, a node name at the tail end, reference voltage, rated current, resistance, reactance, susceptance, a parallel branch number and a partition name, wherein the unique index of the system consists of the node name at the head end, the reference voltage, the node name at the tail end, the reference voltage and the parallel branch number. Data conversion is not performed as long as one end of the line is not in operation.
Specifically, the effective parameters of the transformer include: the system comprises a head end node name, a head end reference voltage, a tail end node name, a tail end reference voltage, rated capacity, copper loss equivalent resistance, leakage reactance, a head end fixed tap, a tail end fixed tap, a parallel branch number and commissioning marks; correspondingly, according to the effective parameters of the transformer, card data is established, and the method comprises the following steps: b card data of two ends or three ends and T card data of the transformer are established according to the name of a head end node, the name of a head end reference voltage, the name of a tail end node, the name of a tail end reference voltage, the rated capacity, copper loss equivalent resistance, leakage reactance, a head end fixed tap, a tail end fixed tap, a parallel branch number and a commissioning mark. And extracting effective parameters of the transformer from the D5000-based power system steady-state model, establishing B card data and transformer T card data of two ends or three ends of the transformer, and updating the node partition mapping table. The effective parameters of the transformer include: the system comprises a head end node name, a head end reference voltage, a tail end node name, a tail end reference voltage, a rated capacity, a copper loss equivalent resistance, a leakage reactance, a head end fixed tap, a tail end fixed tap, a parallel branch number and a commissioning mark, wherein the unique index of the system consists of the head end node name, the reference voltage, the tail end node name, the reference voltage and the parallel branch number. The non-commissioned windings do not undergo data conversion. It is worth noting that a B card with a neutral point is added to the three-winding transformer.
Specifically, the effective parameters of the series compensator include: a node name at the head end, a node name at the tail end, a reference voltage, a reactance, and an outage mark; correspondingly, establishing card data according to the effective parameters of the series compensator, comprising the following steps: and B card data at two ends and L card data of a branch are established according to the node name at the head end, the node name at the tail end, the reference voltage, the reactance and the shutdown mark. Effective parameters of the series compensator are extracted from the D5000-based power system steady-state model, B card data and branch L card data at two ends of the series compensator are established, and a node partition mapping table is updated. The effective parameters of the series compensator include: node name at head end, node name at tail end, reference voltage, reactance, shutdown flag. The shutdown series compensator does not perform data conversion.
Specifically, the load effective parameters include: node name, reference voltage, active load value, reactive load value and outage mark; correspondingly, according to the effective parameters of the load, card data is established, which comprises the following steps: and B card data or BQ card data is established according to the node name, the reference voltage, the active load value, the reactive load value and the outage mark. And extracting effective parameters of the load from the steady-state model of the power system based on the D5000, and updating the data of the corresponding B card or BQ card. The effective parameters of the load include: node name, reference voltage, active load value, reactive load value and outage mark. The off-load does not perform data conversion.
Specifically, the effective parameters of the parallel compensator include: node name, reference voltage, reactive compensation amount and outage mark; correspondingly, establishing card data according to the effective parameters of the parallel compensator, comprising the following steps: and B card data or BQ card data is established according to the node name, the reference voltage, the reactive compensation quantity and the shutdown mark. And extracting effective parameters of the parallel compensator from the D5000-based power system steady-state model, and updating corresponding B card or BQ card data. The effective parameters of the shunt compensator include: node name, reference voltage, reactive compensation amount and outage mark. The shutdown shunt compensator does not perform data conversion.
And then, generating a DAT file by the B card data, the BQ card data, the T card data and the L card data according to a steady-state model of the BPA power system according to the node partition mapping table so as to complete data conversion. And automatically writing the extracted and generated data of the B card, the BQ card, the L card and the T card into a DAT file according to the specification of each card format dictionary, and completing the model conversion from D5000 to BPA. And finding out the largest unit in each partition according to each data card and the node partition mapping table generated by conversion, taking the largest unit as a balance node (namely a BS card) of the partition, and then sequentially outputting a DAT file header, the BS card, a BQ card, a B card, an L card, a T card and a DAT file tail to finish data conversion.
The specific operation flow is as follows: a DAT file analysis module is called by a selection menu of 'open' — 'power grid data files (DAT and SWI)'; the menu ' open ' -grid data file (QS) ' calls the QS file analysis module and the QS-DAT file conversion module, so that the operation is simple, and the data conversion can be efficiently completed.
According to the conversion method of the D5000-BPA power system steady-state model, the D5000 power system steady-state model based on the D5000 is established, the BPA power system steady-state model based on the BPA is established, and then the D5000 power system steady-state model is converted into the BPA power system steady-state model.
Based on the same general inventive concept, the application also protects a conversion system of the D5000-BPA power system steady-state model.
Fig. 2 is a schematic structural diagram of a conversion system of a power system steady-state model of D5000-BPA according to an embodiment of the present invention.
As shown in fig. 2, the present embodiment protects a conversion system of a steady-state model of a power system with D5000-BPA, which includes:
the model establishing module 10 is used for establishing a D5000 power system steady-state model based on D5000; establishing a BPA power system steady-state model based on BPA;
and the conversion module 20 is used for converting the D5000 power system steady-state model into a BPA power system steady-state model.
According to the conversion system of the D5000-BPA power system steady-state model, the D5000 power system steady-state model based on the BPA is established, the BPA power system steady-state model based on the BPA is established, and then the D5000 power system steady-state model is converted into the BPA power system steady-state model.
Embodiments of the system parts have been described in detail in the corresponding method embodiments, so that they are not specifically described again in the corresponding system parts, but can be understood by referring to each other.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present invention, and shall cover the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present invention, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer-readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.