Application of Component Technology in Power Simulation Training

With the rapid development of power grid and the implementation of integrated management and control mode, the knowledge, technology and skills of power supply production management personnel have put forward higher requirements, and the establishment of simulation system for the integration of power grid regulation and control is to improve the relevant professionals Quality and skill level of the important means, component-based modeling method can quickly establish the entire power grid of the secondary model, is gradually becoming a new trend in the field of power simulation. The research results of this paper have been successfully applied in the power grid of Gansu Province, with cost-effective, more complete and more realistic simulation, and got good training effect.


Introduction
According to the guiding ideology of national energy development, the State Grid Gansu Electric Power Company fully implement the scientific concept of development, clearly to steadily promote the integration of power grid regulation. In accordance with the requirements of the new management system, power grid regulation and control personnel and substation operation and maintenance personnel to assume the power grid security, stability, economic operation of the responsibility is growing, and with the power grid a large number of new technology and new equipment applications, need to greatly improve the regulation of professionals The quality and skill level in order to ensure its ability to master the operation characteristics of new equipment and control the operation of the power grid to establish the integration of power grid regulation and control system [1] is to improve the quality of relevant professionals and skills level of the important means, The focus of the integrated simulation is the secondary system model of the grid. The secondary system model of the power grid refers to all the plant stations of the whole power grid, and establishes a detailed mechanism model for the secondary control, action time, action logic and action information of the secondary equipment such as its protection, communication, monitoring and control, station AC and DC , Complete and true reproduction of the secondary system of light plate signal, protection of information, messages and other secondary system of logical behavior and its interactive relationship [2].
Power system simulation A large number of research contents mainly focus on the research of algorithms. However, due to the long-term concern of the algorithm research, making the actual application of the project, there are the following situations: the development of the secondary system model is often carried out in a project, the coupling between the various functional modules is high, making the simulation system design, There are many problems with maintenance and upgrades. Different simulation engineering secondary system model has many functions and applications similar, but because of its lack of standardization, the interface specification is not uniform and other issues, it is difficult to directly use it to reuse. Making the secondary system model of the flexibility and reusability of the key advantages of difficult to play, engineering development most of the time are used in the reconstruction of these secondary models, which makes the power training simulation system has become a costly system engineering, In the regulation of integrated management model this problem is more prominent. Therefore, it is an urgent requirement and key to promote the development of power simulation technology by encapsulating the secondary system model of the power grid into a simulation component with standardized interface, reusable, versatile, scalable and low coupling.

Development of Power Simulation Modeling Technology
Before the 1990s, the realization of the electric power training simulation system basically adopted the modular modeling method. The modular modeling method adopts the process-oriented design. birth to the development of object-oriented modeling technology to promote the power training simulation system to object-oriented modeling direction. Objectoriented simulation technology breaks through the shackles of traditional concepts, makes the modeling process close to people's normal logical thinking mode. The established model has inherent extensibility and reusability, which is conducive to the establishment of graphical modeling and simulation environment, Thus providing support for simulation analysis of large complex systems. However, object-oriented design methods are also flawed, the degree of coupling between simulation applications is high, scalability and reusability are not strong, the lack of object semantic information, the model is not easy to support multi-application, is not conducive to the development of joint simulation system. As a result of object-oriented modeling methods, component-based software modeling methods are gradually becoming a new trend in power simulation. Compared with the traditional power simulation system modeling technology, the componentized power simulation system modeling technology embodies the idea of software reuse, improves the reusable and extensible features of the simulation system, and makes the simulation system easy to upgrade and maintain, Thus improving the development efficiency.

Application of Component Modeling Technology
Process-oriented programming reuse functions, objectoriented programming reuse classes, and component programming reuse specific functional integrity modules. The basic idea of component software technology is to build a software framework that divides large and complex software applications into a series of software unit components that can be implemented, easy to develop, understand and adjust. Each component is functionally defined, individually designed, separately encoded, and each component provides some standard and simple application interfaces that allow the user to set and adjust parameters and attributes. Users can organically combine multiple components from different sources to quickly form a complex application that meets the actual needs. Therefore, component-based software system solutions, the development of high efficiency, low investment, low maintenance costs, reuse ability, software upgrades simple.
The software framework is an important way to achieve large granularity reuse. Is a reusable "semifinished" software for a field (including business areas such as ERP, and computing, such as a GUI) that implements the common parts of the field and provides a series of well-defined variable points To ensure flexibility and scalability.
In order to solve the above problem, it is proposed that the secondary model of the power grid is difficult to reuse, manage the confusion and build difficult. This paper draws up the idea of "software reuse", and proposes a construction scheme of power system secondary system simulation modeling platform based on component technology. We first set up the power simulation software framework. Second, the need for the secondary model of the power grid to be component-based design, packaging; again, for the simulation components to establish a standardized external data interface; Finally, the establishment of user-friendly graphical modeling tools to complete the simulation component management and simulation system structures Function, so as to quickly achieve the entire power grid secondary system modeling. The following is an example of how to establish a modularization model for the secondary system of the grid by taking the RCS-931 device as a line protection: (1) to establish a suitable software for the integration of network control simulation application framework Compared with the ordinary components, the framework of a larger particle size, reflecting the common domain. The integrated simulation software framework includes at least the following components: the relationship between the components and the interaction mechanism, a series of variable points and variable point behavior adjustment mechanism.
Component replacement is achieved through a bus mechanism in the software framework, adding the already identifiable components with relatively independent functions to the system via the bus. Developers through the variable point of the behavior adjustment mechanism, the simulation component bound to the software frame of the variable point, resulting in the final realization of power grid integrated simulation system, this process is called the software framework of the instantiation process. Through the use of software framework, developers can focus on the specific part of the system, which greatly improved the integration of simulation system development efficiency and quality.  Data management: Due to the real-time requirements of the simulation system, a large amount of data exchange is required during the simulation run. Our software framework provides the use of data bus to achieve rapid exchange of high-volume data, providing data distribution management services.  Simulation interface management: for the system simulation process to provide interface operations, including human-machine interface start, operation, pause, recovery, fault and other external trigger events.
(2) The line protection RCS-931 unit is packaged in a package 1) package part model. The components of the RCS-931 unit are divided into signals, platens, switch handles, buttons and other types. All components are encapsulated in the part model file according to their type, as shown in Table 1: 2)encapsulation logic model. Line protection RCS-931 device is composed of multiple protection function plug-in, respectively, the implementation of different protection functions, each protection plug-in internal logic is defined as an expression, all the logical expression saved to the internal logic model file, Constitute the internal logic model, as shown in Table 2. The operating conditions in the table<Differential current = 1 && Plates: Main protection=ON> Meaning of the logical expression: the line is differential and the master protection plate is in the input state condition, the current differential protection will act. Action information <signal: protection action : ON> Meaning of logical expression: current differential protection action to send protection action information.
(3) establish a standardized data interface for the RCS-931 component The component interface adopts the XML design criterion, the component model is separated from the component interface, and the component model and the component interface hierarchy can be expanded independently. XML-based interface is simple, easy to expand, easy to achieve standardization of interface data, as shown in Table 3. <Station name> Tianshui </station name> <Line name> Tempe line </ line name> <Device name> RCS-931 </ device name> <Device number> 1 </ device number> <Control type> plate </ control type> <Control name> main protection </ control name> <Target status>OFF </ target status> (4) through the graphical component modeling tools to complete the above components of the management and simulation system to build the work Component library provides users with a wealth of simulation components, and the establishment of a unified simulation component information description, in order to better and faster to build a power simulation system provides a strong support. Component library structure shown in Tabel 4:

,LTD
Graphical component modeling tool is a component management, component assembly interface, the role is to ensure that users in accordance with the correct method of implementation, allowing users to more simply complete the simulation system to build the work. As shown in Tabel 5 below, users only need to select the component model from the device component library to complete the construction of the secondary model of the grid.

Application
The research results have been successfully applied to the State Grid Gansu Electric Power Company, and the relevant production personnel have been trained in the normal operation skills, abnormal and accident handling skills of the grid, and achieved good results. System structure shown in Figure 2: Power grid simulation, power network secondary model simulation, substation three-dimensional scene simulation, substation monitoring system simulation, teacher management system and graphical component modeling platform constitute the entire software system, the module through the simulation run support platform [3] to achieve the simulation process time Synchronization, information interaction and coordination control, Figure 3 gives the overall structure of the software system.
(1) grid simulation to achieve the power grid transient, medium and long-term process of integrated simulation [2], power grid simulation of a device active, reactive, current, voltage and other remote measurement and circuit breaker and the state of the remote signal sent to the Other emulation applications, and receive operational events sent by other emulation applications and emulate (2) The simulation of the secondary simulation module of the power grid is based on the simulation of the power grid. The logic behavior of the secondary control system, the measurement system, the error prevention system, the AC system, the DC system, the relay protection and the automatic device are simulated. Sub-equipment and secondary circuit simulation results sent to the grid simulation, substation scene and substation monitoring simulation module, and receive the three modules of the operating instructions.
(3) substation monitoring system simulation: simulation of substation monitoring system functions, man-machine interface and operation process, [4] have a detailed discussion.
(4) substation scene simulation is the use of OPENGL [5] [6] three-dimensional engine development. It uses the model editor, the scene editor to establish the substation equipment and scene model, to carry out the scene roaming, virtual operation and other training, the image of the reproduction of the entire production process of substation.
(5) graphical component modeling platform to complete the management of the secondary network simulation components and power grid secondary simulation system to build the work.
(6) The teacher management module is responsible for the whole process of management, monitoring, control, training before the preparation, training, analysis, monitoring, control and management, as well as posttraining evaluation and other functions and man-machine composition.

Summary
With the rapid development of power grid, processoriented or object-oriented modeling method has been unable to meet such a large and complex power grid secondary system. This paper draws on the idea of software reuse in software engineering, and proposes to build a power simulation modeling platform based on the component software framework. First, the establishment of a modular software framework. Secondly, the framework of the core components of the standardized thinking of the design package logic model. Again, establish a standardized data interface for the component. Finally, the establishment of graphical modeling tools to complete the management of simulation components, modeling and simulation system to build and other functions. To help users quickly configure the simulation system to achieve the reproduction of the simulation process, thereby enhancing simulation modeling efficiency.the system has been successfully applied to the State Grid Gansu Electric Power Company, and achieved good results.