CN117977570B - Simulation method and computer equipment for wide-area protection control of power system - Google Patents
Simulation method and computer equipment for wide-area protection control of power system Download PDFInfo
- Publication number
- CN117977570B CN117977570B CN202410121464.1A CN202410121464A CN117977570B CN 117977570 B CN117977570 B CN 117977570B CN 202410121464 A CN202410121464 A CN 202410121464A CN 117977570 B CN117977570 B CN 117977570B
- Authority
- CN
- China
- Prior art keywords
- simulation model
- data
- simulation
- protocol
- application layer
- 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
- 238000004088 simulation Methods 0.000 title claims abstract description 308
- 238000000034 method Methods 0.000 title claims abstract description 115
- 238000004891 communication Methods 0.000 claims abstract description 70
- 230000001360 synchronised effect Effects 0.000 claims abstract description 66
- 238000005259 measurement Methods 0.000 claims abstract description 63
- 230000008569 process Effects 0.000 claims description 78
- 230000005540 biological transmission Effects 0.000 claims description 46
- 230000004044 response Effects 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 14
- 238000006243 chemical reaction Methods 0.000 claims description 11
- 230000009191 jumping Effects 0.000 claims description 8
- 230000009471 action Effects 0.000 claims description 7
- 238000012360 testing method Methods 0.000 abstract description 5
- 238000011160 research Methods 0.000 abstract description 4
- 238000011056 performance test Methods 0.000 abstract description 3
- 238000012018 process simulation test Methods 0.000 abstract description 3
- 238000007726 management method Methods 0.000 description 40
- 238000010586 diagram Methods 0.000 description 22
- 238000013500 data storage Methods 0.000 description 15
- 230000003993 interaction Effects 0.000 description 15
- 230000006870 function Effects 0.000 description 9
- 238000012544 monitoring process Methods 0.000 description 7
- 230000000977 initiatory effect Effects 0.000 description 5
- 230000007704 transition Effects 0.000 description 5
- 238000004458 analytical method Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 125000006850 spacer group Chemical group 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Abstract
The invention provides a simulation method and computer equipment for wide area protection control of a power system, wherein the method comprises the following steps: the method comprises the steps of obtaining a simulation model element library, wherein the simulation model element library comprises a master station simulation model, a substation simulation model, a router simulation model, a gateway machine simulation model, a phasor data concentrator simulation model, a synchronous phasor measurement device simulation model, a switch simulation model, a multifunctional measurement and control device simulation model, an acquisition execution unit simulation model, a merging unit simulation model, an intelligent terminal simulation model, a mutual inductor simulation model and a communication link simulation model. According to the connection mode of the items to be tested, selecting a simulation model in a simulation model element library, and configuring a wide area protection control simulation item for simulation test. The process simulation and performance test of the wide area protection control can be realized, and the simulation research of the user on the wide area protection control is facilitated.
Description
Technical Field
The application relates to the technical field of power system communication simulation, in particular to a simulation method and computer equipment for wide-area protection control of a power system.
Background
With the development of a new generation of autonomous controllable transformer substation, new technical requirements are put forward to a wide area protection control system of the power system according to specifications, and the functions of the wide area protection control system of the power system are simulated;
the related technology has no better simulation scheme of the wide area protection control system of the power system, and influences the research, the test and the popularization of the wide area protection control technology.
Disclosure of Invention
The embodiment of the application provides a simulation method and computer equipment for wide area protection control of an electric power system, which can simulate the wide area protection control function of the electric power system, can realize process simulation and performance test of the wide area protection control, and is convenient for users to simulate and research the wide area protection control process.
In a first aspect, the present application provides a simulation method for wide area protection control of an electric power system, including:
The simulation element model library is configured, and comprises simulation models of all intelligent electronic devices for realizing wide area protection control service simulation test, wherein the simulation models comprise: the system comprises a master station simulation model, a router simulation model, a substation simulation model, a gateway machine simulation model, a phasor data concentrator simulation model, a synchronous phasor measurement device simulation model, a switch simulation model, a multifunctional measurement and control device simulation model, an acquisition execution unit simulation model, a merging unit simulation model, an intelligent terminal simulation model, an electronic transformer simulation model and a communication link simulation model.
According to the wide area connection mode of the items to be tested, configuring a wide area protection control simulation item by utilizing the simulation element model library;
and configuring a station domain simulation model by utilizing the simulation element model library according to the station domain connection mode of the item to be tested.
The simulation of the wide area protection control process is realized, and the wide area protection control process is conveniently researched by a user.
In a second aspect, the present application provides a computer device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program and implement the steps of the simulation method for wide area protection control of the electric power system when the computer program is executed.
In a third aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement the steps of the above-described simulation method for wide area protection control of a power system.
The application discloses a simulation method and computer equipment for wide area protection control of a power system, wherein the method comprises the following steps: the method comprises the steps of obtaining a simulation model element library, wherein the simulation model element library comprises a master station simulation model, a substation simulation model, a router simulation model, a gateway machine simulation model, a phasor data concentrator simulation model, a synchronous phasor measurement device simulation model, a switch simulation model, a multifunctional measurement and control device simulation model, an acquisition execution unit simulation model, a merging unit simulation model, an intelligent terminal simulation model, a mutual inductor simulation model and a communication link simulation model. According to the connection mode of the items to be tested, selecting a simulation model in a simulation model element library, and configuring a wide area protection control simulation item for simulation test. The process simulation and performance test of the wide area protection control can be realized, and the simulation research of the user on the wide area protection control is facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a simulation method of a wide area protection control system of an electric power system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a wide area protection control system in one embodiment;
FIG. 3 is a schematic diagram of a spacing arrangement in a station domain simulation model in one embodiment;
FIG. 4 is a schematic diagram of a master station simulation model in one embodiment;
FIG. 5 is a schematic diagram of a substation simulation model in one embodiment;
FIG. 6 is a schematic diagram of a gateway simulation model in one embodiment;
FIG. 7 is a schematic diagram of a phasor data concentrator simulation model in one embodiment;
FIG. 8 is a schematic diagram of a simulation model of a synchrophasor measurement device in one embodiment;
FIG. 9 is a model schematic of an application layer module of a simulation model in one embodiment;
FIG. 10 is a schematic diagram of a structure variable storing property setting parameters in one embodiment;
FIG. 11 is a schematic diagram of structure variables storing relevant attributes of supported services in an embodiment
FIG. 12 is a process domain diagram of a master simulation model application layer protocol management process in one embodiment;
FIG. 13 is a process domain diagram of an application layer protocol management process for a substation simulation model in one embodiment;
FIG. 14 is a process domain diagram of a gateway simulation model application layer protocol management process in one embodiment;
FIG. 15 is a process domain diagram of an application layer protocol management process for a phasor data concentrator simulation model in one embodiment;
FIG. 16 is a process domain diagram of an application layer protocol management process for a synchrophasor measurement device simulation model in one embodiment;
fig. 17 is a schematic block diagram of a computer device provided by an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart of a simulation method for wide area protection control of a power system, which is provided by the embodiment of the application, and the simulation method can be applied to computer equipment for simulating a wide area protection control process of the power system in the professional field, and performance such as time delay, reliability and the like of a smart grid/intelligent substation network can be obtained by simulating a communication system of the smart grid/intelligent substation.
The computer device may be a terminal device or a server, where the terminal device includes, for example, a mobile phone, a tablet computer, a notebook computer, a desktop computer, and a personal digital assistant; the servers may be stand alone servers or a cluster of servers. For convenience of explanation, the embodiment of the application is mainly applied to terminal equipment to describe simulation in the field of intelligent substations, and certainly can be not limited to the simulation.
In some embodiments, the simulation method may use the OPNET simulation software as a platform, but is not limited to the OPNET simulation software, and other network simulation software, such as MATLAB, may be used to implement the simulation method according to the embodiments of the present application.
As shown in fig. 1, the simulation method for wide area protection control of a power system according to an embodiment of the present application includes steps S110 to S140.
Step S110, an application layer protocol generation process of the intelligent electronic device model acquires attribute setting parameters, wherein the attribute setting parameters at least comprise model type information.
Step S120, according to the wide area connection mode of the item to be tested, a wide area simulation model is configured by utilizing the simulation element model library.
And step 130, according to the station domain connection mode of the item to be tested, configuring a station domain simulation model by using the simulation element model library.
And step 140, simulating the wide area protection control simulation project to obtain a simulation result of the project to be tested.
In some embodiments, the wide area protection control system configured in step S120 is shown in fig. 2, the intermediate configuration of the site domain simulation model configured in step S130 is shown in fig. 3, and the internal structure models of the master station, the substation, the network shutdown, the phasor data concentrator, and the synchronized phasor measurement device simulation model are shown in fig. 4, fig. 5, fig. 6, fig. 7, and fig. 8, respectively, and include: the system comprises an application layer module, a transmission layer module, a network layer module, a plurality of data link layer sub-modules and a corresponding physical layer module, wherein the physical layer module comprises at least one pair of sending/receiving ports, and can realize an intelligent electronic device model architecture based on TCP/IP. The structural model shown may be referred to as a seven-layer structural model framework.
Referring to fig. 9, fig. 9 shows a model of an application layer module of a simulation model of a master station, a substation, a network shutdown, a phasor data concentrator, and a synchrophasor measurement device in an embodiment. In some embodiments, the model type information includes a protocol identification and a model identification. The protocol identification is used for indicating the type of an application layer communication protocol management process, and the model identification is used for indicating the simulation model to be used as a client or a server type in a certain protocol application.
The protocol identifier is used for indicating that the application protocol corresponding to the target interaction process is DL/T860 protocol, IEEEC 37.118.118 protocol or GB/T33602 protocol, which is not limited to this; the DL/T860 protocol is used for communication between station-control layer equipment and spacer layer equipment, such as constant value modification, control command transmission and the like; the GB/T26865.2-2023 protocol is used for data transmission of a real-time dynamic monitoring system of the power system between a substation master station (which can be called a scheduling end) and a substation synchronous phasor measurement unit PMU (which can be called a substation end).
According to the simulation model, a corresponding application layer communication protocol management process is generated through an application layer module according to the attribute setting parameters, the simulation model is determined to be a client working mode or a server working mode according to the application layer service attribute configuration information and the application layer support service attribute configuration information, and further the application layer communication protocol management process is determined to be a client communication protocol management process in the client working mode, and the application layer communication protocol management process is determined to be a server communication protocol management process in the server working mode. The application layer communication protocol management process may act as a client or server.
The client/server model is a distributed application architecture for dividing tasks or workloads between providers of services (referred to as servers) and service requesters (referred to as clients). The server provides a function or service to one or more clients that are able to initiate requests for such services.
For example, the server/client device interaction based on the TCP/IP communication protocol is: firstly, an application layer of a client sends a request for establishing session connection to a transmission layer below, and then the client establishes connection with the transmission layer of a server through three-way handshake. After the connection is established successfully, the transmission layer informs the application layer, and the application layer of the client and the server can perform service interaction. And closing the session connection in a mode of waving hands four times after the interaction requirement of the application layer is finished. The client server model is a distributed application architecture for dividing tasks or workloads between providers of services (referred to as servers) and service requesters (referred to as clients). The server provides a function or service to one or more clients that are able to initiate requests for such services.
In some embodiments, the obtaining, by the master station, the substation, the network shutdown, the phasor data concentrator, and an application layer communication protocol management process of the synchronized phasor measurement device simulation model, configuration information includes: and when the simulation is started, the application layer communication protocol management process acquires the application layer communication protocol attribute set by the user, and stores the application layer communication protocol attribute into a shared database.
Referring to fig. 9, in the embodiment of the present application, an application layer module generates an application layer communication protocol management process for implementing different application layer protocols according to attribute setting parameters, where the application layer communication protocol management process may be used as a client or a server.
As shown in fig. 9, the application layer module data storage module includes an attribute storage unit and a data storage unit. The application layer communication protocol management process may store the acquired attribute setting parameters in an attribute storage unit.
Optionally, the data storage unit is configured to store data received from the simulation model of other devices or preset data read from the computer device in an parsing manner, for example, data of a corresponding protocol in the real substation, where the preset data may be used for framing and filling of the data packet, so that data similar to or identical to the real substation may be transmitted during simulation.
Illustratively, a data store is created for the application layer data storage module for storing the received service request/reply data and providing corresponding service reply data when it is necessary to respond to service request data of other simulation models. The data store may be created in the OPNET simulation in a manner that creates data lists A-G; for example, when service request data transmitted from a certain client working mode simulation model is received, the data content is parsed and the data is stored in a corresponding data list: when a data calling service request instruction of another client is received in a certain application, the data required by searching from a data list is uploaded according to the instruction requirement, and is framed and packaged into a corresponding protocol, for example, the gateway machine functions as a data phasor concentrator to store and combine the collected synchronous phasor measurement data, and the data frames are sent to a regulation master station (client) through a data frame of a GB/T26865.2-2023 protocol.
Referring to fig. 10 and 11, a structure type variable added in a system file of the OPNET simulation platform is used as a data repository for creating an attribute storage unit and a data storage unit. The structure variables shown in FIG. 10 are used for the attribute setting parameters of the application layer protocol generation process, such as the attributes of the application protocols of DL/T860, IEC104, GB/T26865.2-2023, etc.; the structure variables shown in FIG. 11 are used to store the relevant attributes of the services supported by the simulation model.
The structure variables shown in fig. 10 include at least one of a request type (request_type), a request size (request_size), a server name (server_name), a service quality (tos), a service module ID (e.g., threerec _id), a recording content number (j), a CFG-1 file interaction time (cfgone _inter_time), and a CFG-1 file interaction number (cfgone _count). Wherein the request size may be used to indicate the size of the received data response packet; the server name is used for indicating the name of the server equipment instance in the application protocol interaction, and the service quality is used for defining the service priority of the application; the service module ID includes, for example, a three-layer protocol application layer receiving module ID, namely, thread_rec_id, for storing the ID of the three-layer receiving module so as to retrieve data from the three-layer application layer module, and the three-layer protocol application layer refers to an application layer mapped only to a link layer and a physical layer: other embodiments may also include a seven-layer protocol application layer receiving module ID: the CFG-1 file interaction time is used for indicating the interval time between two CFG-1 commands stored in one application; the CFG-1 file interaction times are used for indicating the times of CFG-1 commands of the application.
The fabric variables shown in fig. 11 are used to service the activated client protocol process model of other device models, and include at least one of the following: a service name (name), a transport layer Protocol (Protocol) of the provided service, a service Port (Port);
For example, when the service names defined by the device are DL/T860, IEC104, GB/T26865, it may be determined that the device model supports services of DL/T860, IEC104, GB/T26865 protocols; the transport layer protocol of the provided service can be TCP protocol or UDP protocol; in general, emulation requires setting a new service port for the new protocol, e.g. the protocol port number for IEC104 is usually specified as 2404, which has become a 104 protocol specific port number.
In some embodiments, the simulation method provides a parameter attribute setting interface that allows a user to control the reading of data and the behavior of the model through the setting of parameters, setting external attributes to the simulation model that can be customized by the user. The application layer communication protocol management process may obtain the attribute setting parameters set by the user through the parameter attribute setting interface, and may obtain the foregoing structural variables as attribute setting instances. For example, the application layer module may invoke this structure variable in the initialization and store the read parameters into the structure, further acquired by the generated application layer communication protocol management process.
Taking a simulation model of the GB/T26865 protocol as an example, when the set attribute setting parameter includes a Support service, that is, a service supported by the present device model, the device model is defined as a server, and a plurality of application protocols, for example, DL/T860, IEC104 application protocol, etc., may be set and stored in a structure variable as shown in fig. 10; when the set attribute setting parameters include Support applications, that is, applications supported by the present device model, which is defined as a client, a plurality of application protocols, such as DL/T860, IEC104 application protocol, etc., may be set. Protocol attributes may be further set, such as: application protocol start time (START TIME), application protocol duration (Application duration), interval time between two adjacent repetitions of application protocol (inter_repetition time), number of repetitions of application protocol (Number of repetition), interval time of application interaction request (Inter-request time), size of response packet (Filesize, unit may be bytes).
Referring to fig. 9, an application layer module generates an application layer communication protocol management process according to an application layer communication protocol attribute configuration and the application layer support service attribute configuration information; the application layer communication protocol management process at least comprises a transmission/reception subprocess of protocol service request data and a transmission/reception subprocess of protocol service response data; and identifying a protocol type of the application layer communication protocol management process according to the protocol in the model type information, such as protocol a, protocol B …, protocol n, and determining that the application layer communication protocol management process is a client protocol interaction process or a server protocol interaction process according to the model identification in the model type information.
In some embodiments, one simulation model can act as a client for one application while also acting as a server for another application. If the master station simulation model needs to acquire a certain service of the substation, the master station simulation model needs to send service request data to the gateway machine simulation model, and then the gateway machine simulation model sends the service request response to the corresponding spacer layer equipment simulation model.
In some embodiments, the configuration information further includes an application protocol start time and/or an application protocol start sequence corresponding to the application protocol information. The application layer module determines relevant operation parameters of an application layer communication protocol management process of the simulation model according to the simulation model attribute setting parameters, and the method comprises the following steps: and the application layer module determines an application layer communication protocol management process of the intelligent electronic equipment according to the application protocol starting time and/or the application protocol starting sequence and the model type information. For example, the application layer module may generate and call different application layer communication protocol management processes according to the set starting time and/or starting sequence of each protocol, where the application layer communication protocol management processes generate, receive, and send application layer communication protocol data, and the application layer communication protocol data includes protocol service request data or protocol service response data; the application layer module realizes the interaction process of different protocols through a plurality of application layer communication protocol management processes.
For example, the application layer protocol start time and/or the application layer protocol start sequence may be determined according to an interaction procedure of the master station and the slave station in the actual wide area protection control scenario.
By way of example, the application layer communication protocol attributes include application protocols such as IEC61850 protocol, IEC60870 protocol, DL/T860 protocol, GB/T33602 protocol, GB/T26865 protocol, IEEE Std C37.118 protocol, DL/T634.5101 protocol, DL/T634.5104 protocol, DL/T476 protocol, modbus protocol, and the like. Of course, not limited thereto; the GB/T33602 protocol (GSP protocol-GENERAL SERVICE protocol) is used for defining the architecture, interaction mode, service primitives and communication protocol of the general service of the power system, is suitable for predefining and self-defining service data interaction between each other in each stage of power grid dispatching control center, each power plant and transformer substation, and is suitable for each link of design, development, construction, operation and maintenance of each power monitoring system and equipment; the IEC61850 protocol and the DL/T860 protocol are used for communication between main/sub stations, between station control layer equipment and spacer layer equipment, such as fixed value modification, control command transmission and the like; the GB/T26865 protocol and the IEEE Std C37.118 protocol are used for defining communication between a master station (which can be called a scheduling end) and a substation in a real-time dynamic monitoring system of the power system, such as data uploading and command transmission; The DL/T634.5101 protocol (the remote device and system parts 5-101: transmission protocol basic remote task matching standard) is applicable to remote devices and systems with coded bit serial data transmission, and is used for monitoring and controlling a geographic wide area process, the purpose of formulating the set of remote matching standards is to enable interoperability between compatible remote devices, the file adopts IEC 60870-5 series files, the specification proposes a functional protocol subset of basic remote tasks, and defines actual communication functions and most important user functions, but cannot guarantee complete compatibility and interoperability between devices of different factories; The DL/T634.5104 protocol (IEC 60870-5-101 network access of a standard transmission protocol set is adopted in the transmission protocol of the telecontrol equipment and the 5-104 parts of the system) prescribes a message format for data transmission in a client/server mode between a dispatching master station and a power-off of a transformer substation communication network, the IEC104 protocol changes an open OSI seven-layer communication model into five layers according to actual application needs, the communication is carried out under an application layer by using a TCP protocol, a protocol port number is usually prescribed as 2404, and the port number is a special port number of the 104 protocol; the DL/T476 protocol defines the power system real-time data communication application layer protocol, describing data formats, control sequences, and service primitives. The standard is suitable for real-time data communication between power system dispatching (control) centers and between the dispatching (control) centers and the plant stations; the Modbus protocol is used for communication between a monitoring computer and a remote terminal control system, such as communication between the monitoring computer and the remote terminal control system in the data acquisition and monitoring control system;
The simulation model in the simulation model element library is selected according to the connection mode of the items to be tested, and wide area protection control simulation items are configured, wherein the detailed flow is as follows: the wide area protection control simulation project is provided with at least one main station simulation model, one router simulation model, one substation simulation model or a station domain simulation model, the main station simulation model is connected with the router simulation model, and the router simulation model is connected with the substation simulation model/the station domain simulation model; the station domain simulation model is at least provided with one gateway machine simulation model, one switch simulation model and one interval simulation model, and is connected with the router simulation model through the gateway machine simulation model;
Master station simulation model: the application layer module of the master station simulation model comprises a data receiving submodule, a wide area protection control algorithm submodule and a control instruction generating and transmitting submodule;
The wide area protection control algorithm submodule is internally preset with a wide area protection algorithm, can analyze and perform related operation on the received combined synchronous phasor measurement data, judges whether protection is started or not by combining a preset protection fixed value, and generates a data packet containing fault location data and a control instruction by the fault location data and control instruction generation and transmission module when the protection is started.
Illustratively, the process domain model of the application layer protocol management process of the master station simulation model may be represented as a state transition relationship diagram as shown in fig. 12, and the execution logic of the application layer protocol management process includes:
1) Triggering a simulation initiation interrupt to enter an initialization state when OPNET simulation starts, initializing a data storage unit, simulation model parameters and the like, and waiting for the initialization of other simulation processes of the equipment model to be completed: and reading attribute setting parameters of the master station simulation model, including application protocols operated and supported by the equipment, application session connection frequency, data packet size and the like. And after the attribute setting parameters are read, the preset data which can be read from the computer equipment in an analyzing way are stored in the data storage unit. The initialization state is directly entered into the data receiving state after the execution.
2) In the data receiving state, when the master station finishes receiving the application layer protocol data every time, an interrupt is planned to be transferred from the data receiving state to the protection algorithm judging state. And executing a built-in protection algorithm in the 'protection algorithm judging' state, analyzing the received application layer protocol data from the substation, if the analysis result judges that the algorithm protection condition is met, positioning to a fault occurrence place through the execution result of the protection algorithm, accurately planning an interrupt to jump to a 'control instruction generation and transmission' state on a certain device of the substation or a certain line in or between the substation, and if the analysis result judges that the data is normal, jumping back to a 'data receiving' state to wait for the next interrupt.
3) In the 'control instruction generation and transmission' state, a control instruction is generated and transmitted according to the fault occurrence place judged by the protection algorithm, and after the transmission is completed, the control instruction jumps back to the 'data receiving' state to wait for the next stream interruption.
Substation simulation model: the application layer module of the substation simulation model comprises a data generation sub-module, a data transmission sub-module and a control instruction receiving sub-module, wherein the data generation sub-module, the data transmission sub-module and the control instruction receiving sub-module can generate all business data of the substation and transmit the data to the master station simulation model, and the control instruction receiving and transmitting sub-module receives the control instruction transmitted by the master station simulation model.
Illustratively, the process domain model of the application layer protocol management process of the substation simulation model may be represented as a state transition relation diagram as shown in fig. 13, and the execution logic of the application layer protocol management process includes:
1) Triggering a simulation initiation interrupt to enter an initialization state when OPNET simulation starts, initializing a data storage unit, simulation model parameters and the like, and waiting for the initialization of other simulation processes of the equipment model to be completed: and reading attribute setting parameters of the master station simulation model, including application protocols operated and supported by the equipment, application session connection frequency, data packet size and the like. And after the attribute setting parameters are read, the preset data which can be read from the computer equipment in an analyzing way are stored in the data storage unit. The initialization state is directly entered into the data receiving state after the execution.
2) In the data generation sub-module state, when the sub-station completes the generation of the application layer protocol data of the sub-station once, an interrupt is planned to be transferred from the data generation sub-module state to the data transmission sub-module state. Executing the data generation action in the state of the data transmission sub-module, transmitting the generated application layer protocol data to a master station simulation model, if the algorithm protection condition is judged to be met according to the analysis result, positioning a fault occurrence place through the execution result of the protection algorithm, accurately planning an interrupt to jump to the state of 'control instruction generation and transmission' to a certain device of a certain substation or a certain line in or between the stations, and if the data is judged to be normal according to the analysis result, jumping back to the state of 'data reception' to wait for the arrival of the next interrupt.
3) When the data generation state is adopted, if a control instruction from the master station is received at the moment, the data generation sub-module is scheduled to jump to the control instruction receiving state from one interrupt, the corresponding equipment control action is completed according to the control instruction, and then the data generation sub-module jumps back to the data generation state to wait for the next interrupt.
The application layer module of the gateway simulation model generates an application layer communication protocol management process according to the corresponding application layer communication protocol attribute configuration and the client/server working mode; the application layer communication protocol management process comprises a transmission/reception subprocess of protocol service request data, a transmission/reception subprocess of protocol service response data and a protocol conversion subprocess;
Illustratively, the process domain model of the application layer protocol management process of the gateway machine simulation model may be represented as a state transition relationship diagram as shown in fig. 14, and the execution logic of the application layer protocol management process includes:
1) Triggering a simulation initiation interrupt to enter an initialization state when OPNET simulation starts, initializing a data storage unit, simulation model parameters and the like, and waiting for the initialization of other simulation processes of the equipment model to be completed: and reading attribute setting parameters of the master station simulation model, including application protocols operated and supported by the equipment, application session connection frequency, data packet size and the like. And after the attribute setting parameters are read, the preset data which can be read from the computer equipment in an analyzing way are stored in the data storage unit. The initialization state is directly in a waiting state after being executed.
2) When the gateway machine simulation model finishes receiving the application layer protocol data of other simulation models every time in the waiting state, after finishing analyzing the data, jumping from the waiting state to the corresponding protocol service request data transmitting/receiving state or the protocol service response data transmitting/receiving state according to the flow interruption corresponding to the received data type, and if the gateway machine receives the protocol service request data, jumping to the protocol service request data transmitting/receiving state, further processing the data is needed, and the processed data is transmitted to the server working mode equipment by the protocol service request data transmitting/receiving state, so that the protocol service response data is the same.
3) In the state of 'protocol service request data transmission/reception', comprehensively judging the source and the type of protocol data, when judging that the protocol conversion is not carried out on the data, jumping to the 'protocol conversion' state, carrying out mapping conversion on the protocol data in the 'protocol conversion' state, then returning to the 'protocol service request data transmission/reception' to further execute transmission action, transmitting the mapped and converted protocol service request data to server working mode equipment, setting a global variable of 'data transmission completion' as 'true', planning an interrupt, and when the condition of 'judging the data transmission completion' is met, jumping from the 'protocol service request data transmission/reception' state to the 'waiting' state, waiting for the next protocol service data to reach the corresponding flow interrupt, and the state working principle of the 'protocol service response data transmission/reception' state
The application layer module of the phasor data concentrator simulation model comprises a synchronous phasor data receiving sub-module, a synchronous phasor data merging sub-module and a synchronous phasor data transmitting sub-module;
The application layer module of the simulation model of the synchronous phasor measurement device comprises a synchronous phasor data generation sub-module and a synchronous phasor data transmission sub-module;
The synchronous phasor data receiving submodule of the phasor data concentrator simulation model receives the phasor data sent by the synchronous phasor data sending submodule of the synchronous phasor measurement device simulation model, the synchronous phasor data merging submodule merges the phasor data at each interval, and the synchronous phasor data sending submodule sends the phasor data to the master station simulation model;
and the synchronous phasor data generation submodule of the synchronous phasor measurement device simulation model generates interval phasor data sources, and the synchronous phasor data transmission submodule transmits the phasor data to the phasor data concentrator simulation model.
Illustratively, the process domain model of the application layer protocol management process of the phasor data concentrator simulation model may be represented as a state transition relationship diagram as shown in fig. 15, and the execution logic of the application layer protocol management process includes:
1) Triggering a simulation initiation interrupt to enter an initialization state when OPNET simulation starts, initializing a data storage unit, simulation model parameters and the like, and waiting for the initialization of other simulation processes of the equipment model to be completed: and reading attribute setting parameters of the master station simulation model, including application protocols operated and supported by the equipment, application session connection frequency, data packet size and the like. And after the attribute setting parameters are read, the preset data which can be read from the computer equipment in an analyzing way are stored in the data storage unit. And after the initialization state is executed, the synchronous phasor measurement data receiving state is directly entered.
2) In the state of 'synchronous phasor measurement data receiving', the receiving action of the synchronous phasor measurement data at a certain moment of the synchronous phasor measurement device connected with the synchronous phasor measurement device is executed, the value of a 'received' flag bit variable is increased by 1 every time the receiving is completed, and a self-interrupt is planned to jump from the state of 'synchronous phasor measurement data receiving' to the state of the synchronous phasor measurement device to continuously complete the data receiving of the next synchronous phasor measurement device. When this process is repeated until all data reception by the connected synchrophasor measurement devices is completed, an interruption is planned to jump from the "synchrophasor measurement data reception" state to the "synchrophasor measurement data merging" state.
3) In the state of combining the synchrophasor measurement data, all the synchrophasor measurement data at a certain moment are combined to form a new combined synchrophasor measurement data packet, and when the combination is completed, an interruption is planned to jump from the state of combining the synchrophasor measurement data to the state of sending the synchrophasor measurement data.
4) In the state of 'synchronous phasor measurement data transmission', the packet sending action of sending the combined synchronous phasor measurement data to the master station is executed, and after the execution is finished, the state of 'synchronous phasor measurement data transmission' is skipped to the state of 'synchronous phasor measurement data reception', and the process continues to wait for the synchronous phasor measurement data at the next moment to reach the corresponding self-interruption.
Illustratively, the process domain model of the application layer protocol management process of the synchrophasor measurement device simulation model may be represented as a state transition relationship diagram as shown in fig. 16, and the execution logic of the application layer protocol management process includes:
1) Triggering a simulation initiation interrupt to enter an initialization state when OPNET simulation starts, initializing a data storage unit, simulation model parameters and the like, and waiting for the initialization of other simulation processes of the equipment model to be completed: and reading attribute setting parameters of the master station simulation model, including application protocols operated and supported by the equipment, application session connection frequency, data packet size and the like. And after the attribute setting parameters are read, the preset data which can be read from the computer equipment in an analyzing way are stored in the data storage unit. And after the initialization state is executed, the synchronous phasor measurement data generation state is directly entered.
2) In the state of generating synchronous phasor measurement data, the simulation model of the synchronous phasor measurement device calculates according to the collected electric quantity data to generate synchronous phasor measurement data, after the synchronous phasor measurement data at the same moment are generated, a self-interrupt is planned to be generated, the value of a global variable of generating the synchronous phasor measurement data is set as true, an interrupt judging function is executed in an exit function of the state to judge that the interrupt type is the self-interrupt, the interrupt code meets the condition of generating the synchronous phasor measurement data, and the state of generating the synchronous phasor measurement data is jumped to the state of transmitting the synchronous phasor measurement data.
3) In the state of synchronous phasor measurement data transmission, the synchronous phasor measurement data transmission action is executed, and after the execution is finished, the value of the synchronous phasor measurement data generation is set to be false and the state of the synchronous phasor measurement data generation is jumped back to wait for the next self-interruption.
Referring to fig. 17 in combination with the above embodiments, fig. 17 is a schematic block diagram of a computer device 500 according to an embodiment of the present application. The computer device 500 comprises one or more processors 501, the one or more processors 501 working individually or together for implementing the steps of the simulation method of the wide area protection control.
The computer device 500 may also include, for example, memory 502.
The processor 501 and the memory 502 are illustratively coupled by a bus 503, such as an I2C (Inter-INTEGRATED CIRCUIT) bus.
Specifically, the Processor 501 may be a Micro-controller Unit (MCU), a central processing Unit (Central Processing Unit, CPU), a digital signal Processor (DIGITAL SIGNAL Processor, DSP), or the like.
Specifically, the Memory 502 may be a Flash chip, a Read-Only Memory (ROM) disk, an optical disk, a U-disk, a removable hard disk, or the like.
Wherein the processor 501 is configured to execute a computer program stored in the memory 502 and implement the steps of the simulation method of the wide area protection control when the computer program is executed.
The processor 501 is exemplary for running a computer program stored in the memory 502 and implementing the following steps when executing the computer program:
configuring a simulation element model library, including simulation models of all intelligent electronic devices for realizing wide area protection control service simulation test;
According to the wide area connection mode of the item to be tested, utilizing the simulation element model library to configure a wide area simulation model;
According to the station domain connection mode of the item to be tested, using the simulation element model library to configure a station domain simulation model;
And simulating the wide area protection control simulation project to obtain a simulation result of the project to be tested.
The specific principle and implementation manner of the computer device provided by the embodiment of the present application are similar to the simulation method of the foregoing embodiment, and are not repeated here.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program comprises program instructions, and the computer program when executed by a processor causes the processor to realize the steps of the simulation method provided by the embodiment.
The computer readable storage medium may be an internal storage unit of the computer device according to any one of the foregoing embodiments, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), or the like, which are provided on the computer device.
It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It should also be understood that the term "and/or" as used in the present application and the appended claims refers to the associated list.
It should be noted that the description of "first", "second", etc. in this disclosure is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implying an indication of the number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
Claims (7)
1. The simulation method for the wide area protection control of the power system is characterized by comprising the following steps of:
Obtaining a simulation model element library, wherein the simulation model element library comprises the following simulation models: the system comprises a master station simulation model, a substation simulation model, a router simulation model, a gateway machine simulation model, a phasor data concentrator simulation model, a synchronous phasor measurement device simulation model, a switch simulation model, a multifunctional measurement and control device simulation model, an acquisition execution unit simulation model, a merging unit simulation model, an intelligent terminal simulation model, a mutual inductor simulation model and a communication link simulation model;
selecting the simulation model in the simulation model element library according to the connection mode of the item to be tested, configuring a wide area protection control simulation item, wherein the wide area protection control simulation item is provided with at least one main station simulation model, one router simulation model and one sub-station simulation model or one station domain simulation model, the main station simulation model is connected with the router simulation model, and the router simulation model is connected with the sub-station simulation model/station domain simulation model; the station domain simulation model is at least provided with one gateway machine simulation model, one switch simulation model and one interval simulation model, and is connected with the router simulation model through the gateway machine simulation model;
The master station simulation model, the substation simulation model, the gateway machine simulation model, the phasor data concentrator simulation model, the synchronous phasor measurement device simulation model and the multifunctional measurement and control device simulation model respectively comprise: the system comprises an application layer module, a transmission layer module, a network layer module, a plurality of data link layer sub-modules and a corresponding physical layer module, wherein the physical layer module comprises at least one pair of sending/receiving ports;
The application layer module of the gateway simulation model generates an application layer communication protocol management process according to the corresponding application layer communication protocol attribute configuration and the client/server working mode; the application layer communication protocol management process comprises a transmission/reception subprocess of protocol service request data, a transmission/reception subprocess of protocol service response data and a protocol conversion subprocess;
When the gateway simulation model is in the client working mode, the sending/receiving subprocess of the protocol service request data is used for sending the protocol service request data, and the sending/receiving subprocess of the protocol service response data is used for receiving the protocol service response data;
When the gateway simulation model is in the server working mode, the sending/receiving subprocess of the protocol service request data is used for receiving the protocol service request data, and the sending/receiving subprocess of the protocol service response data is used for sending the protocol service response data;
The protocol management process of the application layer of the network shutdown simulation model enters a waiting state after the initialization execution is finished when the simulation starts, and jumps to a protocol service request data transmitting/receiving state or a protocol service response data transmitting/receiving state according to the received data type when the waiting state is carried out; the method comprises the steps of transmitting data to server working mode equipment when the data is transmitted to a protocol service request data transmitting/receiving state, and returning to a waiting state when the transmission of the protocol service request data is completed; the method comprises the steps of transmitting data to client side working mode equipment when the protocol service response data is transmitted/received, and returning to a waiting state when the protocol service response data is transmitted;
In a protocol service request data transmitting/receiving state or a protocol service response data transmitting/receiving state, judging whether protocol conversion is completed, if not, jumping to a protocol conversion state, wherein the protocol conversion subprocess is used for carrying out protocol conversion on the protocol service request data and the protocol service response data, and jumping back to the protocol service request data transmitting/receiving state or the protocol service response data transmitting/receiving state after completing protocol conversion actions;
And simulating the wide area protection control simulation project to obtain a simulation result of the project to be tested.
2. The simulation method of claim 1, wherein the simulation method further comprises:
Configuring m interval simulation models of intervals, wherein the m interval simulation models comprise interval simulation models of one or more of the following intervals: the intelligent terminal simulation system comprises a space comprising the merging unit simulation model and the intelligent terminal simulation model, a space comprising the acquisition execution unit simulation model, a space comprising the mutual inductor simulation model and the intelligent terminal simulation model, a space comprising the multifunctional measurement and control device simulation model and a space comprising the synchronous phasor measurement device simulation model;
and configuring the station domain simulation model by using the gateway machine simulation model, the switch simulation model, the communication link simulation model and m interval simulation models according to a station domain connection mode of an item to be tested, wherein each interval simulation model is connected to the gateway machine simulation model through the switch simulation model.
3. The simulation method of claim 1, wherein the simulation method further comprises:
Determining configuration information of each simulation model in the wide area protection control simulation project, wherein the configuration information comprises at least one of the following components: communication parameter configuration information, application layer service attribute configuration information and application layer support service attribute configuration information, wherein the communication parameter configuration information comprises communication address parameters;
The simulation model generates an application layer communication protocol management process according to the application layer service attribute configuration information and the application layer support service attribute configuration information; the application layer communication protocol management process generates, receives and transmits application layer communication protocol data when simulating the wide area protection control simulation project, wherein the application layer communication protocol data comprises protocol service request data and/or protocol service response data;
Determining that the simulation model is in a client working mode or a server working mode according to the application layer service attribute configuration information and the application layer support service attribute configuration information, determining that the simulation model is in a client working mode according to the application layer service attribute configuration information, and determining that the simulation model is in a server working mode according to the application layer support service attribute configuration information, wherein in the client working mode, the application layer communication protocol management process is a client communication protocol management process, and in the server working mode, the application layer communication protocol management process is a server communication protocol management process.
4. A simulation method according to any one of claims 1 to 3, characterized in that:
The application layer module of the master station simulation model comprises a data receiving sub-module, a wide area protection control algorithm sub-module and a control instruction generating and transmitting sub-module;
The application layer module of the substation simulation model comprises a data generation sub-module, a data transmission sub-module and a control instruction receiving sub-module;
The data receiving submodule of the master station simulation model receives data sent by the data sending submodule of the substation simulation model, analyzes and computes the received data through the wide area protection control algorithm submodule, judges whether to start wide area protection control according to preset judging logic, and generates a control instruction for a corresponding substation through the control instruction generating and sending submodule when the wide area protection control is required to be started;
The data generating submodule of the substation simulation model generates a data source of the substation, the data transmitting submodule transmits data to the master station simulation model, and the control instruction receiving and transmitting submodule receives the control instruction transmitted by the master station simulation model.
5. A simulation method according to any one of claims 1 to 3, characterized in that:
The application layer module of the phasor data concentrator simulation model comprises a synchronous phasor data receiving sub-module, a synchronous phasor data merging sub-module and a synchronous phasor data transmitting sub-module;
The application layer module of the simulation model of the synchronous phasor measurement device comprises a synchronous phasor data generation sub-module and a synchronous phasor data transmission sub-module;
The synchronous phasor data receiving submodule of the phasor data concentrator simulation model receives the phasor data sent by the synchronous phasor data sending submodule of the synchronous phasor measurement device simulation model, the synchronous phasor data merging submodule merges the phasor data at each interval, and the synchronous phasor data sending submodule sends the phasor data to the master station simulation model;
and the synchronous phasor data generation submodule of the synchronous phasor measurement device simulation model generates interval phasor data sources, and the synchronous phasor data transmission submodule transmits the phasor data to the phasor data concentrator simulation model.
6. A simulation method according to claim 3, wherein the application layer service attribute configuration information comprises an application layer communication protocol attribute or the application layer support service attribute configuration information comprises an application layer communication protocol attribute;
The master station simulation model, the substation simulation model, the gateway machine simulation model, the phasor data concentrator simulation model, the synchronous phasor measurement device simulation model and the multifunctional measurement and control device simulation model are at least configured with an application layer communication protocol according to the application layer communication protocol attribute.
7. A computer device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program and implement the steps of the simulation method for wide area protection control of an electric power system according to any one of claims 1 to 6 when the computer program is executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410121464.1A CN117977570B (en) | 2024-01-29 | Simulation method and computer equipment for wide-area protection control of power system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410121464.1A CN117977570B (en) | 2024-01-29 | Simulation method and computer equipment for wide-area protection control of power system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117977570A CN117977570A (en) | 2024-05-03 |
CN117977570B true CN117977570B (en) | 2024-11-19 |
Family
ID=
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104319886A (en) * | 2014-10-24 | 2015-01-28 | 南京南瑞继保电气有限公司 | Power grid wide area protection and control system |
CN114615358A (en) * | 2022-03-07 | 2022-06-10 | 广东工业大学 | Simulation method of intelligent electronic device, electronic device and storage medium |
CN115758715A (en) * | 2022-11-15 | 2023-03-07 | 深圳供电局有限公司 | Simulation analysis method, system, device and storage medium for power equipment |
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104319886A (en) * | 2014-10-24 | 2015-01-28 | 南京南瑞继保电气有限公司 | Power grid wide area protection and control system |
CN114615358A (en) * | 2022-03-07 | 2022-06-10 | 广东工业大学 | Simulation method of intelligent electronic device, electronic device and storage medium |
CN115758715A (en) * | 2022-11-15 | 2023-03-07 | 深圳供电局有限公司 | Simulation analysis method, system, device and storage medium for power equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104734363B (en) | A kind of High-low voltage switch cabinet system based on Internet of Things | |
CN108712485A (en) | A kind of resource subscription method and apparatus of internet of things equipment | |
CN110213058A (en) | A kind of block chain all-in-one machine for realizing data cochain | |
CN109194617A (en) | The automatically parsing of XML message, packaging method and device | |
CN109462637A (en) | MR expert's remote collaboration method and system based on power equipment 3D model library | |
CN111294235B (en) | Data processing method, device, gateway and readable storage medium | |
CN107819611B (en) | Client test method based on IEC61850 multi-server simulation | |
CN103441861A (en) | Method and device for generating data records | |
CN117977570B (en) | Simulation method and computer equipment for wide-area protection control of power system | |
CN114390033A (en) | Loop state patrol instrument acquisition system and method based on extensible communication protocol | |
CN114615358B (en) | Simulation method of intelligent electronic device, electronic device and storage medium | |
CN117977570A (en) | Simulation method and computer equipment for wide-area protection control of power system | |
CN103023740B (en) | A kind of information interactive bus system and electric data transmission method | |
CN117471934B (en) | Simulation method of multifunctional measurement and control device and computer equipment | |
CN116108740A (en) | Modeling method and device for power equipment | |
CN115576218A (en) | Electric power information physical joint simulation method and system based on coordination event axis synchronization | |
CN111935316B (en) | Method and device for acquiring front-end equipment catalog | |
CN116132488A (en) | Physical terminal management and control method and system based on edge technology | |
CN116979523B (en) | Scene-based substation secondary system simulation method and computer equipment | |
CN107633069A (en) | A kind of method of data synchronization of quickness and high efficiency | |
CN108805741B (en) | Fusion method, device and system of power quality data | |
CN117973025A (en) | Simulation method and computer equipment for intelligent operation and maintenance application of power system | |
CN112291207B (en) | Method and device for acquiring front-end equipment catalog | |
CN114268856B (en) | Method for communication between three-phase intelligent gateway and control master station | |
CN112291210B (en) | Method and device for acquiring front-end equipment catalog |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |