Object-Oriented Visual Power System Analysis Software

Research on Object-Oriented Visualized Power System Analysis Software for Power Automation Equipment GU Xiao-hui\FENG Lin-qiao\ZHOU Ming\WU Rui2 (.College of Electrical and Information Engineering, Hunan University, Changsha 410082, Hunan, China;2 Changsha Electric Power Bureau, Changsha, Hunan 410002, China) The abstract class is derived from the real object, and the program structure is constructed by the inherited method. The program structure is more reasonable and easy to develop. Therefore, object-oriented programming is a choice to overcome the difficulty of sheltering, developing, and updating large-scale power system analysis programs. Visualization technology improves the user interface. It discusses how to derive the abstract class from the power system device, and introduces a program structure based on object-oriented programming and visual programming, taking into account the computational efficiency and ease of use.

1 Design Schemes For a long time, a number of perfect and reliable analysis and calculation softwares have been developed in institutions of higher learning and related departments of power systems. However, most of these softwares are based on textual interfaces and require data input in certain text formats. Output, when the system reaches a certain size, this becomes complicated and error-prone, and the calculation results are not intuitive.

Visual programming has been developed for a long time. It makes the use of the program simple and intuitive. This is also the development trend of power system analysis and simulation programs. Object-oriented technology makes program code easy to develop, manage, extend, and port. Therefore, the combination of these two technologies is the basis for the development of object-oriented visual power system analysis software.

2 The realization of the program 2.1 program development tools C + f language is an object-oriented programming language, C + + language, high speed, making it suitable for the preparation of the calculation program. Microsoft's unique Visual C++ file-by-document structure, visualized development approach enables the packaging of graphical interfaces and document data, simplifies the complexity of the programming, so choose Visual C+ as a development tool;// endpoint coordinates, in other components In the definition of CPointmLeftTop;// graphics upper-left corner doublemR;// resistance doublemX;// reactance *mF;// the front pointer of the power line linked list CLine *mB;// transmission line list back pointer / / destructor 2.3 In order to make better use of the functions of object-oriented modules, the sparse matrix class CMatrix is ​​first created. The important function of using C+f in sparse matrix is: overloading makes the use of sparse matrices just like the general two. Dimensional arrays are as simple.

CVector * mVector; / / has been created a list of vector classes used to store matrix elements.

The third parameter is meaningless, but it allows the computer to distinguish between input, output // inversion, and other calculation functions and destructors.

The use of the sparse matrix is ​​very simple, if you define a sparse matrix object: CMatrixa assignment only needs a(10,2)=9; the output just b=a(10,2,1) is almost the same as manipulating a two-dimensional array.

Therefore, the porting of the original non-sparse technology based on C language flow program is very simple. It only needs to change the definition of the variable, and the program changes are also very small. Here, it can fully reflect the ease of use and powerful functions of C+f. A tidal flow program based on this type of support can support the calculation of large-scale power grids without a significant reduction in speed.

Then create trend classes and optimization method classes on this basis.

In the tidal current category, there are various kinds of load flow calculation methods and topology modules. The topology determines the network structure: whether it is a distribution network or a transmission network, and then selects an appropriate algorithm for calculation. At the same time, the common modules of each trend are independently incorporated into the functions of the trend, such as creating admittance matrices, Jacobian matrices, and topologies. In the optimization method, two optimization methods are encapsulated, including non-linear programming and genetic algorithms.

24 The realization of graphics functions Some data are encapsulated in the document class (CDocument). Therefore, in the document class, there is a corresponding list for each component class, and these data are manipulated through the interaction between the class and the document class. The user adds a component's data to the document class by manipulating the graphical interface. Since each component based on the object has its own drawing methods and properties: including position information, color, and line shape, the component can send a message notification to the class automatically on the screen. Draw yourself. This simplifies the editing of the graphics into operations on the linked lists in the document class. When you add a graphic, all you have to do is append an element to the corresponding list. To delete a graphic, delete the corresponding element from the corresponding list. To move and zoom the graphic, you only need to operate the mouse and keyboard. The mouse action is modified accordingly. MeflTop and mDrawSize two parameters of the element, and then redraw the element. Editing the element's property page will modify the corresponding electrical and topology parameters.

3 The function and characteristic method of software, as a kind of auxiliary computer program of power system, compared with other auxiliary software of power system, has the following characteristics: a Because of adopting the object-oriented programming method, make this procedure have good transplant , expansion and reusability, which actually makes the software a complete development platform for power system computing software. If you want to write a power system planning software based on this, you only need to create a planning class, and the corresponding menu, because you can call the trend class and reactive optimization class, the calculation program is easy to implement, and in the graphics drawing, just add A global variable of the map scale can display the results of the plan directly on the display, and edit and modify it on the graph, and print out the final plan results as graphs and data.

b. Friendly interface, flexible operation. You can click the mouse on the interface to pop up the property page dialog box, enter data, check the validity of the data, eliminate the wrong data input, and avoid the inefficiency of the previous data input through the text format. Graphical editing is powerful, it can draw the main wiring diagram of the network, all components can be copied, moved, deleted, stretched and scaled. The network wiring diagram can be printed directly proportionally.

c In order to fully embody the superiority of the visualization program, a line usage indicator class was established. A circular element similar to a fuel gauge was placed on each transmission line. Through the display of the component, each line can be easily known. Is it full?

d In order to prevent misoperation, the graphical interface is divided into edit mode and run mode. In the edit mode, you can edit the graphic element. In the operating mode, all components cannot be moved. The only component that can be operated is the circuit breaker, and the user can operate. Circuit breakers to calculate if the line is overloaded during a certain fault.

4 Conclusions The software has a complete drawing function and a good man-machine interface. The user can complete the drawing and calculate the calculation results on the graph at a time. Not only applies to the production department, but also can be used for education, so that students have a better understanding of the system trend, operation and so on. However, there are still areas where the software needs to be strengthened, such as: a. The lack of calculation and analysis modules (such as dynamic analysis of the power system) has reduced the practicality.

b. The number of components is small, and there is a lack of substation equipment, such as knife gates, etc. Printing can only output system diagrams, and can not directly output engineering drawings that conform to national standards.

The smart hotel is base on Internet communications, use networking, cloud computing, mobile Internet and other new generation of information technology, through all kinds of sensors in hotel room with data analysis to realize the intelligent control system of guest room.Smart Hotel Control System  can reduce input costs, improve hotel quality, optimize hotel management, increase value-added services and achieve high returns,to become a green, healthy, safe, intelligent hotel.Smart hotel control system include:RCU mainboard,switch panel,scene control panel,insert card for electricity panel,air-condition control panel,sensors,door contact(optional),door bell,one-key emergency button panel,five-hole socket panel,USB and internet port panel.


Smart Hotel Control System

Smart Hotel Control System

Green Smart Hotel,Smart Hotel System,Hotel Door Lock System,Hotel Room Control System

Shenzhen Zhuohao Intelligent Electronic Development Co., Ltd. , https://www.szactop-smart.com