A computing middleware method and system suitable for power system cloud computing
By generating portable programs and establishing calculation templates, the problem of migrating traditional power system simulation calculation programs to cloud computing is solved, the efficient migration and complexity reduction of power grid simulation calculations are achieved, and front-end and back-end business applications are connected.
Patent Information
- Application Number
- CN202110411963.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-16
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2041-04-16
AI Technical Summary
It is difficult for existing technologies to directly deploy traditional power grid simulation calculation programs or integrate them with the current cloud computing service framework. Due to historical reasons, power system simulation calculation programs were originally designed for stand-alone versions or integration with the current cloud computing service framework. In the existing technical field, specific problems that existing technologies have not been able to effectively solve, and the transplantation of power system simulation calculation programs to cloud computing that are difficult to effectively solve with existing technologies, are difficult to effectively solve with existing technologies.
A computing middleware method suitable for power system cloud computing is proposed. By generating portable programs, establishing computing templates, and encapsulating hybrid cloud computing services, the migration of simulation computing programs is achieved.
It realizes the migration of traditional stand-alone power system simulation programs to cloud computing, reduces the complexity of executing power grid simulation calculations, connects front-end business applications and back-end basic services, and shields the differences and details of cloud computing services.
Smart Images

Figure CN113204866B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system simulation, and more particularly to a method and system suitable for transplanting simulation calculation programs. Background Art
[0002] Power system simulation software emerged in the 1970s, along with the advent of computer technology. Simulation algorithms and the first batch of simulation software appeared. Since then, over the past half century of iterative evolution, while fundamental simulation algorithms have seen minimal improvements, simulation implementation has undergone several transformations. In particular, with the increasing adoption of the Internet and the Internet of Things, the concept of cloud computing has emerged. This approach provides computing, storage, and network resources over the internet, offering users convenient, on-demand computing services.
[0003] Currently, cloud computing service providers such as Amazon, Microsoft, Alibaba, and Tencent, both domestically and internationally, offer public and private cloud computing service solutions online. However, due to historical reasons, traditional power grid simulation programs were originally designed for standalone use or MPI models, making them difficult to deploy directly or integrate with existing cloud computing frameworks. Furthermore, maintaining power grid simulation algorithms and processing related computational model data is a relatively specialized field, making it difficult for front-end and back-end business application developers to understand the relevant business details. Similarly, general computing technologies are difficult for power professionals to understand. Reconstructing traditional power grid simulation programs to fit the architecture and operating environment of cloud computing and cloud storage requires collaboration between technical personnel from different industries, a significant workload. Summary of the Invention
[0004] To address the above issues, the present invention proposes a computing middleware method suitable for power system cloud computing, comprising:
[0005] Process the executable program of the simulation calculation program of the power grid simulation data management platform to generate a portable program;
[0006] Establish calculation templates for portable programs;
[0007] According to the computing template, the hybrid cloud computing service is encapsulated to complete the migration of the simulation computing program to the hybrid cloud computing.
[0008] Optionally, analyze the simulation program, including:
[0009] For an executable program, determine the input and output characteristics of the executable program, and encapsulate the executable program under the PSDB system architecture based on the input and output characteristics, wherein the encapsulation converts the callable program from a single machine serial to a cluster distributed parallel;
[0010] For non-executable programs, the non-executable programs are combined.
[0011] Alternatively, a portable program is a combination of a non-executable program and a packaged executable program.
[0012] Optionally, create a calculation template, including:
[0013] The unified entry includes: selecting a program for generating a simulation calculation model as a meta-program; generating a simulation calculation model according to the power flow calculation type from a device library, a solution library, and a mode library based on the mode ID of the meta-program;
[0014] Unifying the storage of simulation calculation files, said unified storage of simulation calculation files including: storing execution records in a relational database and storing calculation result files in a file server according to the library table structure of PSDB and the storage specification of the file server;
[0015] Executing a metaprogram according to the storage of the unified entry and the unified simulation calculation file, wherein the executing metaprogram includes: executing a power flow calculation in a subprocess manner;
[0016] The execution records of the execution metaprogram are encapsulated to complete the establishment of the calculation template.
[0017] Optionally, the establishment of calculation templates, based on the library table structure of the simulation calculation data management platform, records the equipment nameplate parameters and operation mode information, the return value of the execution metaprogram, and the execution process record;
[0018] After the establishment is completed, the server is used to store the calculation template and result files.
[0019] The present invention also proposes a computing middleware system suitable for power system cloud computing, comprising:
[0020] The initial pre-processing module processes the executable program of the simulation calculation program of the power grid simulation data management platform and generates a portable program;
[0021] Calculation module, which establishes calculation templates for portable programs;
[0022] The migration module encapsulates the hybrid cloud computing service according to the computing template and completes the migration of the simulation computing program to the hybrid cloud computing.
[0023] Optionally, analyze the simulation program, including:
[0024] For an executable program, determine the input and output characteristics of the executable program, and encapsulate the executable program under the PSDB system architecture based on the input and output characteristics, wherein the encapsulation converts the callable program from a single machine serial to a cluster distributed parallel;
[0025] For non-executable programs, the non-executable programs are combined.
[0026] Alternatively, a portable program is a combination of a non-executable program and a packaged executable program.
[0027] Optionally, create a calculation template, including:
[0028] The unified entry includes: selecting a program for generating a simulation calculation model as a meta-program; generating a simulation calculation model according to the power flow calculation type from a device library, a solution library, and a mode library based on the mode ID of the meta-program;
[0029] Unifying the storage of simulation calculation files, said unified storage of simulation calculation files including: storing execution records in a relational database and storing calculation result files in a file server according to the library table structure of PSDB and the storage specification of the file server;
[0030] Executing a metaprogram according to the storage of the unified entry and the unified simulation calculation file, wherein the executing metaprogram includes: executing a power flow calculation in a subprocess manner;
[0031] The execution records of the execution metaprogram are encapsulated to complete the establishment of the calculation template.
[0032] Optionally, the establishment of calculation templates, based on the library table structure of the simulation calculation data management platform, records the equipment nameplate parameters and operation mode information, the return value of the execution metaprogram, and the execution process record;
[0033] After the establishment is completed, the server is used to store the calculation template and result files.
[0034] The present invention realizes the functions of power grid simulation calculation middleware, abstracts calculation templates according to simulation calculation scenarios, unifies interfaces and outputs, encapsulates calculation processes and business implementation details, reduces the complexity of executing power grid simulation calculations, connects PSDB front-end business applications and back-end basic services, and shields the differences and details of back-end cloud computing services by encapsulating the supercomputing public cloud and PSDB private cloud computing service interfaces, thus realizing the transplantation of traditional stand-alone power system simulation programs to cloud computing. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 Flow chart of the method of the present invention;
[0036] Figure 2 Schematic diagram of the application of computing middleware in the PSDB system according to an embodiment of the present invention;
[0037] Figure 3 This is a flow chart of the PSDB system power flow calculation according to an embodiment of the present invention;
[0038] Figure 4 This is a functional diagram of the simulation computing middleware in the PSDB system according to an embodiment of the present invention;
[0039] Figure 5 This is a schematic diagram of the flow simulation calculation business process according to an embodiment of the present invention;
[0040] Figure 6 This is a table diagram related to PSDB simulation calculation according to an embodiment of the present invention;
[0041] Figure 7 This is a diagram showing the logical storage structure of the simulation calculation data model and calculation results in the file server according to an embodiment of the present invention;
[0042] Figure 8 Schematic diagram of the encapsulation of a metaprogram by a calculation template according to an embodiment of the present invention;
[0043] Figure 9 This is a schematic diagram of the application of a computing template in hybrid cloud computing according to an embodiment of the present invention;
[0044] Figure 10 A schematic diagram of deploying computing middleware in hybrid cloud computing according to an embodiment of the present invention;
[0045] Figure 11 It is a structural diagram of the system of the present invention. DETAILED DESCRIPTION
[0046] Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings. However, the present invention may be embodied in many different forms and is not limited to the embodiments described herein. These embodiments are provided to provide a thorough and complete disclosure of the present invention and to fully convey the scope of the present invention to those skilled in the art. The terminology used in the exemplary embodiments shown in the accompanying drawings is not intended to limit the present invention. In the accompanying drawings, identical elements are denoted by the same reference numerals.
[0047] Unless otherwise specified, the terms used herein (including technical terms) have the meanings commonly understood by those skilled in the art. In addition, it is understood that terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.
[0048] The present invention proposes a computing middleware method suitable for power system cloud computing, such as Figure 1 As shown, including:
[0049] Process the executable program of the simulation calculation program of the power grid simulation data management platform to generate a portable program;
[0050] Establish calculation templates for portable programs;
[0051] According to the computing template, the hybrid cloud computing service is encapsulated to complete the migration of the simulation computing program to the hybrid cloud computing.
[0052] Among them, the simulation calculation program is analyzed, including:
[0053] For an executable program, determine the input and output characteristics of the executable program, and encapsulate the executable program under the PSDB system architecture based on the input and output characteristics, wherein the encapsulation converts the callable program from a single machine serial to a cluster distributed parallel;
[0054] For non-executable programs, the non-executable programs are combined.
[0055] Among them, portable programs are combined non-executable programs and packaged executable programs.
[0056] The calculation template is established, including:
[0057] The unified entry includes: selecting a program for generating a simulation calculation model as a meta-program; generating a simulation calculation model according to the power flow calculation type from a device library, a solution library, and a mode library based on the mode ID of the meta-program;
[0058] Unifying the storage of simulation calculation files, said unified storage of simulation calculation files including: storing execution records in a relational database and storing calculation result files in a file server according to the library table structure of PSDB and the storage specification of the file server;
[0059] Executing a metaprogram according to the storage of the unified entry and the unified simulation calculation file, wherein the executing metaprogram includes: executing a power flow calculation in a subprocess manner;
[0060] The execution records of the execution metaprogram are encapsulated to complete the establishment of the calculation template.
[0061] The establishment of calculation templates is based on the library table structure of the simulation calculation data management platform, which records the equipment nameplate parameters and operation mode information, the return value of the execution metaprogram, and the execution process record;
[0062] After the establishment is completed, the server is used to store the calculation template and result files.
[0063] The present invention will be further described below in conjunction with embodiments:
[0064] The present invention realizes a computing middleware function suitable for power system cloud computing based on the power grid simulation computing data platform, abstracts the computing template according to the simulation computing business scenario, encapsulates the unit stand-alone simulation computing program, unifies the input and output interfaces according to the PSDB system architecture, encapsulates the computing process and business implementation details, and encapsulates the supercomputing public cloud and PSDB private cloud computing services, connecting PSDB front-end business applications and back-end basic services, such as Figure 2 shown.
[0065] Analysis of existing simulation executable programs, including:
[0066] Simulation calculation executable program call;
[0067] When designing standalone computing software, we adhered to the principle of "loose coupling, high cohesion" by splitting business functions into independent executable programs (EXE or DLL). These executable programs were coupled together through files or databases. Calling each executable program can be simplified to the three steps of "input, execution, and output."
[0068] The purpose of this invention is to further encapsulate these executable programs under the PSDB system architecture based on their input and output characteristics, and migrate them from stand-alone programs to a cloud computing environment without changing or making minor adjustments to the source code, thereby transforming stand-alone serial programs into cluster distributed parallel programs.
[0069] Meta-computing procedures;
[0070] According to the power grid simulation computing business function, the computing function that performs a certain business function and cannot be further divided is called meta-computing. The characteristic simulation computing function is completed by combining meta-computing. Some meta-programs in the PSDB system are shown in Table 1.
[0071] Table 1
[0072]
[0073] Simulation calculation template;
[0074] The simulation calculation template is called for the front-end business scenario, and combines business-related meta-programs. Each calculation business scenario needs to call a series of sub-executable programs. Some previous calculation results are input for subsequent meta-calculations, and some need to judge the subsequent executable program flow based on the sub-calculation results. At the same time, the calculation template should consider the compatibility of different calculation software (BPA, PSASP), cross-platform compatibility, and support for PSDB private cloud computing and supercomputing platforms. For example, the calculation template for power flow calculation is to encapsulate the meta-programs related to power grid power flow calculation according to the business process execution logic, provide external call entry and exit, encapsulate business logic and implementation details, business processes, such as Figure 3 shown.
[0075] The calculation template encapsulates the input and output requirements of the stand-alone power flow calculation program under the PSDB architecture and adapts to the WEB environment (cloud environment), such as Figure 4 As shown in the figure, if the PSDB front-end application calls the power flow calculation function, it only needs to call the power flow calculation template, select the execution software as PSD-BPA or PSASP, input parameters such as the method ID, and receive the execution return value. It does not need to pay attention to the business details of the power flow calculation itself, what processing is performed in the background, whether it is PSDB private cloud computing or supercomputing service calculation, how to save and analyze the calculation results, and other intermediate processes.
[0076] Unified entrance;
[0077] Power flow calculation type [PSD-BPA / PSASP];
[0078] A metaprogram for selecting a data model to generate a simulation calculation model.
[0079] ID primary key of the current calculation method to be used;
[0080] The power flow calculation model generation metaprogram generates the corresponding simulation calculation model according to the power flow calculation type from the equipment library, solution library, and method library based on the method ID.
[0081] Unified storage of simulation calculation related files;
[0082] The metaprogram only focuses on the implementation of business functions. The calculation template will store the relevant execution records in the relational database according to the library table structure of PSDB and the storage specifications of the file server, and store the calculation result files in the file server, thus "embedding" the isolated metaprogram from the traditional stand-alone executable program into PSDB.
[0083] Execute metaprogram;
[0084] In the BPA stand-alone computing program, power flow calculations are executed as sub-processes. Under the PSDB architecture, private cloud computing also executes as sub-processes in computing nodes based on the computing service task allocation strategy, and monitors and manages the computing task sub-processes. In the supercomputing public cloud environment, the computing template encapsulates its open computing API interface to complete the submission, query, and result download of the calculation.
[0085] Whether it is a private cloud or calling a supercomputing cloud, for the front-end calling of the current calculation function, the parameters passed in, the current meta-program called, the calculation result return value, and the return content are the same.
[0086] Business process encapsulation;
[0087] In the power flow calculation template, the metaprograms to be executed by the power flow calculation are combined according to business functions, and the business logic and implementation details (including the pre-order input file and parameter check of each metaprogram, the landmark result file check, the execution time return value of each metaprogram, the execution process record of all metaprograms, etc.) are encapsulated, and the call entry and exit are provided to the outside world. The business process is as follows: Figure 5 As shown, the included meta-calculations are as follows:
[0088] Generate simulation calculation power flow model file metaprogram;
[0089] Generate a simulation calculation model of PSD-BPA or PSASP according to the calculation type and method ID;
[0090] Power flow calculation metaprogram;
[0091] Perform power grid flow simulation calculations;
[0092] Metaprogram for analyzing and storing power flow results;
[0093] Analyze the power flow calculation results and store them in the specified database table and file server.
[0094] Splitting of computing tasks;
[0095] A calculation template can contain sub-templates. For example, the N-1 scan of power grid transient stability can be split into N-1 single transient stability calculations, thereby realizing multi-machine distributed parallel computing of a computing task. For power flow calculation, it is currently only used as a calculation template and executed as a sub-process on the computing node computer.
[0096] Based on the library table structure of simulation calculation data management platform;
[0097] The PSDB system records equipment nameplate parameters and operating mode information based on database tables. Some simulation calculation tables are as follows: Figure 6 shown.
[0098] The input and output of the stand-alone executable program are based on the simulation calculation file. The calculation template records the primary key ID according to the PSDB database table, calls the relevant meta-program, generates the relevant calculation file, and adapts the traditional stand-alone executable program to the PSDB system.
[0099] Calculate template return value and execution process records;
[0100] Each meta-calculation program has its own specific return value. For the calculation template, the return value meaning of all meta-programs is unified globally to facilitate the front-end application call, such as: 0, the calculation template is executed successfully and the program exits normally; -1, the power flow calculation does not converge.
[0101] The execution process of the calculation template is recorded in the log file, including the return result int value of the execution meta-program, the return of the calling CMD screen, the execution time, execution exceptions, etc., which facilitates error location and further result analysis.
[0102] Computational models and result file server storage;
[0103] According to the relationship between the PSDB equipment library, the simulation calculation data model and the calculation result logical storage structure are organized to ensure that under one operation mode version of the power grid, there is only one simulation calculation model and one calculation result (flow calculation analysis, short-circuit current calculation analysis, small disturbance dynamic stability calculation analysis, transient stability calculation analysis, etc.) in the file server to avoid redundant storage, such as Figure 7 shown.
[0104] For the PSDB business front-end, after calling the calculation template, the calculation template will store the simulation calculation result file in a specific logical directory of the file server. The front-end does not need to pay attention to the intermediate process of the simulation calculation, or whether the result file is in the supercomputing public cloud or the PSDB private cloud computing. It only needs to read the simulation calculation result file under the specific structure.
[0105] The connection and interaction between meta-computing programs;
[0106] Taking PSD-BPA as an example, the main programming language of the unit software is C / C++, and the core algorithm is Fortran. It may also involve modules written in JAVA, VB, and Matlab (executable program EXE or dynamic link library DLL). Currently, Python and C++ are used to package modules written in different languages, and each computing scenario is an executable program.
[0107] Application developers only need to maintain their own meta-programs and standardize the input and output interfaces. The calculation templates are like building blocks, which can be combined to complete specific business functions, such as Figure 8 shown.
[0108] Hybrid cloud computing service packaging;
[0109] It includes: data computing middleware, which encapsulates the API interfaces of supercomputing cloud computing and PSDB private cloud computing, unifies input and output, and encapsulates background details. For the front-end call of simulation computing functions, no matter whether private cloud or supercomputing cloud is selected, the input parameters, called trend metaprograms, calculation result return values, and return content are all consistent.
[0110] Calculate the architecture of the calculation template, including:
[0111] The calculation templates and meta-programs are saved in the file servers of the supercomputer and PSDB and mounted on each computing node as shared storage.
[0112] The calculation template encapsulates supercomputing cloud computing and private cloud computing. For supercomputing public cloud, the calculation template encapsulates its open calculation API interface, and implements the submission of parallel computing tasks, query of job calculation progress, and acquisition of calculation result files according to its requirements. For PSDB private cloud computing, the calculation template sends a calculation request message to the calculation server, and the calculation server executes the same calculation meta-program as the supercomputing. Regarding supercomputing or private cloud, how to execute computing tasks, implement load balancing, task timeout recalculation, etc. is a black box for the front-end call, and the computing middleware unifies the input and output to encapsulate the background details. Whether it is a private cloud or a supercomputing cloud, for the front-end call of the flow calculation function, the parameters passed in, the flow meta-program called, the calculation result return value, and the return content are consistent, such as Figure 9 shown.
[0113] Unified input and output interface;
[0114] Unified input;
[0115] The patent uses the record IDs in the PSDB system equipment library, solution library, and method library as input parameters. The calculation template generates the simulation calculation related files required by the traditional stand-alone program in the database through the primary key ID.
[0116] Unified output;
[0117] The metaprogram only focuses on the implementation of business functions. The calculation template will store the relevant execution records in the relational database based on the library table structure and file storage of PSDB, and the calculation result files will be stored in the file server. The front-end application only needs to call the calculation template and read the corresponding output results, such as landmark files and specific tables in the database, without having to worry about whether the calculation is performed on the supercomputing cloud platform or PSDB private cloud computing.
[0118] Computing middleware deployment architecture;
[0119] The calculation templates and meta-programs are stored in the file servers of the supercomputer and PSDB, and are mounted as shared storage under each computing node, such as Figure 10 shown.
[0120] Executable program version;
[0121] For power grid simulation calculation programs, the data model and calculation program must strictly correspond. Currently, the system only retains the latest version to simplify the management of simulation calculation model data and meta-programs.
[0122] Executable program updates;
[0123] The grid's data and computational models may require frequent updates as new equipment models are added or adjusted. Updating metaprograms and computational templates simply requires overwriting the executable files with the same names in the supercomputer and PSDB file servers. These files serve as a shared directory, allowing each compute node to be updated promptly.
[0124] The present invention also proposes a system 200 suitable for transplanting simulation computing programs, such as Figure 11 As shown, including:
[0125] The initial pre-processing module 201 processes the executable program of the simulation calculation program of the power grid simulation data management platform to generate a portable program;
[0126] The calculation module 202 establishes a calculation template for the portable program;
[0127] The migration module 203 encapsulates the hybrid cloud computing service according to the computing template, and completes the migration of the simulation computing program to the hybrid cloud computing.
[0128] Among them, the simulation calculation program is analyzed, including:
[0129] For an executable program, determine the input and output characteristics of the executable program, and encapsulate the executable program under the PSDB system architecture based on the input and output characteristics, wherein the encapsulation converts the callable program from a single machine serial to a cluster distributed parallel;
[0130] For non-executable programs, the non-executable programs are combined.
[0131] Among them, portable programs are combined non-executable programs and packaged executable programs.
[0132] The calculation template is established, including:
[0133] The unified entry includes: selecting a program for generating a simulation calculation model as a meta-program; generating a simulation calculation model according to the power flow calculation type from a device library, a solution library, and a mode library based on the mode ID of the meta-program;
[0134] Unifying the storage of simulation calculation files, said unified storage of simulation calculation files including: storing execution records in a relational database and storing calculation result files in a file server according to the library table structure of PSDB and the storage specification of the file server;
[0135] Executing a metaprogram according to the storage of the unified entry and the unified simulation calculation file, wherein the executing metaprogram includes: executing a power flow calculation in a subprocess manner;
[0136] The execution records of the execution metaprogram are encapsulated to complete the establishment of the calculation template.
[0137] The establishment of calculation templates is based on the library table structure of the simulation calculation data management platform, which records the equipment nameplate parameters and operation mode information, the return value of the execution metaprogram, and the execution process record;
[0138] After the establishment is completed, the server is used to store the calculation template and result files.
[0139] The present invention realizes a computing middleware function suitable for power system cloud computing, and abstracts computing templates according to simulation computing scenarios, unifies interfaces and outputs, encapsulates computing processes and business implementation details, reduces the complexity of executing power grid simulation calculations, connects PSDB front-end business applications and back-end basic services, and shields the differences and details of back-end cloud computing services by encapsulating the computing service interfaces of the supercomputing public cloud and the PSDB private cloud computing, thus realizing the transplantation of traditional stand-alone power system simulation programs to cloud computing.
[0140] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiment of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal translation scripting language JavaScript, etc.
[0141] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0142] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0144] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.
[0145] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A method for computing middleware applicable to power system cloud computing, the method comprising: Process the executable program of the simulation calculation program of the power grid simulation data management platform to generate a portable program; Establish calculation templates for portable programs; Encapsulate hybrid cloud computing services based on computing templates and complete the migration of simulation computing programs to hybrid cloud computing; Hybrid cloud computing service packaging; This includes: data computing middleware that encapsulates the API interfaces of supercomputing cloud computing and PSDB private cloud computing, unifies input and output, and encapsulates background details. When calling simulation computing functions in the foreground, regardless of whether private cloud or supercomputing cloud is selected, the input parameters, the called flow metaprogram, the calculation result return value, and the return content are all consistent; Calculate the architecture of the calculation template, including: Save the calculation templates and meta-programs in the file servers of the supercomputer and PSDB, and use them as shared storage, mounted under each computing node; The calculation template encapsulates supercomputing cloud computing and private cloud computing. For supercomputing public cloud, the calculation template encapsulates its open calculation API interface, and implements the submission of parallel computing tasks, query of job calculation progress, and acquisition of calculation result files according to its requirements. For PSDB private cloud computing, the calculation template sends a calculation request message to the calculation server, and the calculation server executes the same calculation meta-program as the supercomputing. How to execute computing tasks, implement load balancing, and recalculate task timeouts for supercomputing or private cloud is a black box for front-end calls. The calculation middleware unifies the input and output and encapsulates the background details. Whether it is a private cloud or a supercomputing cloud, for the front-end call of the flow calculation function, the parameters passed in, the called flow meta-program, the calculation result return value, and the return content are consistent. Unified input and output interface; Unified input; Based on the record IDs in the PSDB system equipment library, solution library, and method library as input parameters, the calculation template generates simulation calculation related files required by traditional stand-alone programs in the database through the primary key ID; Unified output; The metaprogram only focuses on the implementation of business functions. The calculation template will store the relevant execution records in the relational database according to the library table structure and file storage of PSDB, and the calculation result files will be stored in the file server. The front-end application only needs to call the calculation template and read the corresponding output results, such as the iconic file and the specific table in the database, without worrying about whether the calculation is performed on the supercomputing cloud platform or the PSDB private cloud computing. Computing middleware deployment architecture; Computational templates and metaprograms are stored in the file servers of the supercomputer and PSDB and mounted as shared storage under each computing node; Executable program version; For power grid simulation calculation programs, the data model and calculation program must be strictly consistent. Currently, the system only retains the latest version to simplify the management of simulation calculation model data and meta-programs; Executable program updates; The data model and computing model of the power grid may need to be frequently updated as new equipment models are added or adjusted. To update the meta-programs and computing templates, it is only necessary to synchronously overwrite the files with the same name in the executable program directories on the supercomputer and PSDB file servers. As a "shared directory", each computing node can be updated in a timely manner.
2. The method according to claim 1, wherein analyzing the simulation program comprises: For an executable program, determine the input and output characteristics of the executable program, and encapsulate the executable program under the PSDB system architecture based on the input and output characteristics, wherein the encapsulation converts the callable program from a single machine serial to a cluster distributed parallel; For non-executable programs, the non-executable programs are combined.
3. The method according to claim 1, wherein the portable program is a combination of a non-executable program and a packaged executable program.
4. The method according to claim 1, wherein establishing a calculation template comprises: The unified entry includes: selecting a program for generating a simulation calculation model as a meta-program; generating a simulation calculation model according to the power flow calculation type from a device library, a solution library, and a mode library based on the mode ID of the meta-program; Unifying the storage of simulation calculation files, said unified storage of simulation calculation files including: storing execution records in a relational database and storing calculation result files in a file server according to the library table structure of PSDB and the storage specification of the file server; Executing a metaprogram according to the storage of the unified entry and the unified simulation calculation file, wherein the executing metaprogram includes: executing a power flow calculation in a subprocess manner; The execution records of the execution metaprogram are encapsulated to complete the establishment of the calculation template.
5. The method according to claim 4, wherein the calculation template is established based on the library table structure of the simulation calculation data management platform, recording the equipment nameplate parameters and operation mode information and the return value and execution process record of the execution metaprogram; After the establishment is completed, the server is used to store the calculation template and result files.
6. A system suitable for transplanting a simulation computing program, the system comprising: The initial pre-processing module processes the executable program of the simulation calculation program of the power grid simulation data management platform and generates a portable program; Calculation module, which establishes calculation templates for portable programs; The migration module encapsulates hybrid cloud computing services according to the computing template and completes the migration of simulation computing programs to hybrid cloud computing; Hybrid cloud computing service packaging; This includes: data computing middleware that encapsulates the API interfaces of supercomputing cloud computing and PSDB private cloud computing, unifies input and output, and encapsulates background details. When calling simulation computing functions in the foreground, regardless of whether private cloud or supercomputing cloud is selected, the input parameters, the called flow metaprogram, the calculation result return value, and the return content are all consistent; Calculate the architecture of the calculation template, including: Save the calculation templates and meta-programs in the file servers of the supercomputer and PSDB, and use them as shared storage, mounted under each computing node; The calculation template encapsulates supercomputing cloud computing and private cloud computing. For supercomputing public cloud, the calculation template encapsulates its open calculation API interface, and implements the submission of parallel computing tasks, query of job calculation progress, and acquisition of calculation result files according to its requirements. For PSDB private cloud computing, the calculation template sends a calculation request message to the calculation server, and the calculation server executes the same calculation meta-program as the supercomputing. How to execute computing tasks, implement load balancing, and recalculate task timeouts for supercomputing or private cloud is a black box for front-end calls. The calculation middleware unifies the input and output and encapsulates the background details. Whether it is a private cloud or a supercomputing cloud, for the front-end call of the flow calculation function, the parameters passed in, the called flow meta-program, the calculation result return value, and the return content are consistent. Unified input and output interface; Unified input; Based on the record IDs in the PSDB system equipment library, solution library, and method library as input parameters, the calculation template generates simulation calculation related files required by traditional stand-alone programs in the database through the primary key ID; Unified output; The metaprogram only focuses on the implementation of business functions. The calculation template will store the relevant execution records in the relational database according to the library table structure and file storage of PSDB, and the calculation result files will be stored in the file server. The front-end application only needs to call the calculation template and read the corresponding output results, such as the iconic file and the specific table in the database, without worrying about whether the calculation is performed on the supercomputing cloud platform or the PSDB private cloud computing. Computing middleware deployment architecture; Computational templates and metaprograms are stored in the file servers of the supercomputer and PSDB and mounted as shared storage under each computing node; Executable program version; For power grid simulation calculation programs, the data model and calculation program must be strictly consistent. Currently, the system only retains the latest version to simplify the management of simulation calculation model data and meta-programs; Executable program updates; The data model and computing model of the power grid may need to be frequently updated as new equipment models are added or adjusted. To update the meta-programs and computing templates, it is only necessary to synchronously overwrite the files with the same name in the executable program directories on the supercomputer and PSDB file servers. As a "shared directory", each computing node can be updated in a timely manner.
7. The system according to claim 6, wherein the analyzing the simulation program comprises: For an executable program, determine the input and output characteristics of the executable program, and encapsulate the executable program under the PSDB system architecture based on the input and output characteristics, wherein the encapsulation converts the callable program from a single machine serial to a cluster distributed parallel; For non-executable programs, the non-executable programs are combined.
8. The system according to claim 6, wherein the portable program is a combination of a non-executable program and a packaged executable program.
9. The system according to claim 6, wherein the establishing of the calculation template comprises: The unified entry includes: selecting a program for generating a simulation calculation model as a meta-program; generating a simulation calculation model according to the power flow calculation type from a device library, a solution library, and a mode library based on the mode ID of the meta-program; Unifying the storage of simulation calculation files, said unified storage of simulation calculation files including: storing execution records in a relational database and storing calculation result files in a file server according to the library table structure of PSDB and the storage specification of the file server; Executing a metaprogram according to the storage of the unified entry and the unified simulation calculation file, wherein the executing metaprogram includes: executing a power flow calculation in a subprocess manner; The execution records of the execution metaprogram are encapsulated to complete the establishment of the calculation template.
10. The system according to claim 9, wherein the calculation template is established based on the library table structure of the simulation calculation data management platform, recording the equipment nameplate parameters and operation mode information and the return value and execution process record of the execution metaprogram; After the establishment is completed, the server is used to store the calculation template and result files.
Citation Information
Patent Citations
Cloud simulation service method
CN106533772A