Nothing Special   »   [go: up one dir, main page]

CN112668181A - Simulation test method, simulation test device, electronic equipment and storage medium - Google Patents

Simulation test method, simulation test device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112668181A
CN112668181A CN202011581364.5A CN202011581364A CN112668181A CN 112668181 A CN112668181 A CN 112668181A CN 202011581364 A CN202011581364 A CN 202011581364A CN 112668181 A CN112668181 A CN 112668181A
Authority
CN
China
Prior art keywords
model
simulation
simulated
parameters
project
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011581364.5A
Other languages
Chinese (zh)
Other versions
CN112668181B (en
Inventor
鲁严
曹文天
李门举
邹毅军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Keliang Information Engineering Co ltd
Original Assignee
Shanghai Keliang Information Engineering Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Keliang Information Engineering Co ltd filed Critical Shanghai Keliang Information Engineering Co ltd
Priority to CN202011581364.5A priority Critical patent/CN112668181B/en
Publication of CN112668181A publication Critical patent/CN112668181A/en
Application granted granted Critical
Publication of CN112668181B publication Critical patent/CN112668181B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application relates to the field of model simulation, and discloses a simulation test method, a simulation test device, electronic equipment and a storage medium. The method comprises the following steps: importing a basic model of a project to be simulated in modeling software through a simulation engine; the method for acquiring the parameter information of the project to be simulated from the parameter file of the project to be simulated comprises the following steps: model parameters and simulation parameters; generating a dynamic simulation model of the project to be simulated according to the model parameters and the basic model; performing dynamic simulation on the dynamic simulation model according to the simulation parameters; and exporting the simulation result. In the embodiment of the application, the basic model is imported through the simulation engine, so that the time for manually searching the basic model in the system folder is reduced; the parameter information is stored in the form of a parameter file and is directly read in the process of generating the dynamic simulation model, the parameters are not required to be input manually step by step, the parameter configuration process in the dynamic simulation process is optimized, the time and labor input in the simulation test process are reduced, and the user experience is improved.

Description

Simulation test method, simulation test device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the field of model simulation, in particular to a simulation test method, a simulation test device, electronic equipment and a storage medium.
Background
The simulation technology has very wide applicability, for example, in the field of aerospace, the simulation technology is an indispensable means for developing aircrafts and satellite vehicles, and can obtain very high economic benefit; advanced simulation techniques must be applied comprehensively during the development, identification and sizing processes to obtain new and advanced aircrafts and vehicles. And for the fields of social economy and the like, experiments on real systems are difficult to perform, so that the modern simulation technology is not only applied to the field of traditional engineering, but also increasingly and widely applied to the fields of society, economy, biology and the like, such as traffic control, urban planning, resource utilization, environmental pollution prevention and control, production management, market prediction, analysis and prediction of world economy, population control and the like. The research of the simulation technology has important significance.
In the related technology, when simulation is built in various fields, model data is stored in a system folder in a large number, a dynamic simulation model of a project to be simulated needs to be manually searched in a resource folder in the modeling process, a parameter configuration part after the dynamic simulation model of the project to be simulated is obtained, parameters need to be manually input one by one for multiple groups of configurations, and finally dynamic simulation is carried out, so that the process is complicated.
Disclosure of Invention
The embodiment of the application aims to provide a simulation test method which simplifies the process of model simulation in each field.
In order to solve the above technical problem, an embodiment of the present application provides a simulation test method, including the following steps:
importing a basic model of a project to be simulated in modeling software through a simulation engine;
acquiring parameter information of the project to be simulated from a parameter file of the project to be simulated, wherein the parameter information comprises: model parameters and simulation parameters;
generating a dynamic simulation model of the project to be simulated according to the model parameters and the basic model;
performing dynamic simulation on the project to be simulated according to the simulation parameters and the dynamic simulation model;
and exporting the result of the dynamic simulation, and closing the simulation engine.
An embodiment of the present application further provides a simulation test apparatus, including:
the model import module is used for importing a basic model of a project to be simulated in the modeling software through the simulation engine;
the first obtaining module is used for obtaining parameter information of the project to be simulated from a parameter file of the project to be simulated, and the parameter information comprises: model parameters and simulation parameters;
the second acquisition module is used for generating a dynamic simulation model of the project to be simulated according to the model parameters and the basic model;
the dynamic simulation module is used for dynamically simulating the project to be simulated according to the simulation parameters and the dynamic simulation model;
and the result exporting module is used for exporting the result of the dynamic simulation and closing the simulation engine.
An embodiment of the present application also provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above-described simulation test method.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the above-described simulation testing method.
Compared with the related technology, the method and the system have the advantages that the basic model is imported through the simulation engine, and the time for manually searching the basic model in the system folder is reduced; and the target parameter information is stored in the form of a parameter file, can be directly read in the process of generating the dynamic simulation model of the project to be simulated, does not need to input parameters step by step manually, optimizes the parameter configuration process in the dynamic simulation process, ensures that the whole process of carrying out the simulation test on the dynamic simulation model of the project to be simulated is more reasonable, reduces the time and labor input in the simulation test process, and improves the user experience.
In addition, before the basic model is imported through a simulation engine, whether a dynamic simulation model of a project to be simulated exists in a model library of a preset dynamic simulation model is inquired; if the model base of the dynamic simulation model does not have the dynamic simulation model of the project to be simulated, importing the basic model of the project to be simulated in the modeling software through a simulation engine; and if the preset model library has the dynamic simulation model of the item to be simulated, calling the dynamic simulation model of the item to be simulated in the model library of the dynamic simulation model. That is, the preset model library can store the dynamic simulation model resources of the item to be simulated, the dynamic simulation model of the item to be simulated is subjected to model parameter configuration on the basis model, and if the dynamic simulation model of the item to be simulated can be found in the preset model library, the time investment in model generation before dynamic simulation is further reduced.
In addition, after generating the dynamic simulation model of the project to be simulated according to the model parameters and the basic model, the method comprises the following steps: exporting a dynamic simulation model of a project to be simulated, and storing the dynamic simulation model into a preset model library; if the preset model base does not have the dynamic simulation model of the project to be simulated, the dynamic simulation model of the project to be simulated is generated before dynamic simulation in the simulation test process, the generated dynamic simulation model of the project to be simulated is exported and stored in the preset model base, the configuration steps of the dynamic simulation model aiming at the project to be simulated can be reduced in the subsequent simulation test process, the whole dynamic simulation process is optimized, and time and labor input are reduced.
In addition, after adjusting the model parameters and/or the simulation parameters, the method comprises the following steps: and updating the parameter file according to the adjusted model parameters and/or simulation parameters. If the model parameters and/or the simulation parameters are adaptively adjusted before the dynamic simulation is carried out, the adjusted model parameters and/or the simulation parameter information are exported and the parameter file is updated.
Drawings
One or more embodiments are illustrated in the accompanying drawings, which correspond to figures in the drawings, which are not to be construed as limiting the embodiments, wherein elements having the same reference numeral designations are shown as similar elements, and wherein the drawings are not to scale unless otherwise specified.
FIG. 1 is a flow chart of a simulation testing method provided according to a first embodiment of the present application;
FIG. 2 is a flow chart of a simulation testing method provided in accordance with a second embodiment of the present application;
FIG. 3 is a schematic diagram of a simulation test setup provided in accordance with a third embodiment of the present application;
fig. 4 is a schematic diagram of an electronic device provided according to a fourth embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in various embodiments of the present application in order to provide a better understanding of the present application. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation of the present application, and the embodiments may be mutually incorporated and referred to without contradiction.
The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, the terms "comprise" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a system, product or apparatus that comprises a list of elements or components is not limited to only those elements or components but may alternatively include other elements or components not expressly listed or inherent to such product or apparatus. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise.
For the complicated process of inquiring and establishing a model and manually and gradually configuring parameters to perform dynamic simulation in the related technology, a simulation test platform is established to realize the simulation test method, and a basic realization part receives a user instruction by the simulation test platform, converts the user instruction into C/C + + API information and completes interactive operation with a simulation engine; since the GUI design operation page is not applicable to the whole field, this approach is not adopted, and the application does not impose a field limitation on the model simulation.
A first embodiment of the present application relates to a simulation test method. The specific flow is shown in figure 1.
Step 101, importing a basic model of a project to be simulated in modeling software through a simulation engine;
102, acquiring parameter information of the project to be simulated from a parameter file of the project to be simulated, wherein the parameter information comprises: model parameters and simulation parameters;
103, generating a dynamic simulation model of the project to be simulated according to the model parameters and the basic model;
104, performing dynamic simulation on the item to be simulated according to the simulation parameters and the dynamic simulation model;
and 105, exporting the result of the dynamic simulation, and closing the simulation engine.
In the embodiment, the basic model is imported through the simulation engine, so that the time for manually searching the basic model in the system folder is reduced; and the target parameter information is stored in the form of a parameter file, can be directly read in the process of generating the dynamic simulation model of the project to be simulated, does not need to input parameters step by step manually, optimizes the parameter configuration process in the dynamic simulation process, ensures that the whole process of carrying out the simulation test on the dynamic simulation model of the project to be simulated is more reasonable, reduces the time and labor input in the simulation test process, and improves the user experience.
The following describes implementation details of the simulation test method of the present embodiment in detail, and the following is only provided for easy understanding and is not necessary to implement the present embodiment.
In step 101, a base model is imported by a simulation engine. In one example, the simulation engine is an MATLAB engine, and the basic model in the Simulink is searched and imported by the MATLAB engine to perform a simulation test process. For example, when a model is imported in a specific implementation process, an MATLAB engine is opened through an engOpen function in a C/C + + environment, and a load _ system function calls a basic model in Simulink. In one example, if a plurality of basic models need to be operated, the plurality of basic models are classified after being imported, so that the subsequent selection and search of the basic models are facilitated.
In one example, before the base model is imported by the simulation engine, the dynamic simulation model of the project to be simulated, which is to be generated, is named in a self-defining manner in advance.
In one example, after importing the base model, the underlying configuration of the base model can be viewed through a simulation engine interface, e.g., the complete circuit connections or component layout can be viewed through a MATLAB engine.
In addition, after the basic model is imported, in one example, whether a command window of the simulation engine needs to be displayed on the current operation interface is selected, and if the command window is selected to be displayed, the data processing process passing through the simulation engine can be observed more specifically; and if the selection is not displayed, the current interface only displays the calling processing result, and the current interface is more direct and clear. The setting of whether the MATLAB command window is visible is implemented, for example, by the engSetVisible function.
In step 102, parameter information of the project to be simulated is obtained according to the parameter file of the project to be simulated, and the parameter information includes: model parameters and simulation parameters; in one example, the required parameter file can be searched by inputting the name of the parameter file of the project to be simulated; wherein, the simulation parameters are as follows: simulation step length and simulation duration. In one example, the parameter file is called by a set _ param function in a specific implementation process.
In one example, the model parameters and the simulation parameters do not have a mandatory association relationship, and may be acquired at different times, or may be selectively acquired as needed.
In one example, the parameter file is obtained by a method including, but not limited to: obtaining all parameters of the model by calling an MATLAB engine to generate; reading from a portable storage medium; interactive by communicatively connected devices, etc. And when parameter configuration is carried out subsequently, the model reads parameter information from the existing parameter file.
In addition, the model parameters may include model parameters of a dynamic simulation model of the project to be simulated, which are stored integrally, or model parameters which are stored modularly according to different parts in the dynamic simulation model of the project to be simulated. When parameter assignment is carried out on the basic model, the whole parameters of the dynamic simulation model of the project to be simulated are selected and imported, so that the time for parameter configuration is greatly reduced; or only importing the model parameters of part of the modules, so as to conveniently perform targeted adjustment on the parameters of part of the modules of the dynamic simulation model of the item to be simulated of the dynamic simulation.
In step 103, generating a dynamic simulation model of the project to be simulated according to the model parameters and the basic model; that is, the model parameter values obtained from the parameter file are given to the imported base model. In one example, when a certain battery model needs to be dynamically simulated, a basic model of the battery is obtained first, the set current 1.5A of the battery model in the first period of time, the set current 3A of the battery model in the second period of time, the set current 5A of the battery model in the third period of time, the set current 10A of the battery model in the fourth period of time, the specific time 10S, 8S, 20S, 5S for switching each segment and the like are read through a parameter file, and model parameters are directly given to the basic model to be used for generating a dynamic simulation model of a project to be simulated. The imported model parameters are subjected to overall assignment, so that the process of gradually assigning the required model parameters is optimized, and the time investment for assigning the model can be effectively reduced.
In step 104, the dynamic simulation model of the project to be simulated is dynamically simulated according to the simulation parameters. In step 102, the simulation parameters have been read through the parameter file, and in step 103, the dynamic simulation model of the item to be simulated has been generated, and in one example, the dynamic simulation model of the item to be simulated in the simulation engine is called to perform dynamic simulation according to the simulation parameters. For example, in the specific implementation process, a dynamic simulation process is implemented by calling a simOut function.
In one example, the parameter change during the process can be displayed when the dynamic simulation is performed, and preferably, when the parameter of interest is marked before the dynamic simulation is performed, only the change of the parameter of interest is displayed when the dynamic simulation is performed.
In addition, if some model parameters and/or simulation parameters stored in the parameter file need not be adapted in the dynamic simulation process, or some model parameters and/or simulation parameters stored in the parameter file are missing, after parameter information of the project to be simulated is obtained from the parameter file of the project to be simulated, a user instruction is received, and adaptive adjustment is performed on the model parameters and/or simulation parameters which need to be adjusted. Optionally, the configuration information is not acquired from the parameter file, and the parameter configuration is performed by adopting the user autonomous input. The adaptive adjustment or configuration of the parameters enables the dynamic simulation process to be closer to an ideal flow, and the user experience is improved on the premise that the simulation steps are still simplified.
In one example, after the model parameters and/or the simulation parameters are adjusted, the adjusted model parameters and/or the adjusted simulation parameters are completely exported, and since the adjusted model parameters and/or the adjusted simulation parameters are more suitable for the whole dynamic simulation process, the parameter file is updated, so that the next direct call is facilitated. Or selecting to reserve the original version parameter file, storing the updated model parameters and/or simulation parameters as a new version of the parameter file, and calling next time to select the original version parameter file or the new version parameter file, for example, the specific version distinction can be embodied in the name of the parameter file.
In addition, after the model parameters and/or the simulation parameters are adjusted, only the changed parameter part can be derived, the occupied storage space is smaller, the parameter part is combined and adopted when the same configuration is needed, and the parameter configuration of the part is more flexible. In one example, the parameter part with change is marked while the model parameters and/or simulation parameters are adjusted, and then marked and unmarked parameter information is exported to be a configuration file; when the parameter is acquired again, the configuration file is called instead of the parameter file, the data of the unmarked parameter part is fixed, and only the parameter part with the mark is concerned and adjusted; the configuration file supports only paying attention to and adjusting the marking parameters, parameters needing attention can be adjusted and compared more conveniently and accurately, and the efficiency of simulation testing is improved.
In step 105, the results of the simulation are exported and the simulation engine is shut down. After the simulation is finished, the simulation result is exported, so that the manual recording of simulation data is avoided; in one example, shutting down the simulation engine MATLAB may be implemented by an engClose function.
In one example, when the simulation result is derived, all information of the simulation is derived completely, including configurations of a dynamic simulation model, model parameters, simulation parameters and the like of the project to be simulated, and the information is used for repeating the simulation process when needed.
In addition, a model description document is generated in the process of carrying out the simulation test, wherein the presentation comprises the following steps: the model name, the MATLAB version, the creator, the creation time, the last modifier, the last modification time, the remark description information, the parameter file information of the simulation project or the model subsystem hierarchical structure and other information are convenient for an operator to inquire the configuration source of the opposite joint.
According to the embodiment, the basic model is imported through the simulation engine, so that the time for manually searching the basic model in the system folder is reduced; the configuration information is stored in the form of a parameter file and can be directly read in the process of generating the dynamic simulation model of the project to be simulated without gradually and manually inputting parameters, so that the parameter configuration process in the dynamic simulation is optimized, meanwhile, the user is not excluded from adaptively adjusting the model parameters or the simulation parameters according to actual needs, and the adjusted parameter information is exported to be used for updating the parameter file, so that the subsequent parameter calling is facilitated; and the generated dynamic simulation model of the project to be simulated and the parameter file are named in a user-defined mode, so that the dynamic simulation model and the parameter file can be searched more accurately and quickly when being called again. The whole process of the simulation test of the dynamic simulation model of the project to be simulated is more reasonable, the time and labor input in the simulation test process are reduced, and the user experience is improved.
A second embodiment of the present application relates to a simulation test method. The specific flow is shown in fig. 2.
Step 201, inquiring whether a preset model library has a dynamic simulation model of a project to be simulated; if not, go to step 202; if yes, go to step 206;
step 202, importing a basic model of a project to be simulated in modeling software through a simulation engine;
step 203, obtaining model parameters of the project to be simulated from the parameter file of the project to be simulated;
step 204, generating a dynamic simulation model of the project to be simulated according to the model parameters and the basic model;
step 205, exporting a dynamic simulation model of the project to be simulated, and storing the dynamic simulation model into a preset model library; and proceeds to step 207;
step 206, calling a dynamic simulation model of the item to be simulated in a preset model library;
step 207, acquiring simulation parameters of the project to be simulated from the parameter file of the project to be simulated, and performing dynamic simulation on the dynamic simulation model of the project to be simulated according to the simulation parameters;
and step 208, exporting the simulation result, and closing the simulation engine.
Step 202, step 204, and step 208 of the second embodiment are substantially the same as those of the first embodiment, and are not repeated here to avoid repetition; step 203 and step 207 are different from the first embodiment in requirements for parameter information, so that simultaneous acquisition is not performed, and the first embodiment may be referred to for implementation details except for the acquisition order. The main difference is step 201, step 206 and step 205, and the detailed process is described below.
In step 201 and step 206, inquiring whether a preset model library has a dynamic simulation model of the item to be simulated; namely, the local preset model library stores models for completing parameter configuration, and can be called through name query when dynamic simulation is needed. The processes of importing a basic model in modeling software, obtaining model parameters in a parameter file and configuring a dynamic simulation model of a project to be simulated are not needed, the time for configuring the model before dynamic simulation is reduced, and the process of simulation testing is further optimized.
In one example, the preset model library can store different versions of the dynamic simulation model of the same item to be simulated, and when the dynamic simulation model of the item to be simulated is obtained from the preset model library, the version of the dynamic simulation model of the item to be simulated which is most suitable for the current simulation is selected by comparing information such as model parameters, connection structures and the like of different versions. And in an interface for comparing model parameters, distinguishing marks are displayed on parts with inconsistent model parameters in different versions, so that the difference of different versions can be noticed conveniently.
In addition, model data are displayed in a classified tree form in a preset model library; when the dynamic simulation model of the project to be simulated is searched, the dynamic simulation model of the project to be simulated can be quickly searched through the classification tree structure besides the name search.
In step 205, the dynamic simulation model of the project to be simulated is exported and stored in the preset model library. If the dynamic simulation model of the project to be simulated is not found in the preset model library, a basic model and a parameter file are obtained and used for constructing the dynamic simulation model of the project to be simulated; after the dynamic simulation model of the project to be simulated is built, the dynamic simulation model of the project to be simulated is exported and stored in a preset model library so as to be convenient to call when needed next time, the steps and time investment on the generation of the dynamic simulation model of the project to be simulated during subsequent calling are reduced, and the simulation test flow is optimized. Meanwhile, the export process is not limited to before step 207, as long as it is after the dynamic simulation model is generated, for example, step 207, step 208 may be executed before, after, or at the same time the generated dynamic simulation model is exported and stored.
In the embodiment, a preset model library is set on the basis that simulation parameters can be imported through a parameter file; model data for completing parameter configuration of a basic model of a project to be simulated is stored in the preset model library, and the model data can be directly called in the process of carrying out simulation test. If the dynamic simulation model of the project to be simulated exists in the preset model library, the basic model does not need to be combined with the model parameters in the parameter file to generate the dynamic simulation model of the project to be simulated; if the dynamic simulation model of the item to be simulated does not exist in the preset model library, the dynamic simulation model of the item to be simulated, which is generated by combining the basic model with the model parameters in the parameter file, is stored in the preset model library, so that the dynamic simulation model of the item to be simulated can be directly called in the follow-up process of carrying out dynamic simulation on the dynamic simulation model of the item to be simulated, the step of configuring the model parameters is not needed, the simulation test process is further simplified, and the time investment for simulation test is reduced.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A third embodiment of the present application relates to an apparatus for simulating a test model, as shown in fig. 3, including:
the model importing module 301 is used for importing a basic model of a project to be simulated in modeling software through a simulation engine;
a first obtaining module 302, configured to obtain parameter information of a project to be simulated from a parameter file of the project to be simulated, where the parameter information includes: model parameters and simulation parameters;
a second obtaining module 303, configured to generate a dynamic simulation model of the project to be simulated according to the model parameters and the basic model;
the dynamic simulation module 304 is used for performing dynamic simulation on the project to be simulated according to the simulation parameters and the dynamic simulation model;
and a result exporting module 305 for exporting the result of the dynamic simulation and shutting down the simulation engine.
Before the model importing module 301, a model querying module (not shown) queries whether a dynamic simulation model of an item to be simulated exists in a preset model library of the dynamic simulation model; if the model base of the dynamic simulation model does not have the dynamic simulation model of the project to be simulated, importing the basic model of the project to be simulated in the modeling software through a simulation engine; if the preset model library has the dynamic simulation model of the project to be simulated, calling the dynamic simulation model of the project to be simulated in the model library of the dynamic simulation model; the model library of the preset dynamic simulation model is independent of modeling software.
In the model import module 301, a simulation engine is started; and importing a basic model of the project to be simulated in the modeling software through a function instruction in the simulation engine.
In the second obtaining module 303, after the dynamic simulation model of the item to be simulated for dynamic simulation is generated according to the model parameters and the basic model, the dynamic simulation model of the item to be simulated is derived and stored in the preset model library.
In the dynamic simulation module 304, after parameter information of the project to be simulated is acquired from the parameter file of the project to be simulated, a user instruction is received, and model parameters and/or simulation parameters are adjusted; and updating the parameter file according to the adjusted model parameters and/or simulation parameters.
It should be understood that this embodiment is a system embodiment corresponding to the above embodiment, and that this embodiment can be implemented in cooperation with the above embodiment. The related technical details mentioned in the above embodiments are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the above-described embodiments.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present application, a unit that is not so closely related to solving the technical problem proposed by the present application is not introduced in the present embodiment, but it does not indicate that no other unit exists in the present embodiment.
A fourth embodiment of the present application relates to an electronic device, as shown in fig. 4, comprising at least one processor 401; and a memory 402 communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above-described simulation test method.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium according to the antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
A fifth embodiment of the present application relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the above embodiments may be accomplished by instructing related hardware according to a program, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific embodiments for carrying out the present application, and that various changes in form and details may be made therein without departing from the spirit and scope of the present application in practice.

Claims (10)

1. A simulation test method is characterized by comprising the following steps:
importing a basic model of a project to be simulated in modeling software through a simulation engine;
acquiring parameter information of the project to be simulated from the parameter file of the project to be simulated, wherein the parameter information comprises: model parameters and simulation parameters;
generating a dynamic simulation model of the project to be simulated according to the model parameters and the basic model;
according to the simulation parameters and the dynamic simulation model, performing dynamic simulation on the project to be simulated;
and exporting the result of the dynamic simulation, and closing the simulation engine.
2. The simulation test method according to claim 1, wherein before the base model of the item to be simulated is imported into the modeling software by the simulation engine, the method comprises:
inquiring whether a model base of a preset dynamic simulation model has a dynamic simulation model of the item to be simulated;
if the model base of the dynamic simulation model does not have the dynamic simulation model of the project to be simulated, importing a basic model of the project to be simulated in modeling software through a simulation engine; if the preset model is stored in the dynamic simulation model of the item to be simulated, calling the dynamic simulation model of the item to be simulated in the model library of the dynamic simulation model;
wherein the model library of the preset dynamic simulation model is independent of the modeling software.
3. The simulation test method according to claim 2, wherein after generating the dynamic simulation model of the item to be simulated according to the model parameters and the base model, the method comprises: and exporting the dynamic simulation model of the project to be simulated, and storing the dynamic simulation model to a model library of the dynamic simulation model.
4. The simulation testing method according to claim 1, wherein after acquiring the parameter information of the project to be simulated from the parameter file of the project to be simulated, the method comprises:
and receiving a user instruction, and adjusting the model parameters and/or the simulation parameters.
5. The simulation test method according to claim 4, wherein the adjusting the model parameters and/or the simulation parameters comprises: and updating the parameter file according to the adjusted model parameters and/or simulation parameters.
6. The simulation test method according to claim 4, wherein the adjusting the model parameters and/or the simulation parameters further comprises:
marking the model parameters and/or simulation parameters which change in the adjusting process;
after the adjusting the model parameters and/or the simulation parameters, the method comprises the following steps:
exporting the marked and adjusted parameter file as a configuration file; wherein the marked model parameters and/or simulation parameters in the configuration file support modification, and the unmarked model parameters and/or simulation parameters do not support modification;
the acquiring the parameter information of the project to be simulated from the parameter file of the project to be simulated comprises the following steps:
and acquiring the parameter information of the project to be simulated from the configuration file of the project to be simulated.
7. The simulation test method of claim 1, wherein the importing, by the simulation engine, the base model of the item to be simulated in the modeling software comprises:
starting the simulation engine;
and importing the basic model of the project to be simulated in the modeling software through a function instruction in the simulation engine.
8. A simulation test apparatus, comprising:
the model import module is used for importing a basic model of a project to be simulated in the modeling software through the simulation engine;
a first obtaining module, configured to obtain parameter information of the project to be simulated from a parameter file of the project to be simulated, where the parameter information includes: model parameters and simulation parameters;
the second acquisition module is used for generating a dynamic simulation model of the project to be simulated according to the model parameters and the basic model;
the dynamic simulation module is used for dynamically simulating the project to be simulated according to the simulation parameters and the dynamic simulation model;
and the result exporting module is used for exporting the result of the dynamic simulation and closing the simulation engine.
9. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the simulation testing method of any of claims 1 to 7.
10. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the simulation testing method of any of claims 1 to 7.
CN202011581364.5A 2020-12-28 2020-12-28 Simulation test method and device, electronic equipment and storage medium Active CN112668181B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011581364.5A CN112668181B (en) 2020-12-28 2020-12-28 Simulation test method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011581364.5A CN112668181B (en) 2020-12-28 2020-12-28 Simulation test method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112668181A true CN112668181A (en) 2021-04-16
CN112668181B CN112668181B (en) 2024-06-14

Family

ID=75411031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011581364.5A Active CN112668181B (en) 2020-12-28 2020-12-28 Simulation test method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112668181B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113238966A (en) * 2021-06-22 2021-08-10 中国农业银行股份有限公司 Report platform front end testing method, device, equipment and storage medium
CN113449387A (en) * 2021-08-30 2021-09-28 肇庆小鹏新能源投资有限公司 Data processing method, device and system for cloud computing, electronic equipment and medium
CN114510893A (en) * 2022-02-17 2022-05-17 广东广纳芯科技有限公司 Simulation method for generating filter circuit and waveform thereof
CN116243622A (en) * 2023-05-06 2023-06-09 东方空间技术(山东)有限公司 Semi-physical simulation system and simulation test method thereof
CN117093259A (en) * 2023-10-20 2023-11-21 腾讯科技(深圳)有限公司 Model configuration method and related equipment
CN118036243A (en) * 2023-12-26 2024-05-14 北京鼎成智造科技有限公司 Data processing method and device for simulation
CN118377712A (en) * 2024-04-25 2024-07-23 北京华如科技股份有限公司 Simulation model test integrated method and device
CN118377712B (en) * 2024-04-25 2024-11-19 北京华如科技股份有限公司 Simulation model test integrated method and device

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03263178A (en) * 1990-03-13 1991-11-22 Nec Corp Delay simulation system
FR2825172A1 (en) * 2001-05-28 2002-11-29 Claude Calafell Non reproducible perforated code or encryption marking of commercial papers by laser, in which paper is continuously fed under laser beam controlled by micro-computer programmed to set authenticating protocols for beam
US20030125915A1 (en) * 2001-11-30 2003-07-03 International Business Machines Corporation Count data access in a distributed simulation environment
US6785873B1 (en) * 1997-05-02 2004-08-31 Axis Systems, Inc. Emulation system with multiple asynchronous clocks
US20090292514A1 (en) * 2008-02-15 2009-11-26 Invensys Systems, Inc. System And Method For Autogenerating Simulations For Process Control System Checkout And Operator Training
US20120197686A1 (en) * 2011-01-31 2012-08-02 Accretive Technologies, Inc. Predictive deconstruction of dynamic complexity
CN103049601A (en) * 2012-12-11 2013-04-17 国网信通亿力科技有限责任公司 Information system simulation modeling method
RU2013149197A (en) * 2013-11-06 2015-05-20 Российская Федерация, от имени которой выступает Министерство промышленности и торговли Российской Федерации (Минпромторг России) METHOD FOR NON-CONTACT MEASUREMENT OF OBJECT GEOMETRIC PARAMETERS IN SPACE AND DEVICE FOR ITS IMPLEMENTATION
CN104699552A (en) * 2015-02-15 2015-06-10 四川长虹电器股份有限公司 Data recovery method and cloud server
CN205718733U (en) * 2016-04-29 2016-11-23 国网山东省电力公司海阳市供电公司 A kind of electric line pole model
CN106204625A (en) * 2016-07-27 2016-12-07 大连理工大学 A kind of variable focal length flexibility pose vision measuring method
US20170024500A1 (en) * 2015-07-21 2017-01-26 Tata Elxsi Limited System and method for enhanced emulation of connected vehicle applications
CN109359792A (en) * 2018-07-11 2019-02-19 北京联创众升科技有限公司 It is a kind of that tune control system and method are led based on dynamic modeling
CN111061164A (en) * 2019-12-06 2020-04-24 上海航天控制技术研究所 Unmanned aerial vehicle semi-physical simulation system and simulation method
CN111830930A (en) * 2020-07-15 2020-10-27 上海科梁信息工程股份有限公司 Motor controller simulation test method, system, device and computer storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03263178A (en) * 1990-03-13 1991-11-22 Nec Corp Delay simulation system
US6785873B1 (en) * 1997-05-02 2004-08-31 Axis Systems, Inc. Emulation system with multiple asynchronous clocks
FR2825172A1 (en) * 2001-05-28 2002-11-29 Claude Calafell Non reproducible perforated code or encryption marking of commercial papers by laser, in which paper is continuously fed under laser beam controlled by micro-computer programmed to set authenticating protocols for beam
US20030125915A1 (en) * 2001-11-30 2003-07-03 International Business Machines Corporation Count data access in a distributed simulation environment
US20090292514A1 (en) * 2008-02-15 2009-11-26 Invensys Systems, Inc. System And Method For Autogenerating Simulations For Process Control System Checkout And Operator Training
US20120197686A1 (en) * 2011-01-31 2012-08-02 Accretive Technologies, Inc. Predictive deconstruction of dynamic complexity
CN103049601A (en) * 2012-12-11 2013-04-17 国网信通亿力科技有限责任公司 Information system simulation modeling method
RU2013149197A (en) * 2013-11-06 2015-05-20 Российская Федерация, от имени которой выступает Министерство промышленности и торговли Российской Федерации (Минпромторг России) METHOD FOR NON-CONTACT MEASUREMENT OF OBJECT GEOMETRIC PARAMETERS IN SPACE AND DEVICE FOR ITS IMPLEMENTATION
CN104699552A (en) * 2015-02-15 2015-06-10 四川长虹电器股份有限公司 Data recovery method and cloud server
US20170024500A1 (en) * 2015-07-21 2017-01-26 Tata Elxsi Limited System and method for enhanced emulation of connected vehicle applications
CN205718733U (en) * 2016-04-29 2016-11-23 国网山东省电力公司海阳市供电公司 A kind of electric line pole model
CN106204625A (en) * 2016-07-27 2016-12-07 大连理工大学 A kind of variable focal length flexibility pose vision measuring method
CN109359792A (en) * 2018-07-11 2019-02-19 北京联创众升科技有限公司 It is a kind of that tune control system and method are led based on dynamic modeling
CN111061164A (en) * 2019-12-06 2020-04-24 上海航天控制技术研究所 Unmanned aerial vehicle semi-physical simulation system and simulation method
CN111830930A (en) * 2020-07-15 2020-10-27 上海科梁信息工程股份有限公司 Motor controller simulation test method, system, device and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张倩等: "过程控制实验教程及MATLAB实现", 31 May 2017, 中国矿业大学出版社, pages: 10 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113238966A (en) * 2021-06-22 2021-08-10 中国农业银行股份有限公司 Report platform front end testing method, device, equipment and storage medium
CN113449387A (en) * 2021-08-30 2021-09-28 肇庆小鹏新能源投资有限公司 Data processing method, device and system for cloud computing, electronic equipment and medium
CN114510893A (en) * 2022-02-17 2022-05-17 广东广纳芯科技有限公司 Simulation method for generating filter circuit and waveform thereof
CN116243622A (en) * 2023-05-06 2023-06-09 东方空间技术(山东)有限公司 Semi-physical simulation system and simulation test method thereof
CN117093259A (en) * 2023-10-20 2023-11-21 腾讯科技(深圳)有限公司 Model configuration method and related equipment
CN117093259B (en) * 2023-10-20 2024-02-27 腾讯科技(深圳)有限公司 Model configuration method and related equipment
CN118036243A (en) * 2023-12-26 2024-05-14 北京鼎成智造科技有限公司 Data processing method and device for simulation
CN118377712A (en) * 2024-04-25 2024-07-23 北京华如科技股份有限公司 Simulation model test integrated method and device
CN118377712B (en) * 2024-04-25 2024-11-19 北京华如科技股份有限公司 Simulation model test integrated method and device

Also Published As

Publication number Publication date
CN112668181B (en) 2024-06-14

Similar Documents

Publication Publication Date Title
CN112668181B (en) Simulation test method and device, electronic equipment and storage medium
US20040243373A1 (en) Electromagnetic/circuit co-simulation and co-optimization with parametric layout components
CN109634644A (en) Method and device for upgrading firmware of sensor through wireless communication
CN109739526A (en) Code update method and device
CN109614312A (en) Method for generating test case, device, electronic equipment and storage medium
CN110825395B (en) Multi-plug-in layered deployment system, device and medium
CN109086476B (en) Data processing method for drawing design, PLM plug-in and computing equipment
CN104361040A (en) Method and device for customized query
CN115061772B (en) Multi-field simulation model integration method and system
CN112417122A (en) Multi-turn question and answer method and device, computer readable storage medium and electronic equipment
CN111813744A (en) File searching method, device, equipment and storage medium
CN104484413A (en) Method and device for obtaining searching results
CN112989733B (en) Circuit analysis method, circuit analysis device, circuit analysis equipment and storage medium
CN101650689B (en) Nonvolatile data storage and search method and device
CN112567375A (en) Format verification method, information identification method, device and storage medium
CN111158645B (en) System and method for providing an integrated development environment
CN111737784B (en) Board card type selection configuration method and equipment based on digital three-dimensional ZXMP S385 subframe
CN115103392A (en) eSIM terminal test method, instrument, portal server, device and system
CN114282029A (en) Primitive management method and device, electronic equipment and storage medium
CN113298538B (en) Customer service data processing method and device
CN114462777A (en) Model management method, device, terminal and storage medium
CN112464569B (en) Machine learning method and system
CN112667637B (en) Data management method, device and computer readable storage medium
CN115237690A (en) Test tool generation method and device, electronic equipment and storage medium
EP4439280A1 (en) System and method for managing instances of applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: Building 4, No. 3533 Hechuan Road, Minhang District, Shanghai, 201103

Applicant after: Shanghai Keliang Information Technology Co.,Ltd.

Address before: Room 201, building 6, 829 Yishan Road, Xuhui District, Shanghai 200233

Applicant before: SHANGHAI KELIANG INFORMATION ENGINEERING Co.,Ltd.

Country or region before: China

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant