Ship power system simulation method, system, equipment and medium
By building a global fluid network model in the ship's power system and screening out equipment with short time steps to form a local fluid network model, using multi-time and multi-direction parameter transmission method, the simulation error problem caused by inappropriate time steps in the prior art is solved, and the accuracy and adaptability of simulation calculations are improved.
Patent Information
- Application Number
- CN202210343262.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2042-03-31
AI Technical Summary
In the simulation calculation of ship power systems, the use of a unified time step leads to distortion, divergence or error in the simulation results of equipment with short time step, affecting the reflection of the overall dynamic operation characteristics of the system.
By building a global fluid network model and determining its exclusive time step according to the operating parameters of the equipment, the equipment with shorter time step and its surrounding fluid network are selected to form a local fluid network model, and a multi-time and multi-directional parameter transmission method is adopted to adjust the parameter transmission timing to match the time step of the equipment.
The simulation steps are reduced, the model simulation calculation error caused by inappropriate time steps are reduced, the accuracy and adaptability of dynamic simulation calculations at the ship's power system level are improved, and the dynamic response characteristics of special equipment can be better studied.
Smart Images

Figure CN114818273B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of dynamic characteristic simulation of a ship power system, and in particular to a method, system, device and medium for simulating a ship power system. Background Art
[0002] For ship power systems, a large number of piping systems (including fuel, lubricating oil, steam, cooling water, air, etc.) and equipment (including boilers, main engines, heat exchangers, condensers, etc.) form thermal fluid circulation. In the design, demonstration, evaluation and subsequent training of ship power systems, it is often necessary to simulate and calculate the overall dynamic operation characteristics of the ship power system at the system level through simulation modeling. The general system-level dynamic simulation is based on the thermal fluid network model. The thermal fluid system of the ship power system can be simulated and solved according to the fluid network model to evaluate different operation schemes of the ship power system from a system perspective, so as to obtain the overall dynamic operation characteristics and parameter change characteristics of the system.
[0003] There are a large number of devices in the ship power system. Due to the characteristics of the devices themselves, the time step of the simulation operation of some devices is inconsistent with the time step of the overall system. For example, the simulation of some devices often has an independent and special time step, or the operation of some simple devices requires a very small time step to obtain the simulation parameters.
[0004] However, when some current software is performing modeling and simulation, the entire fluid network and all the internal equipment often use a fixed time step to simulate and solve the ship power system. In this way, in order to match the time step of the fluid network, the equipment with a shorter time step itself may cause distortion, divergence, and errors in the simulation calculation of specific phenomena of some equipment, thereby affecting the embodiment of the overall dynamic operation characteristics of the system. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a method for simulating a ship power system, which can realize multi-time and multi-directional transmission, thereby helping to reduce the number of simulation steps, timely and quickly transmit parameters, reduce model simulation calculation errors caused by inappropriate time steps, and can also truly utilize the simulation data of equipment with short time steps or specific operating phenomena, thereby improving the accuracy and adaptability of dynamic simulation calculations at the ship power system level.
[0006] The second purpose of the embodiment of the present application is also to provide a ship power system simulation system for implementing the above-mentioned ship power system simulation method.
[0007] The third purpose of the embodiment of the present application is also to provide a computer device, including a memory and a processor, the memory stores a computer program, and when the program is executed by the processor, the above-mentioned ship power system simulation method is implemented.
[0008] The fourth purpose of the embodiment of the present application is also to provide a computer storage medium, which stores a computer program, and when the program is executed by a processor, it implements the above-mentioned ship power system simulation method.
[0009] In a first aspect, a ship power system simulation method is provided, comprising the following steps:
[0010] S1. Build a global fluid network model for simulation calculation of the ship power system according to the connection relationship between equipment and equipment, equipment and pipelines, and pipelines and pipelines in the ship power system;
[0011] S2. Determine the time step of the global fluid network model simulation based on the operating parameters of the ship power system, and determine the time step of each device simulation based on the operating parameters of the device;
[0012] S3, screening out devices whose simulation time step is smaller than the simulation time step of the global fluid network model, and setting the fluid network connected to the device and its surroundings within a predetermined range as a local fluid network model, and setting the part of the global fluid network model except the local fluid network model as a basic fluid network model;
[0013] S4, each local fluid network model selects the time step of the equipment included in the model as the time step of the model, and the basic fluid network model selects the time step of the global fluid network model as the time step of the model;
[0014] S5, setting the timing of parameter transfer between the local fluid network model and the timing of parameter transfer between the local fluid network model and the basic fluid network model as follows: after the simulation starts and runs to a certain moment, one side runs an integer multiple of the time step and the other side runs at least one time step;
[0015] S6. Simulate and debug the global fluid network model composed of the local fluid network model and the basic fluid network model, and output the converged simulation results.
[0016] In one feasible solution, step S6 includes the following steps:
[0017] Determine whether the simulation debugging result includes at least one of instability, divergence, non-convergence and error;
[0018] If the simulation debugging result includes at least one of instability, divergence, non-convergence and error, return to step S5 to adjust the timing of parameter transfer between the local fluid network model and the timing of parameter transfer between the local fluid network model and the basic fluid network model;
[0019] If the simulation debugging results do not include any of instability, divergence, non-convergence and errors, the converged simulation results are output and the simulation ends.
[0020] In an implementable scheme, in step S5, the timing of parameter transfer between local fluid network models and between local fluid network models and basic fluid network models is set as follows: after the simulation starts and runs to a certain moment, both sides run through an integer multiple of their respective time steps.
[0021] In an implementable scheme, the time interval between the previous parameter transfer and the next parameter transfer between the local fluid network model and the local fluid network model is set to the common time step between the local fluid network model and the local fluid network model; the common time step between the local fluid network model and the local fluid network model is a common multiple of their respective time steps; the time interval between the previous parameter transfer and the next parameter transfer between the local fluid network model and the basic fluid network model is set to the common time step between the local fluid network model and the basic fluid network model; the common time step between the local fluid network model and the basic fluid network model is a common multiple of their respective time steps.
[0022] In one feasible solution, the common multiple is the least common multiple.
[0023] In an implementable solution, after step S1 and before step S3, the following steps are also included: establishing a collaborative connection relationship matrix based on the connection relationships and parameter transfer relationships in step S1 to identify all connection relationships and parameter transfer relationships in the global fluid network model.
[0024] In an implementable scheme, before outputting the converged simulation results in step S6, the following steps are also included: after each local fluid network model and the basic fluid network model have run their respective integer multiple time steps, the converged simulation data of the local fluid network model is output.
[0025] According to the second aspect of the present application, a ship power system simulation system is also provided, including a model building module, a step confirmation module, a model screening module, a step setting module, a transfer setting module and a simulation execution module.
[0026] Among them, the model building module is used to build a global fluid network model for simulation calculation of the ship power system according to the connection relationship and parameter transfer relationship between equipment and equipment, equipment and pipelines, and pipelines in the ship power system; the step confirmation module is used to determine the time step for the simulation of the global fluid network model based on the operating parameters of the ship power system, and determine the time step for the simulation of each device based on the operating parameters of the device; the model screening module is used to screen out devices whose time step of device simulation is smaller than the time step of the global fluid network model simulation, and set the fluid network connected to this device and its surroundings within a predetermined range as a local fluid network model, and set the part of the global fluid network model except the local fluid network model as the basic fluid network model. type; a step setting module, used to set the time step of each local fluid network model to select the equipment included in the model as the time step of the model, and set the time step of the basic fluid network model to select the global fluid network model as the time step of the model; a transfer setting module, used to set the timing of parameter transfer between local fluid network models and between local fluid network models and basic fluid network models: when the simulation starts and runs to a certain moment, one side runs an integer multiple of the time step and the other side runs at least one time step; a simulation execution module, simulates and debugs the global fluid network model composed of the local fluid network model and the basic fluid network model, and outputs the converged simulation results.
[0027] According to a third aspect of the present application, there is also provided a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the program is executed by the processor, the above-mentioned ship power system simulation method is implemented.
[0028] According to a fourth aspect of the present application, there is also provided a computer storage medium storing a computer program, which implements the above-mentioned ship power system simulation method when executed by a processor.
[0029] Compared with the prior art, the beneficial effects of this application are:
[0030] 1) The ship power system simulation method of the present application separates the equipment with special simulation time steps in the ship power system and the fluid network connected within a predetermined range around it from the global fluid network model to form a local fluid network model that can be used for separate simulation. The local fluid network model is simulated using the same time step as the special equipment in the model, so as to better study the dynamic response characteristics of these special equipment during operation, and the dynamic operation characteristics and parameter change characteristics of these special equipment can also be better displayed.
[0031] 2) For local fluid network models containing special equipment, their time steps are basically smaller than the time steps of global fluid network models. After the present application adjusts the timing of parameter transfer, parameter transfer between local fluid network models no longer needs to wait for the time step of the global fluid network model. The local fluid network model can transfer parameters after running an appropriate time step, so that the local fluid network model can perform timely calculation and solution. The present application transforms the parameter transfer originally performed at the same time into multi-time and multi-directional transfer, which helps to reduce the number of simulation steps, transfer parameters in a timely and rapid manner, reduce the model simulation calculation error caused by inappropriate time steps, and can also truly utilize the simulation data of equipment with shorter time steps or with specific operating phenomena, thereby improving the accuracy and adaptability of dynamic simulation calculations at the ship power system level. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 This is a flow chart of a ship power system simulation method according to an embodiment of the present application;
[0034] Figure 2 A simplified flow chart of a ship power system simulation method according to an embodiment of the present application;
[0035] Figure 3 A collaborative connection relationship matrix of a ship power system simulation method according to an embodiment of the present application;
[0036] Figure 4 A simulation propulsion schematic diagram of a ship power system simulation method according to an embodiment of the present application;
[0037] Figure 5 The present invention is a block diagram of a ship power system simulation system according to an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0039] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0040] According to the first aspect of the present application, Figure 1 and 2 As shown, firstly, a ship power system simulation method is provided, comprising the following steps:
[0041] S1. A global fluid network model for simulation calculation of the ship power system is constructed based on the connection relationship between equipment and equipment, equipment and pipelines, and pipelines and pipelines in the ship power system.
[0042] It should be noted that the equipment in step S1 can be an independent host, heat exchanger and other equipment, or a subsystem equipment composed of equipment and pipelines. It should not be simply understood as independent equipment. The equipment in the following text is the same as the equipment here and will not be explained one by one.
[0043] S2. Determine the time step of the global fluid network model simulation based on the operating parameters of the ship power system, and determine the time step of each device simulation based on the operating parameters of the device.
[0044] In step S2, the time step of the equipment can be determined based on the design characteristics, technical parameters, operating characteristics and simulation theoretical knowledge of the equipment. The time step of the global fluid network model is generally determined based on the overall design characteristics, technical parameters, operating characteristics and simulation theoretical knowledge of the ship power system.
[0045] S3. Filter out devices whose simulation time step is smaller than the simulation time step of the global fluid network model, and set the fluid network connected to the device and its surrounding within a predetermined range as a local fluid network model, and set the part of the global fluid network model except the local fluid network model as a basic fluid network model.
[0046] In step S3, it is necessary to judge the size relationship between the time step of each device simulation and the time step of the global fluid network model simulation during screening. After screening out the device whose time step of device simulation is less than the time step of the global fluid network model simulation, first judge whether the fluid network connected around it is the part that has little influence on the overall simulation, that is, judge whether the flow network connected around this device sets a shorter time step or a longer time step to have no greater influence on the simulation calculation. In addition, the flow network connected around this device also needs to be able to form a local flow network that can be independently simulated and run with the device. If some parts that support the simulation operation are missing, third-party pipelines or equipment that have no influence on the local flow network simulation results can be added to the local flow network to support the normal operation of the local flow network simulation. In addition, the fluid network connected within a predetermined range around the device can include one or more of pipelines, independent equipment, and subsystem equipment (equipment and pipeline composition).
[0047] S4. Each local fluid network model selects the time step of the equipment contained in the model as the time step of the model, and the basic fluid network model selects the time step of the global fluid network model as the time step of the model.
[0048] In step S4, the difference between the local fluid network model and the global fluid network model is that the time step of the special equipment in the local fluid network model is different from that in the global fluid network model, and all the time steps in the local fluid network model are unified.
[0049] S5, setting the timing of parameter transfer between the local fluid network model and the timing of parameter transfer between the local fluid network model and the basic fluid network model as follows: after the simulation starts and runs to a certain moment, one side runs an integer multiple of the time step and the other side runs at least one time step;
[0050] The method in step S5 makes the parameter transfer between the local fluid network model and the local fluid network model unaffected by the time step of the basic fluid network model (global fluid network model), so that the local fluid network model can be simulated independently of the basic fluid network model. The parameter transfer between any local fluid network model and the basic fluid network model only needs to be performed at the transfer time of step S5, without running the same time step.
[0051] S6. Simulate and debug the global fluid network model composed of the local fluid network model and the basic fluid network model, and output the converged simulation results.
[0052] The original simulation method uses a unified time step, and the dynamic response of special equipment with a shorter time step is basically ignored. In other words, because the unified time step is too long, the simulation results of these equipment with a shorter time step cannot be calculated. Even if calculated, divergent, unstable, erroneous results may be obtained, making it impossible to simulate these unique phenomena well.
[0053] The ship power system simulation method of the above-mentioned embodiment of the present application separates the equipment with special simulation time step in the ship power system and the fluid network connected within a predetermined range around it from the global fluid network model, forming a local fluid network model that can be used for separate simulation. The local fluid network model is simulated using the same time step as the special equipment in the model, so as to better study the dynamic response characteristics of these special equipment during operation, and the dynamic operation characteristics and parameter change characteristics of these special equipment can also be better displayed.
[0054] At the same time, since the ship power system simulation method of the present application adjusts the timing of parameter transfer, that is, when the simulation starts and runs to a certain moment, one party runs an integer multiple of the time step and the other party runs at least one time step, and then the parameter transfer is performed. For the local fluid network model containing special equipment, its time step is basically smaller than the time step of the global fluid network model. After the present application adjusts the transfer timing, the parameter transfer between the local fluid network models does not need to wait for the time step of the global fluid network model. The local fluid network model can perform parameter transfer after running an appropriate time step, so that the local fluid network model can perform timely calculation and solution, and then perform parameter transfer with the basic fluid network model in the global fluid network model. The present application transforms the parameter transfer originally performed at the same time into a multi-time and multi-directional transfer, which helps to reduce the number of simulation steps, helps to reduce the cumulative error caused by long-term simulation operation, and transfers the parameters in a timely and fast manner, reduces the model simulation calculation error caused by inappropriate time step, and can also truly utilize the simulation data of equipment with short time step or specific operation phenomenon, thereby improving the accuracy and adaptability of dynamic simulation calculation at the ship power system level.
[0055] It should be noted that the connection relationship and parameter transfer relationship both represent the interconnection and parameter transfer between actual equipment and pipelines, and are a mapping of the actual operation process in the simulation model.
[0056] In one embodiment, Figure 2 As shown, step S6 includes the following steps:
[0057] Determine whether the simulation debugging result includes at least one of instability, divergence, non-convergence and error;
[0058] If the simulation debugging result includes at least one of instability, divergence, non-convergence and error, return to step S5 to adjust the timing of parameter transfer between the local fluid network model and the timing of parameter transfer between the local fluid network model and the basic fluid network model;
[0059] If the simulation debugging results do not include any of instability, divergence, non-convergence and errors, the converged simulation results are output and the simulation ends.
[0060] It should be noted that instability, divergence, non-convergence and errors refer to the fluctuation of a certain parameter (temperature, pressure, etc.) over time (i.e., instability, divergence, non-convergence) or errors during operation. The simulation cannot be solved normally due to calculation errors caused by instability, divergence and convergence. Because before the simulation is performed using the solution in this embodiment, a convergence result is generally obtained by setting a unified time step for simulation debugging, and the instability, divergence, non-convergence and errors in this embodiment are generally caused by the set time step and parameter transfer timing of this embodiment, and the parameter transfer timing needs to be adjusted at this time.
[0061] In the method of step S6 of the above embodiment, adding a self-detection step for the timing of parameter transfer is helpful to find the appropriate timing of parameter transfer. For some specific operating phenomena, the time step may be short, but as many time steps as possible are needed to obtain a more stable result. At this time, it may be necessary to set a more multiple time step to perform parameter transfer. The simulation operation of some equipment is affected by the simulation equipment. Relatively stable and accurate data can be obtained during the initial simulation operation. After running for too many steps, instability occurs. The operating parameters of such equipment need to be transferred in time after running once or several time steps as much as possible.
[0062] In one implementation, before simulating and debugging the global fluid network model, the local fluid network model is simulated and debugged first, and the stability and convergence are determined and verified through simulation debugging and solution testing of the local fluid network model. Then, the global basic fluid network model is connected to form a global fluid network model for simulation.
[0063] In one embodiment, in step S5, the timing of parameter transfer between the local fluid network model and the timing of parameter transfer between the local fluid network model and the basic fluid network model is set to: when the simulation starts and runs to a certain time, both parties run through an integer multiple of their respective time steps. Integer multiples of time steps facilitate time statistics during simulation operation and are beneficial to calculation.
[0064] In one embodiment, Figure 4 As shown, the time interval between the previous parameter transfer and the next parameter transfer between the local fluid network model and the local fluid network model is set as the common time step between the local fluid network model and the local fluid network model; the common time step between the local fluid network model and the local fluid network model is the common multiple of their respective time steps; the time interval between the previous parameter transfer and the next parameter transfer between the local fluid network model and the basic fluid network model is set as the common time step between the local fluid network model and the basic fluid network model; the common time step between the local fluid network model and the basic fluid network model is the common multiple of the local fluid network model and the basic fluid network model. The timing of parameter transfer is set after running at least an integer multiple of their respective time steps, so as to ensure that both parties have run at least once to obtain their respective operating parameters.
[0065] In one embodiment, Figure 4 As shown in the figure, the common multiple is the least common multiple. The setting of the least common multiple allows both parties to transfer parameters to complete the integer multiple time steps at the same time during the simulation process, thereby reducing the time steps before parameter transfer, reducing the simulation operation burden, and also helping to reduce the impact of cumulative errors caused by long-term simulation operation.
[0066] For the above embodiment, combined with Figure 4 Give an example. Figure 4 In the figure, the vertical axis represents the time advancement of the simulation, which is based on the global fluid network model, and the time step of the basic fluid network model is Δt fn , the time step of the local fluid network model A is Δt a , the time step of the local fluid network model B is Δt b , the time step of the local fluid network model C is Δt c , the time steps of the three devices are different. The basic fluid network model, local fluid network model A, local fluid network model B and local fluid network model C start simulation at the same time.
[0067] For ease of description, Figure 4 In the paper, the local fluid network model A, the local fluid network model B and the local fluid network model C are referred to as model A, model B and model C. Figure 4 The basic fluid network model is referred to as the basic flow network model in the text. The time step of the basic flow network model is Δt fn , the time step of model A is Δt a , the time step of model B is Δt b , the time step of model C is Δt c . Figure 4There is a common time step Δt between model A and device model B a-b , that is, model A and model B calculate every interval Δt in each simulation run a-b The two parts pass parameters to each other at the time, t a-b Equal to 3Δt a , t a-b Equal to 2Δt b Similarly, Figure 4 There is a common time step Δt between model A and model C. a-c , that is, A and C simulation calculate each interval Δt a-c The two parts of time transfer parameters to each other; there is a common time step Δt between model B and model C b-c , that is, the simulation calculates each interval Δt b-c At the same time, there are common time steps between models A, B, C and the basic fluid network model, which are Δt a-fn , Δt b-fn , Δt c-fn From this, it can be seen that the parameter transfer between models A, B, and C does not need to be transferred simultaneously when the basic flow network transfers parameters, but can be transferred after running an appropriate step length, thereby reducing the number of simulation steps during parameter transfer, reducing the impact of cumulative errors, and reducing the computational burden of simulation operation, thereby improving the accuracy of simulation data.
[0068] For the above embodiment, an example is given as follows: assuming that the time step of model A is 2t and the time step of model B is 3t, the common time step between A and B is 6t. A and B start simulation at the same time. A goes through three time steps and B goes through two time steps. The two transfer parameters in time and perform solution calculations.
[0069] In one embodiment, it is difficult for some local fluid network models to have a more suitable common time step with other local fluid network models or basic fluid network models, or the interval is too long to transfer parameters once (or it is difficult to determine the timing of parameter transfer). At this time, it is necessary to artificially use the extrapolation method, that is, when the time step between the two parties of the two parameter transfers is greatly different, the predetermined time is appropriately extrapolated as the common time step on the basis of the larger time step, so that the party with the smaller time step completes an integer multiple of the time step, and the other party completes at least one time step, and the parameter transfer is performed immediately. For example, assuming that the time step of model A is 2t and the time step of model B is 17t, the least common multiple method, the common time step (parameter transfer timing) of the two is 34t, for model B, only two time steps need to be run, while for model A, 17 time steps need to be run. After running 17 time steps, the parameters output by model A may lose the original accuracy of the parameters of model A due to calculation errors, time errors, cumulative errors, etc. of the simulation equipment. Therefore, in order to ensure the accuracy of the parameters of model A, it can be set that after model A has run for 9 time steps, that is, the total time has passed for 18t (this is the common time step of A and B), and model B has also completed 1 time step at this time, based on the time step of model B of 17t, 1t is extrapolated to transfer the parameters of A and B, thereby ensuring that model A completes the parameter transfer in a smaller number of time steps, so as to minimize the instability of the parameters of model A and improve the accuracy.
[0070] In one implementation, for the common time step that needs to be adjusted by extrapolation, it may be necessary to repeatedly fine-tune to find a suitable extrapolation time because it is not easy to bring about good computational stability when it is determined manually.
[0071] In one embodiment, Figure 2 As shown, after step S1 and before step S3, the following steps are also included: a collaborative connection relationship matrix is established according to the connection relationship and parameter transfer relationship in step S1 to identify all connection relationships and parameter transfer relationships in the global fluid network model. Figure 3 In the collaborative connection relationship matrix shown, A, B, and C represent local fluid network models containing specific equipment, such as boilers, main engines, heat exchangers, condensers, etc., fn represents the basic fluid network model formed, and the element P in the matrix represents the parameters that need to be transferred during the calculation process (such as flow, temperature, pressure, etc.), and the subscript ab represents the transfer from device a to device b. The collaborative connection relationship matrix is equivalent to the mapping of the actual thermal fluid cycle in the simulation, which includes parameter connection relationships and parameter transfer relationships.
[0072] In one embodiment, before outputting the converged simulation results in step S6, the following steps are further included: after each local fluid network model and the basic fluid network model have run through their respective integer multiple time steps, the converged simulation data of the local fluid network model is output. The method here facilitates observation of the simulation results of the local fluid network model and the basic fluid network model, so as to accurately locate the problem.
[0073] According to the second aspect of the present application, Figure 5 As shown, a ship power system simulation system is also provided, including a model building module 10, a step length confirmation module 20, a model screening module 30, a step length setting module 40, a transfer setting module 50 and a simulation execution module 60.
[0074] Among them, the model building module 10 is used to build a global fluid network model for simulation calculation of the ship power system according to the connection relationship and parameter transfer relationship between equipment and equipment, equipment and pipelines, and pipelines and pipelines in the ship power system. The step confirmation module 20 is used to determine the time step for the simulation of the global fluid network model based on the operating parameters of the ship power system, and determine the time step for the simulation of each device based on the operating parameters of the equipment. The model screening module 30 is used to screen out devices whose time step of device simulation is less than the time step of the global fluid network model simulation, and set the fluid network connected to this device and its surroundings within a predetermined range as a local fluid network model, and set the part of the global fluid network model except the local fluid network model as the basic fluid network model. The step setting module 40 is used to set the time step of each local fluid network model using the device contained in the model as the time step of the model, and set the time step of the basic fluid network model using the global fluid network model as the time step of the model. The transfer setting module 50 is used to set the timing of parameter transfer between the local fluid network model and the local fluid network model and the timing of parameter transfer between the local fluid network model and the basic fluid network model: when the simulation starts and runs to a certain moment, one side runs an integer multiple of the time step and the other side runs at least one time step. The simulation execution module 60 simulates and debugs the global fluid network model composed of the local fluid network model and the basic fluid network model, and outputs the converged simulation results.
[0075] According to a third aspect of the present application, there is also provided a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the program is executed by the processor, the ship power system simulation method in the above scheme is implemented.
[0076] According to a fourth aspect of the present application, there is also provided a computer storage medium storing a computer program, which, when executed by a processor, implements the ship power system simulation method in the above-mentioned scheme.
[0077] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A ship power system simulation method, characterized in that: The following steps are involved: S1. A global fluid network model for simulation calculation of a ship power system is constructed according to the connection relationship between equipment and equipment, equipment and pipelines, and pipelines and pipelines in the ship power system; S2. Determine the time step of the global fluid network model simulation based on the operating parameters of the ship power system, and determine the time step of each device simulation based on the operating parameters of the device; S3, screening out devices whose device simulation time step is smaller than the time step of the global fluid network model simulation, and setting the fluid network connected to the device and its surroundings within a predetermined range as a local fluid network model, and setting the part of the global fluid network model except the local fluid network model as a basic fluid network model; S4, each of the local fluid network models selects the time step of the equipment included in the model as the time step of the model, and the basic fluid network model selects the time step of the global fluid network model as the time step of the model; S5, setting the timing of parameter transfer between the local fluid network model and the timing of parameter transfer between the local fluid network model and the basic fluid network model to be: after the simulation starts and runs to a certain moment, both sides run through an integer multiple of their respective time steps; S6. Simulate and debug the global fluid network model composed of the local fluid network model and the basic fluid network model, and output the converged simulation results; Wherein, in step S5, the time interval between the previous parameter transfer and the next parameter transfer between the local fluid network model and the local fluid network model is set as the common time step between the local fluid network model and the local fluid network model; the common time step between the local fluid network model and the local fluid network model is a common multiple of their respective time steps; The time interval between the previous parameter transfer and the next parameter transfer between the local fluid network model and the basic fluid network model is set as the common time step between the local fluid network model and the basic fluid network model; the common time step between the local fluid network model and the basic fluid network model is the common multiple of the respective time steps of the local fluid network model and the basic fluid network model.
2. The ship power system simulation method according to claim 1, characterized in that: Step S6 includes the following steps: Determine whether the simulation debugging result includes at least one of instability, divergence, non-convergence and error; If the simulation debugging result includes at least one of instability, divergence, non-convergence and error, return to step S5 to adjust the timing of parameter transfer between the local fluid network model and the timing of parameter transfer between the local fluid network model and the basic fluid network model; If the simulation debugging results do not include any of instability, divergence, non-convergence and errors, the converged simulation results are output and the simulation ends.
3. The ship power system simulation method according to claim 2, characterized in that: The common multiple is the least common multiple.
4. The ship power system simulation method according to any one of claims 1 to 3, characterized in that: The method further includes the following steps after step S1 and before step S3: A collaborative connection relationship matrix is established according to the connection relationship and parameter transfer relationship in step S1 to identify all connection relationships and parameter transfer relationships in the global fluid network model.
5. The ship power system simulation method according to any one of claims 1 to 3, characterized in that: Before outputting the converged simulation results in step S6, the method further includes the following steps: After each local fluid network model and the basic fluid network model have run through respective integer multiple time steps, the converged simulation data of the local fluid network model is output.
6. A ship power system simulation system, characterized in that: include: The model building module is used to build a global fluid network model for simulation calculation of the ship power system based on the connection relationship and parameter transfer relationship between equipment and equipment, equipment and pipelines, and pipelines in the ship power system; A step confirmation module, used to determine the time step for simulating the global fluid network model based on the operating parameters of the ship power system, and to determine the time step for simulating each device based on the operating parameters of the device; A model screening module is used to screen out devices whose device simulation time step is smaller than the time step of the global fluid network model simulation, and set the fluid network connected to the device and its surrounding within a predetermined range as a local fluid network model, and set the part of the global fluid network model except the local fluid network model as a basic fluid network model; A step setting module, used for setting the time step of each local fluid network model using the equipment included in the model as the time step of the model, and setting the time step of the basic fluid network model using the time step of the global fluid network model as the time step of the model; The transfer setting module is used to set the timing of parameter transfer between local fluid network models and between local fluid network models and basic fluid network models: when the simulation starts and runs to a certain moment, both parties run through their respective integer multiple time steps; The simulation execution module simulates and debugs the global fluid network model composed of the local fluid network model and the basic fluid network model, and outputs the converged simulation results; Wherein, the time interval between the previous parameter transfer and the next parameter transfer between the local fluid network model and the local fluid network model is set as the common time step between the local fluid network model and the local fluid network model; the common time step between the local fluid network model and the local fluid network model is a common multiple of their respective time steps; The time interval between the previous parameter transfer and the next parameter transfer between the local fluid network model and the basic fluid network model is set as the common time step between the local fluid network model and the basic fluid network model; the common time step between the local fluid network model and the basic fluid network model is the common multiple of the respective time steps of the local fluid network model and the basic fluid network model.
7. A computer device, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program, and when the program is executed by the processor, the ship power system simulation method according to any one of claims 1 to 5 is implemented.
8. A computer storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the ship power system simulation method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Variable step size dynamic simulation method for integrated energy system
CN113536591A
Modelica-based model splitting method and device and storage medium
CN113987840A