Finite element simulation result data coordinate conversion cloud picture display method
By using a CPU-GPU heterogeneous system to perform rapid coordinate transformation of finite element simulation results, the problem of slow CPU computing speed is solved, and rapid cloud map display in different coordinate systems is achieved, meeting the needs of rapid analysis in structural design.
Patent Information
- Application Number
- CN202511877439.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-12
- Publication Date
- 2026-01-09
- Estimated Expiration
- 2045-12-12
AI Technical Summary
Existing technologies, especially for large-scale, refined models, suffer from slow CPU computation speeds when performing coordinate transformations of finite element simulation results, making it difficult to meet the demands of rapid analysis.
A CPU-GPU heterogeneous system is adopted, which uses the CPU for logic control and complex data processing, and combines the powerful parallel computing capabilities of the GPU to complete large-scale matrix operations and realize rapid coordinate transformation of finite element simulation results data.
It enables rapid display of cloud maps in different coordinate systems, meeting the needs of rapid analysis in structural design and improving data conversion efficiency.
Smart Images

Figure CN121302829A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of data processing technology for finite element simulation results of structural design, and specifically relates to a method for displaying coordinate transformation cloud maps of finite element simulation results. Background Technology
[0002] When designing structures, such as wings and fuselage panels, finite element simulation software is usually used to analyze the stress and strain of the structure. During the analysis, it is often necessary to view the cloud map of the simulation results data in different coordinate systems.
[0003] Currently, when viewing contour plots of simulation results in different coordinate systems, coordinate transformation is typically performed using the CPU. However, CPU computation speed is relatively slow, and coordinate transformation is time-consuming for simulation results of refined finite element models with a large number of meshes, which is insufficient to meet the needs of rapid analysis in structural design. Therefore, this application is proposed. Summary of the Invention
[0004] The purpose of this application is to provide a method for displaying finite element simulation results data by coordinate transformation, which can quickly transform the coordinates of finite element simulation results data, thereby enabling rapid display of cloud maps in different coordinate systems for structural designers to view, thus meeting the needs of structural designers for rapid analysis.
[0005] The technical solution of this application is:
[0006] A method for displaying coordinate transformation cloud maps of finite element simulation results includes:
[0007] Step 1: Use the CPU to read the finite element simulation result data file, extract the required physical quantities, including names, values and IDs, and store them in the host memory;
[0008] Step 2: The CPU determines the data attributes of the physical quantity based on its name, whether it is a node attribute or a unit attribute.
[0009] Step 3: The CPU processes the physical quantities and their data attributes, as well as the rotation matrix for transforming the coordinate system. Origin of coordinates The data is transferred to the GPU memory.
[0010] Step 4: The GPU performs coordinate transformation on the physical quantity values based on the data attributes of the physical quantity.
[0011] Step 5: The physical quantity coordinates are converted by the GPU and the resulting values are transferred back to the host memory to update the physical quantity values.
[0012] Step 6: The CPU transmits the converted physical quantity coordinates to the rendering pipeline, and the cloud map is displayed in the converted coordinate system.
[0013] Optionally, in the above method for displaying the coordinate transformation cloud map of finite element simulation results, in step one, a C / C++ file reading interface is used to read the finite element simulation results data file;
[0014] The names of physical quantities are stored in host memory as char[] type, and the values of physical quantities are stored in host memory as double[].
[0015] Optionally, in the above-mentioned method for displaying the coordinate transformation cloud map of finite element simulation results, in step two, the data attribute of the physical quantity named Displacement is determined as a node attribute, and the data attribute of the physical quantity named Stress is determined as an element attribute.
[0016] For each physical quantity, initialize an int type variable in the host memory. If the data attribute of the physical quantity is a node attribute, initialize the int type variable to 0. If the data attribute of the physical quantity is a unit attribute, initialize the int type variable to 1.
[0017] Optionally, in the above-mentioned method for displaying the coordinate transformation cloud map of finite element simulation results, in step four, the data attributes of the physical quantity are confirmed based on the value of the int type variable, and then the coordinate transformation of the physical quantity is performed.
[0018] For physical quantities whose data attributes are node attributes, the numerical values of the physical quantities are transformed into coordinates as follows:
[0019] ;
[0020] For physical quantities whose data attributes are unit attributes, the numerical values of the physical quantities are transformed into coordinates as follows:
[0021] ;
[0022] in,
[0023] The values of the physical quantities before coordinate transformation;
[0024] The values are the physical quantities after coordinate transformation.
[0025] Optionally, in the above-mentioned method for displaying the coordinate transformation cloud map of finite element simulation results, in step five, during the process of transmitting the converted physical quantity coordinates back to the host memory, the main thread is blocked on the CPU side.
[0026] This application has at least the following beneficial technical effects:
[0027] This paper presents a method for displaying finite element simulation results data by coordinate transformation. Based on a CPU-GPU heterogeneous system, it leverages the advantages of the CPU in logic control and complex data processing to achieve efficient data extraction and judgment. At the same time, it fully utilizes the powerful parallel computing capabilities of the GPU to complete large-scale matrix operations, thereby realizing rapid coordinate transformation of finite element simulation results data. It can quickly display cloud maps in different coordinate systems for structural designers to view, meeting the needs of structural designers for rapid analysis. Attached Figure Description
[0028] Figure 1 This is a schematic diagram of the finite element simulation result data coordinate transformation cloud map display method provided in the embodiments of this application;
[0029] Figure 2 This is a schematic diagram comparing the efficiency of using a CPU-GPU heterogeneous system to perform coordinate transformation on finite element simulation result data with that of using a CPU system to perform coordinate transformation on finite element simulation result data, as provided in the embodiments of this application.
[0030] Figure 3 This is a display cloud map showing the finite element simulation result data before and after coordinate transformation, provided in the embodiments of this application.
[0031] To better illustrate this embodiment, some content in the accompanying drawings may be omitted, enlarged, or reduced. They are for illustrative purposes only and should not be construed as limiting the scope of this application. Detailed Implementation
[0032] To make the technical solution and advantages of this application clearer, the technical solution of this application will be described in a clearer and more complete manner below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only some embodiments of this application, and are only used to explain this application, not to limit this application. It should be noted that, for ease of description, only the parts related to this application are shown in the accompanying drawings, and other related parts can be referred to the general design.
[0033] Furthermore, unless otherwise defined, the technical or scientific terms used in this application description shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The word "comprising" as used in this application description indicates that the concept preceding the word encompasses the concepts listed following the word and their equivalents, without excluding other related concepts.
[0034] A method for displaying coordinate transformation cloud maps of finite element simulation results, as follows: Figure 1 As shown.
[0035] Step 1: Use the CPU to read the finite element simulation result data file, extract the required physical quantities, including names, values and IDs, and store them in the host memory.
[0036] Use the C / C++ file reading interface to read the finite element simulation result data file.
[0037] The names of physical quantities are stored in host memory as char[] type, and the values of physical quantities are stored in host memory as double[].
[0038] Step 2: The CPU determines the data attributes of the physical quantity based on its name, which can be either node attributes or unit attributes.
[0039] The data attribute of the physical quantity named Displacement is defined as a node attribute, and the data attribute of the physical quantity named Stress is defined as a unit attribute.
[0040] For each physical quantity, initialize an int type variable in the host memory. If the data attribute of the physical quantity is a node attribute, initialize the int type variable to 0. If the data attribute of the physical quantity is a unit attribute, initialize the int type variable to 1.
[0041] Step 3: The CPU processes the physical quantities and their data attributes, as well as the rotation matrix for transforming the coordinate system. Origin of coordinates It is transferred to the GPU memory.
[0042] The coordinate system is transformed relative to the global coordinate system of the finite element simulation results data, with the three coordinate axes in the following directions: The origin of the coordinate system is ,but , In the global coordinate system of the finite element simulation results data They can be represented as , , , It is a 3×3 matrix.
[0043] Step 4: The GPU performs coordinate transformation on the physical quantity values based on the data attributes of the physical quantity.
[0044] Data attributes are physical quantities that are node attributes, such as displacement. It is a one-dimensional vector, related to the origin of the coordinate system, and its data attributes are physical quantities of the element properties, such as stress. , being a second-order tensor, is a purely rotation-dependent quantity, independent of translation of the origin. Therefore, different methods are used for numerical coordinate transformation of physical quantities whose data attributes are node attributes or element attributes.
[0045] Based on the value of the int type variable, the data attributes of the physical quantity are determined, and then the value of the physical quantity is transformed into coordinates.
[0046] For physical quantities whose data attributes are node attributes, the numerical values of the physical quantities are transformed into coordinates as follows:
[0047] ;
[0048] For physical quantities whose data attributes are unit attributes, the numerical values of the physical quantities are transformed into coordinates as follows:
[0049] ;
[0050] in,
[0051] The values of the physical quantities before coordinate transformation;
[0052] The values are the physical quantities after coordinate transformation.
[0053] Step 5: The physical quantity coordinates are converted by the GPU and the resulting values are transferred back to the host memory to update the physical quantity values.
[0054] Considering that the GPU executes asynchronously, the main thread is blocked on the CPU side, and the CPU executes subsequent related operations after the GPU has finished executing.
[0055] Step 6: The CPU transmits the converted physical quantity coordinates to the rendering pipeline, and the cloud map is displayed in the converted coordinate system.
[0056] The finite element simulation result data coordinate transformation and cloud map display method disclosed in the above embodiments is based on a CPU-GPU heterogeneous system. It leverages the advantages of the CPU in logic control and complex data processing to achieve efficient data extraction and judgment, while making full use of the powerful parallel computing capabilities of the GPU to complete large-scale matrix operations. This enables rapid coordinate transformation of finite element simulation result data and allows for rapid cloud map display in different coordinate systems for structural designers to view, thus meeting the needs of structural designers for rapid analysis.
[0057] In practical applications, a comparison of the efficiency of using a CPU-GPU heterogeneous system to perform coordinate transformation on finite element simulation results data versus using a CPU system is shown. Figure 2As shown, the horizontal axis represents the number of operation matrices, and the vertical axis represents the logarithm of the operation time. It can be seen that using a CPU-GPU heterogeneous system for matrix operations is more efficient than using a CPU system for matrix operations, and the efficiency gains become more and more significant as the number of operation matrices increases.
[0058] In a specific example, using the finite element simulation result data coordinate transformation cloud map display method disclosed in the above embodiments, based on a CPU-GPU heterogeneous system, a comparison is made of the cloud map display before and after coordinate transformation of the finite element simulation result data, such as... Figure 3 As shown, it has a good display effect.
[0059] The technical solution of this application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. Those skilled in the art should understand that the scope of protection of this application is obviously not limited to these specific embodiments. Without departing from the principles of this application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the scope of protection of this application.
Claims
1. A method for displaying coordinate transformation cloud maps of finite element simulation results, characterized in that, include: Step 1: Use the CPU to read the finite element simulation result data file, extract the required physical quantities, including names, values and IDs, and store them in the host memory; Step 2: The CPU determines the data attributes of the physical quantity based on its name, whether it is a node attribute or a unit attribute. Step 3: Use the CPU to process the physical quantities and their data attributes, as well as the rotation matrix for transforming the coordinate system. Origin of coordinates The data is transferred to the GPU memory. Step 4: The GPU performs coordinate transformation on the physical quantity values based on the data attributes of the physical quantity. Step 5: The physical quantity coordinates are converted by the GPU and the resulting values are transferred back to the host memory to update the physical quantity values. Step 6: The CPU transmits the converted physical quantity coordinates to the rendering pipeline, and the cloud map is displayed in the converted coordinate system.
2. The method for displaying coordinate transformation cloud maps of finite element simulation results according to claim 1, characterized in that, In step one, the C / C++ file reading interface is used to read the finite element simulation result data file; The names of physical quantities are stored in host memory as char[] type, and the values of physical quantities are stored in host memory as double[].
3. The method for displaying coordinate transformation cloud maps of finite element simulation results according to claim 2, characterized in that, In step two, the data attribute of the physical quantity named Displacement is determined as a node attribute, and the data attribute of the physical quantity named Stress is determined as a unit attribute. For each physical quantity, initialize an int type variable in the host memory. If the data attribute of the physical quantity is a node attribute, initialize the int type variable to 0. If the data attribute of the physical quantity is a unit attribute, initialize the int type variable to 1.
4. The method for displaying coordinate transformation cloud maps of finite element simulation results according to claim 3, characterized in that, In step four, the data attributes of the physical quantity are confirmed based on the value of the int type variable, and then the coordinate transformation of the physical quantity value is performed. For physical quantities whose data attributes are node attributes, the numerical values of the physical quantities are transformed into coordinates as follows: ; For physical quantities whose data attributes are unit attributes, the numerical values of the physical quantities are transformed into coordinates as follows: ; in, The values of the physical quantities before coordinate transformation; The values are the physical quantities after coordinate transformation.
5. The method for displaying coordinate transformation cloud maps of finite element simulation results according to claim 4, characterized in that, In step five, during the process of transmitting the converted physical quantity coordinates back to the host memory, the main thread is blocked on the CPU.
Citation Information
Patent Citations
GPU-based real-time three-dimensional reconstruction method facing depth image
CN106504320A
GPU-CPU (Central Processing Unit-Central Processing Unit) collaborative rapid coordinate conversion method and system for raster data
CN114022649A
Ship CFD clouded simulation data management method for realizing data lightweight
CN118761156A
Dynamic visualization method and system based on finite element model, medium and equipment
CN118940585A
Grid data conversion method and device and computer equipment
CN121052043A