Joint simulation method, apparatus and device, and storage medium

By building a dynamic link library and using interface functions for parameter binding, the problem that three-dimensional thermal simulation analysis software in the existing technology cannot be combined with third-party simulation tools is solved, and joint simulation with different simulation tools is realized, and the application scope is expanded.

CN119903569APending Publication Date: 2025-04-29BEIJING RUNKE GENERAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510179931.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-18
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

When implementing joint simulation, existing three-dimensional thermal simulation analysis software requires the use of supporting CoTherm software, and cannot perform joint simulation of models with third-party simulation tools other than CoTherm software supports.

Method used

By calling the user interface library provided by the three-dimensional thermal simulation analysis software, the first and second dynamic link libraries are built, which are used to process model parameters and parse model parameters respectively, realize model parameters binding of different simulation tools, and use interface functions for joint simulation.

Benefits of technology

The combined simulation of three-dimensional thermal simulation analysis software and different simulation tools is realized, expanding the interoperability and application scope of simulation models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119903569A_ABST
    Figure CN119903569A_ABST
Patent Text Reader

Abstract

The invention provides a joint simulation method and device, equipment and a storage medium, and relates to the technical field of simulation analysis. Calling a user interface library provided by the three-dimensional thermal simulation analysis software to obtain a processing program for model parameters in different model control stages, packaging the processing program into an interface function, constructing a first dynamic link library by utilizing the interface function, and importing the first dynamic link library into the three-dimensional thermal simulation analysis software, constructing a second dynamic link library based on the user interface library, constructing a first simulation model in three-dimensional thermal simulation analysis software, constructing a second simulation model in target simulation software, and analyzing model parameters of the first simulation model by using the second dynamic link library to obtain input variables and output variables of the first simulation model, the first simulation model and the second simulation model are bound with the input variable and the output variable of the second simulation model, and finally joint simulation is conducted on the first simulation model and the second simulation model after the input and output variable relation is bound through an interface function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of simulation analysis technology, and in particular to a joint simulation method, apparatus, device and storage medium. Background Art

[0002] At present, when using the three-dimensional thermal simulation analysis TAITherm software for multi-disciplinary joint simulation in China, the technology provided by CoTherm software is adopted to realize the integrated solution of multiple models such as one-dimensional thermal simulation and heat exchange, such as joint optimization of thermal system and control algorithm, driving cycle thermal comfort simulation and thermal management system optimization.

[0003] In the existing simulation process based on the three-dimensional thermal simulation analysis TAITherm software, if you want to achieve joint simulation, you need to use the supporting Cotherm software to achieve simulation interaction with a specific model. For other models other than the third-party simulation tools supported by the CoTherm software, joint simulation of the model cannot be achieved.

[0004] In summary, how to realize the joint simulation of different simulation tools of three-dimensional thermal simulation analysis software is a problem that technical personnel in this field need to solve urgently. Summary of the invention

[0005] In view of this, the present application provides a joint simulation method, apparatus, device and storage medium, aiming to realize the joint simulation of three-dimensional thermal simulation analysis software and different simulation tools.

[0006] In a first aspect, the present application provides a joint simulation method, comprising:

[0007] Call the user interface library provided by the 3D thermal simulation analysis software to process the model parameters at different model control stages;

[0008] Encapsulating the processing program into an interface function; constructing a first dynamic link library using the interface function, and importing the first dynamic link library into the three-dimensional thermal simulation analysis software;

[0009] Based on the user interface library, a second dynamic link library is constructed; the second dynamic link library is used to parse the model parameters;

[0010] Constructing a first simulation model in the three-dimensional thermal simulation analysis software;

[0011] constructing a second simulation model in the target simulation software;

[0012] parsing the model parameters of the first simulation model using the second dynamic link library to obtain input variables and output variables of the first simulation model;

[0013] Binding the input variables and output variables of the first simulation model with the input variables and output variables of the second simulation model to obtain the first simulation model and the second simulation model after binding the input and output variable relationship;

[0014] The interface function in the first dynamic link library is used to perform joint simulation on the first simulation model and the second simulation model after the input and output variable relationships are bound.

[0015] Optionally, before using the interface function in the first dynamic link library to jointly simulate the first simulation model and the second simulation model after the input and output variable relationships are bound, the method further includes:

[0016] Acquire simulation steps of the first simulation model at different model control stages;

[0017] An association relationship between the interface corresponding to the interface function in the first dynamic link library and the simulation step is set.

[0018] Optionally, the step of binding the input variables and output variables of the first simulation model with the input variables and output variables of the second simulation model to obtain the first simulation model and the second simulation model after binding the input and output variable relationship includes:

[0019] Using the second dynamic link library, generating an input and output variable table;

[0020] The input variables and output variables of the first simulation model and the input variables and output variables of the second simulation model are added to the input-output variable table to complete the binding of the input variables and output variables of the first simulation model with the input variables and output variables of the second simulation model, and obtain the first simulation model and the second simulation model after binding the input-output variable relationship.

[0021] Optionally, the using the interface function in the first dynamic link library to perform joint simulation on the first simulation model and the second simulation model after the input and output variable relationship are bound includes:

[0022] determining a model control stage of the first simulation model;

[0023] The interface function corresponding to the model control stage is executed to jointly simulate the first simulation model and the second simulation model after the input-output variable relationship.

[0024] Optionally, the execution of the interface function corresponding to the model control phase includes:

[0025] When the model control phase of the first simulation model is model loading, calling the initialization configuration interface function;

[0026] The initialization configuration interface function is executed to initialize the variables of the first simulation model.

[0027] Optionally, the execution of the interface function corresponding to the model control phase includes:

[0028] When the model control stage of the first simulation model is model operation, calling an input variable acquisition interface function and an output variable acquisition interface function;

[0029] Execute the input variable acquisition interface function to acquire input variables and configure them to the first simulation model;

[0030] The output variable acquisition interface function is executed to acquire the output variable and transmit it to the second simulation model.

[0031] Optionally, the execution of the interface function corresponding to the model control phase includes:

[0032] When the model control stage of the first simulation model is model stop, calling an interface function for obtaining joint simulation results;

[0033] Execute the interface function for obtaining joint simulation results to obtain joint simulation results and release memory resources.

[0034] In a second aspect, the present application provides a joint simulation device, comprising:

[0035] A calling module is used to call the user interface library provided by the three-dimensional thermal simulation analysis software to process the model parameters at different model control stages;

[0036] A packaging module, used to package the processing program into an interface function; a first construction module, used to construct a first dynamic link library using the interface function, and import the first dynamic link library into the three-dimensional thermal simulation analysis software;

[0037] A second construction module is used to construct a second dynamic link library based on the user interface library; the second dynamic link library is used to parse the model parameters;

[0038] A third construction module is used to construct a first simulation model in the three-dimensional thermal simulation analysis software;

[0039] A fourth construction module, used to construct a second simulation model in the target simulation software;

[0040] A parsing module, used to parse the model parameters of the first simulation model using the second dynamic link library to obtain input variables and output variables of the first simulation model;

[0041] An input-output variable binding module, used for binding the input variables and output variables of the first simulation model with the input variables and output variables of the second simulation model, so as to obtain the first simulation model and the second simulation model after binding the input-output variable relationship;

[0042] The joint simulation module is used to utilize the interface function in the first dynamic link library to perform joint simulation on the first simulation model and the second simulation model after the input and output variable relationships are bound.

[0043] In a third aspect, an embodiment of the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a joint simulation method as described in any one of the implementation modes in the first aspect of the embodiment of the present application is implemented.

[0044] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device executes a joint simulation method as described in any one of the implementation methods in the first aspect of the embodiment of the present application.

[0045] The present application provides a joint simulation method, device, equipment and storage medium. When executing the method, the user interface library provided by the three-dimensional thermal simulation analysis software is first called to obtain the processing program for the model parameters in different model control stages, and the processing program is encapsulated into an interface function, then, a first dynamic link library is constructed using the interface function, and the first dynamic link library is imported into the three-dimensional thermal simulation analysis software, and then a second dynamic link library is constructed based on the user interface library, wherein the second dynamic link library is used to parse the model parameters, then, a first simulation model is constructed in the three-dimensional thermal simulation analysis software, and a second simulation model is constructed in the target simulation software, and the model parameters of the first simulation model are parsed using the second dynamic link library to obtain the input variables and output variables of the first simulation model, and the input variables and output variables of the first simulation model are bound to the input variables and output variables of the second simulation model to obtain the first simulation model and the second simulation model after the input and output variable relationship is bound, and finally, the interface function in the first dynamic link library is used to perform joint simulation on the first simulation model and the second simulation model after the input and output variable relationship is bound. That is, according to the user interface library provided by the three-dimensional thermal simulation analysis software, a first dynamic link library for processing model parameters in different model control stages and a second dynamic link library for parsing model parameters are constructed. The model parameters of the first simulation model are first parsed using the second dynamic link library to obtain the input and output variables of the first simulation model, and the input and output variables of the first simulation model are bound to the input and output variables of the second simulation model. Finally, the joint simulation of the first simulation model and the second simulation model can be realized by calling the interface function in the first dynamic link library. In this way, the joint simulation of the three-dimensional thermal simulation analysis software and different simulation tools can be realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 A flowchart of a joint simulation method provided in an embodiment of the present application;

[0048] Figure 2 A schematic diagram of the structure of a joint simulation device provided in an embodiment of the present application;

[0049] Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. The present application provides a method, device, equipment and storage medium based on joint simulation, which are used in the field of simulation analysis technology. The above is only an example and does not limit the application field of the method and device name provided by the present application.

[0051] The three-dimensional thermal simulation analysis software TAITherm can fully simulate heat conduction, heat convection and heat radiation problems. With its professional model library and material library, convenient thermal modeling method and good thermal solution ability, it is widely used in thermal simulation, thermal protection design, thermal feature simulation, etc. in the automotive, industrial automation, rail transportation, heavy machinery and other industries. The CoTherm coupling optimization platform of the same series can support applications such as thermal flow coupling, one-three-dimensional coupling, FMU integration, design optimization, sensitivity analysis, etc. The CoTherm software provides automatic coupling functions between TAITherm and various tools such as Start-CCM+, Fluent, OpenFoam, GT, Simulink, etc., and supports FMU integrated coupling simulation, making the method of using thermal flow coupling to simulate long-term instantaneous heating processes more efficient.

[0052] At present, when using the three-dimensional thermal simulation analysis software TAITherm for multi-disciplinary joint simulation in China, the technology provided by CoTherm software is adopted to realize the integrated solution of multiple models such as one-dimensional thermal simulation and heat exchange, such as joint optimization of thermal system and control algorithm, driving cycle thermal comfort simulation and thermal management system optimization.

[0053] In the existing TAITherm-based simulation process, if you want to achieve joint simulation, you need to use the supporting Cotherm software to achieve simulation interaction with a specific model. For other models other than the third-party simulation tools supported by the CoTherm software, joint simulation of the model cannot be achieved.

[0054] Taking the engine thermal simulation as an example, the engine is composed of the following components: crank-connecting rod structure: composed of the main body group, piston-connecting rod group, crankshaft flywheel group; valve mechanism: composed of valve group and valve transmission group; cooling system: composed of water pump, radiator, fan, thermostat, coolant; lubrication system: composed of oil pump, oil filter, oil filter element, oil radiator and medium lubricating oil; ignition system: composed of battery, generator, ignition coil, spark plug, ignition switch; starting system: composed of battery, starter and ignition switch; fuel supply system: composed of fuel tank, gasoline pump, air filter, intake manifold, high-pressure oil pump, fuel injector, sensor, electronic control unit.

[0055] The integrated thermal management of the engine is to manage the heat of the whole machine in a unified way to achieve the rational use of energy. Each system of the engine needs to use different simulation tools to build models to achieve thermal simulation of the whole machine, involving multiple types and dimensions of simulation tools, including third-party simulation tools that CoTherm does not support, so joint simulation cannot be achieved.

[0056] After research, the inventor proposed the technical solution of the present application. When executing the method, the user interface library provided by the three-dimensional thermal simulation analysis software is first called to obtain the processing program for the model parameters in different model control stages, and the processing program is encapsulated into an interface function. Then, a first dynamic link library is constructed using the interface function, and the first dynamic link library is imported into the three-dimensional thermal simulation analysis software. Then, a second dynamic link library is constructed based on the user interface library, wherein the second dynamic link library is used to parse the model parameters. Then, a first simulation model is constructed in the three-dimensional thermal simulation analysis software, and a second simulation model is constructed in the target simulation software. The model parameters of the first simulation model are parsed using the second dynamic link library to obtain the input variables and output variables of the first simulation model. The input variables and output variables of the first simulation model are bound to the input variables and output variables of the second simulation model to obtain the first simulation model and the second simulation model after the input and output variable relationship is bound. Finally, the interface function in the first dynamic link library is used to jointly simulate the first simulation model and the second simulation model after the input and output variable relationship is bound. That is, according to the user interface library provided by the three-dimensional thermal simulation analysis software, a first dynamic link library for processing model parameters in different model control stages and a second dynamic link library for parsing model parameters are constructed. The model parameters of the first simulation model are first parsed using the second dynamic link library to obtain the input and output variables of the first simulation model, and the input and output variables of the first simulation model are bound to the input and output variables of the second simulation model. Finally, the joint simulation of the first simulation model and the second simulation model can be realized by calling the interface function in the first dynamic link library. In this way, the joint simulation of the three-dimensional thermal simulation analysis software and different simulation tools can be realized.

[0057] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. It should be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0058] See also Figure 1 , Figure 1 A flowchart of a joint simulation method provided in an embodiment of the present application includes:

[0059] S101: calling the user interface library provided by the three-dimensional thermal simulation analysis software TAITherm to obtain the processing procedures for the model parameters in different model control stages.

[0060] The 3D thermal simulation analysis software TAITherm provides a user interface library, which is a library that provides interaction between users and software. The programs in the user interface library can realize the acquisition and configuration of model parameters. You can use C++, Paython and other languages ​​to call the user interface library provided by TAITherm to obtain the processing program for model parameters in different model control stages, where the model control stage includes model loading, model starting, model running and model stopping.

[0061] S102: Encapsulate the processing program into an interface function.

[0062] First determine the function of each handler, and then encapsulate the handlers into different interface functions according to different functions. For example: the function of the handler is to initialize and configure the model's variables when the model is loaded, then encapsulate the handler into an initialization configuration interface function, and the initialization configuration interface function is used to call the model when the model is loaded during the model control phase; the function of the handler is to obtain the initial input variables and allocate memory resources when the model starts, then encapsulate the handler into an initial input variable acquisition interface function, and the initial input variable acquisition interface function is used to call the model when the model starts during the model control phase; the function of the handler is to call once at the beginning of each model step when the model is running to obtain the input variables, then encapsulate the handler into a first input variable acquisition interface function, and the first input variable acquisition interface function is called when the model is running during the model control phase; the function of the handler is to call a fixed number of times at each model step when the model is running, and the fixed number can be set according to the actual situation to obtain the input variables and configure them to the model, then encapsulate the handler into The processing program is encapsulated as a second input variable acquisition interface function, which is called when the model is running in the model control stage; the function of the processing program is to call a fixed number of times at each model step when the model is running, and the fixed number of times can be set according to actual conditions to obtain output variables for the interactive model, and the processing program is encapsulated as a first output variable acquisition interface function, which is called when the model is running; the function of the processing program is to call once at the end of each model step when the model is running to obtain output variables for the interactive model, and the processing program is encapsulated as a second output variable acquisition interface function, which is called when the model is running; the function of the processing program is to obtain the final solution result and release memory resources when the model stops, and the processing program is encapsulated as a final solution interface function, which is called when the model stops in the model control stage.

[0063] S103: constructing a first dynamic link library using the interface function, and importing the first dynamic link library into the three-dimensional thermal simulation analysis software.

[0064] The multiple interface functions encapsulated in S102 are constructed into a first dynamic link library, and the first dynamic link library includes multiple interface functions, for example, the first dynamic link library includes: an initialization configuration interface function, an initial input variable acquisition interface function, a first input variable acquisition interface function, a second input variable acquisition interface function, a first output variable acquisition interface function, a second output variable acquisition interface function, and a final solution interface function. After the first dynamic link library is constructed, the first dynamic link library is imported into the three-dimensional thermal simulation analysis software TAITherm, so that the interface function in the first dynamic link library can be called through the TAITherm software during the simulation process.

[0065] S104: Building a second dynamic link library based on the user interface library.

[0066] The three-dimensional thermal simulation analysis software TAITherm provides a TDFIO interface library, which provides functions including creating, reading, querying, modifying and writing TAITherm TDF files, and by calling the TDFIO interface library, the model parameters of the TAITherm model constructed by the three-dimensional thermal simulation analysis software TAITherm can be changed. In some embodiments, the TDFIO interface library can be called using a C++ language program, and the C++ language program can be encapsulated as a second dynamic link library for external calls. The second dynamic link library can be used to parse the model parameters of the TAITherm model.

[0067] S105: Constructing a first simulation model in three-dimensional thermal simulation analysis software.

[0068] Open the three-dimensional thermal simulation analysis software TAITherm, and construct a TAITherm model in the three-dimensional thermal simulation analysis software TAITherm as the first simulation model.

[0069] S106: Constructing a second simulation model in the target simulation software.

[0070] Open the target simulation software, and construct a second simulation model in the target simulation software. For example, open the visualization simulation software Simulink, and construct a Simulink model in Simulink as the second simulation model.

[0071] S107: Utilize the second dynamic link library to parse the model parameters of the first simulation model to obtain input variables and output variables of the first simulation model.

[0072] The second dynamic link library is called to parse the model parameters of the first simulation model to obtain a parsing result, wherein the parsing structure includes input variables and output variables of the first simulation model.

[0073] S108: Binding the input variables and output variables of the first simulation model with the input variables and output variables of the second simulation model to obtain the first simulation model and the second simulation model after binding the input and output variable relationship.

[0074] Before the joint simulation begins, the input variables and output variables of the first simulation model need to be bound to the input variables and output variables of the second simulation model to obtain the first simulation model and the second simulation model after the input and output variable relationship is bound. In some embodiments, the input and output variable table can be generated by calling the second dynamic link library, and the input variables and output variables of the first simulation model and the input variables and output variables of the second simulation model are filled into the input and output variable table to achieve the input and output variable binding of the first simulation model and the second simulation model.

[0075] S109: Using the interface function in the first dynamic link library, jointly simulating the first simulation model and the second simulation model after binding the input and output variable relationship

[0076] Before executing step S109, it is necessary to first determine the simulation steps of the first simulation model in different model control stages, and set the association relationship between the interface corresponding to the interface function in the first dynamic link library and the simulation step, so as to call the corresponding interface function during the simulation process of the model. For example, when the model control stage is model loading, the simulation step needs to initialize the variables, and then it is necessary to call the initialization configuration interface function to implement the initialization configuration of the variables.

[0077] The joint simulation process of the first simulation model and the second simulation model after binding the input-output variable relationship is performed as follows: the model control stage of the first simulation model includes: model loading, model starting, model running and model stopping, and the interface function in the corresponding first dynamic link library is executed in different model control stages to realize the joint simulation of the first simulation model and the second simulation model after binding the input-output variable relationship. For example, when the model control stage is model loading, the initialization configuration interface function is called to initialize the configuration of the model variables; when the model control stage is model start, the initial input variable acquisition interface function is called to acquire the initial input variables and allocate memory resources; when the model control stage is model operation, the first input variable acquisition interface function can be called once at the beginning of each model step to acquire the input variables; when the model control stage is model operation, the second input variable acquisition interface function can be called a fixed number of times in each model step, and the fixed number can be set according to actual conditions to acquire the input variables and configure them to the first simulation model; when the model control stage is model operation, the first output variable acquisition interface function can be called a fixed number of times in each model step, and the fixed number can be set according to actual conditions to acquire the output variables for interaction with the second simulation model; when the model control stage is model operation, the second output variable acquisition interface function can be called once at the end of each model step to acquire the output variables for the interactive model; when the model control stage is model end, the final solution interface function is called to acquire the final solution result and release memory resources.

[0078] In some implementations, after obtaining the final solution result, that is, completing the joint simulation, the simulation result can be displayed, and the specific display form is not limited here.

[0079] In an embodiment of the present application, a user interface library provided by the three-dimensional thermal simulation analysis software is first called to obtain a processing program for model parameters in different model control stages, and the processing program is encapsulated into an interface function. Then, a first dynamic link library is constructed using the interface function, and the first dynamic link library is imported into the three-dimensional thermal simulation analysis software. Then, a second dynamic link library is constructed based on the user interface library, wherein the second dynamic link library is used to parse the model parameters. Then, a first simulation model is constructed in the three-dimensional thermal simulation analysis software, and a second simulation model is constructed in the target simulation software. The model parameters of the first simulation model are parsed using the second dynamic link library to obtain input variables and output variables of the first simulation model. The input variables and output variables of the first simulation model are bound to the input variables and output variables of the second simulation model to obtain the first simulation model and the second simulation model after the input and output variable relationship is bound. Finally, the interface function in the first dynamic link library is used to jointly simulate the first simulation model and the second simulation model after the input and output variable relationship is bound. That is, according to the user interface library provided by the three-dimensional thermal simulation analysis software, a first dynamic link library for processing model parameters in different model control stages and a second dynamic link library for parsing model parameters are constructed. The model parameters of the first simulation model are first parsed using the second dynamic link library to obtain the input and output variables of the first simulation model, and the input and output variables of the first simulation model are bound to the input and output variables of the second simulation model. Finally, the joint simulation of the first simulation model and the second simulation model can be realized by calling the interface function in the first dynamic link library. In this way, the joint simulation of the three-dimensional thermal simulation analysis software and different simulation tools can be realized.

[0080] The above are some specific implementations of the joint simulation method provided in the embodiment of the present application. Based on this, the present application also provides a corresponding device. The device provided in the embodiment of the present application will be introduced from the perspective of functional modularization.

[0081] like Figure 2 As shown, Figure 2 A schematic diagram of the structure of a joint simulation device provided in an embodiment of the present application, the joint simulation device 200 includes:

[0082] The calling module 210 is used to call the user interface library provided by the three-dimensional thermal simulation analysis software to process the model parameters at different model control stages;

[0083] The encapsulation module 220 is used to encapsulate the processing program into an interface function;

[0084] A first construction module 230, configured to construct a first dynamic link library using the interface function, and import the first dynamic link library into the three-dimensional thermal simulation analysis software;

[0085] A second construction module 240 is used to construct a second dynamic link library based on the user interface library; the second dynamic link library is used to parse the model parameters;

[0086] A third construction module 250 is used to construct a first simulation model in the three-dimensional thermal simulation analysis software;

[0087] A fourth construction module 260 is used to construct a second simulation model in the target simulation software;

[0088] A parsing module 270, configured to parse the model parameters of the first simulation model using the second dynamic link library to obtain input variables and output variables of the first simulation model;

[0089] An input-output variable binding module 280, used to bind the input variables and output variables of the first simulation model with the input variables and output variables of the second simulation model, so as to obtain the first simulation model and the second simulation model after binding the input-output variable relationship;

[0090] The joint simulation module 290 is used to utilize the interface function in the first dynamic link library to perform joint simulation on the first simulation model and the second simulation model after the input and output variable relationships are bound.

[0091] Optionally, the device 200 further includes:

[0092] An acquisition module, used for acquiring simulation steps of the first simulation model at different model control stages;

[0093] An association relationship between the interface corresponding to the interface function in the first dynamic link library and the simulation step is set.

[0094] Optionally, the input and output variable binding module 280 includes:

[0095] A generating unit, used for generating an input and output variable table by using the second dynamic link library;

[0096] An adding unit is used to add the input variables and output variables of the first simulation model and the input variables and output variables of the second simulation model to the input-output variable table to complete the binding of the input variables and output variables of the first simulation model and the input variables and output variables of the second simulation model, and obtain the first simulation model and the second simulation model after the input-output variable relationship is bound.

[0097] Optionally, the joint simulation module 290 includes:

[0098] A determination unit, configured to determine a model control phase of the first simulation model;

[0099] An execution unit is used to execute the interface function corresponding to the model control stage to jointly simulate the first simulation model and the second simulation model after the input and output variable relationship.

[0100] Optionally, the execution unit includes:

[0101] A first calling subunit is used to call the initialization configuration interface function when the model control stage of the first simulation model is model loading;

[0102] The first execution subunit is used to execute the initialization configuration interface function to initialize the variables of the first simulation model.

[0103] Optionally, the execution unit includes:

[0104] A second calling subunit is used to call an input variable acquisition interface function and an output variable acquisition interface function when the model control stage of the first simulation model is model operation;

[0105] A second execution subunit is used to execute the input variable acquisition interface function to acquire input variables and configure them to the first simulation model;

[0106] The third execution subunit is used to execute the output variable acquisition interface function to obtain the output variable and transmit it to the second simulation model.

[0107] Optionally, the execution unit includes:

[0108] A third calling subunit is used to call an interface function for obtaining a joint simulation result when the model control phase of the first simulation model is model stop;

[0109] The fourth execution subunit is used to execute the interface function for obtaining the joint simulation result to obtain the joint simulation result and release memory resources.

[0110] The embodiments of the present application also provide corresponding devices for implementing the solutions provided by the embodiments of the present application.

[0111] The device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the method described in any embodiment of the present application.

[0112] like Figure 3As shown, the computer device 01 is in the form of a general computing device. The components of the computer device 01 may include but are not limited to: one or more processors or processing units 03, a system memory 08, and a bus 04 connecting different system components (including the system memory 08 and the processing unit 03).

[0113] Bus 04 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0114] The system memory 08 may be a random access memory (RAM) 09 and / or a cache memory 10. The computer device 01 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 11 may be used to read and write non-removable, non-volatile magnetic media ( Figure 3 not shown, usually called a "hard drive"). Although Figure 3 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 04 via one or more data medium interfaces. The memory 08 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0115] A program / utility 12 having a set (at least one) of program modules 13 may be stored, for example, in the memory 08, such program modules 13 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include an implementation of a network environment. The program modules 13 generally perform the functions and / or methods of the embodiments described herein.

[0116] The computer device 01 may also communicate with one or more external devices 02 (e.g., keyboard, pointing device, display 07, etc.), one or more devices that enable a user to interact with the computer device 01, and / or any device that enables the computer device 01 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via input / output (I / O) interface 06. Furthermore, the computer device 01 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) via network adapter 05. Figure 3 As shown, the network adapter 05 communicates with other modules of the computer device 01 via the bus 04. It should be understood that although Figure 3 Not shown, other hardware and / or software modules may be used in conjunction with computer device 01, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0117] The processor unit 03 executes various functional applications and data processing by running programs stored in the system memory 08, for example, implementing a joint simulation method based on TAITherm provided in an embodiment of the present application.

[0118] The embodiment of the present application also provides a corresponding computer storage medium for implementing the solution provided by the embodiment of the present application. The computer storage medium stores codes, and when the codes are executed, the device executing the codes implements the method described in any embodiment of the present application.

[0119] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.

[0120] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0121] It should also be noted that the various embodiments in this specification are described in a progressive manner, and the same and similar parts between the various embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the equipment and device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The device embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components prompted as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0122] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A joint simulation method, characterized in that: include: Call the user interface library provided by the 3D thermal simulation analysis software to process the model parameters at different model control stages; Encapsulating the processing program into an interface function; constructing a first dynamic link library using the interface function, and importing the first dynamic link library into the three-dimensional thermal simulation analysis software; Based on the user interface library, a second dynamic link library is constructed; the second dynamic link library is used to parse the model parameters; Constructing a first simulation model in the three-dimensional thermal simulation analysis software; constructing a second simulation model in the target simulation software; parsing the model parameters of the first simulation model using the second dynamic link library to obtain input variables and output variables of the first simulation model; Binding the input variables and output variables of the first simulation model with the input variables and output variables of the second simulation model to obtain the first simulation model and the second simulation model after binding the input and output variable relationship; The interface function in the first dynamic link library is used to perform joint simulation on the first simulation model and the second simulation model after the input and output variable relationships are bound.

2. The method according to claim 1, characterized in that Before using the interface function in the first dynamic link library to jointly simulate the first simulation model and the second simulation model after the input and output variable relationships are bound, the method further includes: Acquire simulation steps of the first simulation model at different model control stages; An association relationship between the interface corresponding to the interface function in the first dynamic link library and the simulation step is set.

3. The method according to claim 1, characterized in that The step of binding the input variables and output variables of the first simulation model with the input variables and output variables of the second simulation model to obtain the first simulation model and the second simulation model after binding the input and output variable relationship comprises: Using the second dynamic link library, generating an input and output variable table; The input variables and output variables of the first simulation model and the input variables and output variables of the second simulation model are added to the input-output variable table correspondingly to obtain the first simulation model and the second simulation model after binding the input-output variable relationship.

4. The method according to claim 2, characterized in that: The method of using the interface function in the first dynamic link library to jointly simulate the first simulation model and the second simulation model after the input and output variable relationships are bound includes: determining a model control stage of the first simulation model; The interface function corresponding to the model control stage is executed to jointly simulate the first simulation model and the second simulation model after the input-output variable relationship.

5. The method according to claim 4, characterized in that The interface function corresponding to the execution of the model control phase includes: When the model control phase of the first simulation model is model loading, calling the initialization configuration interface function; The initialization configuration interface function is executed to initialize the variables of the first simulation model.

6. The method according to claim 4, characterized in that The interface function corresponding to the execution of the model control phase includes: When the model control stage of the first simulation model is model operation, calling an input variable acquisition interface function and an output variable acquisition interface function; Execute the input variable acquisition interface function to acquire input variables and configure them to the first simulation model; The output variable acquisition interface function is executed to acquire the output variable and transmit it to the second simulation model.

7. The method according to claim 4, characterized in that The interface function corresponding to the execution of the model control phase includes: When the model control stage of the first simulation model is model stop, calling an interface function for obtaining joint simulation results; Execute the interface function for obtaining joint simulation results to obtain joint simulation results and release memory resources.

8. A joint simulation device, characterized in that: include: A calling module is used to call the user interface library provided by the three-dimensional thermal simulation analysis software to process the model parameters at different model control stages; An encapsulation module, used for encapsulating the processing program into an interface function; A first construction module, used to construct a first dynamic link library using the interface function, and import the first dynamic link library into the three-dimensional thermal simulation analysis software; A second construction module is used to construct a second dynamic link library based on the user interface library; the second dynamic link library is used to parse the model parameters; A third construction module is used to construct a first simulation model in the three-dimensional thermal simulation analysis software; A fourth construction module, used to construct a second simulation model in the target simulation software; A parsing module, used for parsing the model parameters of the first simulation model by using the second dynamic link library to obtain input variables and output variables of the first simulation model; An input-output variable binding module, used for binding the input variables and output variables of the first simulation model with the input variables and output variables of the second simulation model, so as to obtain the first simulation model and the second simulation model after binding the input-output variable relationship; The joint simulation module is used to utilize the interface function in the first dynamic link library to perform joint simulation on the first simulation model and the second simulation model after the input and output variable relationships are bound.

9. A computer device, characterized in that: include: 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 joint simulation method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the joint simulation method according to any one of claims 1 to 7.