A kind of Power System Intelligent alarm 3-D graphic Dynamic Display method
Technical field
The present invention relates to a kind of Power System Intelligent alarm 3-D graphic Dynamic Display method, belong to electric power system dispatching technical field。
Background technology
Along with constantly expanding of power system scale, automation system for the power network dispatching exploitation has the senior application that types of functionality is powerful, provides abundant operation of power networks for dispatcher and monitors, controls, alerts, adds up and analytic function。But, show based on these information visuallization and also relatively lag behind。
At present, intelligent grid supporting system technology is widely used in the dispatching control centers at different levels of national grid。This system will be used for the types of applications of power system monitor, such as integrative display such as monitor in real time, analysis of network, Security Checking, early warning, comprehensive intelligent alarms, provide abundant operation of power networks data message for dispatcher, the warning information in especially operation of power networks process。
But, the displaying of traditional electric network fault warning information is to show warning content with two-dimensional table form, it is necessary to monitoring personnel manually click alarm and check that details and warning content are shown eye-catching not。Warning information can not be very clear, causes can not in time, efficiently processing alarm problem, significantly impacts the stability of operation of power networks。
For solving the problems referred to above, it is in CN102831550A Chinese invention application at publication number, disclose a kind of three-dimensional operation management system of intelligent power grid, build on software architecture: adopt client server system, data framework adopts the structure that distribution combines with concentration, reaches the smooth editor of graphics system and mutual;Adopt open Database Systems, using a special Database Management System in Electrical Power System as Database Systems;Adopt three-layer architecture technology so that GIS supports Client/Server pattern and Internet pattern simultaneously;Adopt seamless Data Integration: set up the database model in the world that reflects reality by Object-oriented Technique, all of spatial data and Non-spatial Data are stored in same relational database, and provide data submit to or withdraw, back up or recovery technology, it is possible to meet the application requirement that intelligent power grid three-dimensional is run。But, the premise that this system uses is to need the modeling before power equipment model being used according to drawing or material object, rather than according to the dynamic auto generation present graphical of operation states of electric power system。In addition, the displaying of this system dynamic, 3-D effect to how realizing electric network fault warning information, effective solution is proposed。
Summary of the invention
The technical problem to be solved is in that to provide a kind of Power System Intelligent alarm 3-D graphic Dynamic Display method。Electric network fault warning information can be carried out dynamic one-tenth figure by the method, and, multi-angle comprehensive by three-dimensional scenic shows the details of warning information。
For realizing above-mentioned goal of the invention, the present invention adopts following technical scheme:
A kind of Power System Intelligent alarm 3-D graphic Dynamic Display method, comprises the steps:
When power system starts, monitor alarm event in real time;After receiving alarm event, from the warning information of alarm event, obtain the device id list of involved faulty equipment, from corresponding real-time data base, find the facility information that device id is corresponding;Facility information is processed, obtain model node information, the topological connection relation of each faulty equipment is obtained according to the device id in model node information, tree structure is constructed according to topological connection relation and model node information, tree structure constructs 3-D graphic, it is achieved the three-dimensional display of warning information。
Wherein more preferably, facility information is carried out process to comprise the steps:
From described facility information, extract the relevant information generated needed for 3-D graphic, create device nodes information;
According to the device type information in device nodes information, to the title of the equipment of the database purchase threedimensional model corresponding with retrieval facility in model comparison table;
According to the electric pressure information in device nodes information, in the electric pressure allocation list of database purchase, retrieve the colouring information that electric pressure is corresponding;
Model node information is collectively constituted according to the colouring information that described device nodes information, the title of threedimensional model that equipment is corresponding and electric pressure are corresponding。
Wherein more preferably, described faulty equipment includes fault main equipment, primary equipment and secondary device;
Described fault main equipment, primary equipment and secondary device obtain its facility information respectively in real-time data base, are respectively created fault main equipment information, primary equipment information and secondary device information according to described facility information;Described main equipment node information, primary equipment node information and secondary device node information collectively constitute described device nodes information。
Wherein more preferably, obtain the topological connection relation of each faulty equipment according to device id to comprise the steps:
According to the device id in model node information, the head end obtaining equipment in the topology relation table of real-time data base connects period and end connection period, connect period according to head end and find, with end connection period, the miscellaneous equipment being connected with equipment, determined the topological connection relation of each faulty equipment related in warning information by recursive lookup。
Wherein more preferably, construct tree structure according to topological connection relation and model node information to comprise the steps:
The root node being tree structure with fault main equipment, according to the topological connection relation of equipment and model node information, finds the primary equipment that alarm event relates to, and makes primary equipment build the intermediate node of tree structure according to topological connection relation;After primary equipment has all built, find the secondary device that alarm event relates to, make secondary device build the leafy node of the tree structure bottom according to topological connection relation;After secondary device has all built, complete the foundation of tree structure。
Wherein more preferably, in the process building tree structure, described primary equipment creates intermediate node in the position of distance root node level altitude, and the width between each intermediate node is fixed;Described secondary device creates leafy node in the position of distance intermediate node level altitude, and the distance between each leafy node is fixed。
Wherein more preferably, in tree structure, described level altitude between intermediate node with root node and in the device model of storage distance between primary equipment and fault main equipment identical;Fixed width between intermediate node is identical with the distance between primary equipment in the device model of storage。
Wherein more preferably, in tree structure, described level altitude between leafy node with intermediate node and in the device model of storage distance between secondary device and primary equipment identical;Fixed width between leafy node is identical with the distance between secondary device in the device model of storage。
Power System Intelligent provided by the invention alarm 3-D graphic Dynamic Display method, by the facility information structure tree structure that warning information is relevant, and the tree structure according to structure, JOGL and 3dsMax modeling technique is combined, the warning information such as the transformator in electric network fault, electromotor, bus, circuit are carried out dynamic one-tenth figure, and, multi-angle comprehensive by three-dimensional scenic illustrates details when alarm event occurs。The present invention provides efficient means directly perceived, the details of more convenient understanding current alarm event, in order to it takes treatment measures more effective, more targeted for power scheduling personnel, thus being greatly enhanced production efficiency, improving the stability of power system。
Accompanying drawing explanation
Fig. 1 is in embodiment provided by the present invention, it is achieved the flow chart of warning information three-dimensional display。
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the technology contents of the present invention is described in further detail。
The present invention provides a kind of Power System Intelligent alarm 3-D graphic Dynamic Display method, specifically includes following steps: when power system starts, monitor alarm event in real time。After receiving alarm event, alarm event is resolved, its fault main equipment ID related to and fault correlation device id list is obtained from the warning information of alarm event, and then from corresponding real-time data base, find the facility information that device id is corresponding, extract from facility information and generate the information creating device node information that 3-D graphic is relevant, model node information is built according to the content in device nodes information, according to the device id in model node information, the topological connection relation of each fault correlation equipment and fault main equipment is obtained in the topology relation table of real-time data base, structure tree structure, according to the tree structure constructed, JOGL and 3dsMax modeling technique is combined, realize the three-dimensional display of warning information。Wherein, JOGL (JavaBindingsforOpenGL) is that the java class for OpenGL is bound, OpenGL is used for graphing, draw speed very fast, 3dsMax (3DStudioMax) is based on the three-dimensional animation of PC system and renders and Software for producing, has powerful role animation and makes ability。JOGL and 3dsMax modeling technique is combined, it is possible to meet the requirement of DYNAMIC DRAWING when alarm event occurs in power system well。Below said process is carried out detailed specific description。
As it is shown in figure 1, when power system starts, monitor alarm event in real time。After receiving alarm event, alarm event is resolved, from the warning information of alarm event, obtain its fault main equipment ID related to and fault correlation device id list。Wherein, when fault correlation device id list have recorded fault generation, the primary equipment ID and secondary device ID of other association except fault main equipment。
Treat different types of equipment, in real-time data base, extract different facility informations。According to the fault main equipment ID obtained, in real-time data base equipment list, find the information such as device type corresponding to equipment, device name, electric pressure that equipment is corresponding, be used for creating main equipment node information。According to the primary equipment ID obtained, equipment list is found the information such as device type corresponding to equipment, scheduling number, equipment remote signalling state (open/close), electric pressure that equipment is corresponding in real-time data base, is used for creating primary equipment node information。According to the secondary device ID retrieved, in real-time data base protection table, find the device type of secondary device, description information, equipment remote signalling state (open/close), be used for creating secondary device node information。
Main equipment node information, primary equipment node information and secondary device node information collectively constitute device nodes information。Device nodes information comprises device id, device type, device name, electric pressure etc. and generates the relevant information needed for 3-D graphic。According to the device type information in device nodes information, the title of the final threedimensional model shown that equipment to database purchase is corresponding with retrieving equipment in model comparison table, for creating the model name in model node information。According to the fault main equipment in device nodes information, the electric pressure information in primary equipment, in the electric pressure allocation list of database purchase, find the colouring information that electric pressure is corresponding, for creating the model color in model node information。After alarm event occurs, represent the electric pressure of equipment according to different model colors, clear, eye-catching, be conducive to power scheduling personnel in time, efficiently to process alarm problem, improve the stability of operation of power networks。
The information such as device id, the title of threedimensional model, device name and model color are comprised according to the model node information that the equipment of storage in device nodes information, data base and model comparison table and electric pressure allocation list build。Wherein, according to the device id in model node information, in the topology relation table of real-time data base, obtain the topological connection relation of each fault correlation equipment and fault main equipment, according to topological connection relation and device nodes information structuring tree structure。Detailed process is as follows: in the topology relation table of real-time data base, the head end of in store equipment connects period and end connection period, according to the device id in model node information, the head end obtaining equipment in the topology relation table of real-time data base connects period and end connection period, other the equipment being connected with equipment is found according to connecting period, such recursive lookup determines the topological connection relation of all devices related in warning information, thus completing to obtain the topological connection relation of various equipment in warning information according to device id。Topological connection relation according to equipment and model node information, set up tree structure with fault main equipment for root node, and tree structure root node information comprises equipment correspondence model name, device name;After the root node creating tree structure, find the primary equipment that alarm event relates to, make the primary equipment topological connection relation according to equipment, with fault main equipment for root node, build the intermediate node of tree structure, in the process building tree structure intermediate node, primary equipment creates intermediate node with the position of distance root node level altitude, and the width between each intermediate node is fixed。Wherein, intermediate node and the level altitude of root node that primary equipment creates is identical with the distance being stored in the 3dsMax 3ds model file created primary equipment and fault main equipment, fixed width between each intermediate node is identical with the distance being stored in the 3dsMax 3ds model file created between each primary equipment, it is easy to dynamically generate alarm 3-D graphic, image, illustrate the relation between equipment and the equipment that alarm event relates to intuitively, power scheduling personnel are conducive to understand the details of current alarm event, so that it takes more effective, more targeted treatment measures, thus being greatly enhanced treatment effeciency。The intermediate node information that primary equipment builds comprises equipment correspondence model name, equipment remote signalling state, model color, equipment scheduling number;The secondary device that alarm event relates to is found after primary equipment has all built, make secondary device according to the leafy node of the topological connection relation direct construction tree structure bottom, secondary device creates leafy node in the position of distance intermediate node level altitude, and the width between each leafy node is fixed。Wherein, leafy node and the level altitude of intermediate node that secondary device creates is identical with the distance being stored in the 3dsMax 3ds model file created secondary secondary device and primary equipment, distance between each leafy node is identical with the distance being stored in the 3dsMax 3ds model file created between each secondary device, it is easy to dynamically generate alarm 3-D graphic, image, illustrates relation between the equipment that alarm event relates to intuitively。Leafy node information comprises equipment correspondence model name, equipment remote signalling state, model color, protection title。
According to the tree structure constructed, JOGL and 3dsMax modeling technique is combined, it is achieved the three-dimensional display of alarm。Detailed process is as follows: is first according to power system device model criteria and resolves the application 3dsMax 3ds model file created, extract the device model that warning information relates to, then pass through the JOGL device model related to by warning information to combine with the information of the tree structure constructed, be shown in three dimensions。The coordinate of the root node of the tree structure in three dimensions is fixing, each layer tree height and be also fixing with the width between layer node, each model node model coordinate in three dimensions is may determine that according to above fix information, application JOGL draws 3ds model in model coordinate position in conjunction with each node information, generate final 3-D graphic, realize intelligent alarm dynamically one-tenth figure, be finally reached the function according to warning information automatic mapping, displaying。
In sum, Power System Intelligent provided by the present invention alarm 3-D graphic Dynamic Display method, by monitoring alarm event in real time, obtain warning information, fault main equipment ID and fault correlation device id list is obtained from warning information, and then from corresponding real-time data base, find the facility information that device id is corresponding, structure tree structure, tree structure according to structure, JOGL and 3dsMax modeling technique is combined electric network fault warning information is carried out dynamic one-tenth figure, comprehensive by three-dimensional scenic, multi-angle illustrates details when alarm event occurs。The present invention provides for power scheduling personnel and intuitively alerts 3-D graphic efficiently, details more convenient, understanding current alarm event intuitively, so that it takes treatment measures more effective, more targeted, thus being greatly enhanced production efficiency, improve the stability of power system。
Above Power System Intelligent provided by the present invention is alerted 3-D graphic Dynamic Display method to be described in detail。For one of ordinary skill in the art, any apparent change under the premise without departing substantially from true spirit, it done, all by composition to infringement of patent right of the present invention, corresponding legal responsibility will be undertaken。