CN117272700B - Method and system for realizing on-line simulation platform of electric energy system of building machine - Google Patents
Method and system for realizing on-line simulation platform of electric energy system of building machine Download PDFInfo
- Publication number
- CN117272700B CN117272700B CN202311553790.1A CN202311553790A CN117272700B CN 117272700 B CN117272700 B CN 117272700B CN 202311553790 A CN202311553790 A CN 202311553790A CN 117272700 B CN117272700 B CN 117272700B
- Authority
- CN
- China
- Prior art keywords
- calculation
- simulation
- client
- module
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 159
- 238000000034 method Methods 0.000 title claims abstract description 71
- 238000004364 calculation method Methods 0.000 claims abstract description 168
- 238000006243 chemical reaction Methods 0.000 claims abstract description 40
- 238000004458 analytical method Methods 0.000 claims abstract description 25
- 230000003993 interaction Effects 0.000 claims abstract description 17
- 238000007405 data analysis Methods 0.000 claims abstract description 13
- 238000004590 computer program Methods 0.000 claims description 12
- 238000004422 calculation algorithm Methods 0.000 claims description 9
- 238000010276 construction Methods 0.000 claims description 5
- 238000013468 resource allocation Methods 0.000 claims description 5
- 125000004122 cyclic group Chemical group 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 6
- 229910052799 carbon Inorganic materials 0.000 description 6
- 238000005265 energy consumption Methods 0.000 description 5
- 238000005457 optimization Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000003745 diagnosis Methods 0.000 description 3
- CURLTUGMZLYLDI-UHFFFAOYSA-N Carbon dioxide Chemical compound O=C=O CURLTUGMZLYLDI-UHFFFAOYSA-N 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 229910002092 carbon dioxide Inorganic materials 0.000 description 1
- 239000001569 carbon dioxide Substances 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2113/00—Details relating to the application field
- G06F2113/04—Power grid distribution networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2119/00—Details relating to the type or aim of the analysis or the optimisation
- G06F2119/02—Reliability analysis or reliability optimisation; Failure analysis, e.g. worst case scenario performance, failure mode and effects analysis [FMEA]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Supply And Distribution Of Alternating Current (AREA)
Abstract
The invention relates to the technical field of building energy simulation, and provides a method and a system for realizing an on-line simulation platform of an electric energy system of a building machine, wherein the method comprises the following steps: drawing and connecting equipment modules at a front browser or a client based on a built-in equipment model library or a client customization module, and building a simulation model; carrying out data structure description on the simulation model in a directed graph or undirected graph mode to generate conversion data; the conversion data are sent to a server, and the server allocates computing resources according to user rights; performing loop iteration solving calculation through the server based on the distributed calculation resources until the calculation results are sent to the front end after convergence; and analyzing the calculation result in a front-end browser or a client, and carrying out data display, data analysis and man-machine interaction after the analysis is completed. The invention solves the problems of low simulation efficiency and high complexity of the existing building energy system.
Description
Technical Field
The invention relates to the technical field of building energy simulation, in particular to a method and a system for realizing an on-line simulation platform of an electric energy system of a building machine.
Background
The global statistics show that the building industry accounts for 30% of the total global final energy consumption and 27% of the total energy discharge. China is the largest building market in the world, the increasing completion area of China makes the stock of building areas in China continuously increased, and in 2018, china has about 98 hundred million tons of carbon emission and accounts for 28.8% of the world. Wherein the building operation, construction and infrastructure add up to about 23.5 hundred million tons of carbon dioxide, accounting for 24% of the total carbon emissions nationwide. In order to better reduce the energy consumption and carbon emission of the building, the improvement of the energy efficiency of the electric energy system of the building machine is the key point of work. In order to improve the energy efficiency of the electromechanical energy system, in the design stage, an analog simulation tool is needed to be used for estimating the energy efficiency, the energy consumption and the carbon emission of different schemes; in the operation stage, an analog simulation tool is required to be used for evaluating the energy efficiency, the energy consumption and the carbon emission of the system under different control strategies, and the energy efficiency, the energy consumption and the carbon emission are output to the control system to be used as decision basis.
However, simulation software of the building machine electric energy system can only be run locally by the existing simulation tool, the main stream tool is based on a foreign commercial software platform or developed secondarily on the basis of the foreign commercial software platform, on-line simulation cannot be realized, on-line deployment cannot be realized, and the simulation requirement of a real-time optimization control system required by the current engineering cannot be supported. The traditional simulation software only calls a local CPU to perform calculation, when the calculation problem is complex and the calculation time has higher requirements, the high-performance calculation power resources of the cloud can not be fully utilized, the multi-CPU/GPU parallel calculation can not be performed, the simulation software is easily limited by the local calculation resources, and the simulation time is difficult to shorten. The traditional method is to download special simulation tools to master high-level programming language and write C/C++/FORTRAN/Matlab/Python programs when customizing and constructing simulation models, and has the advantages of high requirements on users, large development difficulty, long test period, high simulation cost and large integration difficulty. Because the electric energy system of the building machine is complex, the mode implementation of the simulated system cannot be determined, the method has great flexibility and uncertainty, the mode of describing by adopting the relational database is not flexible enough for a long time, the data description mode is not directly related with the topology mode of the physical system, and the problems of high maintenance difficulty, more redundant data and inflexibility in modification are caused. When simulation is carried out, the solution of the complex virtual physical network corresponding to the electric energy system of the building machine lacks a high-adaptability and universal simulation solution kernel. The algorithm of the traditional calculation kernel based on partial differential equation numerical solution has high complexity, and a user cannot easily understand, develop and maintain; for the complex problems of nonlinearity and discontinuity, there is a problem of non-convergence of calculation, and a user is required to apply different calculation methods or simplify the problem.
Disclosure of Invention
The invention provides a method and a system for realizing an on-line simulation platform of an electric energy system of a building machine, which are used for solving the problems of low simulation efficiency and high complexity of the existing building energy system.
The invention provides a method for realizing an on-line simulation platform of an electric energy system of a building machine, which comprises the following steps:
drawing and connecting equipment modules at a front browser or a client based on a built-in equipment model library or a client customization module, and building a simulation model;
carrying out data structure description on the simulation model in a directed graph or undirected graph mode to generate conversion data;
the conversion data are sent to a server, and the server allocates computing resources according to user rights;
performing loop iteration solving calculation through the server based on the distributed calculation resources until the calculation results are sent to the front end after convergence;
and analyzing the calculation result in a front-end browser or a client, and carrying out data display, data analysis and man-machine interaction after the analysis is completed.
According to the method for realizing the on-line simulation platform of the building machine electric energy system, which is provided by the invention, the front-end browser or the client terminal is used for carrying out the dragging and the connection of the equipment modules by the built-in equipment model library or the client custom module, and the simulation model is built, and the method specifically comprises the following steps:
a user submits a user name and a password at a front-end browser or a client and then enters a simulation system;
the simulation system is internally provided with an equipment model library or a plurality of modules which can be customized by a customer, and each module is internally provided with specific different types of characteristic equipment or system units.
According to the method for realizing the on-line simulation platform of the building machine electric energy system, which is provided by the invention, the front-end browser or the client terminal is used for carrying out the dragging and the connection of the equipment modules by the built-in equipment model library or the client custom module, and the method further comprises the following steps:
dragging and moving the selected equipment module from the equipment model library or the client customization module to an editing area;
and connecting the selected equipment modules in the editing area according to the set connection relation to complete the construction of the simulation model.
According to the implementation method of the on-line simulation platform of the building machine electric energy system, which is provided by the invention, the simulation model is subjected to data structure description in a directed graph or undirected graph mode to generate conversion data, and the implementation method specifically comprises the following steps:
acquiring the simulation model, converting equipment modules in the simulation model into nodes in a directed graph or an undirected graph, and converting two boxes between the equipment modules into edges in the directed graph or the undirected graph;
connecting nodes and edges of the directed graph or the undirected graph to represent the association relationship between equipment modules;
and transcoding the constructed directed graph or undirected graph to generate conversion data with a specific structure.
According to the method for realizing the on-line simulation platform of the building machine electric energy system, the conversion data is sent to the server, and the server allocates computing resources according to the user permission, and the method specifically comprises the following steps:
after receiving the calculation request, the server analyzes the authority of the user, the calculation selection of the user and cloud and local calculation resources;
and distributing computing capacity according to the analysis result, and distributing corresponding computing resources for the user.
According to the method for realizing the on-line simulation platform of the building machine electric energy system, provided by the invention, the whole calculation time interval is circularly calculated step by step, and when the calculation in each time step is converged, the calculation of the next time step is performed;
judging whether the calculation is the first calculation of the current time step or the last calculation after convergence when the calculation is carried out in each step;
under the condition of first calculation, initializing a simulation boundary condition and an initial value of the current step length;
under the condition of the last calculation after iteration convergence, saving the calculation result and the output of the current time step;
and under the condition that the calculation is not the last calculation after the first calculation and the iteration convergence, carrying out traversal solution on the simulation model based on a traversal algorithm of the graph until all nodes meet the description equation, calculating the convergence, and sending a calculation result to the front end.
According to the method for realizing the on-line simulation platform of the building machine electric energy system, provided by the invention, a calculation result is returned to the front end, and the calculation result is analyzed by a front end browser or a client;
and displaying in a graphic and text mode, and carrying out related automatic analysis and man-machine interaction based on the data.
The invention also provides an on-line simulation platform implementation system of the building machine electric energy system, which comprises:
the simulation model building module is used for dragging and connecting the equipment modules at the front-end browser or the client based on the built-in equipment model library or the client customization module to build a simulation model;
the conversion module is used for describing the data structure of the simulation model in a directed graph or undirected graph mode to generate conversion data;
the computing resource allocation module is used for sending the conversion data to a server, and the server allocates computing resources according to the user permission;
the calculation solving module is used for carrying out loop iteration solving calculation through the server based on the distributed calculation resources until the calculation results are sent to the front end after convergence;
and the display module is used for analyzing the calculation result at the front-end browser or the client, and carrying out data display, data analysis and man-machine interaction after the analysis is completed.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method for realizing the on-line simulation platform of the building machine electric energy source system when executing the program.
The invention also provides a non-transitory computer readable storage medium, on which is stored a computer program which, when executed by a processor, implements a method for implementing an on-line simulation platform of a building electrical energy system according to any one of the above.
The method and the system for realizing the online simulation platform of the building machine electric energy system can flexibly and efficiently realize the establishment of a drag type low-code simulation model at a webpage end, dynamically call various computing resources and realize efficient online simulation; the graph data structure of the invention can flexibly describe simulation objects, is easy to maintain, has simple data structure and is flexible to modify; when simulation is carried out, the simulation method provided by the invention has good universality and universality, is particularly suitable for nonlinear and discontinuous complex problems, and is suitable for simulation of a complex system of the electric energy source of the building machine; the online simulation can be effectively deployed online, supports functions of online optimization control, fault diagnosis, system analysis and the like, and has more advantages compared with an island operation mode of traditional offline simulation software.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of an implementation method of an on-line simulation platform of an electric energy system of a building machine;
FIG. 2 is a second flow chart of an implementation method of an on-line simulation platform of the electric energy system of the building machine;
FIG. 3 is a third flow chart of an implementation method of an on-line simulation platform of the electric energy system of the building machine;
FIG. 4 is a schematic flow chart of an implementation method of an on-line simulation platform of an electric energy system of a building machine;
FIG. 5 is a schematic flow chart of an implementation method of an on-line simulation platform of an electric energy system of a building machine;
FIG. 6 is a schematic flow chart of an implementation method of an on-line simulation platform of an electric energy system of a building machine;
FIG. 7 is a schematic diagram of a method for implementing an on-line simulation platform of an electrical energy system of a building machine according to the present invention;
FIG. 8 is a schematic diagram of module connection of an on-line simulation platform implementation system of a building machine electric energy system provided by the invention;
FIG. 9 is a flow chart of a loop iteration solution algorithm provided by the present invention;
FIG. 10 is a schematic diagram of a human-machine interface of a simulation platform provided by the invention;
FIG. 11 is a schematic diagram of an exemplary graphical simulation model provided by the present invention;
FIG. 12 is a schematic diagram of a graphical display of simulation results provided by the present invention;
FIG. 13 is a schematic diagram showing the text display of the simulation result provided by the invention;
fig. 14 is a schematic structural diagram of an electronic device provided by the present invention.
Reference numerals:
110: building a simulation model building module; 120: a conversion module; 130: a computing resource allocation module; 140: a calculation solving module; 150: a display module;
1410: a processor; 1420: a communication interface; 1430: a memory; 1440: a communication bus.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The following describes an implementation method of an on-line simulation platform of an electric energy source system of a building machine with reference to fig. 1 to 7, wherein the implementation method comprises the following steps:
s100, dragging and connecting equipment modules at a front-end browser or a client terminal with a built-in equipment model library or a client customization module, and building a simulation model;
s200, carrying out data structure description on the simulation model in a directed graph or undirected graph mode to generate conversion data;
s300, the conversion data are sent to a server, and the server allocates computing resources according to user rights;
s400, carrying out loop iteration solving calculation through the server based on the distributed calculation resources until convergence, and sending a calculation result to the front end;
s500, analyzing the calculation result in a front-end browser or a client, and performing data display, data analysis and man-machine interaction after the analysis is completed.
The invention can realize the numerical value general solving method based on the low-code technology, the graph data structure, the online simulation technology and the iterative solving, realize the front-end and rear-end separation of the online simulation platform, calculate on the cloud virtual computing environment, realize the rapid modeling, the online simulation, the high-performance calculation and the rapid engineering deployment of the electric energy system of the building machine.
Drawing and connecting equipment modules at a front-end browser or a client based on a built-in equipment model library or a client customization module, and building a simulation model, wherein the method specifically comprises the following steps of:
s101, a user submits a user name and a password at a front-end browser or a client and then enters a simulation system;
s102, an equipment model library or a customer can customize a plurality of modules by himself in the simulation system, and specific different types of characteristic equipment or system units are arranged in each module.
In the invention, the online simulation platform does not need to download software. The method can be directly obtained at the webpage end, a user can open a browser, submit a user name and a password, edit the simulation system after opening the webpage, and the calculation of the result can be performed on line at the cloud (also support local calculation and mixed calculation of the cloud and the local). The platform is internally provided with a public module or a functional module and a model module which are customized by customers. Common functions included in the modules are mathematical calculations, logical operations, mathematical physical equations, optimization and control algorithms, recognition algorithms, data interfaces.
Drawing and connecting equipment modules at a front-end browser or a client based on a built-in equipment model library or a client customization module, and constructing a simulation model, wherein the method further comprises the following steps:
s201, dragging and moving the selected equipment module from the equipment model library or the customer customization module to an editing area;
s202, connecting the selected equipment modules in the editing area according to the set connection relation to complete the construction of the simulation model.
The invention realizes the graphic description of the simulation object based on the built-in equipment model library or the client customization module by the drag man-machine graphic operation on the browser or the client. The drag type low code method is used for building the simulation model, a user can drag the functional module on the webpage, connect the functional module in a connecting line mode, and configure the attribute of the functional module and the attribute of the connecting line, so that the simulation model is built without writing a large amount of program codes.
Carrying out data structure description on the simulation model in a directed graph or undirected graph mode to generate conversion data, wherein the method specifically comprises the following steps of:
s301, acquiring the simulation model, converting equipment modules in the simulation model into nodes in a directed graph or an undirected graph, and converting two boxes between the equipment modules into edges in the directed graph or the undirected graph;
s302, connecting nodes and edges of the directed graph or the undirected graph to represent the association relationship between equipment modules;
s303, performing code conversion on the constructed directed graph or undirected graph to generate conversion data with a specific structure.
In the invention, a description method of a data structure based on a directed graph or an undirected graph is provided. And describing the simulation model built by the low codes by adopting a directed graph or undirected graph data structure. The modules correspond to nodes in the graph, the connecting lines between the modules correspond to edges in the graph, and the association relation between the modules is represented. Because the electric energy system of the building machine is complex, the mode implementation of the simulated system cannot be determined, and the simulated system has great flexibility and uncertainty, the graph data structure provided by the invention can flexibly describe the simulation object, is easy to maintain, has a concise data structure and is flexible to modify.
The conversion data is sent to a server, and the server allocates computing resources according to user rights, specifically comprising:
s401, after receiving a calculation request, the server analyzes the authority of a user, the calculation selection of the user and cloud and local calculation resources;
s402, distributing computing capacity according to the analysis result, and distributing corresponding computing resources for the user.
In the actual operation process, the back-end server automatically distributes one or more servers to provide computing resources according to the computing task submitted by the front end and the cloud computing resource condition, and the solving core is used for solving the model based on the model provided by the front end, parameter information, model information and resource information stored in the database, calling the computing resources and adopting a method based on loop iteration. And freely distributing cloud computing resources, automatically distributing the cloud computing resources according to the computing requirements of the simulation tasks and the rights possessed by the users, and completing the computing tasks in parallel.
Referring to fig. 9, performing loop iteration solution calculation by the server based on the allocated computing resources until the computing result is sent to the front end after convergence, specifically including:
s501, performing cycle calculation step by step in the whole calculation time interval, and performing calculation of the next time step after calculation in each time step is converged;
s502, judging whether the calculation is the first calculation of the current time step or the last calculation after convergence in the calculation in each step;
s503, under the condition of first calculation, initializing a simulation boundary condition and an initial value of the current step length;
s504, under the condition of the last calculation after iteration convergence, saving the calculation result and the output of the current time step;
and S505, carrying out traversal solving on the simulation model based on a graph traversal algorithm under the condition that the calculation is not the last calculation after the first calculation and the iteration convergence, calculating the convergence until all nodes meet the description equation, and sending the calculation result to the front end.
The invention discloses a numerical analysis general solution core based on an iterative replacement method or multi-agent collaborative solution. The selection of 1 or n solving cores is supported, and the solving cores can be selected by a user or automatically selected according to the problem. The iterative replacement method is suitable for solving the problem with the definite information transmission direction, and the multi-agent collaborative solving method is suitable for solving the problem with the undefined information transmission direction. When the simulation is carried out, the simulation method provided by the invention has good universality and universality. The method is particularly suitable for the complex problems of nonlinearity and discontinuity, and is suitable for simulation of a complex system of the building machine electric energy source.
Analyzing the calculation result at a front-end browser or a client, and performing data display, data analysis and man-machine interaction after the analysis is completed, wherein the method specifically comprises the following steps:
s601, returning the calculation result to the front end, and analyzing the calculation result in a front end browser or a client;
s602, displaying in a graphic and text mode, and performing related automatic analysis and man-machine interaction based on the data.
In one embodiment, the user employs the on-line simulation platform human-machine interface shown in FIG. 10, including a menu area, an operation area, a module selection, a module display, a display configuration area, a main editing area, and a bottom workspace. The user can log in to make a website by adopting a browser or log in by using a client.
The user edits by dragging the connection line, drags out the specific device or system module from the module selection area, and determines the connection relationship of electricity, gas, water, information and the like among the modules through the connection line, as shown in fig. 11.
The graphical model expression shown in fig. 11 is converted into machine-readable data after being processed at the front end, the data conversion is performed by adopting the data structure supporting the directed graph or the undirected graph provided by the invention, and the converted information is submitted to a cloud or local computing resource in a data mode.
After the cloud receives the calculation request, analyzing the authority of the user, the calculation selection of the user, and the calculation resources of the cloud and the local, distributing the calculation capacity, and calling a calculation solution core to finish calculation.
The computing resource calls the method based on the loop iteration, solves and computes, and sends the result to the front end in a data mode after the computation converges.
The front end analyzes the computing resources and performs data display, data analysis and man-machine interaction. The graphic display mode is shown in fig. 12, and the text display mode is shown in fig. 13.
The method for realizing the online simulation platform of the building machine electric energy system can flexibly and efficiently realize the establishment of a drag type low-code simulation model at a webpage end, dynamically call various computing resources and realize efficient online simulation; the graph data structure of the invention can flexibly describe simulation objects, is easy to maintain, has simple data structure and is flexible to modify; when simulation is carried out, the simulation method provided by the invention has good universality and universality, is particularly suitable for nonlinear and discontinuous complex problems, and is suitable for simulation of a complex system of the electric energy source of the building machine; the online simulation can be effectively deployed online, supports functions of online optimization control, fault diagnosis, system analysis and the like, and has more advantages compared with an island operation mode of traditional offline simulation software.
The invention also discloses an on-line simulation platform implementation system of the building machine electric energy system, which comprises:
the simulation model building module is used for dragging and connecting the equipment modules at the front-end browser or the client based on the built-in equipment model library or the client customization module to build a simulation model;
the conversion module is used for describing the data structure of the simulation model in a directed graph or undirected graph mode to generate conversion data;
the computing resource allocation module is used for sending the conversion data to a server, and the server allocates computing resources according to the user permission;
the calculation solving module is used for carrying out loop iteration solving calculation through the server based on the distributed calculation resources until the calculation results are sent to the front end after convergence;
and the display module is used for analyzing the calculation result at the front-end browser or the client, and carrying out data display, data analysis and man-machine interaction after the analysis is completed.
The simulation model building module is used for enabling a user to enter a simulation system after submitting a user name and a password at a front-end browser or a client;
the simulation system is internally provided with an equipment model library or a plurality of modules which can be customized by a customer, and each module is internally provided with specific different types of characteristic equipment or system units.
Dragging and moving the selected equipment module from the equipment model library or the client customization module to an editing area;
and connecting the selected equipment modules in the editing area according to the set connection relation to complete the construction of the simulation model.
The conversion module is used for acquiring the simulation model, converting the equipment modules in the simulation model into nodes in the directed graph or the undirected graph, and converting two boxes between the equipment modules into edges in the directed graph or the undirected graph;
connecting nodes and edges of the directed graph or the undirected graph to represent the association relationship between equipment modules;
and transcoding the constructed directed graph or undirected graph to generate conversion data with a specific structure.
The computing resource allocation module is used for analyzing the authority of the user, the computing selection of the user and cloud and local computing resources after the server receives the computing request;
and distributing computing capacity according to the analysis result, and distributing corresponding computing resources for the user.
The calculation solving module is used for carrying out cyclic calculation step by step in the whole calculation time interval, and carrying out calculation of the next time step after the calculation in each time step is converged;
judging whether the calculation is the first calculation of the current time step or the last calculation after convergence when the calculation is carried out in each step;
under the condition of first calculation, initializing a simulation boundary condition and an initial value of the current step length;
under the condition of the last calculation after iteration convergence, saving the calculation result and the output of the current time step;
and under the condition that the calculation is not the last calculation after the first calculation and the iteration convergence, carrying out traversal solution on the simulation model based on a traversal algorithm of the graph until all nodes meet the description equation, calculating the convergence, and sending a calculation result to the front end.
The display module returns the calculation result to the front end, and analyzes the calculation result at a front end browser or a client;
and displaying in a graphic and text mode, and carrying out related automatic analysis and man-machine interaction based on the data.
The system for realizing the online simulation platform of the building machine electric energy system can flexibly and efficiently realize the establishment of a drag type low-code simulation model at a webpage end, dynamically call various computing resources and realize efficient online simulation; the graph data structure of the invention can flexibly describe simulation objects, is easy to maintain, has simple data structure and is flexible to modify; when simulation is carried out, the simulation method provided by the invention has good universality and universality, is particularly suitable for nonlinear and discontinuous complex problems, and is suitable for simulation of a complex system of the electric energy source of the building machine; the online simulation can be effectively deployed online, supports functions of online optimization control, fault diagnosis, system analysis and the like, and has more advantages compared with an island operation mode of traditional offline simulation software.
Fig. 14 illustrates a physical structure diagram of an electronic device, as shown in fig. 14, which may include: processor 1410, communication interface (Communications Interface) 1420, memory 1430 and communication bus 1440, wherein processor 1410, communication interface 1420 and memory 1430 communicate with each other via communication bus 1440. Processor 1410 may invoke logic instructions in memory 1430 to perform a method for implementing an on-line simulation platform for a building machine electrical energy source system, the method comprising: drawing and connecting equipment modules at a front browser or a client based on a built-in equipment model library or a client customization module, and building a simulation model;
carrying out data structure description on the simulation model in a directed graph or undirected graph mode to generate conversion data;
the conversion data are sent to a server, and the server allocates computing resources according to user rights;
performing loop iteration solving calculation through the server based on the distributed calculation resources until the calculation results are sent to the front end after convergence;
and analyzing the calculation result in a front-end browser or a client, and carrying out data display, data analysis and man-machine interaction after the analysis is completed.
In addition, the logic instructions in the memory 1430 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute a method for implementing an on-line simulation platform of an electric energy source system of a building provided by the above methods, and the method includes: drawing and connecting equipment modules at a front browser or a client based on a built-in equipment model library or a client customization module, and building a simulation model;
carrying out data structure description on the simulation model in a directed graph or undirected graph mode to generate conversion data;
the conversion data are sent to a server, and the server allocates computing resources according to user rights;
performing loop iteration solving calculation through the server based on the distributed calculation resources until the calculation results are sent to the front end after convergence;
and analyzing the calculation result in a front-end browser or a client, and carrying out data display, data analysis and man-machine interaction after the analysis is completed.
In still another aspect, the present invention further provides a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, is implemented to perform a method for implementing an on-line simulation platform of an electrical energy source system of a building machine provided by the above methods, the method comprising: drawing and connecting equipment modules at a front browser or a client based on a built-in equipment model library or a client customization module, and building a simulation model;
carrying out data structure description on the simulation model in a directed graph or undirected graph mode to generate conversion data;
the conversion data are sent to a server, and the server allocates computing resources according to user rights;
performing loop iteration solving calculation through the server based on the distributed calculation resources until the calculation results are sent to the front end after convergence;
and analyzing the calculation result in a front-end browser or a client, and carrying out data display, data analysis and man-machine interaction after the analysis is completed.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (7)
1. The method for realizing the on-line simulation platform of the building machine electric energy system is characterized by comprising the following steps of:
drawing and connecting equipment modules at a front browser or a client based on a built-in equipment model library or a client customization module, and building a simulation model;
carrying out data structure description on the simulation model in a directed graph or undirected graph mode to generate conversion data;
the conversion data are sent to a server, and the server allocates computing resources according to user rights;
performing loop iteration solving calculation through the server based on the distributed calculation resources until the calculation results are sent to the front end after convergence;
analyzing the calculation result in a front-end browser or a client, and performing data display, data analysis and man-machine interaction after the analysis is completed;
the simulation model is subjected to data structure description in a directed graph or undirected graph mode to generate conversion data, and the method specifically comprises the following steps of:
acquiring the simulation model, converting equipment modules in the simulation model into nodes in a directed graph or an undirected graph, and converting connecting lines between the equipment modules into edges in the directed graph or the undirected graph;
connecting nodes and edges of the directed graph or the undirected graph to represent the association relationship between equipment modules;
transcoding the constructed directed graph or undirected graph to generate conversion data with a specific structure;
the conversion data is sent to a server, and the server allocates computing resources according to user rights, specifically comprising:
after receiving the calculation request, the server analyzes the authority of the user, the calculation selection of the user and cloud and local calculation resources;
distributing computing capacity according to the analysis result, and distributing corresponding computing resources for the user;
performing loop iteration solving calculation through the server based on the distributed calculation resources until the calculation result is sent to the front end after convergence, specifically comprising the following steps:
performing time-step-by-time cyclic calculation on the whole calculation time interval, and performing calculation of the next time step after calculation in each time step is converged;
judging whether the calculation is the first calculation of the current time step or the last calculation after convergence when the calculation is carried out in each step;
under the condition of first calculation, initializing a simulation boundary condition and an initial value of the current step length;
under the condition of the last calculation after iteration convergence, saving the calculation result and the output of the current time step;
and under the condition that the calculation is not the last calculation after the first calculation and the iteration convergence, carrying out traversal solution on the simulation model based on a traversal algorithm of the graph until all nodes meet the description equation, calculating the convergence, and sending a calculation result to the front end.
2. The method for implementing the on-line simulation platform of the building machine electric energy system according to claim 1, wherein the front browser or the client performs drag and connection of the equipment module based on a built-in equipment model library or a client custom module, and builds a simulation model, specifically comprising:
a user submits a user name and a password at a front-end browser or a client and then enters a simulation system;
the simulation system is internally provided with an equipment model library or a plurality of modules which can be customized by a customer, and each module is internally provided with specific different types of characteristic equipment or system units.
3. The method for implementing the on-line simulation platform of the building machine electric energy system according to claim 2, wherein the front browser or the client performs drag and connection of the equipment module based on a built-in equipment model library or a client custom module, and builds a simulation model, and the method further comprises:
dragging and moving the selected equipment module from the equipment model library or the client customization module to an editing area;
and connecting the selected equipment modules in the editing area according to the set connection relation to complete the construction of the simulation model.
4. The method for implementing the on-line simulation platform of the building machine electric energy system according to claim 1, wherein the method is characterized in that the front-end browser or the client analyzes the calculation result, and performs data display, data analysis and man-machine interaction after the analysis is completed, and specifically comprises the following steps:
the calculation result is returned to the front end, and the calculation result is analyzed at a front end browser or a client;
and displaying in a graphic and text mode, and carrying out related automatic analysis and man-machine interaction based on the data.
5. An on-line simulation platform implementation system of an electric energy source system of a building machine is characterized in that the system comprises:
the simulation model building module is used for dragging and connecting the equipment modules at the front-end browser or the client based on the built-in equipment model library or the client customization module to build a simulation model;
the conversion module is used for describing the data structure of the simulation model in a directed graph or undirected graph mode to generate conversion data;
the computing resource allocation module is used for sending the conversion data to a server, and the server allocates computing resources according to the user permission;
the calculation solving module is used for carrying out loop iteration solving calculation through the server based on the distributed calculation resources until the calculation results are sent to the front end after convergence;
the display module is used for analyzing the calculation result in the front-end browser or the client, and carrying out data display, data analysis and man-machine interaction after the analysis is completed;
the simulation model is subjected to data structure description in a directed graph or undirected graph mode to generate conversion data, and the method specifically comprises the following steps of:
acquiring the simulation model, converting equipment modules in the simulation model into nodes in a directed graph or an undirected graph, and converting connecting lines between the equipment modules into edges in the directed graph or the undirected graph;
connecting nodes and edges of the directed graph or the undirected graph to represent the association relationship between equipment modules;
transcoding the constructed directed graph or undirected graph to generate conversion data with a specific structure;
the conversion data is sent to a server, and the server allocates computing resources according to user rights, specifically comprising:
after receiving the calculation request, the server analyzes the authority of the user, the calculation selection of the user and cloud and local calculation resources;
distributing computing capacity according to the analysis result, and distributing corresponding computing resources for the user;
performing loop iteration solving calculation through the server based on the distributed calculation resources until the calculation result is sent to the front end after convergence, specifically comprising the following steps:
performing time-step-by-time cyclic calculation on the whole calculation time interval, and performing calculation of the next time step after calculation in each time step is converged;
judging whether the calculation is the first calculation of the current time step or the last calculation after convergence when the calculation is carried out in each step;
under the condition of first calculation, initializing a simulation boundary condition and an initial value of the current step length;
under the condition of the last calculation after iteration convergence, saving the calculation result and the output of the current time step;
and under the condition that the calculation is not the last calculation after the first calculation and the iteration convergence, carrying out traversal solution on the simulation model based on a traversal algorithm of the graph until all nodes meet the description equation, calculating the convergence, and sending a calculation result to the front end.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements a method for implementing an on-line simulation platform of an electrical energy source system of a building machine according to any one of claims 1 to 4.
7. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements a method of implementing an on-line simulation platform of a building machine electrical energy source system according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311553790.1A CN117272700B (en) | 2023-11-21 | 2023-11-21 | Method and system for realizing on-line simulation platform of electric energy system of building machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311553790.1A CN117272700B (en) | 2023-11-21 | 2023-11-21 | Method and system for realizing on-line simulation platform of electric energy system of building machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117272700A CN117272700A (en) | 2023-12-22 |
CN117272700B true CN117272700B (en) | 2024-03-12 |
Family
ID=89201182
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311553790.1A Active CN117272700B (en) | 2023-11-21 | 2023-11-21 | Method and system for realizing on-line simulation platform of electric energy system of building machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117272700B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105159754A (en) * | 2015-10-13 | 2015-12-16 | 街角科技(北京)有限责任公司 | On-line simulation method and device based on intelligent business cloud platform |
WO2016101638A1 (en) * | 2014-12-23 | 2016-06-30 | 国家电网公司 | Operation management method for electric power system cloud simulation platform |
CN114462216A (en) * | 2022-01-18 | 2022-05-10 | 霆客网络科技(天津)有限公司 | Industrial product 3D collaborative design system and design method |
CN116822135A (en) * | 2023-04-20 | 2023-09-29 | 上海机电工程研究所 | Real-time simulation platform system and simulation system construction method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101645689B1 (en) * | 2015-06-26 | 2016-08-05 | (주)네모파트너즈엔이씨 | The apparatus and method of cloud application moudule in public tender with smartphone |
US11620420B2 (en) * | 2018-12-06 | 2023-04-04 | Microsoft Technology Licensing, Llc | Computing system simulation and testing environment |
-
2023
- 2023-11-21 CN CN202311553790.1A patent/CN117272700B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016101638A1 (en) * | 2014-12-23 | 2016-06-30 | 国家电网公司 | Operation management method for electric power system cloud simulation platform |
CN105159754A (en) * | 2015-10-13 | 2015-12-16 | 街角科技(北京)有限责任公司 | On-line simulation method and device based on intelligent business cloud platform |
CN114462216A (en) * | 2022-01-18 | 2022-05-10 | 霆客网络科技(天津)有限公司 | Industrial product 3D collaborative design system and design method |
CN116822135A (en) * | 2023-04-20 | 2023-09-29 | 上海机电工程研究所 | Real-time simulation platform system and simulation system construction method |
Also Published As
Publication number | Publication date |
---|---|
CN117272700A (en) | 2023-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107632845B (en) | Integrated knowledge cloud service method and system for multi-axis milling of runner blade | |
EP3163436A1 (en) | Visual software modeling method based on software meta-view for constructing software view | |
CN104063550A (en) | Multi-physics field CAE system based on cloud computing platform | |
CN111414380A (en) | Chinese database SQ L statement generation method, equipment and storage medium | |
CN112052611B (en) | Simulation method, device and storage medium of power equipment based on geometric model | |
CN112581578A (en) | Cloud rendering system based on software definition | |
CN113780536A (en) | Cloud deep learning model conversion method, system, device and medium | |
CN112148926A (en) | Graph data stream processing method, processing device and storage medium | |
CN114741075A (en) | Task optimization method and device | |
CN116541943A (en) | Intelligent interactive building structure design method, device, platform and electronic equipment | |
CN116860985A (en) | Natural language interaction software framework based on knowledge graph and construction method thereof | |
CN116594608A (en) | Method and device for generating and training visual neural network model | |
CN102929636B (en) | A kind of human-computer interaction interface creation method and device | |
CN117272700B (en) | Method and system for realizing on-line simulation platform of electric energy system of building machine | |
CN114169723A (en) | Digital workshop implementation method and system | |
CN115622862A (en) | Computing power network system based on digital twins and computing power processing method | |
CN110321596A (en) | A kind of rolling stock structure simulation method based on finite element analysis | |
CN115186891A (en) | Transient simulation analysis decision method, device and equipment for power grid harmonic oscillation | |
CN112163270A (en) | CFD automatic modeling and analyzing system and method based on ANSA and StarCCM + platform | |
CN110275708A (en) | A kind of visual software modeling method of computer software view | |
CN110377934A (en) | The design and calculation method and device of electronic product peculiar to vessel | |
CN106094561B (en) | Marine Synthesize Electric Propulsion System modeling and simulating method and device | |
CN118394349B (en) | Three-party library access method, device, equipment, program product and medium | |
CN114510351B (en) | Super-large-scale distributed machine learning device | |
CN117055869B (en) | Discrete event simulation graphical modeling method based on abacus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |