Ship power system working condition simulation method based on operation data
By acquiring and serializing the sensor data of the physical gantry and storing it into the database using the Rabbit MQ message queue, the problem of insufficient adaptability in the existing technology is solved, and efficient simulation of the operating conditions of multiple gantry is achieved.
Patent Information
- Application Number
- CN202411664956.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-11-20
AI Technical Summary
In the prior art, the marine power system operating condition simulation method based on operation data has low adaptability to the simulation of the operating conditions of different rigs, making it difficult to simulate the operating conditions of multiple rigs.
By obtaining sensor data of the physical gantry, byte serialization is used to transmit to the Rabbit MQ message queue and store it in the database. Then, the simulation bench is based on the pedal running data in the Rabbit MQ message queue call database and performs simulation simulation to determine the target parameters.
The adaptability to different rigs is improved, and the operating conditions of multiple rigs of the ship's power system is simulated, ensuring the efficiency and stability of the simulation process.
Smart Images

Figure CN119760959A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of bench operating condition simulation, and in particular to a method for simulating the operating condition of a ship power system based on operating data. Background Art
[0002] The power system refers to a group of equipment and components used to generate, transmit and control power, including engines, power transmission systems, hydraulic systems, etc. The power system can be a ship power system, which includes subsystems such as condensate feed water system, cooling water system, and lubricating oil system. A test bench is a device or platform used to test the power system, usually used to simulate real working conditions to evaluate the performance, reliability and safety of the system. The test bench test can collect various power system test data.
[0003] In related technologies, digital twins can be used in the process of bench testing of ship power systems to simulate the bench operating conditions through virtual simulation. However, since different test benches use different communication methods, a set of integrated software is difficult to meet the communication format requirements of different power system test benches, resulting in insufficient adaptability of the digital twin simulation platform to different power system benches, and it is difficult to simulate the operating conditions of multiple power system benches during the simulation process.
[0004] It can be seen that the ship power system operating condition simulation method based on operating data in the related art has a technical problem of low adaptability to simulate the operating conditions of different test benches. Summary of the invention
[0005] The present invention provides a method for simulating the working condition of a ship power system based on operating data, so as to solve the technical problem that the method for simulating the working condition of a ship power system based on operating data in the related art has low adaptability in simulating the operating conditions of different test benches.
[0006] The present invention provides a method for simulating the working condition of a ship power system based on operating data, comprising the following steps: acquiring test bench operating data, wherein the test bench operating data is operating data collected by sensors of a physical test bench, and the test bench operating data is byte-serialized and transmitted from the physical test bench to a Rabbit MQ message queue through a target communication protocol, and then stored in a database by the Rabbit MQ message queue; controlling a simulation test bench to call the test bench operating data in the database based on the Rabbit MQ message queue, and performing simulation based on the test bench operating data to determine target parameters, wherein the simulation test bench is a digital twin model corresponding to the physical test bench.
[0007] According to a method for simulating operating conditions of a ship power system based on operating data provided by the present invention, the target communication protocol includes at least one of the following: TCP Socket transmission protocol, UDP Socket transmission protocol.
[0008] According to a method for simulating operating conditions of a ship power system based on operating data provided by the present invention, the test bench operating data is serialized and encoded based on the target communication protocol to obtain a byte sequence, and the byte sequence is parsed into JSON format and transmitted to the Rabbit MQ message queue.
[0009] According to a method for simulating operating conditions of a ship power system based on operating data provided by the present invention, the database includes a memory database and a relational database, the data in the relational database is called by the simulation bench, and the data in the memory database is called by visualization.
[0010] According to a method for simulating the working condition of a ship power system based on operating data provided by the present invention, the target parameters include proportional parameters, integral parameters and differential parameters, and the simulation is performed based on the test bench operating data to determine the target parameters, including: The simulation bench is controlled to run a plurality of preset simulation programs based on the bench operation data to obtain a plurality of performance indicators, wherein each of the plurality of preset simulation programs has a different control strategy, and the plurality of performance indicators are used to reflect the simulation performance of the simulation bench under different simulation programs; the proportional parameter, the integral parameter and the differential parameter are determined based on the plurality of performance indicators.
[0011] According to a method for simulating operating conditions of a ship power system based on operating data provided by the present invention, after the control simulation test bench calls the test bench operating data and performs simulation based on the test bench operating data and determines the target parameters, the method further includes: controlling the physical test bench to perform testing based on the target parameters.
[0012] The present invention also provides a ship power system operating condition simulation device based on operating data, comprising the following modules: an acquisition module, used to acquire test bench operating data, wherein the test bench operating data is operating data collected by sensors of a physical test bench, and the test bench operating data is byte-serialized and transmitted from the physical test bench to a Rabbit MQ message queue through a target communication protocol, and then stored in a database by the Rabbit MQ message queue; an execution module, used to control the simulation test bench to call the test bench operating data in the database based on the Rabbit MQ message queue, and perform simulation based on the test bench operating data to determine target parameters, wherein the simulation test bench is a digital twin model corresponding to the physical test bench.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements any of the above-described methods for simulating the operating conditions of a ship power system based on operating data.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for simulating the operating conditions of a ship power system based on operating data.
[0015] The present invention also provides a computer program product, comprising a computer program, which, when executed by a processor, implements any of the above-mentioned methods for simulating operating conditions of a ship power system based on operating data.
[0016] The present invention provides a method for simulating the working condition of a ship power system based on operating data, which obtains test bench operating data, wherein the test bench operating data is operating data collected by sensors of a physical test bench, and the test bench operating data is byte-serialized and transmitted from the physical test bench to a Rabbit MQ message queue through a target communication protocol, and then stored in a database by the Rabbit MQ message queue; the simulation test bench is controlled to call the test bench operating data in the database based on the Rabbit MQ message queue, and performs simulation based on the test bench operating data to determine target parameters, wherein the simulation test bench is a digital twin model corresponding to the physical test bench; the test bench operating data is byte-serialized and transmitted from the physical test bench to a Rabbit MQ message queue through a target communication protocol, and then stored in a database by the Rabbit MQ message queue, which can ensure the quality of data transmission, and at the same time, for different data communication modes of different test benches, data transmission based on the Rabbit MQ message queue can realize the adaptation of the communication protocol, ensure the efficiency and stability of the simulation process, thereby solving the technical problem of low adaptability of simulating the operating conditions of different test benches in the method for simulating the working condition of a ship power system based on operating data in the related art. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced one by one below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a flow chart of a method for simulating the working condition of a ship power system based on operating data provided by the present invention.
[0019] Figure 2It is one of the schematic diagrams of the method for simulating the working condition of a ship power system based on operating data provided by the present invention.
[0020] Figure 3 This is the second schematic diagram of the method for simulating the working condition of a ship power system based on operating data provided by the present invention.
[0021] Figure 4 It is a structural schematic diagram of a ship power system operating condition simulation device based on operating data provided by the present invention.
[0022] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] It should be noted that in the description of the present invention, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The orientation or position relationship indicated by the terms "upper", "lower" and the like is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0025] The terms "first", "second", etc. in the present invention are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" means at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0026] The power system refers to a group of equipment and components used to generate, transmit and control power, including engines, power transmission systems, hydraulic systems, etc. The power system can be a ship power system, which includes subsystems such as condensate feed water system, cooling water system, and lubricating oil system. A test bench is a device or platform used to test the power system, usually used to simulate real working conditions to evaluate the performance, reliability and safety of the system. The test bench test can collect various power system test data.
[0027] Digital twins make full use of physical models, sensor updates, operation history and other data, integrate multi-disciplinary, multi-physical quantity, multi-scale, and multi-probability simulation processes, complete mapping in virtual space, and thus reflect the entire life cycle of the corresponding physical equipment. Digital twins are a concept that transcends reality and can be regarded as a digital mapping system of one or more important and interdependent equipment systems. Digital twins are a universally adaptable theoretical and technical system that can be applied in many fields. They are widely used in product design, product manufacturing, medical analysis, engineering construction and other fields. The most in-depth application in China is in the field of engineering construction, and the field of intelligent manufacturing has received the highest attention and the hottest research.
[0028] In the related technology, digital twins can be used in the process of bench testing of ship power systems to simulate the bench operating conditions through virtual simulation. However, since different test benches use different communication methods, a set of integrated software is difficult to meet the communication format requirements of different power system test benches, resulting in insufficient adaptability of the digital twin simulation platform to different benches of the power system, and it is difficult to simulate the operating conditions of multiple benches of the ship power system during the simulation process. It can be seen that the ship power system operating condition simulation method based on operating data in the related technology has the technical problem of low adaptability to simulate the operating conditions of different benches.
[0029] In order to at least solve some of the above problems, the following Figure 1-Figure 5 The present invention describes a method for simulating the working condition of a ship power system based on operating data.
[0030] The ship power system operating condition simulation method based on operating data provided in this embodiment can be applied to the scenario where a simulation bench built based on digital twin technology simulates the operating condition of a physical bench.
[0031] Figure 1 FIG. 1 is a flow chart of a method for simulating the working condition of a ship power system based on operating data provided by the present invention. Figure 1 As shown, including but not limited to the following steps: Step 101, acquiring the test bench operation data, wherein the test bench operation data is the operation data collected by the sensor of the physical test bench, and the test bench operation data is byte serialized and transmitted from the physical test bench to the Rabbit MQ message queue through the target communication protocol, and then stored in the database by the Rabbit MQ message queue; Step 102, controlling the simulation bench to call the bench operation data in the database based on the Rabbit MQ message queue, and performing simulation based on the bench operation data to determine the target parameters, wherein the simulation bench is a digital twin model corresponding to the physical bench.
[0032] Optionally, the target communication protocol includes at least one of the following: TCP Socket transmission protocol, UDP Socket transmission protocol.
[0033] Optionally, the test bench operation data is serialized and encoded based on the target communication protocol to obtain a byte sequence, and the byte sequence is parsed into JSON format and transmitted to the Rabbit MQ message queue.
[0034] Optionally, the database includes a memory database and a relational database, the data in the relational database is used for the simulation bench to call, and the data in the memory database is used for visualization to call.
[0035] Optionally, after controlling the simulation test bench to call the test bench operation data and performing simulation based on the test bench operation data to determine the target parameters, the method further includes: controlling the physical test bench to perform testing based on the target parameters.
[0036] It should be noted that the physical test bench in this embodiment is a real test bench, which is used to simulate real working conditions to evaluate the performance, reliability and safety of the power system; the simulation test bench is a digital twin model corresponding to the physical test bench.
[0037] Figure 2 is one of the schematic diagrams of the method for simulating the working condition of a ship power system based on operating data provided by the present invention, such as Figure 2As shown, the software architecture of the method for simulating the operating conditions of a ship power system based on operating data of this embodiment may include a data middle platform, a test bench adapter, a simulation adapter, a visualization page and a database. The above software architecture may be arranged in a server. The method for simulating the operating conditions of a ship power system based on operating data of this embodiment may be executed by a server or by a data middle platform.
[0038] Specifically, as a data storage and processing center, the data middle platform is responsible for the management and analysis of large amounts of data. By processing, analyzing and storing the received data, the data middle platform provides the system with real-time data support and decision-making basis. The data middle platform extracts historical data into the middle platform through extraction, conversion and loading processes, or stores operation data in the data middle platform through the HyperText Transfer Protocol Interface (HTTP). The data middle platform also classifies, summarizes and aligns the stored data, and provides a data application programming interface (Application Programming Interface, API) for system use.
[0039] The bench adapter is used to connect the physical bench with other systems. The bench adapter can transmit the operating data collected by the sensor (which may include box pressure data, pump speed data, valve opening data, etc.) through the TCP Socket (Transmission Control Protocol Socket) transmission protocol after serializing and encoding the data generated by the sensor of the physical bench to obtain a byte sequence. The bench adapter decodes the byte sequence into JSON (JavaScript Object Notation, a lightweight data exchange format) format and stores it in Rabbit MQ and Redis (Remote Dictionary Serve, an in-memory database) for visualization system calls. In addition, the bench adapter encodes the control data serialization JSON model in Rabbit MQ into binary format and sends it to the bench middleware system to perform bench operations. It also generates JSON data by decoding the test bench data and puts it into the corresponding Rabbit MQ (Rabbit Message Queue) queue to achieve real-time calls with the gateway, synchronize information such as pressure, speed, and opening to the simulation system according to specific test operations, and store the sensor pressure, speed, and opening data in the test database. Through the relevant queues of Rabbit MQ, the test bench adapter obtains control signal data to ensure effective communication and collaborative work between systems. The test bench adapter not only realizes data transmission and conversion, but also ensures data quality and communication protocol adaptation, promoting efficient and stable operation of the system.
[0040] It should be noted that RabbitMQ in this embodiment is an open source message queue system that implements the Advanced Message Queuing Protocol and a distributed protocol for message transmission. It is a middleware used to decouple different services or components in a distributed system, allowing them to communicate by sending and receiving messages without directly calling each other or knowing each other's existence.
[0041] The simulation adapter is responsible for connecting the simulation model with other systems in the display system. Its main functions include dynamically adjusting the simulation input parameters through the REST API (Representational State Transfer Application Programming Interface) of the HTTP interface and the JSON format to achieve flexible configuration of simulation parameters. The simulation adapter can dynamically modify the simulation parameters according to the module name and submodule number to meet the needs of real-time changes. The results calculated by the simulation software will be returned to the message queue and database according to the calculation time frame. The simulation parameter feedback data will be placed in the relevant queue of Rabbit MQ. The simulation results in the queue will be extracted and inserted into the database, or directly used by the visualization system to send the simulated PID (Proportional-Integral-Derivative Controller) adjustment parameters to the test bench system. The simulation adapter not only realizes the real-time transmission and conversion of data, but also ensures the adaptation of data quality and communication protocols, and promotes the effective synchronization and sharing between simulation data and systems.
[0042] The visualization page displays the model working conditions and operation data instruments, and provides interactive functions for users. It is a direct window for providing services to users. Through the virtual display interface, users can watch the actual scene on the visualization page and send practical commands to the physical entity, which will be reflected in real time on the physical bench, realizing efficient collaboration between the simulation software and the physical bench. The virtual display interface uses HTTP REST API and simulation input cards in JSON format for interaction: through REST API, users can communicate through standard HTTP requests to achieve data transmission and control with the simulation software and the physical bench; JSON format is used to transfer data between requests and responses, providing a lightweight and easy-to-parse data exchange format. This combined use method makes the interface flexible and scalable, can meet the needs of different scenarios, and improve the smoothness of visualization page display. At the same time, the operation process data is stored in Redis to speed up the comparison.
[0043] The database records the twin data such as simulation history data, simulation real-time data, test bench operation real-time data, test bench operation history data, control parameters, etc., which is the basis for the digital twin system to conduct data analysis and provide services. In order to optimize data management, the fields in the database have been set up with rules, and simulation data and real data, historical and real-time data, data from different test benches, etc. can be clearly distinguished, recorded, queried, and read.
[0044] In this embodiment, the bench operation data is the operation data collected by the sensors of the physical bench, specifically including the bench operation conditions and the disturbance information given to the bench by the environment. The bench operation data is byte serialized and transmitted through the TCP Socket transmission protocol or the UDPSocket (User Datagram Protocol Socket) transmission protocol. First, the bench serializes and encodes the data generated by the sensor, obtains the binary data through the bench adapter, and parses it into JSON format according to the bit, first stores it in the corresponding queue of Rabbit MQ, and then stores it in the database; at the same time, it is stored in Redis for visualization call.
[0045] It should be noted that TCP Socket and UDP Socket are two different types of sockets in computer network communication, which are based on the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP) respectively. TCP Socket is a network communication interface based on the TCP protocol. TCP is a connection-oriented, reliable, byte stream-based transport layer communication protocol. UDPSocket is a network communication interface based on the UDP protocol, which is a connectionless, unreliable, datagram-based transport layer communication protocol.
[0046] The simulation running data is returned according to the calculation time frame, and the simulation parameter feedback data is placed in the corresponding queue of Rabbit MQ and Redis. The simulation result return parameters are extracted from the queue and inserted into the database. The data in Redis is used by the visualization module.
[0047] Furthermore, users can modify the dynamic adjustment simulation parameters through the HTTP interface REST API and JSON format, and dynamically modify the simulation parameters through the module name, sub-module number and adjustment parameters. The test bench control command sent by the user is serialized and encoded by the test bench adapter on the Rabbit MQ control data and sent to the test bench middleware system to implement the corresponding operation of the test bench.
[0048] Optional, historical data call is mainly used for historical data playback function. After the user selects the historical test data to be played from the visualization page and initiates the call command, the data center searches the database for the total number of data items for the test, sets the query row number condition, and encodes the data queried once when the total number of items is divided by the number of rows, which equals the number of queries. The selected historical data is encoded into a data stream by the data center and sent to the visualization module.
[0049] Through the embodiments provided in the present application, the test bench operation data is obtained, wherein the test bench operation data is the operation data collected by the sensors of the physical test bench, and the test bench operation data is byte-serialized and transmitted from the physical test bench to the Rabbit MQ message queue through the target communication protocol, and then stored in the database by the Rabbit MQ message queue; the simulation test bench is controlled to call the test bench operation data in the database based on the Rabbit MQ message queue, and perform simulation based on the test bench operation data to determine the target parameters, wherein the simulation test bench is a digital twin model corresponding to the physical test bench; the technical problem of low adaptability of the ship power system operating condition simulation method based on operation data in the related art is solved, and the adaptability of the ship power system operating condition simulation method based on operation data to different test benches is improved.
[0050] As an optional solution, the target parameters include proportional parameters, integral parameters and differential parameters. The target parameters are determined by simulation based on the bench operation data, including: S11, controlling the simulation bench to run a plurality of preset simulation programs based on the bench operation data to obtain a plurality of performance indicators, wherein each of the plurality of preset simulation programs has a different control strategy, and the plurality of performance indicators are used to reflect the simulation performance of the simulation bench under different simulation programs; S12, determining a proportional parameter, an integral parameter, and a differential parameter based on a plurality of performance indicators.
[0051] In this embodiment, the simulation bench is controlled to run multiple preset simulation programs based on the bench operation data to obtain multiple performance indicators, wherein each of the multiple preset simulation programs has a different control strategy, and the multiple performance indicators are used to reflect the simulation performance of the simulation bench under different simulation programs; proportional parameters, integral parameters and differential parameters are determined based on the multiple performance indicators.
[0052] Figure 3 FIG. 2 is a schematic diagram of a method for simulating the working condition of a ship power system based on operating data provided by the present invention. Figure 3 As shown in the figure, during the optimization control process, the simulation bench can be controlled through the visual interface to run different simulation programs. Figure 3 The simulation software 1, simulation software 2 and simulation software 3 in the embodiment correspond to the various preset simulation programs in this embodiment. The simulation bench runs the various preset simulation programs based on the bench operation data, makes strategy judgments based on the operation results, and sends the proportional parameters, integral parameters and differential parameters corresponding to the optimal strategy to the physical bench (corresponding to Figure 3 gantry system in the
[0053] Specifically, the simulation process of optimizing the control strategy can include running the simulation programs of the three control strategies in parallel and obtaining key result parameters, such as overshoot, rise time, and adjustment time. Based on these performance indicators, the system will select the optimal PID (proportional-integral-differential) parameters and apply them to the test bench system to improve the system's computing and control performance.
[0054] Through this embodiment, the accuracy of the obtained target parameters can be improved, thereby improving the reliability of the ship power system working condition simulation method based on operating data of this embodiment.
[0055] As an optional solution, the method for simulating the working condition of a ship power system based on operating data in this embodiment may include the following steps: Step 1, equipment control process: When controlling the device: the visualization module will send a JSON string containing the UUID (Universally Unique Identifier) of the test bench information, device array object parameters, operation mode, operation strategy, etc. At this time, the device control process is generally divided into two branches: one for passing values to the test bench and one for passing values to the simulation. The values transmitted to the test bench will be sent to the test bench system in real time through data mapping, data stream processing, and the test bench adapter module. The values transmitted to the simulation module will branch again according to different operation mode settings. According to different operation modes, different data mapping and function conversion will be selected to form a new JSON object, and the generated new JSON object will be passed to the simulation adapter module. Then, the simulation adapter module will pass it to the simulation system to complete the device control process.
[0056] Step 2, data synchronization process: The actual operating parameters of the power test bench will be different from the simulation model parameters. The simulation test data needs to be synchronized with the actual data of the test bench before the simulation test is started to ensure that the test bench environment is consistent with the simulation environment. A mapping relationship is formed between the power test bench database fields and metadata. At the same time, a mapping relationship is also formed between the parameters used in the simulation model and the metadata, so that the data can be effectively stored, exchanged and interpreted. The format, unit and coding of the data set are unified.
[0057] Step 3, data correction process: Virtual-reality combined calibration is a calibration data service for the simulation model by the physical test bench, including: modifying the scene simulation card, such as water tank pressure and water level, pump speed and valve opening and other parameters. The work mainly involves the establishment of system model simulation cards, data acquisition and processing, and parameter consistency comparison and analysis. By comparing the consistency of the performance curves of the actual test bench system and the simulation model data, the accuracy and reliability of the simulation system model are ensured. The pump flow, pump speed and pump head under the historical stable state of the test bench are obtained through the algorithm, and the data is transmitted to the data mapping module. After the data mapping module is converted, the JSON file is output and given to the simulation adapter, and the simulation adapter then transmits the data to the simulation system.
[0058] Step 4, bench data acquisition process: Collecting bench data means collecting and recording the data of the bench industrial control equipment middleware to obtain information about parameters such as temperature, pressure and pressure. By analyzing and processing the collected bench data, potential problems or abnormal situations can be identified, and predictions and warnings can be made.
[0059] Step 5, simulation data acquisition process: When designing the simulation adapter, the REST API of the HTTP protocol is used for calling. The simulation result data contains the bench UUID and JSON card name. Through this record, the data is mapped into the required JSON string, and the JSON string is passed to RabbitMQ and Redis. The visualization and database consume this message.
[0060] Step 6, optimize the control process: The simulation process of optimizing control strategies aims to run the simulation programs of three control strategies in parallel and obtain key result parameters, such as overshoot, rise time, and adjustment time. Based on these performance indicators, the system will select the optimal PID (proportional-integral-differential) parameters and apply them to the test bench system to improve the system's operation and control performance.
[0061] Step 7, historical data playback: After selecting historical test batches for playback through the historical data stored in the data center, the system will push the historical data stream in real time through WebSocket (network socket). This method allows users to view and analyze previously recorded test data in real time, thereby gaining a deeper understanding of key events and data changes during the test process.
[0062] Figure 4 Schematic diagram of the structure of the ship power system working condition simulation device based on operation data provided by the present invention. Figure 4 As shown, including but not limited to the following modules: The acquisition module 401 is used to acquire the test bench operation data, wherein the test bench operation data is the operation data collected by the sensor of the physical test bench, and the test bench operation data is transmitted from the physical test bench to the Rabbit MQ message queue through the target communication protocol in byte serialization, and then stored in the database by the Rabbit MQ message queue; The execution module 402 is used to control the simulation bench to call the bench operation data in the database based on the Rabbit MQ message queue, and perform simulation based on the bench operation data to determine the target parameters, wherein the simulation bench is a digital twin model corresponding to the physical bench.
[0063] Through the embodiments of the present application, the test bench operation data is obtained, wherein the test bench operation data is the operation data collected by the sensors of the physical test bench, and the test bench operation data is byte-serialized and transmitted from the physical test bench to the Rabbit MQ message queue through the target communication protocol, and then stored in the database by the Rabbit MQ message queue; the simulation test bench is controlled to call the test bench operation data in the database based on the Rabbit MQ message queue, and perform simulation based on the test bench operation data to determine the target parameters, wherein the simulation test bench is a digital twin model corresponding to the physical test bench; the technical problem of low adaptability of the ship power system operating condition simulation method based on operation data in the related art is solved, and the adaptability of the ship power system operating condition simulation method based on operation data to different test benches is improved.
[0064] It should be noted that the ship power system operating condition simulation device based on operating data provided by the present invention can execute the ship power system operating condition simulation method based on operating data of any of the above-mentioned embodiments during specific operation, which will not be elaborated in this embodiment.
[0065] Figure 5 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute a method for simulating the working condition of a ship power system based on operating data, the method comprising: obtaining the operating data of the test bench, wherein the operating data of the test bench is the operating data collected by the sensor of the physical test bench, the test bench operating data is byte serialized and transmitted from the physical test bench to the RabbitMQ message queue through the target communication protocol, and then stored in the database by the RabbitMQ message queue; controlling the simulation test bench to call the test bench operating data in the database based on the RabbitMQ message queue, and performing simulation based on the test bench operating data to determine the target parameters, wherein the simulation test bench is a digital twin model corresponding to the physical test bench.
[0066] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0067] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by the computer, the computer can execute the ship power system operating condition simulation method based on operating data provided in the above embodiments, and the method includes: obtaining test bench operating data, wherein the test bench operating data is operating data collected by sensors of the physical test bench, and the test bench operating data is byte-serialized and transmitted from the physical test bench to the Rabbit MQ message queue through the target communication protocol, and then stored in the database by the Rabbit MQ message queue; controlling the simulation test bench to call the test bench operating data in the database based on the Rabbit MQ message queue, and performing simulation based on the test bench operating data to determine the target parameters, wherein the simulation test bench is a digital twin model corresponding to the physical test bench.
[0068] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the ship power system operating condition simulation method based on operating data provided in the above-mentioned embodiments, the method comprising: obtaining test bench operating data, wherein the test bench operating data is operating data collected by sensors of a physical test bench, and the test bench operating data is byte-serialized and transmitted from the physical test bench to a Rabbit MQ message queue through a target communication protocol, and then stored in a database by the Rabbit MQ message queue; controlling the simulation test bench to call the test bench operating data in the database based on the Rabbit MQ message queue, and performing simulation based on the test bench operating data to determine target parameters, wherein the simulation test bench is a digital twin model corresponding to the physical test bench.
[0069] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0070] Through the description of the above implementation modes, those skilled in the art can clearly understand that each implementation mode can be implemented by means of software plus a necessary general hardware platform, or of course by hardware. Based on such an understanding, the above technical solution can essentially or in other words be embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0071] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for simulating the working condition of a ship power system based on operating data, characterized in that: include: Acquire the test bench operation data, wherein the test bench operation data is the operation data collected by the sensor of the physical test bench, and the test bench operation data is transmitted from the physical test bench to the Rabbit MQ message queue through the target communication protocol in byte serialization, and then stored in the database by the Rabbit MQ message queue; The control simulation bench calls the bench operation data in the database based on the Rabbit MQ message queue, and performs simulation based on the bench operation data to determine target parameters, wherein the simulation bench is a digital twin model corresponding to the physical bench.
2. The method for simulating operating conditions of a ship power system based on operating data according to claim 1, characterized in that: The target communication protocol includes at least one of the following: TCP Socket transmission protocol, UDP Socket transmission protocol.
3. The method for simulating the working condition of a ship power system based on operating data according to claim 1, characterized in that: The rack operation data is serialized and encoded based on the target communication protocol to obtain a byte sequence, and the byte sequence is parsed into JSON format and transmitted to the Rabbit MQ message queue.
4. The method for simulating operating conditions of a ship power system based on operating data according to claim 1, characterized in that: The database includes a memory database and a relational database. The data in the relational database is used by the simulation bench, and the data in the memory database is used for visualization.
5. The method for simulating operating conditions of a ship power system based on operating data according to claim 1, characterized in that: The target parameters include proportional parameters, integral parameters and differential parameters. The simulation based on the bench operation data is performed to determine the target parameters, including: Controlling the simulation bench to run a plurality of preset simulation programs based on the bench operation data to obtain a plurality of performance indicators, wherein each of the plurality of preset simulation programs has a different control strategy, and the plurality of performance indicators are used to reflect the simulation performance of the simulation bench under different simulation programs; The proportional parameter, the integral parameter, and the derivative parameter are determined based on the plurality of performance indicators.
6. The method for simulating the working condition of a ship power system based on operating data according to any one of claims 1 to 5, characterized in that: After the control simulation bench calls the bench operation data, performs simulation based on the bench operation data, and determines the target parameters, the method further includes: The physical test bench is controlled to perform a test based on the target parameter.
7. A ship power system operating condition simulation device based on operating data, characterized in that: include: An acquisition module, used for acquiring the test bench operation data, wherein the test bench operation data is the operation data collected by the sensor of the physical test bench, and the test bench operation data is transmitted from the physical test bench to the Rabbit MQ message queue through the target communication protocol in byte serialization, and then stored in the database by the Rabbit MQ message queue; An execution module is used to control the simulation bench to call the bench operation data in the database based on the Rabbit MQ message queue, and perform simulation based on the bench operation data to determine target parameters, wherein the simulation bench is a digital twin model corresponding to the physical bench.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for simulating the operating conditions of a ship power system based on operating data as described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for simulating the operating conditions of a ship power system based on operating data as described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for simulating the operating conditions of a ship power system based on operating data as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Comprehensive energy cluster coordination control method for improving power grid stability
CN111478312A
Time series data storage method and device, equipment and storage medium
CN115914360A
Digital twin simulation method for ship lubricating oil system
CN116579241A
Scheduling system based on edge computing
CN117872977A