Search

CN-121980738-A - Simulation method, simulation device, electronic equipment and storage medium

CN121980738ACN 121980738 ACN121980738 ACN 121980738ACN-121980738-A

Abstract

The embodiment of the application provides a simulation method, a simulation device, electronic equipment and a storage medium. The method comprises the steps of constructing a first simulation model and a second simulation model of a target simulation object, performing reduced-order processing on the first simulation model to obtain a first reduced-order model, wherein the complexity of the first reduced-order model is smaller than that of the first simulation model, performing reduced-order processing on the second simulation model to obtain a second reduced-order model, the complexity of the second reduced-order model is smaller than that of the second simulation model, and realizing simulation test on the target simulation object based on the first reduced-order model and the second reduced-order model. According to the technical scheme provided by the embodiment of the application, after the high-precision model is constructed, the calculated amount is reduced through model reduction, so that the calculated time is shortened, real-time simulation is realized on the premise of high-precision simulation, and the simulation test efficiency and reliability are remarkably improved.

Inventors

  • ZHU JUNHAO
  • CHEN YUE
  • Sheng Shuaishuai
  • ZHANG BIN

Assignees

  • 广州汽车集团股份有限公司

Dates

Publication Date
20260505
Application Date
20251205

Claims (10)

  1. 1. A simulation method, the method comprising: constructing a first simulation model and a second simulation model of the target simulation object; Performing reduced-order processing on the first simulation model to obtain a first reduced-order model, wherein the complexity of the first reduced-order model is smaller than that of the first simulation model; performing reduced-order processing on the second simulation model to obtain a second reduced-order model, wherein the complexity of the second reduced-order model is smaller than that of the second simulation model; and realizing simulation test of the target simulation object based on the first reduced-order model and the second reduced-order model.
  2. 2. The method of claim 1, wherein the first simulation model includes m state variables, m being a positive integer, and wherein the performing the reduced order processing on the first simulation model to obtain a first reduced order model includes: Determining the contribution degree of each state variable in the first simulation model to the input and output of the first simulation model; And according to energy interception requirements and the contribution degree of each state variable, preserving the state variable with the contribution degree arranged in the first simulation model in the first n bits, removing other state variables to obtain the first reduced model, wherein the energy interception requirements are that the ratio between the energy of the first reduced model and the energy of the thermodynamic model is not smaller than a preset percentage, and n is a positive integer smaller than m.
  3. 3. The method of claim 1, wherein the performing the reduced-order processing on the second simulation model to obtain a second reduced-order model comprises: converting the second simulation model from a second-order system form to a first-order system form; constructing a gram Lei Luofu subspace based on a second simulation model in the form of the first-order system; and projecting the second simulation model in the first-order system form to the gram Lei Luofu subspace to obtain the second reduced-order model.
  4. 4. A method according to any one of claims 1 to 3, wherein the first simulation model is a thermodynamic model and/or the second simulation model is a mechanical kinetic model.
  5. 5. The method of any of claims 1-3, applied to a processor comprising a plurality of processor cores, implementing a simulation test on the target simulation object based on the first reduced-order model and the second reduced-order model, comprising: Checking the first reduced order model based on a first processor in the plurality of processor cores to calculate so as to obtain a first calculation result; checking the second reduced order model based on a second processor in the plurality of processor cores to calculate so as to obtain a second calculation result; And mapping the first calculation result and the second calculation result into corresponding electrical signals based on preset mapping parameters, wherein the electrical signals are used for inputting the target simulation object.
  6. 6. The method of claim 5, wherein mapping the first and second calculation results into corresponding electrical signals based on preset mapping parameters comprises: acquiring environmental parameters of a target simulation object, wherein the environmental parameters of the target simulation object comprise an environmental temperature and/or a power supply voltage; Correcting the preset mapping parameters based on the environmental parameters of the target simulation object; and mapping the first calculation result and the second calculation result into the corresponding electrical signals based on the corrected preset mapping parameters.
  7. 7. A simulation apparatus, the apparatus comprising: the model construction module is used for constructing a first simulation model and a second simulation model of the target simulation object; the first order reduction module is used for carrying out order reduction processing on the first simulation model to obtain a first order reduction model, and the complexity of the first order reduction model is smaller than that of the first simulation model; The second order reduction module is used for carrying out order reduction processing on the second simulation model to obtain a second order reduction model, and the complexity of the second order reduction model is smaller than that of the second simulation model; and the simulation module is used for realizing simulation test of the target simulation object based on the first reduced-order model and the second reduced-order model.
  8. 8. An electronic device comprising a processor and a memory, wherein, The memory is used for storing a computer program; the processor being adapted to execute the computer program stored on the memory for implementing the method of any one of claims 1-6.
  9. 9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-6.
  10. 10. A computer program product, characterized in that the method of any of claims 1-6 is implemented when the computer program product is executed.

Description

Simulation method, simulation device, electronic equipment and storage medium Technical Field The embodiment of the application relates to the technical field of simulation, in particular to a simulation method, a simulation device, electronic equipment and a storage medium. Background Hardware-in-the-loop simulation is a core means for the development of an automobile electronic control system, and is widely applied to the fields of new energy automobiles, automatic driving and intelligent driving. In the related art, when hardware-in-loop simulation is performed on components in a new energy automobile, a mean value physical model is generally adopted to simulate the working condition of the components to be simulated, the mean value physical model is solved, and a solving result is converted into a corresponding electrical signal to be input to the components to be simulated. However, the mean physical model ignores the critical physical characteristics of the mirror, resulting in insufficient accuracy. Disclosure of Invention The embodiment of the application provides a simulation method, a simulation device, electronic equipment and a storage medium, and aims to solve the problem of insufficient precision caused by simulation through a mean value physical model in the related art. In a first aspect, an embodiment of the present application provides a simulation method, including constructing a first simulation model and a second simulation model of a target simulation object, performing a reduced-order process on the first simulation model to obtain a first reduced-order model, where the complexity of the first reduced-order model is smaller than that of the first simulation model, performing a reduced-order process on the second simulation model to obtain a second reduced-order model, where the complexity of the second reduced-order model is smaller than that of the second simulation model, and implementing a simulation test on the target simulation object based on the first reduced-order model and the second reduced-order model. In a second aspect, the embodiment of the application provides a simulation device, which comprises a model construction module, a first order reduction module, a second order reduction module and a simulation module, wherein the model construction module is used for constructing a first simulation model and a second simulation model of a target simulation object, the first order reduction module is used for carrying out order reduction processing on the first simulation model to obtain a first order reduction model, the complexity of the first order reduction model is smaller than that of the first simulation model, the second order reduction module is used for carrying out order reduction processing on the second simulation model to obtain a second order reduction model, the complexity of the second order reduction model is smaller than that of the second simulation model, and the simulation module is used for realizing simulation test on the target simulation object based on the first order reduction model and the second order reduction model. In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory, to implement the method described in the first aspect. In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, in which a computer program is stored, which when executed by a processor, implements the method according to the first aspect. In a fifth aspect, embodiments of the present application provide a computer program product which, when executed, implements the method according to the first aspect. Compared with the technical scheme provided by the related art, the method and the device have the advantages that at least a first simulation model and a second simulation model of a target simulation object are built, the first simulation model and the second simulation model are high-precision models, the working process of the target simulation object can be more accurately simulated, then the first simulation model and the second simulation model are subjected to reduced-order processing respectively to obtain a first reduced-order model corresponding to the first simulation model and a second reduced-order model corresponding to the second simulation model, the complexity of the first reduced-order model is obviously smaller than that of the first simulation model, the complexity of the second reduced-order model is obviously smaller than that of the second simulation model, the complexity of the model is reduced, the calculated amount can be reduced, and the calculated time of the model is obviously shortened. Drawings FIG. 1 is a schematic illustration of an implementation environment provided by one embodimen