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

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

Info

Publication number
CN112668181B
CN112668181B CN202011581364.5A CN202011581364A CN112668181B CN 112668181 B CN112668181 B CN 112668181B CN 202011581364 A CN202011581364 A CN 202011581364A CN 112668181 B CN112668181 B CN 112668181B
Authority
CN
China
Prior art keywords
model
simulation
simulated
parameters
item
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.)
Active
Application number
CN202011581364.5A
Other languages
Chinese (zh)
Other versions
CN112668181A (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 Technology Co ltd
Original Assignee
Shanghai Keliang Information Technology 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 Technology Co ltd filed Critical Shanghai Keliang Information Technology 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

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 step of obtaining the parameter information of the item to be simulated from the parameter file of the item 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; carrying out 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, so that the parameters do not need to be manually input step by step, the parameter configuration process in the dynamic simulation process is optimized, the time and labor investment in the simulation test process are reduced, and the user experience is improved.

Description

Simulation test method and 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 wide applicability, for example, in the field of aerospace, the simulation technology is an indispensable means for developing aircrafts and satellite vehicles, and high economic benefits can be obtained; advanced simulation techniques must be fully applied in the development, identification and sizing processes to obtain new and advanced aircraft and vehicles. And for the fields of society economy and the like, experiments are difficult to be carried out on a real system, so that the modern simulation technology is not only applied to the traditional engineering field, but also increasingly widely applied to the fields of society, economy, biology and the like, such as traffic control, urban planning, resource utilization, environmental pollution 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 art, when modeling and simulating the fields, model data are stored in a system folder, 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 configuration, and finally, the 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 flow of model simulation in various fields.
In order to solve the technical problems, the embodiment of the application provides a simulation test method, which comprises the following steps:
Importing a basic model of a project to be simulated in modeling software through a simulation engine;
acquiring parameter information of an item to be simulated from a parameter file of the item 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, carrying out dynamic simulation on the items to be simulated;
and exporting the result of the dynamic simulation, and closing the simulation engine.
The embodiment of the application also provides a simulation test device, which comprises:
the model importing module is used for importing a basic model of a project to be simulated in the modeling software through the simulation engine;
The first acquisition module is used for acquiring parameter information of the to-be-simulated item from a parameter file of the to-be-simulated item, wherein 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 carrying out dynamic simulation on the items to be simulated according to the simulation parameters and the dynamic simulation model;
And the result export module is used for exporting the result of the dynamic simulation and closing the simulation engine.
The embodiment of the application also provides electronic equipment, which comprises: 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 simulation test method described above.
The embodiment of the application also provides a computer readable storage medium which stores a computer program, and the computer program realizes the simulation test method when being executed by a processor.
Compared with the related art, the embodiment of the application has the advantages that 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, and can be directly read in the process of generating the dynamic simulation model of the project to be simulated without gradually inputting parameters manually, so that the parameter configuration process in the dynamic simulation process is optimized, the whole simulation test flow of the dynamic simulation model of the project to be simulated is more reasonable, the time and labor investment in the simulation test process are reduced, and the user experience is improved.
In addition, before the basic model is imported through the simulation engine, inquiring whether a dynamic simulation model of a to-be-simulated item exists in a model library of a preset dynamic simulation model; if the model library of the dynamic simulation model does not have the dynamic simulation model of the item to be simulated, importing a basic model of the item to be simulated in modeling software through a simulation engine; and if the preset model library has a 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. The preset model library can store dynamic simulation model resources of the items to be simulated, the dynamic simulation models of the items to be simulated are model parameter configuration is carried out on the basic model, and if the dynamic simulation models of the items to be simulated can be found in the preset model library, time investment in model generation before dynamic simulation is further reduced.
In addition, after generating the dynamic simulation model of the item to be simulated according to the model parameters and the basic model, the method comprises the following steps: exporting a dynamic simulation model of the item to be simulated, and storing the dynamic simulation model into a preset model library; 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 is generated before dynamic simulation in the simulation test flow, and the generated dynamic simulation model of the item to be simulated is exported and stored in the preset model library, so that the configuration steps of the dynamic simulation model of the item to be simulated can be reduced in the subsequent simulation test process, the overall dynamic simulation flow is optimized, and the time and labor investment 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 simulation parameters are adaptively adjusted before the dynamic simulation is carried out, the adjusted model parameters and/or simulation parameter information are exported and updated to obtain the parameter files, and the updated parameter files can be directly imported in the subsequent process of carrying out the same parameter configuration, so that the adjustment steps before the dynamic simulation are reduced.
Drawings
One or more embodiments are illustrated in the figures of the accompanying drawings, which are meant to be exemplary and not limiting, and in which like reference numerals refer to like elements throughout the figures, and in which the figures do not constitute a scale unless specifically stated otherwise.
FIG. 1 is a flow chart of a simulation test method provided according to a first embodiment of the present application;
FIG. 2 is a flow chart of a simulation test method provided according to a second embodiment of the present application;
FIG. 3 is a schematic diagram of a simulation test apparatus provided according to a third embodiment of the present application;
fig. 4 is a schematic view of an electronic device according to a fourth embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present application, numerous technical details have been set forth in order to provide a better understanding of the present application. The claimed application may be practiced without these specific details and with various changes and modifications based on the following embodiments. The following divisions of the embodiments are for convenience of description, and should not be construed as limiting the specific embodiments of the present application, and the embodiments may be mutually combined and referred to without contradiction.
The terms "first", "second" in 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 defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the application, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion. For example, a system, article, or apparatus that comprises a list of elements is not limited to only those elements or units listed but may alternatively include other elements not listed or inherent to such article, or apparatus. In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
For the complex flow of inquiring and establishing a model and manually configuring parameters step by step to perform dynamic simulation in the related technology, the application establishes a simulation test platform to realize the simulation test method of the application, and the basic implementation part receives user instructions by the simulation test platform, converts the user instructions into C/C++ API information and completes interactive operation by a simulation engine; since the GUI design operation page is not applicable to the whole field, the approach is not adopted, and the application does not limit the field of model simulation.
The first embodiment of the 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;
Step 102, obtaining parameter information of the item to be simulated from a parameter file of the item to be simulated, wherein the parameter information comprises: model parameters and simulation parameters;
step 103, generating a dynamic simulation model of the project to be simulated according to the model parameters and the basic model;
104, dynamically simulating the item to be simulated according to the simulation parameters and the dynamic simulation model;
Step 105, export the result of dynamic simulation and turn off 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, and can be directly read in the process of generating the dynamic simulation model of the project to be simulated without gradually inputting parameters manually, so that the parameter configuration process in the dynamic simulation process is optimized, the whole simulation test flow of the dynamic simulation model of the project to be simulated is more reasonable, the time and labor investment in the simulation test process are reduced, and the user experience is improved.
The implementation details of the simulation test method of the present embodiment are specifically described below, and the following is merely provided for facilitating 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 a MATLAB engine, and the basic model in the Simulink is searched and imported by the MATLAB engine to perform a simulation test flow. For example, when the import model is executed in the concrete implementation process, the MATLAB engine is opened through engOpen functions in the C/C++ environment, and the load_system function calls the basic model in the Simulink. In one example, if multiple base models need to be operated, after the multiple base models are imported, they are classified, so that the subsequent selection and searching of the base models are facilitated.
In one example, prior to importing the base model by the simulation engine, custom naming is performed in advance for the dynamic simulation model of the item to be simulated that is to be generated.
In one example, after importing the base model, the underlying constructs of the base model can be viewed through a simulation engine interface, e.g., the complete circuit connection relationships 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 so, the data processing process through the simulation engine can be observed more specifically; if the current interface is not displayed, the current interface only displays the result of the calling process, and the current interface is more direct and clear. For example, the setting of whether the MATLAB command window is visible is implemented by a engSetVisible function.
In step 102, parameter information of the item to be simulated is obtained according to the parameter file of the item to be simulated, where 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 item to be simulated; wherein the simulation parameters are for example: simulation step length and simulation duration. In one example, the parameter file is called by a set_parameter function in the concrete implementation process.
In one example, the model parameters and the simulation parameters do not have a forced association relationship, and the model parameters and the simulation parameters can be acquired at different times and selectively according to the needs.
In one example, the parameter file may be obtained by a method including, but not limited to: acquiring all parameter generation of the model by calling a MATLAB engine; reading from the portable storage medium; interaction by communicatively connected devices, acquisition, etc. When the parameter configuration is carried out subsequently, the model reads the parameter information from the existing parameter file.
In addition, the model parameters may include model parameters of an integrally stored dynamic simulation model of the item to be simulated, or model parameters stored modularly according to different parts of the dynamic simulation model of the item to be simulated. When the basic model is subjected to parameter assignment, the overall parameters of the dynamic simulation model for importing the items to be simulated are selected, so that the time for parameter configuration is greatly reduced; or only the model parameters of partial modules are imported, so that the partial module parameters of the dynamic simulation model of the to-be-simulated project of the dynamic simulation can be adjusted in a targeted manner.
In step 103, generating a dynamic simulation model of the item 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 dynamic simulation needs to be performed on a certain battery model, a basic model of the battery is obtained first, and then a set current 1.5A of a first period of the battery model, a set current 3A of a second period of the battery model, a set current 5A of a third period of the battery model, a set current 10A of a fourth period of the battery model, specific times 10S, 8S, 20S, 5S of switching between the segments, and the like are read through a parameter file, and model parameters are directly given to the basic model to generate the dynamic simulation model of the item to be simulated. The whole assignment is carried out through the imported model parameters, so that the process of carrying out gradual assignment on 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 item 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 is invoked to perform dynamic simulation according to the simulation parameters. For example, the dynamic simulation process is implemented by calling simOut functions in the concrete implementation process.
In one example, the parameter change in the process can be displayed when the dynamic simulation is performed, preferably, the parameter of interest is marked before the dynamic simulation is performed, and only the change condition of the parameter of interest is displayed when the dynamic simulation is performed.
In addition, if some of the model parameters and/or simulation parameters stored in the parameter file are required to be not adapted in the dynamic simulation process, or some of the model parameters and/or simulation parameters stored in the parameter file are required to be missing, after the parameter information of the item to be simulated is obtained from the parameter file of the item to be simulated, a user instruction is received, and adaptive adjustment is performed on the model parameters and/or simulation parameters required to be adjusted. Optionally, the configuration information is not acquired by the parameter file, and the parameter configuration is performed by adopting autonomous input of a user. The adaptive adjustment or configuration of the parameters enables the dynamic simulation process to be closer to an ideal flow, and user experience is improved on the premise that simulation steps are simplified.
In one example, after the model parameters and/or the simulation parameters are adjusted, the adjusted model parameters and/or simulation parameters are completely derived, and as the adjusted model parameters and/or simulation parameters are more suitable for the dynamic simulation overall flow, the parameter file is updated, so that the next direct call is facilitated. Or selecting to keep the original version parameter file, storing the updated model parameters and/or simulation parameters as a new version of the parameter file, and selecting to use the original version parameter file or the new version parameter file for next call, for example, specific version distinction can be embodied on the naming 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 model parameters and/or the simulation parameters are combined and adopted when the same configuration is needed, and the parameter configuration of the part is more flexible. In one example, the model parameters and/or simulation parameters are adjusted, and the changed parameter parts are marked, and then marked and unmarked parameter information is exported as a configuration file; when parameter acquisition is performed again, calling the configuration file without calling the parameter file, fixing the unmarked parameter part data, and only focusing on and adjusting the marked parameter part; the configuration file supports only focusing and adjusting the marking parameters, so that the parameters needing focusing can be more conveniently and accurately adjusted and compared, and the efficiency of simulation test is improved.
In step 105, the results of the simulation are exported and the simulation engine is turned off. After the simulation is completed, a simulation result is exported, so that the manual recording of simulation data is avoided; in one example, closing the simulation engine MATLAB may be implemented by a engClose function.
In one example, when the simulation result is exported, all the information of the current simulation is exported completely, including the configuration of the dynamic simulation model, model parameters, simulation parameters and the like of the project to be simulated, so as to multiplex the current simulation process when needed.
In addition, a model description document is generated in the process of performing simulation test, wherein the presentation comprises: model name, MATLAB version, creator, creation time, last modifier, last modification time, remark description information, parameter file information of simulation project or model subsystem hierarchical structure, and the like, and is convenient for an operator to inquire configuration sources of the related nodes.
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, the parameter can be directly read in the process of generating a dynamic simulation model of a project to be simulated, the parameter is not required to be manually input step by step, the parameter configuration process in the dynamic simulation is optimized, meanwhile, a user is not excluded from adaptively adjusting model parameters or simulation parameters according to actual needs, and the adjusted parameter information is exported and used for updating the parameter file, so that the parameter is convenient to call subsequently; and custom naming is carried out on the generated dynamic simulation model and parameter file of the item to be simulated, so that searching can be more accurately and rapidly carried out when the dynamic simulation model and the parameter file are called again. The whole simulation test flow of the dynamic simulation model of the project to be simulated is more reasonable, the time and labor investment in the simulation test process are reduced, and the user experience is improved.
A second embodiment of the application relates to a simulation test method. The specific flow is shown in fig. 2.
Step 201, inquiring whether a dynamic simulation model of a project to be simulated exists in a preset model library; 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 item to be simulated from a parameter file of the item to be simulated;
step 204, generating a dynamic simulation model of the item to be simulated according to the model parameters and the basic model;
Step 205, exporting a dynamic simulation model of the item 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 the preset model library;
Step 207, obtaining simulation parameters of the item to be simulated from a parameter file of the item to be simulated, and performing dynamic simulation on a dynamic simulation model of the item to be simulated according to the simulation parameters;
and step 208, exporting the simulation result, and closing the simulation engine.
The steps 202, 204, 208 of the second embodiment are substantially the same as those of the first embodiment, and are not repeated here; since the requirements for parameter information are different in steps 203 and 207 with respect to the first embodiment, the simultaneous acquisition is not performed, and reference is made to the first embodiment for implementation details other than the acquisition order. The main differences are in step 201, step 206 and step 205, and the detailed process is described below.
In step 201 and step 206, inquiring whether a dynamic simulation model of the item to be simulated exists in a preset model library; that is, the local preset model library stores models for completing parameter configuration, and can be called through name inquiry when dynamic simulation is required. The process of importing a basic model into modeling software, acquiring model parameters in a parameter file and configuring a dynamic simulation model of a project to be simulated is not needed, the time for configuring the model before dynamic simulation is reduced, and the process of simulation test 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 the model parameters, the connection structure and other information of the different versions. And displaying distinguishing marks on the parts of different versions, which are inconsistent in model parameters, on the interface for comparing model parameters, so that the differences of the different versions can be conveniently noted.
In addition, in a preset model library, model data are displayed in a classification tree form; when the dynamic simulation model of the item to be simulated is searched, the dynamic simulation model of the item to be simulated can be quickly searched through the classified tree structure besides searching through names.
In step 205, a dynamic simulation model of the item to be simulated is exported and stored in a preset model library. If the dynamic simulation model of the item to be simulated is not found in the preset model library, a basic model and a parameter file are acquired and used for constructing the dynamic simulation model of the item to be simulated; after the dynamic simulation model of the item to be simulated is built, the dynamic simulation model of the item to be simulated is exported and stored in a preset model library so as to be convenient to call when needed next time, reduce the step and time investment in generating the dynamic simulation model of the item to be simulated when the follow-up call is performed, and optimize the simulation test flow. Meanwhile, the export process is not limited to the process before step 207, and may be performed after the dynamic simulation model is generated, for example, step 207, and step 208 may be performed before, after, or at the same time, exporting and storing the generated dynamic simulation model.
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 a preset model library, so that the parameter configuration is convenient to directly call in the process of performing simulation test. If a dynamic simulation model of the item to be simulated exists in the preset model library, generating the dynamic simulation model of the item to be simulated by combining the basic model with model parameters in the parameter file; 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 when the dynamic simulation model of the item to be simulated is subjected to dynamic simulation, 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 above steps of the methods are divided, for clarity of description, and may be combined into one step or split into multiple steps when implemented, so long as they include the same logic relationship, and they are all within the protection scope of this patent; it is within the scope of this patent to add insignificant modifications to the algorithm or flow or introduce insignificant designs, but not to alter the core design of its algorithm and flow.
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 configured to import, through the simulation engine, a basic model of a project to be simulated in the modeling software;
the first obtaining module 302 is configured to obtain, from a parameter file of an item to be simulated, parameter information of the item to be simulated, where the parameter information includes: model parameters and simulation parameters;
The second obtaining module 303 is configured to generate a dynamic simulation model of the item to be simulated according to the model parameters and the basic model;
the dynamic simulation module 304 is configured to dynamically simulate the item to be simulated according to the simulation parameters and the dynamic simulation model;
the result export module 305 is configured to export the result of the dynamic simulation and turn off the simulation engine.
Before the model is imported into the module 301, a presence model query module (not shown) queries whether a dynamic simulation model of the item to be simulated exists in a model library of a preset dynamic simulation model; if the model library of the dynamic simulation model does not have the dynamic simulation model of the item to be simulated, importing a basic model of the item to be simulated in modeling software through a simulation engine; if a dynamic simulation model of the item to be simulated exists in the preset model library, calling the dynamic simulation model of the item 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 item to be simulated in the modeling software through a function instruction in the simulation engine.
In the second obtaining module 303, after generating a dynamic simulation model of the item to be simulated for dynamic simulation according to the model parameters and the basic model, the dynamic simulation model of the item to be simulated is exported and stored in a preset model library.
After the dynamic simulation module 304 obtains the parameter information of the item to be simulated from the parameter file of the item to be simulated, receiving a user instruction, and adjusting the model parameters and/or the simulation parameters; and updating the parameter file according to the adjusted model parameters and/or simulation parameters.
It is to be noted that this embodiment is a system embodiment corresponding to the above embodiment, and 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 in order to reduce repetition, they are not repeated here. Accordingly, the related technical details mentioned in the present embodiment can also be applied to the above-described embodiments.
It should be noted that each module in this embodiment is a logic module, and in practical application, one logic unit may be one physical unit, or may be a part of one physical unit, or may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present application, units that are not so close to solving the technical problem presented by the present application are not introduced in the present embodiment, but this does not indicate that other units are not present in the present embodiment.
A fourth embodiment of the 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 simulation test method described above.
Where the memory and the processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors and the memory together. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be 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 the wireless medium in accordance with the antenna, and further, the antenna 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 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, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by hardware related to a program, where the program is stored in a storage medium, and includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments of the application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or 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 in which the application is practiced and that various changes in form and details may be made therein without departing from the spirit and scope of the application.

Claims (7)

1. A simulation test method, comprising:
Importing a basic model of a project to be simulated in modeling software through a simulation engine;
acquiring parameter information of the item to be simulated from a parameter file of the item to be simulated, wherein the parameter information comprises: model parameters and simulation parameters;
Generating a dynamic simulation model of the item to be simulated according to the model parameters and the basic model;
According to the simulation parameters and the dynamic simulation model, carrying out dynamic simulation on the item to be simulated;
Exporting the result of the dynamic simulation, and closing the simulation engine;
After the parameter information of the item to be simulated is obtained from the parameter file of the item to be simulated, the method comprises the following steps:
Receiving a user instruction, and adjusting the model parameters and/or simulation parameters;
the adjusting the model parameters and/or simulation parameters further comprises:
marking model parameters and/or simulation parameters which change in the adjustment process;
after the model parameters and/or simulation parameters are adjusted, the method comprises the following steps:
exporting the marked and adjusted parameter file as a configuration file; wherein marked model parameters and/or simulation parameters in the configuration file support modification, and unmarked model parameters and/or simulation parameters do not support modification;
Before the basic model of the item to be simulated in the modeling software is imported by the simulation engine, the method comprises the following steps:
Inquiring whether a dynamic simulation model of the item to be simulated exists in a model library of a preset dynamic simulation model;
If the dynamic simulation model of the item to be simulated does not exist in the model library of the dynamic simulation model, importing a basic model of the item to be simulated in modeling software through a simulation engine; if the model stock of the dynamic simulation model is 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 stock of the dynamic simulation model;
Wherein, the model library of the preset dynamic simulation model is independent of the modeling software;
The model library stores dynamic simulation models of different versions of the items to be simulated, and model parameters of the dynamic simulation models of different versions are different;
after generating the dynamic simulation model of the item to be simulated according to the model parameters and the basic model, the method comprises the following steps: and exporting the dynamic simulation model of the item to be simulated, and storing the dynamic simulation model into a model library of the dynamic simulation model.
2. Simulation test method according to claim 1, characterized in that after said adjusting of the model parameters and/or simulation parameters, it comprises: and updating the parameter file according to the adjusted model parameters and/or simulation parameters.
3. The simulation test method of claim 1, wherein,
The obtaining the parameter information of the item to be simulated from the parameter file of the item to be simulated includes:
and acquiring parameter information of the item to be simulated from the configuration file of the item to be simulated.
4. The simulation test method according to claim 1, wherein the importing, by the simulation engine, the base model of the item to be simulated in the modeling software includes:
starting the simulation engine;
And importing a basic model of the item to be simulated in the modeling software through a function instruction in the simulation engine.
5. A simulation test apparatus, comprising:
the model importing 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 configured to obtain parameter information of the item to be simulated from a parameter file of the item 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 item to be simulated according to the model parameters and the basic model;
the dynamic simulation module is used for carrying out dynamic simulation on the item to be simulated according to the simulation parameters and the dynamic simulation model;
the result export module is used for exporting the result of the dynamic simulation and closing the simulation engine;
After the parameter information of the item to be simulated is obtained from the parameter file of the item to be simulated, the method comprises the following steps:
Receiving a user instruction, and adjusting the model parameters and/or simulation parameters;
the adjusting the model parameters and/or simulation parameters further comprises:
marking model parameters and/or simulation parameters which change in the adjustment process;
after the model parameters and/or simulation parameters are adjusted, the method comprises the following steps:
exporting the marked and adjusted parameter file as a configuration file; wherein marked model parameters and/or simulation parameters in the configuration file support modification, and unmarked model parameters and/or simulation parameters do not support modification;
Before the basic model of the item to be simulated in the modeling software is imported by the simulation engine, the method comprises the following steps:
Inquiring whether a dynamic simulation model of the item to be simulated exists in a model library of a preset dynamic simulation model;
If the dynamic simulation model of the item to be simulated does not exist in the model library of the dynamic simulation model, importing a basic model of the item to be simulated in modeling software through a simulation engine; if the model stock of the dynamic simulation model is 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 stock of the dynamic simulation model;
Wherein, the model library of the preset dynamic simulation model is independent of the modeling software;
The model library stores dynamic simulation models of different versions of the items to be simulated, and model parameters of the dynamic simulation models of different versions are different;
after generating the dynamic simulation model of the item to be simulated according to the model parameters and the basic model, the method comprises the following steps: and exporting the dynamic simulation model of the item to be simulated, and storing the dynamic simulation model into a model library of the dynamic simulation model.
6. An electronic device, comprising:
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 simulation test method of any one of claims 1 to 4.
7. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the simulation test method of any one of claims 1 to 4.
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 CN112668181A (en) 2021-04-16
CN112668181B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113449387B (en) * 2021-08-30 2022-02-15 肇庆小鹏新能源投资有限公司 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
CN117093259B (en) * 2023-10-20 2024-02-27 腾讯科技(深圳)有限公司 Model configuration method and related equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (13)

* 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
US7085703B2 (en) * 2001-11-30 2006-08-01 International Business Machines Corporation Count data access in a distributed simulation environment
EP4220607A2 (en) * 2008-02-15 2023-08-02 AVEVA Software, LLC System and method for autogenerating simulations for process control system checkout and operator training
US10726362B2 (en) * 2011-01-31 2020-07-28 X-Act Science Inc. Predictive deconstruction of dynamic complexity
CN103049601A (en) * 2012-12-11 2013-04-17 国网信通亿力科技有限责任公司 Information system simulation modeling method
RU2551396C1 (en) * 2013-11-06 2015-05-20 Российская Федерация, от имени которой выступает Министерство промышленности и торговли Российской Федерации (Минпромторг России) Method of contactless measurements of geometric parameters of object in space and device for its realisation
CN104699552B (en) * 2015-02-15 2018-09-25 四川长虹电器股份有限公司 A kind of data reconstruction method and cloud server
EP3121729B1 (en) * 2015-07-21 2018-09-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
CN111830930A (en) * 2020-07-15 2020-10-27 上海科梁信息工程股份有限公司 Motor controller simulation test method, system, device and computer storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN112668181A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN112668181B (en) Simulation test method and device, electronic equipment and storage medium
CN107918666B (en) Data synchronization method and system on block chain
CN109344223B (en) Building information model management system and method based on cloud computing technology
CN106598612B (en) Operation method and system for data table in database
US20040243373A1 (en) Electromagnetic/circuit co-simulation and co-optimization with parametric layout components
CN108399130A (en) Method, device and equipment for automatically generating test case and readable storage medium
CN106778351A (en) Data desensitization method and device
CN105528418A (en) Design document generation method and apparatus
US11328101B2 (en) Data processing method for blueprint design, PLM widget and computation device
CN104699613A (en) Automatic generating system and method thereof of spacecraft testing requirements
CN108182287A (en) A kind of automatic question-answering method, device and server
CN111813744A (en) File searching method, device, equipment and storage medium
CN112307097A (en) Data asset management method and device
CN104361040A (en) Method and device for customized query
CN112417122A (en) Multi-turn question and answer method and device, computer readable storage medium and electronic equipment
CN114153473A (en) Module integration method, device, storage medium and electronic equipment
CN114491064A (en) Internet of things platform construction method and device, storage medium and terminal
CN115543428A (en) Simulated data generation method and device based on strategy template
CN114282029A (en) Primitive management method and device, electronic equipment and storage medium
CN103617214A (en) CIM (common information model) path inquiring method and CIM path inquiring device
CN111158645B (en) System and method for providing an integrated development environment
CN112818616A (en) Pin naming method, register excitation source adding method and electronic device
CN107844639B (en) Project standard structure automatic generation method and system
CN114462777A (en) Model management method, device, terminal and storage medium
CN115237690A (en) Test tool generation method and device, electronic equipment and storage medium

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
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

GR01 Patent grant
GR01 Patent grant