Search

CN-121980769-A - Method and device for generating difference field data and electronic equipment

CN121980769ACN 121980769 ACN121980769 ACN 121980769ACN-121980769-A

Abstract

The application provides a method and a device for generating difference field data and electronic equipment, and belongs to the technical field of simulation. The method comprises the steps of receiving heterogeneous data from M simulation sources, establishing a space coordinate system based on the heterogeneous data of the M simulation sources, converting the heterogeneous data of the M simulation sources based on the space coordinate system to generate M groups of simulation data, wherein the simulation data comprise at least one physical quantity, selecting at least two groups of simulation data from the M groups of simulation data as comparison objects, determining physical quantity differences of the comparison objects on the at least one physical quantity, and generating difference field data. Therefore, the technical problems that the prior art is seriously dependent on manual experience when data are aligned, the strict unity of space coordinates and physical quantity units is difficult to ensure, the generated difference field data error is large, meanwhile, the analysis efficiency is low and the observation view angles are inconsistent due to fragmentation in the comparison process, and the accurate judgment of the space difference is affected can be solved.

Inventors

  • LIU GUITANG
  • RONG BIN
  • TIAN LIJUAN
  • YU YUZHOU
  • LI HAOTIAN
  • WANG ZHAOJIE
  • MA JUNDA

Assignees

  • 国家工业信息安全发展研究中心

Dates

Publication Date
20260505
Application Date
20251230

Claims (10)

  1. 1. A method of generating difference field data, the method comprising: Receiving heterogeneous data from M simulation sources, and establishing a space coordinate system based on the heterogeneous data of the M simulation sources, wherein M is a positive integer; converting heterogeneous data of M simulation sources based on the space coordinate system to generate M groups of simulation data, wherein the simulation data comprises at least one physical quantity; selecting at least two groups of simulation data from M groups of simulation data as comparison objects; And determining a physical quantity difference value of the comparison object on at least one physical quantity, and generating difference field data.
  2. 2. The method of claim 1, wherein the establishing a spatial coordinate system based on heterogeneous data of the M simulation sources comprises: Receiving a user selection instruction; determining reference simulation data from heterogeneous data of M simulation sources based on the user selection instruction; and establishing the space coordinate system by taking the coordinate corresponding to the reference simulation data and the grid structure as references.
  3. 3. The method of claim 1, wherein said converting heterogeneous data of M simulation sources based on said spatial coordinate system to generate M sets of simulation data comprises: according to a predefined coordinate transformation matrix, converting heterogeneous data of M simulation sources into the space coordinate system to generate M groups of simulation data; And/or the number of the groups of groups, According to a preset unit conversion rule, converting physical quantities in heterogeneous data of M simulation sources into unified measurement units, and generating M groups of simulation data; And/or the number of the groups of groups, And carrying out adaptive grid resampling on simulation data inconsistent with the reference grid in the space coordinate system to generate M groups of simulation data.
  4. 4. The method according to claim 1, wherein selecting at least two sets of simulation data from the M sets of simulation data as comparison objects comprises: Receiving a user difference analysis instruction; And selecting at least two groups of simulation data from M groups of simulation data as the comparison object based on the user difference analysis instruction and/or a preset matching rule.
  5. 5. The method of claim 1, wherein determining a physical quantity difference in at least one physical quantity of the comparison object generates difference field data, comprising: For any physical quantity, reading parameters of at least two groups of simulation data in the comparison object node by node or unit by unit center; And determining the difference value of the parameters of at least two groups of simulation data in the comparison object according to a preset difference rule, and generating the difference value field data.
  6. 6. The method according to claim 5, comprising, before said reading parameters of at least two sets of said simulation data in said comparison object for any one of said physical quantities, node by node or cell by cell center: Judging whether grid alignment of at least two groups of simulation data in the comparison object is completed in the space coordinate system or not; and executing the step of reading parameters of at least two groups of simulation data in the comparison object node by node or unit by unit center for any one of the physical quantities under the condition that grid alignment of at least two groups of simulation data in the comparison object is completed in the space coordinate system.
  7. 7. The method according to claim 1, wherein the method further comprises: Creating M windows, each of which is used for displaying a group of simulation data; And creating a visual angle synchronous linkage mechanism, wherein the visual angle synchronous linkage mechanism is used for synchronously updating the visual angles of the rest windows when the visual angle transformation operation is carried out in any one window.
  8. 8. The method of claim 7, comprising, after said generating difference field data: rendering the difference field data into a three-dimensional cloud image, and synchronously displaying the three-dimensional cloud image and the comparison object under the same spatial view angle through the view angle synchronous linkage mechanism.
  9. 9. A device for generating difference field data, the device comprising: The system comprises a coordinate system establishing module, a simulation module and a simulation module, wherein the coordinate system establishing module is used for receiving heterogeneous data from M simulation sources and establishing a space coordinate system based on the heterogeneous data of the M simulation sources, and M is a positive integer; The simulation data generation module is used for converting heterogeneous data of M simulation sources based on the space coordinate system to generate M groups of simulation data, wherein the simulation data comprises at least one physical quantity; the comparison object selection module is used for selecting at least two groups of simulation data from M groups of simulation data as comparison objects; and the difference field data generation module is used for determining the physical quantity difference of the comparison object on at least one physical quantity and generating difference field data.
  10. 10. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; a memory for storing a computer program; A processor for implementing the method of any of claims 1-8 when executing a program stored on a memory.

Description

Method and device for generating difference field data and electronic equipment Technical Field The present application relates to the field of simulation technologies, and in particular, to a method and an apparatus for generating difference field data, and an electronic device. Background In the field of computational simulation engineering, such as computational fluid dynamics, structural mechanics, electromagnetic simulation, etc., in order to verify the accuracy of a simulation model, evaluate the consistency of the computation results of different simulation software, or perform comparative verification with physical experiment data, it is often necessary to perform comparative analysis on simulation data from multiple sources (i.e., multi-source heterogeneous simulation data) to generate difference field data, so as to evaluate the deviation between the simulation result and a reference or experiment. In the related art, the existing method for generating the difference field data mainly depends on manual processing. The data from different sources are respectively led into different windows, and after the views are manually adjusted to be approximately aligned, the static cloud picture screenshot which is placed side by side or the finite section curve is extracted to carry out qualitative or local quantitative comparison with the discrete point values, so that the difference field data are generated. However, this method relies on manual experience seriously when data are aligned, and it is difficult to ensure strict unification of space coordinates and physical quantity units, so that the error of generated difference field data is large, and meanwhile, due to fragmentation in the comparison process, analysis efficiency is low and viewing angles are inconsistent, so that accurate judgment of space difference is affected. Disclosure of Invention The embodiment of the application aims to provide a method, a device and electronic equipment for generating difference field data, which are used for solving the technical problems that the prior art is seriously dependent on manual experience when data are aligned, and strict unity of space coordinates and physical quantity units is difficult to ensure, so that the generated difference field data has larger error, and meanwhile, the analysis efficiency is low and the observation visual angles are inconsistent due to fragmentation in the comparison process, so that the accurate judgment of space difference is influenced. The specific technical scheme is as follows: In a first aspect of the embodiment of the present application, there is first provided a method for generating difference field data, the method including: Receiving heterogeneous data from M simulation sources, and establishing a space coordinate system based on the heterogeneous data of the M simulation sources, wherein M is a positive integer; converting heterogeneous data of M simulation sources based on the space coordinate system to generate M groups of simulation data, wherein the simulation data comprises at least one physical quantity; selecting at least two groups of simulation data from M groups of simulation data as comparison objects; And determining a physical quantity difference value of the comparison object on at least one physical quantity, and generating difference field data. In an alternative embodiment, the establishing a spatial coordinate system based on heterogeneous data of the M simulation sources includes: Receiving a user selection instruction; determining reference simulation data from heterogeneous data of M simulation sources based on the user selection instruction; and establishing the space coordinate system by taking the coordinate corresponding to the reference simulation data and the grid structure as references. In an optional implementation manner, the converting heterogeneous data of the M simulation sources based on the spatial coordinate system to generate M groups of simulation data includes: according to a predefined coordinate transformation matrix, converting heterogeneous data of M simulation sources into the space coordinate system to generate M groups of simulation data; And/or the number of the groups of groups, According to a preset unit conversion rule, converting physical quantities in heterogeneous data of M simulation sources into unified measurement units, and generating M groups of simulation data; And/or the number of the groups of groups, And carrying out adaptive grid resampling on simulation data inconsistent with the reference grid in the space coordinate system to generate M groups of simulation data. In an optional embodiment, the selecting at least two sets of simulation data from the M sets of simulation data as the comparison object includes: Receiving a user difference analysis instruction; And selecting at least two groups of simulation data from M groups of simulation data as the comparison object based on the user difference