Water surface ship power system modeling method and system and readable storage medium
The construction of the ship's power system model through the Modelica language solves the problems of weak correlation and poor portability in different design stages, and achieves improved model accuracy and shortened design cycle, with good observability, controllability and portability.
Patent Information
- Application Number
- CN202411911183.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-07-08
AI Technical Summary
During the design process of existing ship power system, the design results of each design stage are weakly correlated, the technical status consistency is poor, the design software is independent, the coordination is difficult, and the system design results are poorly portable, resulting in a long design cycle and high cost.
The Modelica language is used to build a surface ship power system model, and a power system model library is built through one-dimensional model expression rules, parameter variable naming rules, code writing rules and model testing rules. Multi-level decomposition is carried out, modeling tasks are determined, experimental data is obtained for correction, thermal system models are established, and the general design of the model library is realized.
It improves model accuracy, shortens system design and development time, saves design funds, and enhances the obsession, controllability and portability of system design.
Smart Images

Figure CN120277862A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of ship power system design, and particularly relates to a modeling method and system for a surface ship power system, and a readable storage medium. Background Art
[0002] The ship power system is complex in composition, involving many subsystems and devices. At present, digital means have been partially adopted in the ship power system design process, but there are still the following problems: the design results in different design stages are weakly correlated, and the technical status consistency is poor. For different design stages, the design software of different specialties is independent of each other, and a digital collaborative design system based on a unified platform system and with a full cycle has not been formed. The work in each design stage and each specialty is still carried out in a scattered and fragmented manner, making it difficult to collaborate in design work and resulting in weak correlation of design results, poor technical status consistency of the system, and low coordination work efficiency. The cost of verifying the system design through experiments is high, the cycle is long, and it is difficult to make changes. The portability of the system design results is poor. Although the principles of different ship power systems are basically the same, there are still differences between the system compositions and equipment principles of different projects. For the system design of a single project, it is often impossible to be transplanted to another project. This leads to the need to start the system design of each project from scratch, with a long cycle. Summary of the Invention
[0003] This application aims to solve or improve the above technical problems.
[0004] To this end, an embodiment of this application provides a modeling method for a surface ship power system.
[0005] An embodiment of this application also provides a modeling system for a surface ship power system.
[0006] An embodiment of this application also provides a modeling system for a surface ship power system.
[0007] An embodiment of this application also provides a readable storage medium.
[0008] To achieve the above object, an embodiment of this application provides a modeling method for a surface ship power system, including: constructing a power system model library according to one-dimensional model expression rules, parameter variable naming rules, code writing rules, and model testing rules; performing multi-level decomposition on the power system to obtain multiple levels; determining the modeling tasks for each level, where the modeling tasks include interface definition and confirmation of equipment modeling parameters; constructing a thermal system model through Modelica language based on the power system model library, where the thermal system model includes a basic-level model, a general-level model, and an equipment-level model; obtaining test data, and correcting the thermal system model according to the test data to obtain a corrected thermal system model.
[0009] According to the surface ship power system modeling method provided in the present application, a power system model library is first constructed according to one-dimensional model expression rules, parameter variable naming rules, code writing rules and model testing rules. Then the power system is decomposed into multiple levels to obtain multiple levels. The modeling tasks of each level are determined, and the modeling tasks include interface definition and equipment modeling parameter confirmation. Then, a thermal system model is constructed according to the power system model library using the Modelica language, and the thermal system model includes a basic level model, a general level model and an equipment level model. Finally, the test data is obtained, and the thermal system model is corrected according to the test data to obtain a corrected thermal system model. By using the Modelica language to establish a model library with common models and parameter settings, all component models in the model library can be conveniently and flexibly parameterized. Parameters can be set through numerical values, expressions, functions, methods associated with other model parameters, or logical statements. This starts from scheme demonstration, to the scheme design stage, technical design stage, and even to the construction design stage, throughout the entire system design cycle. The simulation model is calibrated through test data, and the theoretical design is combined with test data to improve model accuracy, shorten system design and development time, and save design funds. It has good observability, controllability, security, and portability.
[0010] Among them, in the unified modeling language for multiple physical fields, the Modelica language inherits the excellent features of multiple modeling languages, supports object-oriented modeling, non-causal declarative modeling, unified modeling for multiple fields, and continuous-discrete hybrid modeling, with differential equations, algebraic equations, and discrete equations as mathematical representations. The Modelica language unifies various unified modeling mechanisms for multiple fields in principle, directly supports block diagram-based modeling, function-based modeling, object-oriented and component-oriented modeling, and supports unified modeling for multiple fields through a generalized Kirchhoff network mechanism based on ports and connections. The Modelica language also provides a powerful, open standard domain model library, covering mechanical, electronic, control, electromagnetic, fluid, thermal and other fields.
[0011] In addition, the technical solution provided by this application may also have the following additional technical features:
[0012] In some technical solutions, optionally, a power system model library is constructed according to one-dimensional model expression rules, parameter variable naming rules, code writing rules and model testing rules, including: obtaining equipment model components, the equipment model components include turbine models, pump models, pipeline models, heat exchanger models, valve models, sensor models, and medium models; building equipment models according to equipment model components; building subsystems according to equipment models; and building power systems according to subsystems.
[0013] In this technical solution, a dynamic system model library is constructed according to the one-dimensional model expression rules, parameter variable naming rules, code writing rules, and model testing rules. Specifically, device model components are developed first based on the required indicators, working principles, structural principles, and theoretical formulas of the system. The components mainly include turbine models, pump models, pipeline models, heat exchanger models, valve models, sensor models, medium models, etc. Through the developed components, each device model is built, and then each subsystem is gradually built, such as the steam system, condensate system, feed water system, and lubricating oil system, etc. Then the power system is built from each subsystem. Through the modular and hierarchical solution ideas, combined with the logical relationships between each module and each design stage, the overall framework for implementing the system architecture is built to achieve the general design of the power system.
[0014] In some technical solutions, optionally, a thermal system model is constructed through the Modelica language based on the dynamic system model library, including: modeling each of the multiple device models one by one according to the dynamic system model library, and connecting the device models to form a subsystem model; connecting the subsystem models to construct a full-system model; simulating the device model components to obtain component simulation result data; and simulating the device models to obtain device model simulation result data.
[0015] In this technical solution, a thermal system model is constructed through the Modelica language based on the dynamic system model library. Specifically, according to the model library architecture, each device is modeled one by one, and then the device models are connected to form a subsystem model. Finally, the subsystem models are connected to construct a full-system model. The device model components are simulated to obtain component simulation result data, and the device models are simulated to obtain device model simulation result data.
[0016] In some technical solutions, optionally, test data is obtained, and the thermal system model is corrected according to the test data to obtain a corrected thermal system model, including: obtaining test data and design file data; verifying the component simulation result data and device model simulation result data according to the test data and design file data to obtain verification results.
[0017] In this technical solution, test data is obtained, and the thermal system model is corrected according to the test data to obtain a corrected thermal system model. Specifically, test data and design file data are obtained first. Then, the component simulation result data and device model simulation result data are verified according to the test data and design file data to obtain verification results, thereby improving the model accuracy.
[0018] In some technical solutions, optionally, the basic-level model includes one or a combination of the following: a medium physical property model library, a boundary model library, the general-level model includes one or a combination of the following: a pipeline model, a valve model, a steam turbine model, and the equipment-level model includes one or a combination of the following: a turbopump model, a condenser model.
[0019] In this technical solution, the basic-level model includes one or a combination of the following: a medium physical property model library, a boundary model library, the general-level model includes one or a combination of the following: a pipeline model, a valve model, a steam turbine model, and the equipment-level model includes one or a combination of the following: a turbopump model, a condenser model. The three-level, extensible model library constitutes the set of model elements available for call in the model layer.
[0020] In some technical solutions, optionally, the power system model library includes one or a combination of the following: an equipment model library, a general model library, a medium model library, a sensor model library, a boundary model library, an interface model.
[0021] In this technical solution, the power system model library includes one or a combination of the following: an equipment model library, a general model library, a medium model library, a sensor model library, a boundary model library, an interface model.
[0022] In some technical solutions, optionally, the interfaces in the interface definition include one or a combination of the following: C / C++ interfaces, matlab / Simulink, CATIA / AutoCAD interfaces, and Ansys Fluent interfaces.
[0023] In this technical solution, the interfaces in the interface definition include one or a combination of the following: C / C++ interfaces, matlab / Simulink, CATIA / AutoCAD interfaces, and Ansys Fluent interfaces.
[0024] The embodiment of the present application provides a water surface ship power system modeling system, including: a model library construction module for constructing a power system model library according to one-dimensional model expression rules, parameter variable naming rules, code writing rules, and model testing rules; a decomposition module for performing multi-level decomposition on the power system to obtain multiple levels; a modeling task determination module for determining the modeling tasks of each level, and the modeling tasks include interface definition and equipment modeling parameter confirmation; a model construction module for constructing a thermal system model through the Modelica language according to the power system model library, and the thermal system model includes a basic-level model, a general-level model, and an equipment-level model; a calibration module for obtaining test data and calibrating the thermal system model according to the test data to obtain a calibrated thermal system model.
[0025] According to the surface ship power system modeling system provided by the present application, it includes a model library construction module, a decomposition module, a modeling task determination module, a model construction module and a correction module. Among them, the model library construction module is used to build a power system model library according to one-dimensional model expression rules, parameter variable naming rules, code writing rules and model testing rules. The decomposition module is used to decompose the power system at multiple levels to obtain multiple levels. The modeling task determination module is used to determine the modeling tasks of each level, and the modeling tasks include interface definition and equipment modeling parameter confirmation. The model construction module is used to build a thermal system model through the Modelica language according to the power system model library, and the thermal system model includes a basic level model, a general level model and an equipment level model. The correction module is used to obtain test data, calibrate the thermal system model according to the test data, and obtain a corrected thermal system model. By using the Modelica language to establish a model library with common models and parameter settings, all component models in the model library can be conveniently and flexibly parameterized. Parameters can be set through numerical values, expressions, functions, methods associated with other model parameters, or logical statements. This starts from scheme demonstration, to the scheme design stage, technical design stage, and even to the construction design stage, throughout the entire system design cycle. The simulation model is calibrated through test data, and the theoretical design is combined with test data to improve model accuracy, shorten system design and development time, and save design funds. It has good observability, controllability, security, and portability.
[0026] An embodiment of the present application provides a surface ship power system modeling system, comprising: a memory and a processor, wherein the memory stores programs or instructions that can be run on the processor, and when the processor executes the program or instruction, it implements the surface ship power system modeling method of any one of the technical solutions of the first aspect, so it has the technical effect of any of the technical solutions of the first aspect above, which will not be repeated here.
[0027] An embodiment of the present application provides a readable storage medium on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the surface ship power system modeling method of any one of the technical solutions of the first aspect are implemented, and thus the technical effects of any one of the technical solutions of the first aspect are obtained, which will not be repeated here.
[0028] Additional aspects and advantages of the present application will become apparent in the following description or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0030] Figure 1Schematic diagram of the step flow of the modeling method for the surface ship power system in an embodiment of the present application;
[0031] Figure 2 Schematic diagram of the step flow of the modeling method for the surface ship power system in an embodiment of the present application;
[0032] Figure 3 Schematic diagram of the step flow of the modeling method for the surface ship power system in an embodiment of the present application;
[0033] Figure 4 Schematic diagram of the step flow of the modeling method for the surface ship power system in an embodiment of the present application;
[0034] Figure 5 Schematic block diagram of the structure of the modeling system for the surface ship power system in an embodiment of the present application;
[0035] Figure 6 Schematic block diagram of the structure of the modeling system for the surface ship power system in an embodiment of the present application;
[0036] Figure 7 Power system integrated design modeling technical framework of the modeling method for the surface ship power system in an embodiment of the present application;
[0037] Figure 8 Power system equipment model library framework of the modeling method for the surface ship power system in an embodiment of the present application;
[0038] Figure 9 Flow chart of model library development of the modeling method for the surface ship power system in an embodiment of the present application;
[0039] Figure 10 Flow chart of model component development of the modeling method for the surface ship power system in an embodiment of the present application;
[0040] Figure 11 Schematic diagram of model results of the modeling method for the surface ship power system in an embodiment of the present application;
[0041] Figure 12 Schematic diagram of model component verification of the modeling method for the surface ship power system in an embodiment of the present application;
[0042] Figure 13 Schematic diagram of the power system and equipment model library of the modeling method for the surface ship power system in an embodiment of the present application;
[0043] Figure 14 Decomposition schematic diagram of the power system and equipment model library of the modeling method for the surface ship power system in an embodiment of the present application;
[0044] Figure 15 Schematic diagram of a steam turbine model for the modeling method of a surface ship power system according to an embodiment of the present application;
[0045] Figure 16 Schematic diagram of a centrifugal pump model for the modeling method of a surface ship power system according to an embodiment of the present application;
[0046] Figure 17 Schematic diagram of a steam turbine condensate pump model for the modeling method of a surface ship power system according to an embodiment of the present application;
[0047] Figure 18 Schematic diagram of a condensate feed water system model for the modeling method of a surface ship power system according to an embodiment of the present application;
[0048] Figure 19 Schematic diagram of the test result of a steam turbine model for the modeling method of a surface ship power system according to an embodiment of the present application;
[0049] Figure 20 Schematic diagram of the test result of a centrifugal pump model for the modeling method of a surface ship power system according to an embodiment of the present application;
[0050] Figure 21 Schematic diagram of the test result of a steam turbine condensate pump model for the modeling method of a surface ship power system according to an embodiment of the present application.
[0051] Among them, Figure 5 and Figure 6 The corresponding relationship between the reference numerals and component names in is:
[0052] 10: Modeling system of surface ship power system; 110: Model library construction module; 120: Decomposition module; 130 Modeling task determination module; 140: Model construction module; 150: Calibration module; 20: Modeling system of surface ship power system; 300: Memory; 400: Processor. Detailed implementation manners
[0053] To make the objectives, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.
[0054] Next, refer to Figures 1 to 21 Describe the modeling method, system and readable storage medium of the surface ship power system in some embodiments of the present application.
[0055] As Figure 1As shown in the figure, an embodiment of the first aspect of the present application provides a modeling method for a water surface ship power system, including the following steps:
[0056] Step S102: Construct a power system model library according to the one-dimensional model expression rules, parameter variable naming rules, code writing rules, and model testing rules;
[0057] Step S104: Perform multi-level decomposition on the power system to obtain multiple levels;
[0058] Step S106: Determine the modeling tasks for each level, where the modeling tasks include interface definition and confirmation of equipment modeling parameters;
[0059] Step S108: Construct a thermal system model through Modelica language based on the power system model library. The thermal system model includes a basic-level model, a general-level model, and an equipment-level model;
[0060] Step S110: Obtain test data, and correct the thermal system model according to the test data to obtain a corrected thermal system model.
[0061] According to the modeling method for the water surface ship power system provided by this embodiment, first, a power system model library is constructed according to the one-dimensional model expression rules, parameter variable naming rules, code writing rules, and model testing rules. Then, multi-level decomposition is performed on the power system to obtain multiple levels. The modeling tasks for each level are determined, and the modeling tasks include interface definition and confirmation of equipment modeling parameters. Then, a thermal system model is constructed through Modelica language based on the power system model library. The thermal system model includes a basic-level model, a general-level model, and an equipment-level model. Finally, test data is obtained, and the thermal system model is corrected according to the test data to obtain a corrected thermal system model. By using Modelica language to establish a model library with general models and parameter settings, all component models in the model library can be conveniently and flexibly set with parameters, and the parameters can be set in ways such as numerical values, expressions, functions, associated with other model parameters, or logical statements. Starting from the project demonstration stage, to the project design stage, the technical design stage, and until the construction design stage, throughout the entire system design cycle, the simulation model is corrected with test data, combining theoretical design with test data, improving the model accuracy, shortening the system design and development time, saving design costs, and having good observability, controllability, safety, and portability.
[0062] As Figure 2 shown, according to a modeling method for a water surface ship power system proposed in an embodiment of the present application, a power system model library is constructed according to the one-dimensional model expression rules, parameter variable naming rules, code writing rules, and model testing rules, including the following steps:
[0063] Step S202: Obtain device model components, which include a steam turbine model, a pump model, a pipeline model, a heat exchanger model, a valve model, a sensor model, and a medium model;
[0064] Step S204: Build a device model based on the device model components;
[0065] Step S206: Build a subsystem based on the device model;
[0066] Step S208: Build a power system based on the subsystem.
[0067] In this embodiment, a power system model library is constructed according to the one-dimensional model expression rules, parameter variable naming rules, code writing rules, and model testing rules. Specifically, device model components are developed first based on the requirement indicators, working principle, structural principle, and theoretical formulas of the system. The components mainly include a steam turbine model, a pump model, a pipeline model, a heat exchanger model, a valve model, a sensor model, a medium model, etc. Through the developed components, each device model is built, and then each subsystem is gradually built, such as a steam system, a condensate system, a feed water system, and a lubricating oil system, etc. Then, the power system is built from each subsystem. Through a modular and hierarchical solution idea, combined with the logical relationship between each module and each design stage, the overall framework of the system architecture implementation is built to achieve the general design of the power system.
[0068] As Figure 3 shown, according to a method for modeling a surface ship power system in an embodiment proposed by the present application, a thermal system model is constructed through the Modelica language based on the power system model library, including the following steps:
[0069] Step S302: Perform individual modeling on multiple device models according to the power system model library, and connect the device models to form a subsystem model;
[0070] Step S304: Connect the subsystem models to build a full-system model;
[0071] Step S306: Simulate the device model components to obtain component simulation result data;
[0072] Step S308: Simulate the device models to obtain device model simulation result data.
[0073] In this embodiment, a thermal system model is constructed through the Modelica language based on the power system model library. Specifically, according to the model library architecture, individual modeling is performed on each device one by one, and then the device models are connected to form a subsystem model. Finally, the subsystem models are connected to build a full-system model. The device model components are simulated to obtain component simulation result data, and the device models are simulated to obtain device model simulation result data.
[0074] As Figure 4 shown, a method for modeling a water surface ship power system according to an embodiment of the present application, obtaining test data, and correcting a thermal system model according to the test data to obtain a corrected thermal system model, includes the following steps:
[0075] Step S402: Obtain test data and design document data;
[0076] Step S404: Verify the component simulation result data and the equipment model simulation result data according to the test data and the design document data to obtain a verification result.
[0077] In this embodiment, obtaining test data, correcting a thermal system model according to the test data to obtain a corrected thermal system model, specifically, first obtaining test data and design document data. Then verify the component simulation result data and the equipment model simulation result data according to the test data and the design document data to obtain a verification result, thereby improving the model accuracy.
[0078] In some embodiments, optionally, the basic-level model includes one or a combination of the following: a medium physical property model library, a boundary model library, the general-level model includes one or a combination of the following: a pipeline model, a valve model, a steam turbine model, and the equipment-level model includes one or a combination of the following: a turbopump model, a condenser model. The three-level and extensible model library constitutes a set of model elements available for calling in the model layer.
[0079] In some embodiments, optionally, the power system model library includes one or a combination of the following: an equipment model library, a general model library, a medium model library, a sensor model library, a boundary model library, an interface model.
[0080] In some embodiments, optionally, the interfaces in the interface definition include one or a combination of the following: a C / C++ interface, matlab / Simulink, a CATIA / AutoCAD interface, and an Ansys Fluent interface.
[0081] As Figure 5As shown in the figure, an embodiment of the second aspect of the present application provides a water surface ship power system modeling system 10, including: a model library construction module 110, configured to construct a power system model library according to one-dimensional model expression rules, parameter variable naming rules, code writing rules, and model testing rules; a decomposition module 120, configured to perform multi-level decomposition on the power system to obtain multiple levels; a modeling task determination module 130, configured to determine the modeling tasks for each level, where the modeling tasks include interface definition and confirmation of equipment modeling parameters; a model construction module 140, configured to construct a thermal system model through the Modelica language based on the power system model library, where the thermal system model includes a basic-level model, a general-level model, and an equipment-level model; and a calibration module 150, configured to obtain test data and calibrate the thermal system model according to the test data to obtain a calibrated thermal system model.
[0082] According to the water surface ship power system modeling system 10 provided in this embodiment, it includes a model library construction module 110, a decomposition module 120, a modeling task determination module 130, a model construction module 140, and a calibration module 150. Among them, the model library construction module 110 is configured to construct a power system model library according to one-dimensional model expression rules, parameter variable naming rules, code writing rules, and model testing rules. The decomposition module 120 is configured to perform multi-level decomposition on the power system to obtain multiple levels. The modeling task determination module 130 is configured to determine the modeling tasks for each level, where the modeling tasks include interface definition and confirmation of equipment modeling parameters. The model construction module 140 is configured to construct a thermal system model through the Modelica language based on the power system model library, where the thermal system model includes a basic-level model, a general-level model, and an equipment-level model. The calibration module 150 is configured to obtain test data and calibrate the thermal system model according to the test data to obtain a calibrated thermal system model. By using the Modelica language to establish a model library with general models and parameter settings, all component models in the model library can be conveniently and flexibly parameterized. Parameter setting can be performed numerically, by expression, function, in a manner related to other model parameters, or by logical statements. Starting from the project demonstration stage, through the project design stage, the technical design stage, and until the construction design stage, throughout the entire system design cycle, the simulation model is calibrated with test data, combining theoretical design with test data, improving the model accuracy, shortening the system design and development time, saving design costs, and having good observability, controllability, safety, and portability.
[0083] Such as Figure 6As shown in the figure, an embodiment of the third aspect of the present application provides a modeling system 20 for a water surface ship power system, including: a memory 300 and a processor 400. Among them, a program or instruction that can run on the processor 400 is stored on the memory 300. When the processor 400 executes the program or instruction, the steps of the modeling method for the water surface ship power system in any one of the embodiments of the first aspect are implemented. Therefore, it has the technical effects of any one of the above-mentioned first aspect embodiments, which will not be elaborated here.
[0084] An embodiment of the fourth aspect of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the modeling method for the water surface ship power system in any one of the embodiments of the first aspect are implemented. Therefore, it has the technical effects of any one of the above-mentioned first aspect embodiments, which will not be elaborated here.
[0085] As Figures 7 to 21 shown, according to the modeling method for the water surface ship power system provided by a specific embodiment of the present application, by combining the Modelica language simulation technology system and the power system design method, a general object-oriented declarative system modeling method applicable to the power system is formed, which is used to guide the modeling process of the general non-causal model library for the power system. On this basis, combined with the requirements of modeling and simulation, a general equipment model library for the power system is developed, which is used to realize the construction, management and simulation analysis of equipment component models and system models. This method can not only guide the design of the water surface ship power system, shorten the development cycle and save design funds, but also has good observability, controllability, safety and portability. It has become the basis for improving the existing water surface ship power system solutions and developing new power systems, and has gradually become the main means for researching the dynamic characteristics of ship power systems.
[0086] The overall technical framework of the integrated design modeling of the power system is as Figure 7 shown. It can be divided into three levels: the model layer, the function layer and the application layer according to the hierarchical structure. Among them, the function layer includes four modules: the graphical modeling module, the simulation calculation module, the post-processing module and the external interface module.
[0087] 1) Model layer:
[0088] The model layer is a power system model library developed based on general standards and specifications. These model libraries are used to construct various thermal systems and are the basis for carrying out analysis and calculations such as heat balance. The Modelica language technology is used to develop new model libraries, and the subsystems constructed in this way are easier to integrate in this architecture. For existing models (such as those expressed in C / C++), they are modified according to the modeling and expression specifications to fit the final system integration.
[0089] Under the unified constraints of standards such as the one-dimensional model expression rules, parameter variable naming rules, code writing rules, and model testing rules formulated by the model layer, a power system model library is constructed according to the composition characteristics of the ship power system. The architecture is shown in Figure 2 . The model library constructs a basic-level model library represented by the medium physical property model library, etc., constructs a general-level model library represented by the pipeline model library, etc., and constructs an equipment-level model library represented by the turbopump unit, etc. The three-level and expandable model library constitutes the set of model elements that can be called by the model layer.
[0090] 2) Function layer:
[0091] It includes a graphical modeling module, a simulation calculation module, a post-processing module, and an external interface module.
[0092] Graphical modeling module: Provides an intuitive graphical modeling method to assemble the equipment models in the power system model library into a thermal system model. Provides model library management and parameter configuration functions.
[0093] Simulation calculation module: Supports the inspection, debugging, and solution of the system model, and controls the calculation process.
[0094] Post-processing module: Provides functions for managing calculation results, displaying result curves, and generating calculation reports.
[0095] External interface module: Includes C / C++ interfaces, matlab / Simulink, CATIA / AutoCAD interfaces, and Ansys Fluent interfaces.
[0096] 3) Application layer:
[0097] The power system modeling and simulation software can be applied in various scenarios such as auxiliary design, design simulation, analysis and optimization, index verification, and result analysis.
[0098] For the design of the power system, first, the system is decomposed from top to bottom. Starting from system description, system decomposition, interface definition, subsystem decomposition, to the final device modeling and parameter confirmation, the modeling tasks are clarified level by level from the system level. After clarifying the modeling tasks at each level, in a bottom-up manner, using the modeling method based on the Modelica language, the model is divided into three levels. They are the basic-level model, the general-level model, and the device-level model. The basic-level model contains the most fundamental and general model libraries, including the medium physical property model library, boundary model library, etc.; the general-level model is the general device model built using the basic-level model, including pipeline models, valve models, steam turbine models, etc.; the device-level model is further composed by combining the general-level models according to the specific device principles, including steam turbine pump models, condenser models, etc. The entire power system device model library consists of these three parts. Further, individual devices are combined into subsystems, such as the steam system, condensate system, feed water system, etc. Finally, individual subsystems are assembled into the power system. The specific decomposition diagram is as shown in Figure 8 shown.
[0099] This model library has the following characteristics:
[0100] 1) Forward thinking, which can decompose the complex power system structure layer by layer until the bottom-level medium;
[0101] 2) An open modeling environment that supports model structure optimization and expansion;
[0102] 3) The models are all parametrically set, supporting the modification of the model by changing parameters;
[0103] 4) After the model is built, experimental data can be used to correct the model, combining theoretical design with experimental data to improve the model accuracy.
[0104] For the general design of the power system, according to the modular and hierarchical solution ideas, combined with the logical relationships between each module and each design stage, the overall framework for implementing the system architecture is built. For the implementation process of the model library, first, device model components are developed based on the required indicators, working principles, structural principles, and theoretical formulas of the system. The components mainly include steam turbine models, pump models, pipeline models, heat exchanger models, valve models, sensor models, medium models, etc. Through the developed components, each device model is built, and then each subsystem is gradually built, such as the steam system, condensate system, feed water system, and lubricating oil system, etc. Then, the power system is built from each subsystem.
[0105] In the project demonstration phase and the project design phase, basic-level and general-level models can be used to build a simple system model to verify the system principle. In the technical design phase, according to the equipment design scheme, equipment-level models can be used to refine the system architecture. In the construction design phase, the built system model is verified based on the existing equipment test data, system operation data, and accumulated simulation data. Thus, a model library can be developed to run through the entire system design cycle.
[0106] The development process of the model library is as Figure 9 shown. The development process of model components is as Figure 10 shown. The schematic diagram of model results is as Figure 11 shown. The verification of model components is as Figure 12 shown.
[0107] Specifically, the modeling process of the power system is as Figure 9 shown.
[0108] (1) Top-down decomposition of the system:
[0109] Analyze the simulation verification objectives. First, decompose the target system into several subsystems, and then decompose each subsystem into several devices to obtain the list of all devices that need to be established.
[0110] (2) Architecture design of the model library:
[0111] Generalize and structurally organize all the devices to conduct the architecture design of the model library.
[0112] The power system and equipment model library are shown in Figure 13 . The model library includes an equipment model library, a general model library, a medium model library, a sensor model library, a boundary model library, an interface model library, etc.
[0113] (3) Bottom-up construction of the model:
[0114] According to the model library architecture, model each device one by one, then connect the device models to form a subsystem model, and finally connect the subsystem models to build a full-system model for system simulation. The decomposition of the power system and equipment model library is shown in Figure 14 . Taking the equipment model library as an example, the equipment model library includes models of steam turbine generators, steam turbine pump sets, thermal deaerators, electric pump sets, etc. The general model library includes models of steam turbines, pumps, heat exchangers, volume modules, pipelines, valves, etc. The steam turbine model is further decomposed into a general steam turbine model, a main steam turbine (with a steam-water separator) model, etc.
[0115] Taking the condensate feed water system simulation as an example, the main equipment of the condensate feed water system includes condensers, turbine condensate pumps, regulating valves, pipeline accessories, etc. First, find the turbine model and the centrifugal pump model from the general model library, as shown in Figure 15 and Figure 16 . Combine the two models to form the turbine condensate pump model, as shown in Figure 17 . Then select the condenser model and the regulating valve model, and combine them with the turbine condensate pump model through pipeline models, interface models, and boundary models to form the condensate feed water system model, as shown in Figure 18 .
[0116] (4) Model testing and verification:
[0117] During the bottom-up construction process of the model, model testing and verification must be carried out for equipment models, subsystem models, and system models at each level. Taking the condensate feed water system model as an example, the test results of the turbine model are shown in Figure 19 , the test results of the centrifugal pump model are shown in Figure 20 , and the test results of the turbine condensate pump model are shown in Figure 21 .
[0118] In summary, the beneficial effects of the embodiments of the present application are as follows:
[0119] 1. Use Modelica language to establish a model library with general models and parameter settings. All component models in the model library can be conveniently and flexibly set with parameters, and the parameters can be set by means of numerical values, expressions, functions, associated with other model parameters, or logical statements.
[0120] 2. Starting from the scheme demonstration, to the scheme design stage, the technical design stage, and until the construction design stage, it runs through the entire system design cycle.
[0121] 3. Calibrate the simulation model with experimental data, combine theoretical design with experimental data, and improve the model accuracy.
[0122] 4. Shorten the system design and development time.
[0123] In the present application, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance; the term "multiple" means two or more, unless otherwise clearly defined. Terms such as "installation", "connection", "connection", and "fixation" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; "connection" can be a direct connection or an indirect connection through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific circumstances.
[0124] In the description of the present application, it should be understood that the orientation or positional relationship indicated by terms such as "upper", "lower", "front", "rear", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the system or module referred to must have a specific direction, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation to the present application.
[0125] In the description of this specification, the description of terms such as "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or instance. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0126] The above are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
Claims
1. A method for modeling a water surface ship power system, characterized in that, Including: Construct a dynamic system model library according to the one-dimensional model expression rules, parameter variable naming rules, code writing rules, and model testing rules; Perform multi-level decomposition on the dynamic system to obtain multiple levels; Determine the modeling tasks for each of the said levels, and the modeling tasks include interface definition and confirmation of equipment modeling parameters; Construct a thermal system model through Modelica language based on the said dynamic system model library, and the thermal system model includes a basic-level model, a general-level model, and an equipment-level model; Obtain test data, and calibrate the thermal system model according to the test data to obtain a calibrated thermal system model.
2. The method for modeling a water surface ship power system according to claim 1, characterized in that The constructing of the dynamic system model library according to the one-dimensional model expression rules, parameter variable naming rules, code writing rules, and model testing rules includes: Obtain equipment model components, and the equipment model components include a steam turbine model, a pump model, a pipeline model, a heat exchanger model, a valve model, a sensor model, and a medium model; Build an equipment model according to the equipment model components; Build a subsystem according to the equipment model; Build a dynamic system according to the subsystem.
3. The method for modeling a water surface ship power system according to claim 2, wherein The constructing of the thermal system model through Modelica language based on the dynamic system model library includes: Perform individual modeling on multiple equipment models according to the dynamic system model library, and connect the equipment models to form a subsystem model; Connect the subsystem models to construct a full-system model; Simulate the equipment model components to obtain component simulation result data; Simulate the equipment model to obtain equipment model simulation result data.
4. The modeling method of the water surface ship power system according to claim 3, characterized in that The obtaining of test data and calibrating the thermal system model according to the test data to obtain a calibrated thermal system model includes: Obtain test data and design file data; Verify the component simulation result data and the equipment model simulation result data according to the test data and the design file data to obtain a verification result.
5. The method for modeling a surface ship power system according to any one of claims 1 to 4, characterized in that The basic-level model includes one or a combination of the following: a medium physical property model library, a boundary model library, the general-level model includes one or a combination of the following: a pipeline model, a valve model, a steam turbine model, and the equipment-level model includes one or a combination of the following: a turbopump model, a condenser model.
6. The method for modeling a surface ship power system according to any one of claims 1 to 4, characterized in that The dynamic system model library includes one or a combination of the following: an equipment model library, a general model library, a medium model library, a sensor model library, a boundary model library, and an interface model.
7. The method for modeling a surface ship power system according to any one of claims 1 to 4, characterized in that The interfaces in the interface definition include one or a combination of the following: C / C++ interface, matlab / Simulink, CATIA / AutoCAD interface, and Ansys Fluent interface.
8. A modeling system for a water surface ship power system, characterized in that, Including: A model library construction module (110) for constructing a dynamic system model library according to one-dimensional model expression rules, parameter variable naming rules, code writing rules, and model testing rules; A decomposition module (120) for performing multi-level decomposition on a dynamic system to obtain multiple levels; A modeling task determination module (130) for determining the modeling tasks for each of the said levels, the modeling tasks including interface definition and equipment modeling parameter confirmation; A model construction module (140) for constructing a thermal system model in Modelica language based on the dynamic system model library, the thermal system model including a basic-level model, a general-level model, and an equipment-level model; A calibration module (150) for obtaining test data and calibrating the thermal system model according to the test data to obtain a calibrated thermal system model.
9. A modeling system for a water surface ship power system, characterized in that, Comprising: A memory (300) and a processor (400), wherein a program or instruction that can run on the processor (400) is stored on the memory (300), and when the processor (400) executes the program or the instruction, the steps of the surface ship power system modeling method according to any one of claims 1 to 7 are implemented.
10. A readable storage medium, on which a program or instructions are stored, characterized in that, When the program or the instruction is executed by the processor, the steps of the surface ship power system modeling method according to any one of claims 1 to 7 are implemented.