Simulation application generation method and device, electronic equipment and storage medium

By obtaining and packaging the interface resources, model resources and dynamic link library files of the modeling and simulation software, a lightweight target simulation application is formed, which solves the problems of complex structure and high installation requirements of the existing modeling and simulation software, and improves the efficiency of the simulation process. Convenience.

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

Patent Information

Application Number
CN202411400115.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-01-21
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing modeling and simulation software has complex structure and high requirements for installation and operation, which leads to inconvenient simulation process.

Method used

By obtaining the pre -set interface resources, model resources, and dynamic link library files, packaging is an executable program, forming a lightweight target simulation application, and abandoning the huge functional part of modeling.

Benefits of technology

The lightweighting of the simulation application is realized, the structure is simplified, the convenience of the model simulation process is improved, and it is suitable for the terminal that is not installed and built.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119337719A_ABST
    Figure CN119337719A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a simulation application generation method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a preset interface resource corresponding to a to-be-simulated model, a model resource of the to-be-simulated model and a dynamic link library file corresponding to an original modeling application; wherein the original modeling application is used for carrying out modeling operation on a to-be-simulated model; and packaging the interface resource, the model resource and the dynamic link library file into an executable program, and determining the executable program as a target simulation application. According to the technical scheme provided by the embodiment of the invention, the effect of lightweight simulation application can be realized, and the convenience of the model simulation process can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a method, device, electronic device and storage medium for generating a simulation application. Background Art

[0002] Modelica is an open language for multi-domain physical modeling, which supports modeling, simulation and analysis of multi-domain systems. Modelica language can be used to describe a variety of different systems, including mechanical, electrical, thermodynamics, fluid dynamics and other fields. In order to better conduct research, simulation of Modelica models has become an indispensable link.

[0003] In the prior art, modeling and simulation software can be used for model building and simulation operations, and is usually used to simulate Modelica models. However, modeling and simulation software is usually complex in structure and has high requirements for the terminal on which the modeling and simulation software is installed, which brings inconvenience to the simulation process. Summary of the invention

[0004] The embodiments of the present invention provide a method, device, electronic device and storage medium for generating a simulation application, so as to achieve the purpose of lightweighting the simulation application.

[0005] According to one aspect of the present invention, there is provided a method for generating a simulation application, comprising:

[0006] Acquire pre-set interface resources corresponding to the model to be simulated, model resources of the model to be simulated, and a dynamic link library file corresponding to an original modeling application; wherein the original modeling application is used to perform a modeling operation on the model to be simulated;

[0007] The interface resources, the model resources and the dynamic link library files are packaged into an executable program, and the executable program is determined as a target simulation application.

[0008] According to another aspect of the present invention, there is provided a device for generating a simulation application, the device comprising:

[0009] A resource acquisition module, used to acquire pre-set interface resources corresponding to the model to be simulated, model resources of the model to be simulated, and a dynamic link library file corresponding to an original modeling application; wherein the original modeling application is used to perform a modeling operation on the model to be simulated;

[0010] The target simulation application determination module is used to package the interface resources, the model resources and the dynamic link library file into an executable program, and determine the executable program as a target simulation application.

[0011] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0012] at least one processor; and

[0013] a memory communicatively connected to the at least one processor; wherein,

[0014] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for generating a simulation application described in any embodiment of the present invention.

[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for generating a simulation application described in any embodiment of the present invention when executed.

[0016] The technical solution of the embodiment of the present invention obtains pre-set interface resources corresponding to the model to be simulated, model resources of the model to be simulated and dynamic link library files corresponding to the original modeling application; wherein the original modeling application is used to perform modeling operations on the model to be simulated; by packaging the interface resources, model resources and dynamic link library files into an executable program, the executable program is determined as a target simulation application, so that the target simulation application, relative to the modeling simulation software, eliminates the huge functional part of modeling, has a simple structure, achieves the effect of lightweight simulation application, and is conducive to improving the convenience of the model simulation process.

[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.

[0019] Figure 1 is a flow chart of a method for generating a simulation application according to an embodiment of the present invention;

[0020] Figure 2 is a resource packaging flow chart provided according to an embodiment of the present invention;

[0021] Figure 3is a structural schematic diagram of a simulation application generation device provided according to an embodiment of the present invention;

[0022] Figure 4 It is a schematic diagram of the structure of an electronic device for implementing the method for generating a simulation application according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "etc." and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] Figure 1 1 is a flow chart of a method for generating a simulation application according to an embodiment of the present invention. This embodiment is applicable to the case of generating a target simulation application for simulating a built model. The method can be executed by a simulation application generation device, which can be implemented in the form of hardware and / or software.

[0026] like Figure 1 As shown, the method of this embodiment may specifically include:

[0027] S110, obtaining pre-set interface resources corresponding to the model to be simulated, model resources of the model to be simulated, and a dynamic link library file corresponding to the original modeling application.

[0028] The original modeling application is used to perform modeling operations on the model to be simulated.

[0029] In this embodiment, the model to be simulated is obtained by performing a modeling operation through the original modeling application. In order to perform a simulation operation on the model to be simulated, a simulation interface corresponding to the model to be simulated may be pre-set. Exemplarily, a corresponding simulation interface may be set based on the model type of the model to be simulated; for example, when the model to be simulated is a flight model, an interface for displaying the flight status may be set as a simulation interface corresponding to the flight model.

[0030] It should be noted that the simulation interface may include at least one of the dashboard controls, curve controls and text controls. The properties of each control on the simulation interface can be set. Text controls and curve controls are static controls. Static controls can set basic properties and extended properties. The basic properties mainly include name, availability, visibility, position, size, text, text style, prompt text and style, etc.; extended properties are related properties customized for the control. The basic properties of dynamic controls include control type, binding variables, working status, parameter injection, simulation control type and trigger event. In the simulation interface, controls can be laid out using at least one of horizontal layout, vertical layout, grid layout, table layout, vertical splitter and horizontal splitter.

[0031] In a specific implementation, when the simulation interface is set, the interface resources of the simulation interface can be generated, so as to generate the target simulation application by acquiring the interface resources. Specifically, before acquiring the pre-set interface resources corresponding to the model to be simulated, it also includes: generating at least one simulation interface control based on the received control generation instruction, generating a simulation interface based on at least one simulation interface control; generating interface resources based on the simulation interface and the mapping relationship between the pre-stored controls and the model parameters of the model to be simulated.

[0032] In this embodiment, after receiving the control generation instruction, at least one simulation interface control can be generated, thereby obtaining a simulation interface including at least one simulation interface control. In order to enable the simulation interface to be used to simulate the model to be simulated, a mapping relationship between the control and the model parameters of the model to be simulated can be pre-set, so that during the simulation process, the simulation interface control and the model parameters can be bound through the mapping relationship to display the model parameters in the interface. Exemplarily, when the model to be simulated is a flight model, the model parameters include parameters such as speed, angle and altitude. Further, a resource including a simulation interface and a mapping relationship can be generated as an interface resource.

[0033] This embodiment generates interface resources through a simulation interface and a mapping relationship, so that during the simulation process, the model parameters of the model to be simulated are effectively displayed through the simulation interface controls.

[0034] Optionally, the simulation interface control includes at least one of a display class control, a parameter injection control, and a simulation control control; the simulation control control includes a start simulation control, a pause simulation control, an end simulation control, a continue simulation control, and a control for setting a reduction ratio.

[0035] Among them, display controls are used to display model parameters. For example, display controls may include dial controls and light bulb controls; parameter injection controls are used to receive model parameters input from external devices to simulate the model to be simulated based on the input model parameters. Simulation control controls are used to control the simulation process of the model to be simulated, such as controlling the start, pause, end, and whether to continue the simulation process.

[0036] In this embodiment, the mapping relationship between the display class control and the parameter injection control and the model parameter can be stored in advance. Specifically, the simulation parameter bound to the display class control can be a simulation variable, an actual physical variable, or a variable expression composed of a simulation variable and an actual physical variable. By binding the display class control to the simulation parameter, the numerical display is driven. Exemplarily, the curve view corresponding to the curve control MwSimPlotView can accommodate more than one curve, and each curve will be bound to a different variable expression.

[0037] Furthermore, the appearance of display controls can be set to improve the flexibility of result display during simulation. Taking the MwBulbWidget as an example, three states can be set: normal, warning, and error. The appearance of the MwBulbWidget in the three states is displayed in green, yellow, and red respectively. The corresponding color is displayed on the MwBulbWidget according to the actual state during simulation.

[0038] In a specific implementation, the simulation parameters bound to the parameter injection control include simulation variables or actual physical variables. Each parameter injection control can be bound to at least one simulation parameter. For example, when the parameter injection control is a table control, multiple simulation parameters can be bound to the table control so that multiple simulation parameters can be input through the table control during the simulation process.

[0039] In this embodiment, the simulation control controls include a start simulation control, a pause simulation control, an end simulation control, a continue simulation control, and a control for setting a reduction ratio. The start simulation control can also be divided into an independent start simulation control and a synchronous start simulation control according to different simulation modes.

[0040] In a specific implementation, when the simulation interface is set up, the interface resources of the simulation interface, the model resources of the model to be simulated, and the dynamic link library files corresponding to the original modeling application can be obtained to obtain the target simulation application based on the obtained interface resources, model resources and dynamic link library files.

[0041] Specifically, the implementation method of obtaining the pre-set interface resources corresponding to the model to be simulated, the model resources of the model to be simulated, and the dynamic link library file corresponding to the original modeling application includes: calling a pre-built configuration file acquisition interface to obtain the configuration file; wherein the configuration file records a first storage path for the interface resources, a second storage path for the model resources, and a third storage path for the dynamic link library file; based on the first storage path, the second storage path, and the third storage path in the configuration file, the interface resources, the model resources, and the dynamic link library file are obtained.

[0042] In a specific implementation, a configuration file including a first storage path, a second storage path, and a third storage path may be generated in advance. The configuration file is obtained by calling a pre-built configuration file acquisition interface, and the first storage path, the second storage path, and the third storage path are determined by reading the configuration file, and the interface resources are obtained according to the first storage path; the model resources are obtained according to the second storage path; and the dynamic link library file is obtained according to the third storage path, thereby completing the acquisition of the interface resources, the model resources, and the dynamic link library file.

[0043] S120: Packing the interface resources, model resources and dynamic link library files into an executable program, and determining the executable program as a target simulation application.

[0044] In a specific implementation, the interface resources, model resources and dynamic link library files can be packaged by software virtualization technology to obtain an executable program, and the executable program can be determined as a target simulation application.

[0045] In order to facilitate the target simulation terminal to simulate the simulation model through the target simulation application, the operating system type corresponding to the user terminal can be determined in advance, so as to generate the target simulation application based on the operating system type, thereby improving the compatibility between the target simulation application and the target simulation terminal. Optionally, before packaging the interface resources, model resources and dynamic link library files into an executable program, it also includes: determining the operating system type of the target simulation terminal, and generating a system adaptation interface based on the operating system type; packaging the interface resources, model resources and dynamic link library files into an executable program, including: packaging the interface resources, model resources and dynamic link library files into an executable program based on the system adaptation interface.

[0046] The target simulation terminal is a terminal that performs simulation operations through a target simulation application, and the operating system type includes a Windows operating system type and a Linux operating system type.

[0047] In a specific implementation, when determining the operating system type of the target simulation terminal, if the configuration information received in advance from the external input device includes the operating system type, the operating system type in the configuration information is used as the operating system type of the target simulation terminal. If the operating system type is not included, the preset default type can be determined as the operating system type. Exemplarily, the default type includes a Windows operating system type and a Linux operating system type.

[0048] To clearly explain the resource packaging process, see Figure 2 . Different system adapter interfaces can be generated for different operating system types. For example, the system adapter interface includes a Windows interface and a Linux interface. The interface resources, model resources and dynamic link library files are packaged through the system adapter interface, so that the packaged executable program is provided with a system adapter interface corresponding to the operating system type of the target simulation terminal, so that the target simulation terminal can run the executable program through the system adapter interface to complete the simulation operation of the simulation model.

[0049] The executable program provided in this embodiment has the characteristics of low dependency and light weight, and can be separated from the modeling and simulation platform environment and run in any terminal that does not have the modeling and simulation platform installed, thus getting rid of the limitation of the environment. In addition, by setting the system adaptation interface, it supports the target simulation application Windows and Linux multi-system environment application, broadens the scope of visualization application, meets the diversified needs of application environment, and brings great convenience to users.

[0050] In this embodiment, the method of this embodiment further includes: uploading the target simulation application to the application system management platform, so that the application system management platform displays the target simulation application.

[0051] Specifically, the target simulation application can be uploaded to the application system management platform, and the uploaded target simulation application can be labeled with a name and version number to facilitate the management of the target simulation application. Furthermore, different target simulation applications can be displayed in the form of a list or icon on the application system management platform. In addition, the displayed target simulation applications can be grouped to facilitate classification management. Moreover, for the displayed target simulation application, access to and downloading of the target simulation application can be controlled based on pre-stored application permissions. The application system management platform can also publish, update, collect, and remove uploaded target simulation applications.

[0052] In this embodiment, the method of this embodiment also includes: when receiving a simulation instruction for the model to be simulated, determining the simulation input parameters corresponding to the model to be simulated based on the simulation instruction; based on the simulation input parameters, running the target simulation application to display the simulation results generated after the simulation input parameters are input to the model to be simulated; wherein the simulation results include curve simulation results and / or three-dimensional animation simulation results.

[0053] In a specific implementation, a simulation instruction for controlling the simulation operation of the model to be simulated may be received. The simulation instruction includes simulation input parameters. It should be noted that the simulation instruction may be generated by triggering a simulation interface control on a simulation interface of a target simulation application. Exemplarily, by inputting parameters into a text control, a simulation instruction may be generated, and the parameters input into the text control may be determined as simulation input parameters. The simulation input parameters are different for different application scenarios. For example, if the model to be simulated is a car model, the simulation input parameters may include rotation speed and angle, etc. The simulation results corresponding to the simulation input parameters may be obtained by running the target simulation application.

[0054] This embodiment visualizes the output of the model to be simulated during simulation by displaying the curve simulation results or the three-dimensional animation simulation results, which is convenient for users to view; and simulation input parameters can be entered on the interface to verify the visualization results of the model simulation, which can meet the needs of fixed use and independent calculation execution of the target simulation application.

[0055] The technical solution of the embodiment of the present invention obtains pre-set interface resources corresponding to the model to be simulated, model resources of the model to be simulated and dynamic link library files corresponding to the original modeling application; wherein the original modeling application is used to perform modeling operations on the model to be simulated; by packaging the interface resources, model resources and dynamic link library files into an executable program, the executable program is determined as a target simulation application, so that the target simulation application, relative to the modeling simulation software, eliminates the huge functional part of modeling, has a simple structure, achieves the effect of lightweight simulation application, and is conducive to improving the convenience of the model simulation process.

[0056] Figure 3 1 is a schematic diagram of a structure of a simulation application generation device provided according to an embodiment of the present invention, and the device is used to execute the simulation application generation method provided in any of the above embodiments. The device and the simulation application generation method of the above embodiments belong to the same inventive concept, and the details not described in detail in the embodiment of the simulation application generation device can refer to the embodiment of the simulation application generation method. Figure 3 As shown, the device comprises:

[0057] The resource acquisition module 10 is used to acquire preset interface resources corresponding to the model to be simulated, model resources of the model to be simulated, and dynamic link library files corresponding to the original modeling application; wherein the original modeling application is used to perform modeling operations on the model to be simulated;

[0058] The target simulation application determination module 11 is used to package the interface resources, model resources and dynamic link library files into an executable program, and determine the executable program as the target simulation application.

[0059] Based on any optional technical solution in the embodiment of the present invention, optionally, the resource acquisition module 10 includes:

[0060] An interface calling unit, used to call a pre-built configuration file acquisition interface to acquire a configuration file; wherein the configuration file records a first storage path of the interface resource, a second storage path of the model resource, and a third storage path of the dynamic link library file;

[0061] The resource acquisition unit is used to acquire interface resources, model resources and dynamic link library files based on the first storage path, the second storage path and the third storage path in the configuration file.

[0062] Based on any optional technical solution in the embodiments of the present invention, optionally, the following further includes:

[0063] A control generation module, used to generate at least one simulation interface control based on the received control generation instruction before obtaining the preset interface resources corresponding to the model to be simulated, and generate a simulation interface based on the at least one simulation interface control;

[0064] The interface resource generation module is used to generate interface resources based on the simulation interface and the mapping relationship between pre-stored controls and model parameters of the model to be simulated.

[0065] On the basis of any optional technical solution in the embodiment of the present invention, optionally, the simulation interface control includes at least one of a display control, a parameter injection control and a simulation control control;

[0066] The simulation control controls include a start simulation control, a pause simulation control, an end simulation control, a continue simulation control and a speed reduction ratio setting control.

[0067] Based on any optional technical solution in the embodiments of the present invention, optionally, the following further includes:

[0068] The system type determination module is used to determine the operating system type of the target simulation terminal before packaging the interface resources, model resources and dynamic link library files into an executable program, and generate a system adaptation interface based on the operating system type;

[0069] The target simulation application determination module 11 includes:

[0070] The file packaging unit is used to package the interface resources, model resources and dynamic link library files into an executable program based on the system adaptation interface.

[0071] Based on any optional technical solution in the embodiments of the present invention, optionally, the following further includes:

[0072] The application upload module is used to upload the target simulation application to the application system management platform so that the application system management platform can display the target simulation application.

[0073] Based on any optional technical solution in the embodiments of the present invention, optionally, the following further includes:

[0074] A simulation input parameter determination module, configured to determine the simulation input parameters corresponding to the model to be simulated based on the simulation instruction when receiving the simulation instruction for the model to be simulated;

[0075] The application running module is used to run the target simulation application based on the simulation input parameters to display the simulation results generated after the simulation input parameters are input to the simulation model;

[0076] The simulation results include curve simulation results and / or three-dimensional animation simulation results.

[0077] The technical solution of the embodiment of the present invention obtains pre-set interface resources corresponding to the model to be simulated, model resources of the model to be simulated and dynamic link library files corresponding to the original modeling application; wherein the original modeling application is used to perform modeling operations on the model to be simulated; by packaging the interface resources, model resources and dynamic link library files into an executable program, the executable program is determined as a target simulation application, so that the target simulation application, relative to the modeling simulation software, eliminates the huge functional part of modeling, has a simple structure, achieves the effect of lightweight simulation application, and is conducive to improving the convenience of the model simulation process.

[0078] It is worth noting that in the embodiment of the generation device of the above-mentioned simulation application, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0079] Figure 4It is a structural diagram of an electronic device for implementing a method for generating a simulation application of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0080] like Figure 4 As shown, the electronic device 20 includes at least one processor 21, and a memory connected to the at least one processor 21, such as a read-only memory (ROM) 22, a random access memory (RAM) 23, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 21 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 22 or the computer program loaded from the storage unit 28 to the random access memory (RAM) 23. In RAM23, various programs and data required for the operation of the electronic device 20 can also be stored. The processor 21, ROM22 and RAM23 are connected to each other through a bus 24. An input / output (I / O) interface 25 is also connected to the bus 24.

[0081] A number of components in the electronic device 20 are connected to the I / O interface 25, including: an input unit 26, such as a keyboard, a mouse, etc.; an output unit 27, such as various types of displays, speakers, etc.; a storage unit 28, such as a disk, an optical disk, etc.; and a communication unit 29, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 29 allows the electronic device 20 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0082] The processor 21 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 21 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 21 executes the various methods and processes described above, such as the generation method of the simulation application.

[0083] In some embodiments, the generation method of the simulation application can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 28. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 20 via ROM22 and / or communication unit 29. When the computer program is loaded into RAM23 and executed by processor 21, one or more steps of the generation method of the simulation application described above can be executed. Alternatively, in other embodiments, processor 21 can be configured to execute the generation method of the simulation application by any other appropriate means (e.g., by means of firmware).

[0084] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0085] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0086] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0087] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0088] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0089] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0090] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0091] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for generating a simulation application, characterized in that: include: Acquire pre-set interface resources corresponding to the model to be simulated, model resources of the model to be simulated, and a dynamic link library file corresponding to an original modeling application; wherein the original modeling application is used to perform a modeling operation on the model to be simulated; The interface resources, the model resources and the dynamic link library files are packaged into an executable program, and the executable program is determined as a target simulation application.

2. The method according to claim 1, characterized in that The step of obtaining the preset interface resources corresponding to the model to be simulated, the model resources of the model to be simulated, and the dynamic link library file corresponding to the original modeling application includes: Calling a pre-built configuration file acquisition interface to acquire a configuration file; wherein the configuration file records a first storage path of the interface resource, a second storage path of the model resource, and a third storage path of the dynamic link library file; Based on the first storage path, the second storage path and the third storage path in the configuration file, the interface resource, the model resource and the dynamic link library file are acquired.

3. The method according to claim 1, characterized in that Before obtaining the preset interface resources corresponding to the model to be simulated, the method further includes: Generate at least one simulation interface control based on the received control generation instruction, and generate a simulation interface based on at least one simulation interface control; The interface resources are generated based on the simulation interface and the mapping relationship between the pre-stored controls and the model parameters of the model to be simulated.

4. The method according to claim 3, characterized in that The simulation interface control includes at least one of a display control, a parameter injection control, and a simulation control control; The simulation control controls include a start simulation control, a pause simulation control, an end simulation control, a continue simulation control and a speed reduction ratio setting control.

5. The method according to claim 1, characterized in that Before packaging the interface resources, the model resources and the dynamic link library file into an executable program, the method further includes: Determine the operating system type of the target emulation terminal, and generate a system adapter interface based on the operating system type; The step of packaging the interface resources, the model resources and the dynamic link library file into an executable program includes: Based on the system adaptation interface, the interface resources, the model resources and the dynamic link library file are packaged into an executable program.

6. The method according to claim 1, characterized in that Also includes: The target simulation application is uploaded to the application system management platform so that the application system management platform displays the target simulation application.

7. The method according to claim 1, characterized in that Also includes: In case of receiving a simulation instruction for the model to be simulated, determining simulation input parameters corresponding to the model to be simulated based on the simulation instruction; Based on the simulation input parameters, running the target simulation application to display the simulation results generated after the simulation input parameters are input into the model to be simulated; Wherein, the simulation results include curve simulation results and / or three-dimensional animation simulation results.

8. A device for generating a simulation application, characterized in that: include: A resource acquisition module, used to acquire pre-set interface resources corresponding to the model to be simulated, model resources of the model to be simulated, and a dynamic link library file corresponding to an original modeling application; wherein the original modeling application is used to perform a modeling operation on the model to be simulated; The target simulation application determination module is used to package the interface resources, the model resources and the dynamic link library file into an executable program, and determine the executable program as a target simulation application.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for generating a simulation application according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for generating a simulation application according to any one of claims 1 to 7 when the processor executes the computer instructions.

Citation Information

Patent Citations

  • Model packaging method and device, and electronic equipment

    CN111985055A

  • High-integration simulation tool modular packaging method

    CN115774569A

  • Application service system, electronic equipment and storage medium

    CN116578432A

  • System and method for dynamic assistance in software applications using behavior and host application models

    US6340977B1