Modelica model generation method, device, terminal and storage medium for products

By converting the SYSML basic model to the Modelica basic model and defining the Modelica model library of the product, the problem of low efficiency of complex product models has been solved, and the rapid design of the product and the series of model libraries.

CN114021279BActive Publication Date: 2025-01-28SUZHOU TONGYUAN SOFT CONTROL INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111310477.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-05
Publication Date
2025-01-28
Estimated Expiration
2041-11-05

AI Technical Summary

Technical Problem

In the design process of complex products, the existing technology has problems of inefficiency, making it difficult to quickly and effectively establish a model of complex products.

Method used

By determining the SYSML basic model corresponding to the product, and using the preset product model library and SYSML basic model to generate the Modelica basic model corresponding to the product, and then determine the product at least one Modelica target model of the product based on the Modelica basic model.

Benefits of technology

Improve the efficiency of model generation, realize the rapid design of the product, and simplify the establishment of complex product models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114021279B_ABST
    Figure CN114021279B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, terminal and storage medium for generating a Modelica model of a product, including: determining a SysML basic model corresponding to a product; using a preset product model library and a SysML basic model to generate a Modelica basic model corresponding to the product; and determining at least one Modelica target model corresponding to the product according to the Modelica basic model. The present invention converts the SysML basic model of a product into a Modelica basic model, defines a Modelica model library of the product, forms a single product or a serialized product by setting relevant parameters in the Modelica model library, improves the efficiency of model generation, and realizes rapid product design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of product design, and in particular to a method, device, terminal and storage medium for generating a Modelica model of a product. Background Art

[0002] In industrial production, it is necessary to build product models to improve production efficiency. However, it is relatively difficult to build models for complex products. How to effectively build models for complex products has become an urgent problem to be solved.

[0003] Currently, in the design process of complex products, designers usually define system functions and components based on user needs, and verify whether the product model meets user needs through calculation and simulation.

[0004] However, there is a problem of low efficiency in establishing product models using the above method. Summary of the invention

[0005] The main purpose of this invention is to provide a method, device, terminal and storage medium for generating a Modelica model of a product, so as to solve the problem of low efficiency in establishing product models in related technologies.

[0006] In order to achieve the above objectives, in a first aspect, the present application provides a method for generating a Modelica model of a product, comprising:

[0007] Determine the SysML basic model corresponding to the product;

[0008] Generate a Modelica basic model corresponding to the product by using a preset product model library and a SysML basic model, wherein the preset product model library and the Modelica basic model corresponding to the product are in a corresponding relationship;

[0009] According to the Modelica basic model, at least one Modelica target model corresponding to the product is determined.

[0010] In a possible implementation, a preset product model library and a SysML basic model are used to generate a Modelica basic model corresponding to the product, including:

[0011] Extracting the framework of the SysML basic model, and using the first preset algorithm and the framework of the SysML basic model to generate the framework of the Modelica basic model corresponding to the product;

[0012] Based on the framework of the Modelica basic model corresponding to the product, the preset product model library and the SysML basic model, the Modelica basic model corresponding to the product is generated.

[0013] In a possible implementation, based on the framework of the Modelica basic model corresponding to the product, the preset product model library and the SysML basic model, the Modelica basic model corresponding to the product is generated, including:

[0014] Determine the mapping relationship between the SysML basic model and the preset product model library;

[0015] Extracting first design information corresponding to the SysML basic model, and determining second design information corresponding to the Modelica basic model according to the mapping relationship and the first design information;

[0016] Based on the framework of the Modelica basic model and the second design information, a Modelica basic model corresponding to the product is generated.

[0017] In a possible implementation, the first design information includes at least first component information, first interface information, first interface relationship information, and first parameter relationship information, and the second design information includes at least second component information, second interface information, second interface relationship information, and second parameter relationship information;

[0018] Extracting the first design information corresponding to the SysML basic model, and determining the second design information corresponding to the Modelica basic model according to the mapping relationship and the first design information, including:

[0019] Extracting first component information, first interface information, first interface relationship information, and first parameter relationship information corresponding to the SysML basic model;

[0020] The second component information, the second interface information, the second interface relationship information and the second parameter relationship information are determined according to the mapping relationship, the first component information, the first interface information, the first interface relationship information and the first parameter relationship information.

[0021] In a possible implementation, determining at least one Modelica target model corresponding to the product according to the Modelica base model includes:

[0022] Adjust the product parameter values ​​in the preset product model library, and obtain a Modelica target model corresponding to the product based on the Modelica basic model and the product parameter values;

[0023] or

[0024] Based on the second preset algorithm and the Modelica basic model, a plurality of Modelica target models corresponding to the product are obtained.

[0025] In a possible implementation, based on the second preset algorithm and the Modelica basic model, multiple Modelica target models corresponding to the product are obtained, including:

[0026] The product spectrum data is called, and based on the product spectrum data and the Modelica basic model, multiple Modelica target models corresponding to the product are obtained.

[0027] In a possible implementation, after determining at least one Modelica target model corresponding to the product according to the Modelica base model, the method further includes:

[0028] Simulate and solve at least one Modelica model to obtain simulation results.

[0029] In a second aspect, an embodiment of the present invention provides a device for generating a Modelica model of a product, comprising:

[0030] The first model determination module is used to determine the SysML basic model corresponding to the product;

[0031] The second model determination module is used to generate a Modelica basic model corresponding to the product by using a preset product model library and a SysML basic model, wherein the preset product model library corresponds to the Modelica basic model corresponding to the product;

[0032] The target model determination module is used to determine at least one Modelica target model corresponding to the product according to the Modelica basic model.

[0033] In a third aspect, an embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method for generating a Modelica model of any of the above products are implemented.

[0034] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for generating a Modelica model of any of the above products are implemented.

[0035] The embodiment of the present invention provides a method, device, terminal and storage medium for generating a Modelica model of a product, including: determining a SysML basic model corresponding to the product, then using a preset product model library and the SysML basic model to generate a Modelica basic model corresponding to the product, and then determining at least one Modelica target model corresponding to the product according to the Modelica basic model. The present invention converts the SysML basic model of the product into a Modelica basic model, defines a Modelica model library of the product, and forms a single product or a serialized product by setting relevant parameters in the Modelica model library, thereby improving the efficiency of model generation and realizing rapid design of products. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The schematic embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application. In the drawings:

[0037] Figure 1 It is a flow chart of a method for generating a Modelica model of a product provided by an embodiment of the present invention;

[0038] Figure 2 is a schematic diagram of a visual display selection interface of a target model provided by an embodiment of the present invention;

[0039] Figure 3 is a schematic diagram of a display interface generated by multiple Modelica target models provided by an embodiment of the present invention;

[0040] Figure 4 It is a structural schematic diagram of a Modelica model generation device for a product provided by an embodiment of the present invention;

[0041] Figure 5 is a schematic diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein.

[0044] It should be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0045] It should be understood that in the present invention, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0046] It should be understood that in the present invention, "plurality" refers to two or more than two. "And / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.

[0047] It should be understood that in the present invention, "B corresponding to A", "B corresponding to A", "A corresponds to B" or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based only on A, but B can also be determined based on A and / or other information. A and B match when the similarity between A and B is greater than or equal to a preset threshold.

[0048] Depending on the context, "if" as used herein may be interpreted as "when" or "when" or "in response to determining" or "in response to detecting."

[0049] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0050] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0051] In one embodiment, Figure 1 As shown, a method for generating a Modelica model of a product is provided, comprising the following steps:

[0052] Step S101: Determine the SysML basic model corresponding to the product;

[0053] Step S102: Generate a Modelica basic model corresponding to the product using a preset product model library and a SysML basic model;

[0054] Step S103: Determine at least one Modelica target model corresponding to the product according to the Modelica basic model.

[0055] Among them, the preset product model library and the Modelica basic model corresponding to the product are in a corresponding relationship. The preset product model library is a set of product model libraries defined based on the framework of the Modelica basic model. The product model library includes the name of the model and the parameters of the model. The name and annotation of the model are the English name and Chinese name of the product, and the parameters of the model are the parameters of the product, such as: defining weight to represent the weight of the product. Through the Modelica inheritance relationship syntax, the subclass model library of the product can be defined. For example: the parent class model (the basic template corresponding to the product) Motor defines weight, power consumption, and heat consumption; the subclass model XYZ_Motor inherits the parent model and has quantity, power consumption, and heat consumption parameters. There is no need to define the above parameters, just set the product parameter values.

[0056] Specifically, firstly, a SysML basic model corresponding to a certain product is established, and then a model library of this product (i.e., the preset product model library) is defined based on the framework of the Modelica basic model. Then, the Modelica basic model corresponding to the product is generated through the preset product model library and the SysML basic model. Finally, at least one Modelica target model corresponding to the product is determined according to the Modelica basic model.

[0057] The embodiment of the present invention provides a method for generating a Modelica model of a product, including: determining a SysML basic model corresponding to the product, then using a preset product model library and the SysML basic model to generate a Modelica basic model corresponding to the product, and then determining at least one Modelica target model corresponding to the product according to the Modelica basic model. The present invention converts the SysML basic model of the product into a Modelica basic model, defines a Modelica model library of the product, forms a single product or a serialized product by setting relevant parameters in the Modelica model library, improves the efficiency of model generation, and realizes rapid design of products.

[0058] In one embodiment, step S102 includes:

[0059] Step S201: extracting the framework of the SysML basic model, and using the first preset algorithm and the framework of the SysML basic model to generate the framework of the Modelica basic model corresponding to the product.

[0060] Specifically, we first need to establish a SysML basic model corresponding to a product, where the SysML basic model needs to define the product's requirements, indicators, constraints, structural components, and interface relationships between components. Then, we extract the framework of the SysML basic model (i.e., framework model) from the SysML basic model, and then convert the product from the framework of the SysML basic model to the framework of the Modelica basic model.

[0061] Step S202: Generate a Modelica basic model corresponding to the product based on the framework of the Modelica basic model corresponding to the product, a preset product model library and a SysML basic model.

[0062] Specifically, generating the Modelica basic model corresponding to the product includes: determining the mapping relationship between the SysML basic model and the preset product model library; extracting the first design information corresponding to the SysML basic model, and determining the second design information corresponding to the Modelica basic model based on the mapping relationship and the first design information; generating the Modelica basic model corresponding to the product based on the framework of the Modelica basic model and the second design information.

[0063] Furthermore, since the first design information includes at least first component information, first interface information, first interface relationship information and first parameter relationship information, and the second design information includes at least second component information, second interface information, second interface relationship information and second parameter relationship information, generating the Modelica basic model corresponding to the product further includes: determining the mapping relationship between the SysML basic model and the preset product model library; extracting the first component information, first interface information, first interface relationship information and first parameter relationship information corresponding to the SysML basic model; determining the second component information, second interface information, second interface relationship information and second parameter relationship information based on the mapping relationship, the first component information, the first interface information, the first interface relationship information and the first parameter relationship information; generating the Modelica basic model corresponding to the product based on the framework of the Modelica basic model and the second component information, the second interface information, the second interface relationship information and the second parameter relationship information.

[0064] The following takes the power supply and distribution subsystem as an example to explain the process of generating the Modelica basic model corresponding to the power supply and distribution subsystem:

[0065] The basic model design of the power supply and distribution subsystem is implemented in SysML language. The framework of the SysML basic model of the power supply and distribution subsystem is converted into the framework of the Modelica basic model of the power supply and distribution subsystem based on the code conversion method, and then the Modelica basic model is filled and co-simulated based on the framework of the Modelica basic model of the power supply and distribution subsystem. Among them, the code conversion is mainly based on the XMI standard specification, parsing and extracting the structural composition, interface and interface relationship, parameter relationship and other information related to the SysML basic model of the power supply and distribution subsystem (i.e., the first design information), and the first design information is mapped and converted to generate the corresponding model elements of the Modelica of the power supply and distribution subsystem (i.e., the second design information).

[0066] Since there is a one-to-one correspondence between the SysML basic model of the power supply and distribution subsystem and the Modelica simulation model of the power supply and distribution subsystem (i.e., the Modelica basic model), based on the idea of ​​mapping code conversion and the mapping relationship between the SysML basic model of the power supply and distribution subsystem and the preset power supply and distribution subsystem model library, by extracting the design result information (layout, interface connection relationship, etc., i.e., the first design information) of the SysML basic model of the power supply and distribution subsystem, according to the Modelica syntax rules, the model objects are instantiated item by item to generate the corresponding system simulation model (i.e., the Modelica basic model of the power supply and distribution subsystem).

[0067] In one embodiment, step S103 includes:

[0068] Adjust the product parameter values ​​in the preset product model library, and obtain a Modelica target model corresponding to the product based on the Modelica basic model and the product parameter values.

[0069] Figure 2 It is a visual display selection interface for the target model. By parsing the Modelica basic model, the number of products and the parameter value of each product can be set, and the target product and the Modelica target model corresponding to the target product can be obtained.

[0070] In another embodiment, step S103 includes:

[0071] Based on the second preset algorithm and the Modelica basic model, a plurality of Modelica target models corresponding to the product are obtained.

[0072] Specifically, obtaining multiple Modelica target models corresponding to the product includes: calling product spectrum data, and obtaining multiple Modelica target models corresponding to the product based on the product spectrum data and the Modelica basic model.

[0073] Figure 3 The display interface generated for multiple Modelica target models is based on the product subcategory (spectrum) generation function, integrating the analysis and generation algorithms of product platformization, modularization, and serialization spectra. By calling the product spectrum data, multiple product subcategory simulation models (i.e., multiple Modelica target models corresponding to multiple product subcategories) and parameter sequences can be obtained, and displayed through the interface for designers to select.

[0074] In one embodiment, after step S103, the method further includes:

[0075] Simulate and solve at least one Modelica model to obtain simulation results.

[0076] Specifically, the selected product model parameters and equations are injected into the generated Modelica basic model. Based on the compilation and solving function of Modelica parameterized selection, the Modelica target model is simulated and solved, and simulation verification can be performed.

[0077] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0078] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.

[0079] Figure 4The schematic diagram of the structure of a Modelica model generation device for a product provided by an embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown. The Modelica model generation device for a product includes a first model determination module 41, a second model determination module 42 and a target model determination module 43, which are specifically as follows:

[0080] A first model determination module 41 is used to determine the SysML basic model corresponding to the product;

[0081] A second model determination module 42 is used to generate a Modelica basic model corresponding to the product by using a preset product model library and a SysML basic model, wherein the preset product model library corresponds to the Modelica basic model corresponding to the product;

[0082] The target model determination module 43 is used to determine at least one Modelica target model corresponding to the product according to the Modelica basic model.

[0083] In a possible implementation, the second model determination module 42 includes:

[0084] The model framework determination submodule is used to extract the framework of the SysML basic model and generate the framework of the Modelica basic model corresponding to the product by using the first preset algorithm and the framework of the SysML basic model;

[0085] The second model determination submodule is used to generate the Modelica basic model corresponding to the product based on the framework of the Modelica basic model corresponding to the product, the preset product model library and the SysML basic model.

[0086] In a possible implementation, the second model determination submodule includes:

[0087] A mapping relationship determination unit, used to determine the mapping relationship between the SysML basic model and the preset product model library;

[0088] A design information determination unit, configured to extract first design information corresponding to the SysML basic model, and determine second design information corresponding to the Modelica basic model according to the mapping relationship and the first design information;

[0089] The second model determination unit is used to generate a Modelica basic model corresponding to the product based on the framework of the Modelica basic model and the second design information.

[0090] In a possible implementation, the first design information includes at least first component information, first interface information, first interface relationship information, and first parameter relationship information, and the second design information includes at least second component information, second interface information, second interface relationship information, and second parameter relationship information;

[0091] The design information determination unit includes:

[0092] An information extraction subunit, used to extract first component information, first interface information, first interface relationship information and first parameter relationship information corresponding to the SysML basic model;

[0093] The design information determination subunit is used to determine the second component information, the second interface information, the second interface relationship information and the second parameter relationship information according to the mapping relationship, the first component information, the first interface information, the first interface relationship information and the first parameter relationship information.

[0094] In a possible implementation, the target model determination module 43 includes:

[0095] The first target model determination submodule is used to adjust the product parameter values ​​in the preset product model library, and obtain a Modelica target model corresponding to the product based on the Modelica basic model and the product parameter values;

[0096] or

[0097] The second target model determination submodule is used to obtain multiple Modelica target models corresponding to the product based on the second preset algorithm and the Modelica basic model.

[0098] In a possible implementation, the second target model determination submodule includes:

[0099] The second target model determination unit is used to call the product spectrum data and obtain multiple Modelica target models corresponding to the product based on the product spectrum data and the Modelica basic model.

[0100] In a possible implementation, after the target model determination module 43, the following is further included:

[0101] The model simulation module is used to simulate and solve at least one Modelica model to obtain simulation results.

[0102] Figure 5 is a schematic diagram of a terminal provided by an embodiment of the present invention. Figure 5As shown, the terminal 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, the steps in the above-mentioned Modelica model generation method embodiment of each product are implemented, such as Figure 1 Alternatively, when the processor 50 executes the computer program 52, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 4 Functions of the modules / units 41 to 43 are shown.

[0103] The present invention also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided in the above-mentioned various embodiments.

[0104] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, abbreviated as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0105] The present invention also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements the methods provided in the above various embodiments.

[0106] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0107] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A method for generating a Modelica model of a product, characterized in that: include: Determine the SysML basic model corresponding to the product; Generate a Modelica basic model corresponding to the product by using a preset product model library and the SysML basic model, wherein the preset product model library and the Modelica basic model corresponding to the product are in a corresponding relationship; Determining at least one Modelica target model corresponding to the product according to the Modelica basic model; The using of the preset product model library and the SysML basic model to generate the Modelica basic model corresponding to the product includes: Extracting the framework of the SysML basic model, and using a first preset algorithm and the framework of the SysML basic model to generate a framework of the Modelica basic model corresponding to the product; Generate a Modelica basic model corresponding to the product based on the framework of the Modelica basic model corresponding to the product, the preset product model library and the SysML basic model; The framework of the Modelica basic model corresponding to the product, the preset product model library and the SysML basic model are used to generate the Modelica basic model corresponding to the product, including: Determine the mapping relationship between the SysML basic model and the preset product model library; Extracting first design information corresponding to the SysML basic model, and determining second design information corresponding to the Modelica basic model according to the mapping relationship and the first design information; Based on the framework of the Modelica basic model and the second design information, a Modelica basic model corresponding to the product is generated.

2. The method for generating a Modelica model of a product according to claim 1, characterized in that: The first design information includes at least first component information, first interface information, first interface relationship information and first parameter relationship information, and the second design information includes at least second component information, second interface information, second interface relationship information and second parameter relationship information; The extracting the first design information corresponding to the SysML basic model and determining the second design information corresponding to the Modelica basic model according to the mapping relationship and the first design information includes: Extracting first component information, first interface information, first interface relationship information, and first parameter relationship information corresponding to the SysML basic model; The second component information, the second interface information, the second interface relationship information and the second parameter relationship information are determined according to the mapping relationship, the first component information, the first interface information, the first interface relationship information and the first parameter relationship information.

3. The Modelica model generation method for a product according to claim 2, characterized in that: The step of determining at least one Modelica target model corresponding to the product according to the Modelica basic model comprises: Adjusting the product parameter values ​​in the preset product model library, and obtaining a Modelica target model corresponding to the product based on the Modelica basic model and the product parameter values; or Based on the second preset algorithm and the Modelica basic model, a plurality of Modelica target models corresponding to the product are obtained.

4. The method for generating a Modelica model of a product according to claim 3, characterized in that: The method of obtaining a plurality of Modelica target models corresponding to the product based on the second preset algorithm and the Modelica basic model includes: The product spectrum data is called, and based on the product spectrum data and the Modelica basic model, a plurality of Modelica target models corresponding to the product are obtained.

5. The method for generating a Modelica model of a product according to any one of claims 1 to 4, characterized in that: After determining at least one Modelica target model corresponding to the product according to the Modelica basic model, the method further includes: The at least one Modelica model is simulated and solved to obtain a simulation result.

6. A Modelica model generation device for a product, characterized in that: include: The first model determination module is used to determine the SysML basic model corresponding to the product; A second model determination module is used to generate a Modelica basic model corresponding to the product by using a preset product model library and the SysML basic model, wherein the preset product model library corresponds to the Modelica basic model corresponding to the product; A target model determination module, used for determining at least one Modelica target model corresponding to the product according to the Modelica basic model; The using of the preset product model library and the SysML basic model to generate the Modelica basic model corresponding to the product includes: Extracting the framework of the SysML basic model, and using a first preset algorithm and the framework of the SysML basic model to generate a framework of the Modelica basic model corresponding to the product; Generate a Modelica basic model corresponding to the product based on the framework of the Modelica basic model corresponding to the product, the preset product model library and the SysML basic model; The framework of the Modelica basic model corresponding to the product, the preset product model library and the SysML basic model are used to generate the Modelica basic model corresponding to the product, including: Determine the mapping relationship between the SysML basic model and the preset product model library; Extracting first design information corresponding to the SysML basic model, and determining second design information corresponding to the Modelica basic model according to the mapping relationship and the first design information; Based on the framework of the Modelica basic model and the second design information, a Modelica basic model corresponding to the product is generated.

7. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for generating a Modelica model of the product according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for generating a Modelica model of a product according to any one of claims 1 to 5 are implemented.