A method and related device for configuring the execution order of a simulation model

By acquiring and adjusting the unassigned simulation module information and execution sequence grouping in the simulation model, flexible configuration of the execution sequence of the simulation model is realized, solving the problem of cumbersome execution sequence adjustment in the existing technology, and improving the efficiency of problem positioning.

CN114065519BActive Publication Date: 2025-04-04BEIJING GLOBAL CROWN JINYANG TECH DEV CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

During the design process of simulation model, the execution order between the modules or units in the simulation model is either set internally and cannot be adjusted, or it is very cumbersome to adjust, making it difficult for engineers to quickly locate the problem when simulation abnormalities occur.

Method used

By obtaining the information of the unassigned simulation module of the current subsystem, we judge whether there is a historical execution order grouping. If there is, we obtain the current execution order grouping obtained by the user by dragging and dropping, adjust each subsystem and the current order grouping to obtain the target execution order, and execute the simulation model based on the target execution order.

Benefits of technology

Reduces the difficulty of adjusting the execution order of simulation models, allowing engineers to quickly locate problems and determine whether errors are caused by simulation sequence or modeling errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114065519B_ABST
    Figure CN114065519B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for configuring the execution order of a simulation model and a related device, which are applied to a simulation model, wherein the simulation model includes: at least one first subsystem model, wherein the first subsystem model includes: a second submodel system or simulation module, obtaining the unassigned simulation module information of the current subsystem; determining whether there is a historical execution order grouping in the current subsystem; if so, obtaining the current execution order grouping obtained by the user adding the unassigned simulation modules in the unassigned simulation module information to the historical execution order grouping by dragging; adjusting each subsystem and the current order grouping corresponding to each subsystem by dragging, and executing the simulation model based on the obtained target execution order. In the above process, each subsystem and the current order grouping of each subsystem are adjusted based on the dragging method to obtain the target execution order, and the simulation model is executed based on the target execution order, which reduces the difficulty of adjustment and makes it easy to quickly locate problems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method for configuring the execution sequence of a simulation model and a related device. Background Art

[0002] In the simulation process of aerospace models (e.g., aircraft), the effectiveness of the throttle power and the switch state of the brake have an obvious constraint relationship, and the brake state needs to be updated before the throttle module is simulated. However, in the prior art, in the design process of the simulation model, the execution order between the various modules or units in the simulation model is either set internally and cannot be adjusted, or it is very cumbersome to adjust. For example, Simulink needs to configure the priority attribute of each model.

[0003] In this way, when simulation anomalies or failure to meet expectations occur, it is difficult for engineers to quickly locate the problem, and they cannot determine whether the error is caused by the simulation sequence or a modeling error. Summary of the invention

[0004] In view of this, the present invention provides a method and related device for configuring the execution order of a simulation model, so as to solve the problem that in the design process of the simulation model, the execution order between the modules or units in the simulation model is either set internally and cannot be adjusted, or the adjustment is very cumbersome. For example, Simulink needs to configure the priority attribute of each model. In this way, when a simulation anomaly occurs or does not meet expectations, it is not easy for engineers to quickly locate the problem, and it is impossible to determine whether the error is caused by the simulation order or the modeling error. The specific scheme is as follows:

[0005] A method for configuring the execution order of a simulation model is applied to the simulation model, wherein the simulation model includes: at least one first subsystem model, the first subsystem model includes: a second submodel system or a simulation module, and the method includes:

[0006] Get the unassigned simulation module information of the current subsystem;

[0007] Determine whether there is a historical execution order grouping in the current subsystem;

[0008] If so, obtaining a current execution order group obtained by the user adding the unassigned simulation modules in the unassigned simulation module information to the historical execution order group by dragging;

[0009] Each subsystem and the current sequence grouping corresponding to each subsystem are adjusted by dragging and dropping to obtain a target execution sequence, and the simulation model is executed based on the target execution sequence.

[0010] The above method optionally adjusts each subsystem and the current order grouping corresponding to each subsystem by dragging and dropping to obtain the target execution order, including:

[0011] Receiving a first execution order determined by dragging each of the subsystems;

[0012] For the current sequence group in each subsystem, receiving a second execution order of the current sequence group determined by dragging;

[0013] The first execution order and the second execution order constitute the target execution order.

[0014] The above method, optionally, executes the simulation model based on the target execution order, including:

[0015] determining a data structure corresponding to the target execution order;

[0016] The data structure is sent to a simulation engine, so that the simulation engine performs simulation and data exchange of the simulation model based on the data structure.

[0017] The above method may optionally include obtaining a current execution order group obtained by a user adding the unassigned simulation module information to the historical execution order group by dragging and dropping, including:

[0018] When it is detected that a user drags an unassigned simulation module in the unassigned simulation module information, obtaining a target position in the historical execution order grouping dragged by the user;

[0019] Adding the unassigned simulation modules to the target location to obtain the current execution order grouping;

[0020] In the case where the adding completion instruction is detected, the unassigned simulation module in the unassigned simulation module information is deleted.

[0021] The above method may optionally further include:

[0022] If not, loading the unassigned simulation modules in the unassigned simulation module information by dragging and dropping to generate the current execution order group;

[0023] When it is detected that any unassigned simulation module is added to the current execution order group, the corresponding unassigned simulation module in the unassigned simulation module information is deleted.

[0024] A device for configuring the execution order of a simulation model is applied to the simulation model, wherein the simulation model includes: at least one first subsystem model, the first subsystem model includes: a second submodel system or a simulation module, and the device includes:

[0025] A first acquisition module is used to acquire unassigned simulation module information of the current subsystem;

[0026] A judgment module, used to judge whether there is a historical execution order group in the current subsystem;

[0027] A second acquisition module is used for, if yes, acquiring a current execution order group obtained by a user adding an unassigned simulation module in the unassigned simulation module information to the historical execution order group by dragging;

[0028] The adjustment and execution module is used to adjust each subsystem and the current sequence grouping corresponding to each subsystem by dragging and dropping to obtain a target execution sequence, and execute the simulation model based on the target execution sequence.

[0029] In the above device, optionally, the adjustment and execution module includes:

[0030] A first receiving unit, configured to receive a first execution order determined for each of the subsystems by dragging;

[0031] A second receiving unit, configured to receive, for each subsystem, a second execution order of the current sequence group determined by dragging;

[0032] The first execution order and the second execution order constitute the target execution order.

[0033] In the above device, optionally, the adjustment and execution module includes:

[0034] A determination unit, configured to determine a data structure corresponding to the target execution order;

[0035] The sending unit is used to send the data structure to the simulation engine, so that the simulation engine performs simulation and data exchange of the simulation model based on the data structure.

[0036] A storage medium comprises a stored program, wherein the program executes the above-mentioned method for configuring the execution order of a simulation model.

[0037] A processor is used to run a program, wherein the program executes the above-mentioned method for configuring the execution order of a simulation model when running.

[0038] Compared with the prior art, the present invention has the following advantages:

[0039] The present invention discloses a method for configuring the execution order of a simulation model and a related device, which are applied to a simulation model, wherein the simulation model includes: at least one first subsystem model, wherein the first subsystem model includes: a second submodel system or simulation module, obtaining unassigned simulation module information of the current subsystem; determining whether there is a historical execution order grouping in the current subsystem; if so, obtaining the current execution order grouping obtained by the user adding the unassigned simulation modules in the unassigned simulation module information to the historical execution order grouping by dragging; adjusting each subsystem and the current order grouping corresponding to each subsystem by dragging to obtain a target execution order; and executing the simulation model based on the target execution order. In the above process, each subsystem and the current order grouping corresponding to each subsystem are adjusted based on the dragging method to obtain the target execution order, and the simulation model is executed based on the target execution order, which reduces the difficulty of adjustment. Once a problem occurs, the problem can be easily and quickly located based on the target execution order. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A flow chart of a method for configuring the execution order of a simulation model disclosed in an embodiment of the present application;

[0042] Figure 2 This is a structural block diagram of a device for configuring the execution order of a simulation model disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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.

[0044] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0045] The present invention discloses a method and device for configuring the execution order of a simulation model, which is applied to the configuration process of the execution order of a subsystem and a simulation module FMU in a simulation model. In the prior art, the execution order of a simulation module or a subsystem in a simulation model in most simulation software is not adjustable or is very cumbersome to adjust, and simulation anomalies or failure to meet expectations are prone to occur. It is not convenient for engineers to quickly locate the problem, and it is not possible to determine whether the error is caused by the simulation order or the modeling error. Based on the above problems, the present invention provides a method for configuring the execution order of a simulation model, the method is implemented based on GCAir simulation software, and the method is applied to a simulation model, wherein the simulation model includes: at least one first subsystem model, the first subsystem model includes: a second submodel system or a simulation module, that is, for a specific simulation model, the simulation model is pre-composed of at least one first subsystem, for each first subsystem, it may include a second subsystem or a simulation module, further, for each second subsystem, it may also include a third subsystem or a simulation module, and so on, wherein the specific existence form of the simulation model is related to the application scenario of the simulation model. In the embodiment of the present invention, the specific existence form of the simulation model is not limited, therefore, the execution flow of the method is as follows Figure 1 As shown, the steps include:

[0046] S101, obtaining unassigned simulation module information of the current subsystem;

[0047] In an embodiment of the present invention, the current subsystem is any subsystem in the simulation model, which may be the first subsystem, the second subsystem, etc. For the current subsystem, when an execution order grouping request for the current subsystem is received, the unallocated simulation module information of the level where the current canvas is located is obtained, wherein the unallocated simulation module information includes the unallocated simulation module and the path where the unallocated simulation module is located. Preferably, the unallocated simulation module information exists in a to-be-allocated list.

[0048] S102, determining whether there is a historical execution order group in the current subsystem;

[0049] In an embodiment of the present invention, after determining the unallocated simulation module information, it is determined whether the current subsystem has a historical execution order grouping. The specific judgment process may be to make a judgment based on a preset identifier. For example, if the preset identifier exists, it is determined that the current subsystem has a historical execution order grouping. Otherwise, if not, it is determined that the current subsystem does not have the historical execution order grouping. Alternatively, it is checked whether corresponding data exists at a preset storage location. If so, it is determined that the current subsystem has the historical execution order grouping. Otherwise, it is determined that the current subsystem does not have the historical execution order grouping. Alternatively, other preferred judgment methods are used. In an embodiment of the present invention, the specific judgment method is not limited.

[0050] S103, obtaining a current execution order group obtained by a user dragging and dropping an unassigned simulation module in the unassigned simulation module information to the historical execution order group;

[0051] In an embodiment of the present invention, when the historical execution order grouping exists in the current subsystem, the target position in the historical execution order grouping dragged by the user is obtained, wherein the target position is determined by the user according to the specific situation, and the unallocated simulation modules in the unallocated simulation module information are added to the target position in the historical execution order grouping by dragging, and the unallocated simulation modules in the unallocated simulation module information are deleted.

[0052] Furthermore, when the historical execution order grouping does not exist in the current subsystem, the unallocated simulation modules in the unallocated simulation module information are loaded by dragging and dropping to generate the current execution order grouping, and when it is detected that any unallocated simulation module is added to the current execution order grouping, the corresponding unallocated simulation module in the unallocated simulation module information is deleted until all the unallocated simulation modules in the unallocated simulation module information are dragged.

[0053] S104, adjusting each subsystem and the current sequence grouping corresponding to each subsystem by dragging and dropping to obtain a target execution sequence, and executing the simulation model based on the target execution sequence.

[0054] In an embodiment of the present invention, for the simulation model, there may be multiple subsystems according to the specific application scenario, for example, a first subsystem, a second subsystem, a third subsystem, etc. For each subsystem, the above-mentioned processing steps S101-S103 are repeated until all subsystems in the simulation model have determined their corresponding current sequence groups.

[0055] In the simulation model, in the process of determining the target execution order, the user can determine the first execution order of each subsystem by dragging and dropping each subsystem based on a specific application scenario, and the simulation model end receives the first execution order. Furthermore, for the current sequence grouping in each subsystem, the user also determines the second execution order of the simulation modules in each current sequence grouping by dragging and dropping based on the specific application scenario. Preferably, the simulation models within the same subsystem determine the execution order according to their sequential positions. For each current execution sequence grouping, the relative position in the current execution sequence grouping can be adjusted by moving up or down to obtain the second execution order, and the simulation module end receives the second execution order, wherein the first execution order and the second execution order constitute the target execution order.

[0056] In an embodiment of the present invention, the process of determining the target execution order may also prioritize the current order grouping corresponding to each subsystem, and the user may determine the second execution order of the simulation modules in each current order grouping by dragging and dropping based on specific application scenarios. Preferably, the simulation models in the same subsystem determine the execution order according to their positions, and for each current execution order grouping, the relative position in the current execution order grouping may be adjusted by moving up or down to obtain the second execution order. Furthermore, for each subsystem, the user may determine the first execution order of each subsystem by dragging and dropping based on specific application scenarios, wherein the first execution order and the second execution order constitute the target execution order.

[0057] Advantageously, the above-mentioned first execution order and the second execution order can be adjusted repeatedly. First, the execution order between the top-level subsystems is found. Preferably, an index of a list is created with the name of the subsystem as the index, and then the subsystems or simulation models within the subsystem are added. Each list pointing to the next-level subsystem is maintained separately, and continuously optimized. Finally, the order in the top-level list is the target execution order.

[0058] After the target execution order is determined, a corresponding data structure is generated based on the target execution order, which stores all subsystem and simulation module information in the simulation model and the execution order information of each simulation module. After this data structure is sent to the simulation engine, the simulation engine is enabled to perform simulation and data exchange of the simulation model based on the data structure, wherein the simulation engine calculates and assigns values ​​to each module in turn according to the step of simulation time and the execution order set in advance. The simulation is executed after clicking Start Simulation, and the model assignment and calculation are performed at each simulation step.

[0059] The present invention discloses a method for configuring the execution order of a simulation model, which is applied to a simulation model, wherein the simulation model includes: at least one first subsystem model, wherein the first subsystem model includes: a second submodel system or a simulation module, wherein the method includes: obtaining unassigned simulation module information of the current subsystem; determining whether there is a historical execution order grouping in the current subsystem; if so, obtaining a current execution order grouping obtained by a user adding an unassigned simulation module in the unassigned simulation module information to the historical execution order grouping by dragging; adjusting each subsystem and the current order grouping corresponding to each subsystem by dragging to obtain a target execution order; and executing the simulation model based on the target execution order. In the above process, each subsystem and the current order grouping corresponding to each subsystem are adjusted based on the dragging method to obtain a target execution order, and the simulation model is executed based on the target execution order, which reduces the difficulty of adjustment. Once a problem occurs, the problem can be easily and quickly located based on the target execution order.

[0060] In the embodiment of the present invention, the method can freely configure the execution order within and between subsystems in a simple and quick manner, and supports multiple types of models, such as two types of FMUs (Functionnal Mock-up Units) of Co-Simlation and Model Exchange, and pseudo FMUs constructed by other types such as Python, CSV, and interpolation tables; supports the configuration of nested models, and the order of top-level configuration will directly affect the execution order of all internally nested models; the configuration is simple and easy to understand, and the adjustment is convenient.

[0061] Based on the above method for configuring the execution order of a simulation model, an embodiment of the present invention provides a device for configuring the execution order of a simulation model, which is applied to a simulation model, wherein the simulation model includes: at least one first subsystem model, the first subsystem model includes: a second submodel system or a simulation module, and the structural block diagram of the device is as follows Figure 2 As shown, including:

[0062] A first acquisition module 201 , a judgment module 202 , a second acquisition module 203 and an adjustment and execution module 204 .

[0063] in,

[0064] The first acquisition module 201 is used to acquire the unallocated simulation module information of the current subsystem;

[0065] The judging module 202 is used to judge whether there is a historical execution order group in the current subsystem;

[0066] The second acquisition module 203 is used to acquire the current execution order group obtained by the user dragging and dropping the unassigned simulation modules in the unassigned simulation module information to the historical execution order group;

[0067] The adjustment and execution module 204 is used to adjust each subsystem and the current sequence grouping corresponding to each subsystem by dragging and dropping to obtain a target execution sequence, and execute the simulation model based on the target execution sequence.

[0068] The present invention discloses a device for configuring the execution order of a simulation model, which is applied to a simulation model. The simulation model includes: at least one first subsystem model, the first subsystem model includes: a second submodel system or a simulation module, and the method includes: obtaining the unassigned simulation module information of the current subsystem; judging whether there is a historical execution order grouping in the current subsystem; if so, obtaining the current execution order grouping obtained by the user adding the unassigned simulation modules in the unassigned simulation module information to the historical execution order grouping by dragging; adjusting each subsystem and the current order grouping corresponding to each subsystem by dragging to obtain a target execution order; and executing the simulation model based on the target execution order. In the above process, each subsystem and the current order grouping corresponding to each subsystem are adjusted based on the dragging method to obtain the target execution order, and the simulation model is executed based on the target execution order, which reduces the difficulty of adjustment. Once a problem occurs, the problem can be easily and quickly located based on the target execution order.

[0069] In the embodiment of the present invention, the adjustment and execution module 204 includes:

[0070] The first receiving unit 205 and the second receiving unit 206 .

[0071] in,

[0072] The first receiving unit 205 is used to receive a first execution order determined by dragging each subsystem;

[0073] The second receiving unit 206 is used to receive, for each subsystem, a second execution order of the current sequence group determined by dragging;

[0074] The first execution order and the second execution order constitute the target execution order.

[0075] In the embodiment of the present invention, the adjustment and execution module 204 includes:

[0076] The determining unit 207 and the issuing unit 208 .

[0077] in,

[0078] The determining unit 207 is used to determine a data structure corresponding to the target execution order;

[0079] The sending unit 208 is used to send the data structure to the simulation engine, so that the simulation engine performs simulation and data exchange of the simulation model based on the data structure.

[0080] The device includes a processor and a memory. The first acquisition and determination module, the judgment module, the second acquisition and determination module, the adjustment and execution module, etc. are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.

[0081] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the difficulty of adjustment can be reduced and the problem can be quickly located by adjusting the kernel parameters.

[0082] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0083] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the method for configuring the execution order of a simulation model is implemented.

[0084] An embodiment of the present invention provides a processor, which is used to run a program, wherein the method for configuring the execution order of a simulation model is executed when the program is run.

[0085] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program:

[0086] Get the unassigned simulation module information of the current subsystem;

[0087] Determine whether there is a historical execution order grouping in the current subsystem;

[0088] If so, obtaining a current execution order group obtained by the user adding the unassigned simulation modules in the unassigned simulation module information to the historical execution order group by dragging;

[0089] Each subsystem and the current sequence grouping corresponding to each subsystem are adjusted by dragging and dropping to obtain a target execution sequence, and the simulation model is executed based on the target execution sequence.

[0090] The above method optionally adjusts each subsystem and the current order grouping corresponding to each subsystem by dragging and dropping to obtain the target execution order, including:

[0091] Receiving a first execution order determined by dragging each of the subsystems;

[0092] For the current sequence group in each subsystem, receiving a second execution order of the current sequence group determined by dragging;

[0093] The first execution order and the second execution order constitute the target execution order.

[0094] The above method, optionally, executes the simulation model based on the target execution order, including:

[0095] determining a data structure corresponding to the target execution order;

[0096] The data structure is sent to a simulation engine, so that the simulation engine performs simulation and data exchange of the simulation model based on the data structure.

[0097] The above method may optionally include obtaining a current execution order group obtained by a user adding the unassigned simulation module information to the historical execution order group by dragging and dropping, including:

[0098] When it is detected that a user drags an unassigned simulation module in the unassigned simulation module information, obtaining a target position in the historical execution order grouping dragged by the user;

[0099] Adding the unassigned simulation modules to the target location to obtain the current execution order grouping;

[0100] In the case where the adding completion instruction is detected, the unassigned simulation module in the unassigned simulation module information is deleted.

[0101] The above method may optionally further include:

[0102] If not, loading the unassigned simulation modules in the unassigned simulation module information by dragging and dropping to generate the current execution order group;

[0103] When it is detected that any unassigned simulation module is added to the current execution order group, the corresponding unassigned simulation module in the unassigned simulation module information is deleted.

[0104] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0105] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:

[0106] Get the unassigned simulation module information of the current subsystem;

[0107] Determine whether there is a historical execution order grouping in the current subsystem;

[0108] If so, obtaining a current execution order group obtained by the user adding the unassigned simulation modules in the unassigned simulation module information to the historical execution order group by dragging;

[0109] Each subsystem and the current sequence grouping corresponding to each subsystem are adjusted by dragging and dropping to obtain a target execution sequence, and the simulation model is executed based on the target execution sequence.

[0110] The above method optionally adjusts each subsystem and the current order grouping corresponding to each subsystem by dragging and dropping to obtain the target execution order, including:

[0111] Receiving a first execution order determined by dragging each of the subsystems;

[0112] For the current sequence group in each subsystem, receiving a second execution order of the current sequence group determined by dragging;

[0113] The first execution order and the second execution order constitute the target execution order.

[0114] The above method, optionally, executes the simulation model based on the target execution order, including:

[0115] determining a data structure corresponding to the target execution order;

[0116] The data structure is sent to a simulation engine, so that the simulation engine performs simulation and data exchange of the simulation model based on the data structure.

[0117] The above method may optionally include obtaining a current execution order group obtained by a user adding the unassigned simulation module information to the historical execution order group by dragging and dropping, including:

[0118] When it is detected that a user drags an unassigned simulation module in the unassigned simulation module information, obtaining a target position in the historical execution order grouping dragged by the user;

[0119] Adding the unassigned simulation modules to the target location to obtain the current execution order grouping;

[0120] In the case where the adding completion instruction is detected, the unassigned simulation module in the unassigned simulation module information is deleted.

[0121] The above method may optionally further include:

[0122] If not, loading the unassigned simulation modules in the unassigned simulation module information by dragging and dropping to generate the current execution order group;

[0123] When it is detected that any unassigned simulation module is added to the current execution order group, the corresponding unassigned simulation module in the unassigned simulation module information is deleted.

[0124] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0125] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0126] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0128] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0129] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0130] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0131] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0132] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0133] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for configuring the execution order of a simulation model, characterized in that: Applied to a simulation model, wherein the simulation model comprises: at least one first subsystem model, the first subsystem model comprises: a second submodel system or a simulation module, the method comprises: Acquire unallocated simulation module information of the current subsystem, wherein the unallocated simulation module information includes unallocated simulation modules and paths where the unallocated simulation modules are located; Determine whether there is a historical execution order grouping in the current subsystem; If so, obtaining a current execution order group obtained by the user adding the unassigned simulation modules in the unassigned simulation module information to the historical execution order group by dragging; Adjust each subsystem and the current order grouping corresponding to each subsystem by dragging and dropping to obtain a target execution order, and execute the simulation model based on the target execution order; If not, loading the unassigned simulation modules in the unassigned simulation module information by dragging and dropping to generate the current execution order group; When it is detected that any unassigned simulation module is added to the current execution order group, the corresponding unassigned simulation module in the unassigned simulation module information is deleted.

2. The method according to claim 1, characterized in that: Adjust each subsystem and the current order grouping corresponding to each subsystem by dragging and dropping to obtain the target execution order, including: Receiving a first execution order determined by dragging each of the subsystems; For the current sequence group in each subsystem, receiving a second execution order of the current sequence group determined by dragging; The first execution order and the second execution order constitute the target execution order.

3. The method according to claim 1, characterized in that Executing the simulation model based on the target execution order includes: determining a data structure corresponding to the target execution order; The data structure is sent to a simulation engine, so that the simulation engine performs simulation and data exchange of the simulation model based on the data structure.

4. The method according to claim 1, characterized in that Acquiring a current execution order group obtained by adding the unassigned simulation module information to the historical execution order group by dragging and dropping, including: When it is detected that a user drags an unassigned simulation module in the unassigned simulation module information, obtaining a target position in the historical execution order grouping dragged by the user; Adding the unassigned simulation modules to the target location to obtain the current execution order grouping; In the case where the adding completion instruction is detected, the unassigned simulation module in the unassigned simulation module information is deleted.

5. A device for configuring the execution order of a simulation model, characterized in that: Applied to a simulation model, wherein the simulation model comprises: at least one first subsystem model, the first subsystem model comprises: a second submodel system or simulation module, the device comprises: A first acquisition module is used to acquire unallocated simulation module information of the current subsystem, wherein the unallocated simulation module information includes unallocated simulation modules and paths where the unallocated simulation modules are located; A judgment module, used to judge whether there is a historical execution order group in the current subsystem; A second acquisition module is used for, if yes, acquiring a current execution order group obtained by a user adding an unassigned simulation module in the unassigned simulation module information to the historical execution order group by dragging; An adjustment and execution module, used for adjusting each subsystem and the current sequence grouping corresponding to each subsystem by dragging and dropping to obtain a target execution sequence, and executing the simulation model based on the target execution sequence; If not, loading the unassigned simulation modules in the unassigned simulation module information by dragging and dropping to generate the current execution order group; When it is detected that any unassigned simulation module is added to the current execution order group, the corresponding unassigned simulation module in the unassigned simulation module information is deleted.

6. The device according to claim 5, characterized in that The adjustment and execution module includes: A first receiving unit, configured to receive a first execution order determined for each of the subsystems by dragging; A second receiving unit, configured to receive, for each subsystem, a second execution order of the current sequence group determined by dragging; The first execution order and the second execution order constitute the target execution order.

7. The device according to claim 5, characterized in that The adjustment and execution module includes: A determination unit, configured to determine a data structure corresponding to the target execution order; The sending unit is used to send the data structure to the simulation engine, so that the simulation engine performs simulation and data exchange of the simulation model based on the data structure.

8. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the method for configuring the execution order of the simulation model as claimed in any one of claims 1 to 4.

9. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes the method for configuring the execution order of the simulation model as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Product assembling technology generation method based on assembling process simulation

    CN102968520A