Summary of the invention
For the deficiencies in the prior art, the purpose of this invention is to provide a kind of many people strange land concurrent collaborative system, this system made unified device parameter data standard and unified grid simulation computation model, two kinds of main flow computational algorithms of the integrated PSASP of First National and PSD_BPA, represent for the computing staff provides unified calculation services interface and operational view, solve the drawbacks such as the discrete data that cause of daily traditional main flow algorithm are changed by hand, work repeats.
The objective of the invention is to adopt following technical proposals to realize:
The invention provides a kind of many people strange land concurrent collaborative system, its improvements are, described system is supported PSASP and two kinds of algorithms of PSD_BPA, comprise province call family, call family, system maintenance server, communicator, Web server, application server, database server, dispatch server and disk array; Described province call family, call family and all be connected with communicator by wide area network with the system maintenance server, the center switch of communicator is connected with optical cable by Web server; Described disk array is connected with database server by optical switch; Described application server, database server and dispatch server all are connected on optical cable.
Preferably, described communicator comprises router, fire compartment wall and the center switch connected successively; The quantity of described application server is to have load balancing between 2, two application servers; The quantity of described database server is by the core wire jumper, to connect between 2, two database servers.
Preferably, described application server comprises coordinated management module, engineering comparing module and simulation algorithm model;
Described coordinated management module comprises project management module, engineering management module, data management module and control of authority module; The storage of described data management module management electric network data, data maintenance and versions of data; Described control of authority module controls user right, data permission and operation authority;
Described engineering comparing module for reading the project data that is stored in database server, is analysed and compared, and will compare difference and record and be stored in the distributed file system in disk array;
Simulation calculation comprises trend calculating, temporarily steady calculating, little interference calculation, static security analysis, voltage stabilization calculating, short circuit calculation, data result form and curve displaying.
Preferably, describedly between Web server and application server and dispatch server, all adopt the B/S framework, i.e. browser/server framework; Be provided with the GIS figure module on browser, for carry out browsing, editing of grid equipment and model parameter on browser, inquiry, location, figure and database data real-time synchronization, carry out operational mode arrangement, simulation calculation and result of calculation and show.
Preferably, on described database server, comprise database, economize call family and call family database conducted interviews, inquired about, revised, increase, deletion data operation;
Pass through data exchange interface on described database, realize and Based on Power System Analysis Software Package PSASP, power system analysis software instrument PSD_BPA, power system analysis software instrument PSD and the online interaction of OMS operating system multiple data sources, support online, off-line data importing/export function, support cloud to import data function;
The data E language data form of described data exchange interface transmission.
Preferably, described Based on Power System Analysis Software Package PSASP and power system analysis software instrument PSD_BPA are integrated on dispatch server, and coordinated management module and simulation algorithm model by Integrated Algorithm interface and application server carry out data interaction.
Preferably, to Based on Power System Analysis Software Package PSASP and two kinds of data analysis tools of power system analysis software instrument PSD_BPA, set up unified unified device parameter data standard information and the grid simulation computation model set up, for realizing data maintenance.
Preferably, described device parameter data standard information comprises base components scheduling planning information and the element physical parameter information of calculating for trend; Described grid simulation computation model comprises generator, voltage regulator, and speed regulator, stability controller PSS, direct current system is controlled model, controlled high resistance, the computation model of Static Var Compensator equipment.
Compared with the prior art, the beneficial effect that the present invention reaches is:
The invention solves in the situation that electrical network calculated data scale constantly enlarges, the Data Update amount constantly increases and the operational mode even more complex, the electrical network calculated data accurately and reliably, upgrade in time and the quick problem of exchange; Support the Mode change of single regional one-man job's stand-alone mode to strange land many people combination and cooperation, the centralized management of power system analysis calculated data and the distributed high-speed simulation computing function of dispersing maintenance, the calculating of many people distributed collaborative and large scale electric network have been realized, the cost that has reduced work and produced and serve, improved accuracy and the computational efficiency of the analytical work of electrical network mode; Realize integrated emulated computing environment, by main flow computational analysis algorithms such as integrated PSASP, PSD_BPA, eliminated the usage variance that different analytical calculation programs are brought, improved advance and the standardization of simulation analysis technological means.Unified calculation services interface and the operational view that for the computing staff, provide represent, and solve the drawbacks such as the discrete data that cause of daily traditional main flow algorithm are changed by hand, work repeats.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in further detail.
Many people provided by the invention strange land concurrent collaborative system hardware structure figure as shown in Figure 1, the basis that hardware is realized and moved as system, adopt up-to-date computer hardware technology, as multinuclear, many CPU, cluster, SAN etc., and insensitive to hardware, can adopt multiple mixed hardware platform under the unified management of operating system and support programs simultaneously.
In order to meet the needs of data security and system stability, operating system layer mainly adopts LINUX operating system, but system also should be able to be supported Unix, the operating system that Windows etc. are different.Accomplish that across hardware platform and cross operating system be the basic demand of system constructing and exploitation.
The hardware that system is used comprise province call family, call family, system maintenance server, communicator, Web server, application server, database server, dispatch server and disk array; Described province call family, call family and all be connected with communicator by wide area network with the system maintenance server, the center switch of communicator is connected with optical cable by Web server; Described disk array is connected with database server by optical switch; Described application server, database server and dispatch server all are connected on optical cable.Communicator comprises router, fire compartment wall and the center switch connected successively; The quantity of described application server is to have load balancing between 2, two application servers; The quantity of described database server is by the core wire jumper, to connect between 2, two database servers.The hardware inventory is as shown in table 1:
Table 1 system hardware inventory
The user of large electrical network unified database conducts interviews to database by the Internet, and elemental user comprises: the mode department of Utilities Electric Co.s at different levels, scheduling pitch, protection department, planning department, DianKeYuan system maintenance personnel, other system related personnel etc.Large electrical network unified database be take network data base as basis, database server and memory device all are deployed in province and adjust, ground adjusts without disposing any physical equipment, economizing and adjusts, call family and all by web browser, database conducted interviews, inquired about, revised, increased, the data manipulation such as deletion.
As shown in Figure 3, wherein application server comprises coordinated management module and simulation algorithm model to many people provided by the invention strange land concurrent collaborative systematic functional structrue figure;
The coordinated management module comprises project management module, engineering management module, data management module and control of authority module; The storage of described data management module management electric network data, data maintenance and versions of data; Described control of authority module controls user right, data permission and operation authority; The coordinated management module provides graphical tools to carry out freely defining of workflow, and provide powerful workflow engine, after project initiation, workflow engine can be taken over the circulation of task, and by multiple prompting message modes such as note, message informings, remind the computing staff to carry out the processing of inter-related task, finally realize many people strange land combined calculation pattern that the electrical network mode is calculated, the electric power system mode that formation collaborative task and network application are highly merged is calculated cooperative module.
The data permission management: the present invention, as the Open Network platform of a bulky complex, when realizing real-time data sharing, also will guarantee confidentiality and the integrality in communication or storing process of data.Consider the characteristics such as the dynamic, distributivity of grid, extensive property, unified cooperative system has adopted the access control model based on the role, data authentication model and single sign-on mechanism that multi-user collaborative calculates.Access control model based on the role is a compound strategy, and the character of its existing autonomous access control has again the character of forcing access control.It distributes to the role by access permission power, and the user obtains by giving different roles the access permission power that the role has.The data authentication model that multi-user collaborative calculates, by data are authorized, make the validated user that only has authority just can obtain data message, and do not have the user of authority can not obtain data message.Data authentication model structure figure provided by the invention as shown in Figure 4.
Simulation calculation: unified cooperative system provides integrated associated form computational methods, mainly comprises trend calculating, steady calculating temporarily, and little interference calculation, static security analysis, voltage stabilization calculates, short circuit calculation, the functions such as data result form and curve displaying; Support that the multi-user is safeguarded simultaneously and revises same set of project data, system is carried out parallel computation and check to amended partition data, guarantees uniqueness, integrality and the correctness of the whole network and partition data.
All adopt the B/S framework between Web server and application server and dispatch server, i.e. browser/server framework; Be provided with the GIS figure module on browser, for carry out browsing, editing of grid equipment and model parameter on browser, inquiry, location, figure and database data real-time synchronization, carry out operational mode arrangement, simulation calculation and result of calculation and show.
Comprise database on database server, economize call family and call family database conducted interviews, inquired about, revised, increase, deletion data operation; Pass through data exchange interface on database, realize and Based on Power System Analysis Software Package PSASP, power system analysis software instrument PSD_BPA and the online interaction of OMS operating system multiple data sources, support online, off-line data importing/export function, supports cloud to import data function.
Transmit the data E language data form of data exchange interface transmission between database and external data source by data exchange interface.
The effect of data importing program is by E formatted data file content, deposits in the table that database is corresponding.The process imported mainly is divided into four parts as shown in Figure 5, comprising: initialization oracle database, E formatted data file are to internal memory, and the table his-and-hers watches copy and write data to database.
(1) initialization oracle database:
Before data loading, need first initialization oracle database comprising: building database connects: database connection name, database name, port numbers, user name, connection password and host name are set; Open the database operation.
(2) read E formatted data file to internal memory:
After database is ready, start to carry out the warehouse-in work of data.At first, data need to be read in to internal memory.As shown in Figure 6, due to the descriptive information that comprises data in the E formatted data, as the explanation of element table, the explanation of data attribute etc.These information for data loading work without any effect, so these type of data in E formatted data file need to be rejected away.Then, form carries out the copy of data one by one.In the E form, data line represents a concrete component information, so copy also carries out one by one.Specifically comprise the steps:
<1 > open E formatted data file in the mode that reads text;
<2 > initialization E language format data storage of variables;
<3 > initialization reading result flag bit;
<4 > whether the judged result flag bit is true: if true, carry out next step, otherwise carry out step<20 >;
<5 > read E language format file the first row data message;
<6 > abandon E language format file the first row data message and filter null;
<7 > filter the tables of data header of E language format file;
<8 > judge whether this tables of data is reference capacity BaseMVA tables of data: if reference capacity BaseMVA tables of data is carried out next step; Otherwise carry out step<13 >;
<9 > english note of filtering data information is capable and Chinese annotation is capable;
<10 > read a data message;
<11 > judge whether data message is the end mark of this table: if end mark carries out step<13 >; Otherwise carry out next step;
<12 > deposit this information in internal memory; And whether the judged result flag bit is true: if true, return to step<8 >; Otherwise carry out next step;
<13 > judge whether this table is reference voltage Basevalue tables of data: if reference voltage Basevalue tables of data is carried out next step, otherwise carry out step<18 >;
<14 > english note of filtering data information is capable and Chinese annotation is capable;
<15 > read a data message;
<16 > judge whether data message is the end mark of this table: if end mark carries out step<18 >; Otherwise carry out next step;
<17 > deposit this information in internal memory; And whether the judged result flag bit is true: if true, return to step<15 >; Otherwise carry out next step;
<18 > judge whether this table is power plant and substation's information Substation tables of data: if carry out next step; Otherwise, return to step<13 >;
<19 > table travels through one by one, and reads E formatted file data message;
<20 > reading E language format data file to internal memory flow process finishes.
(3) copy of table his-and-hers watches:
After the E formatted data is read into internal memory, it need to be copied in the internal memory that in operating system, database is corresponding.Generally, in the database that can write direct after data read, need to carry out internal memory to the copy reason of internal memory here and mainly contain 2 points:
1) by internal memory to this step of memory copying, can and write these two program modules of data and peel off out read data.Make the demand that can break away from business fully of writing of this two parts program module, only only carry out the programmed tasks of reading or writing.
2) in order to increase the extensibility of platform, realize the more compatibility of multi-edition data, E formatted data interface document may be redefined platform from now on is during upgrading.It and database may exist the process of data transaction alternately so.This process is defined in to internal memory fully to the copy of internal memory, can clearer and more definite program execute the task.Facilitate developer's maintenance.
(4) write data to oracle database:
Finally, program has realized that internal storage data writes the process in storehouse.As shown in Figure 7, the copy that wherein the abridged part is other tables, the employing method is identical, comprises the steps:
A, connection oracle database;
B, in the BaseMVA tables of data, import data;
C, judge in databases, whether the BaseMVA data exist: if exist, carry out next step; Otherwise carry out step I;
D, initialization system internal storage data list list, store internal storage data;
E, definition internal memory pointer, point to data in databases reference capacity BaseMVA by it;
F, a data content in memory cache district map is deposited in internal storage data table list;
G, judge whether the internal memory pointer points to the databases end position: if carry out step h; Otherwise pointer adds 1 and return to step e;
H, deposit the batch data in internal storage data table list in database;
I, in reference voltage Basevalue tables of data, import data;
J, judge in databases, whether reference voltage Basevalue data exist: if exist, carry out next step; Otherwise carry out step p;
K, initialization system internal storage data list list, store internal storage data;
L, definition internal memory pointer, point to data in databases reference voltage Basevalue by it;
M, a data content in memory cache district map is deposited in tables of data list;
N, judge whether the internal memory pointer points to the databases end position: if carry out step o; Otherwise pointer adds 1 and return to step e;
O, deposit the batch data in tables of data list in database;
P, in next table, import data, import step identical with the Basevalue tables of data with the BaseMVA tables of data;
Q, coprocessing plant stand, bus, node, 14 tables of data of AC line;
R, write data to the oracle database flow process and finish.
Based on Power System Analysis Software Package PSASP and power system analysis software instrument PSD_BPA are integrated on dispatch server, and coordinated management module and simulation algorithm model by Integrated Algorithm interface and application server carry out data interaction.To Based on Power System Analysis Software Package PSASP and two kinds of data analysis tools of power system analysis software instrument PSD_BPA, set up unified device parameter data standard information and grid simulation computation model, for realizing data maintenance.Described device parameter data standard information comprises base components scheduling planning information and the element physical parameter information of calculating for trend; Described grid simulation computation model comprises generator, voltage regulator, and speed regulator, stability controller PSS, direct current system is controlled model, controlled high resistance, the computation model of Static Var Compensator equipment.
System software architecture of the present invention adopts the B/S mode, system is based on Java EE platform, MVC design philosophy, use Spring, SpringMVC3, the technology such as Mybatis3, webservice of main flow in enterprise's application and development, usage data storehouse technology, distributed file system and communication middleware are supported data storage and the traffic operation of bottom simultaneously, make system that service can be provided flexible, light, rapidly, simultaneously can be efficiently, stable, move safely.
Many people provided by the invention strange land concurrent collaborative system architecture figure as shown in Figure 2, the B/S framework, it is browser/server framework, browser is unique client software of user and system interaction, it initiates user's operation requests to server end, the server end place manages the client-requested data and processes the related service logic, afterwards to client transmissions operation response.The B/S framework is a kind of software architecture of rising along with the Internet technology, is the main flow framework of current enterprise application, and it has reduced the software and hardware demand of client, makes it only need to install browser, the service that can use software systems to provide.Simultaneously, it also greatly reduces maintenance and the upgrade cost of software systems, has promoted flexibility and ease for use.
Java EE platform is based on the enterprise-level application development platform of Java language, and the enterprise-level application development technical specification that it comprises a series of openings, comprise JSP, Servlet, Webservice, JMS, JavaMail, JSF, EJB etc.JSP and Servlet are the core technologies of Java EE platform, and they are infrastructure components of B/S framework applications program.JSP is the Java dynamic web page technique, and it makes the developer can use Java language to write the dynamic web page interface, in Java EE enterprise application usually used as showing interface layer utilization.Servlet is the Java servlet, and it provides the communication interface of browser/server end for Java EE application program, makes the developer to free from network communication protocol and is absorbed in that application data is processed and service logic is developed.
Java EE application program is comprised of application server and application software, application software is the software systems that meet specific transactions by enterprise development, application server is provided by some specialized vendors, such as Apache Tomcat, Oracle GlassFish, Jboss Resin etc., the application program of all Java of following EE standards can run in these application servers.What cooperative system was used is Apache Tomcat application server, and it is current most widely used Java EE application server.
SpringMVC is by a set of Java of following EE standard of Spring organization development, meets the WEB application program development framework of MVC design philosophy, it has defined a series of meticulous development interfaces and reusable assembly, make the developer more standard, carry out the WEB application program development more quickly.That cooperative system adopts is SpringMVC3, and it is the latest edition of SpringMVC, supports current more advanced note characteristic in Java language, makes the exploitation of WEB application program easier and flexible.
Spring injects software design idea Java object management framework based on relying on, the various memory objects while moving for administering and maintaining java application by a set of of Spring organization development.Spring has been widely used in various software systems, it makes the developer not need to realize establishment and the management of object, and the object that only need to from the Spring container, obtain expectation gets final product, the coupling that this greatly reduces between each assembly of application program, make application program can have better adaptability and flexibility.
Mybatis is a set of Java persistence framework under Jboss, for supporting the persistence operation of Java object to relational database.Mybatis is comprised of application programming interfaces and SQL mapped file, and at first the developer needs to write the SQL mapped file, then calls its application programming interfaces, can realize data persistence.It is a kind of comparatively flexible and open Java persistence scheme, and developer's operation of can controlling database to greatest extent, correspondingly optimize and adjust.Cooperative system is supported the data persistence operation of whole system with it.
The partial function of cooperative system is combined and is provided by java applet and C++ program, in order to solve the communication issue between this isomery program, we have introduced Webservice technology and communication middleware, and they can simplify complexity and the dependence of isomery interprogram communication.Webservice is for supporting the synchronization call pattern between the isomery program, and communication middleware is for supporting the asynchronous call pattern.In cooperative system, what the functions such as data pick-up, data checks adopted is the Webservice mode, and trend is calculated, steady temporarily what calculate etc. that the function that need to immediately return to the computational process data adopts is the communication middleware mode.
Finally should be noted that: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit, although with reference to above-described embodiment, the present invention is had been described in detail, those of ordinary skill in the field are to be understood that: still can modify or be equal to replacement the specific embodiment of the present invention, and do not break away from any modification of spirit and scope of the invention or be equal to replacement, it all should be encompassed in the middle of claim scope of the present invention.