Visualization processing method, device and equipment for large-scale Euler domain simulation data

By analyzing the numerical simulation result files of the simulation scene and multi-threaded parallel processing, parallel post-processing format files are generated, which solves the problem of low rendering efficiency of large-scale Euler domain data and realizes efficient simulation data visualization.

CN118364590BActive Publication Date: 2024-11-12国家超级计算天津中心 +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410799607.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-11-12
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

When processing large-scale Euler domain simulation data, the rendering efficiency is low, making it difficult to efficiently utilize these data, resulting in low simulation results display efficiency.

Method used

By analyzing the numerical simulation result file of the simulation scene, a multi-part data set is generated, and processed and stored in a parallel post-processing format file according to the part type. The grid data set is read and rendered in parallel by multi-threading, and a visual model is generated. .

Benefits of technology

It significantly improves rendering efficiency, solves the problem of difficult to efficiently utilize large-scale Euler domain data and low efficiency in visualization processes, and realizes rapid visual processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118364590B_ABST
    Figure CN118364590B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a visualization processing method, device and equipment for large-scale Euler domain simulation data, wherein the method comprises: parsing the numerical simulation result file of the simulation scene to generate a multi-part data set; traversing the multi-part data set according to the parts, processing the part data of each part according to the part type of each part, and storing the processing result in a preset parallel post-processing format file; reading the parallel post-processing format file in parallel using a file pointer to obtain a grid data set corresponding to each part; using multiple threads to render the grid data set corresponding to each part in parallel to generate a visualization model of the multiple parts. As a result, the rendering efficiency is greatly improved, and the problem of large-scale Euler domain data being difficult to efficiently use and the low efficiency of the visualization process in the existing simulation result display is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a visualization processing method, device and equipment for large-scale Euler domain simulation data. Background Art

[0002] Data visualization technology is the process of converting massive amounts of disordered data into graphics and images recognizable to the human eye, allowing us to observe the world comprehensively, in detail, and in multiple dimensions. In addition, with the development of computer technology, simulation has been widely used in various fields, and modern scientific computing provides more and more information. In order to quickly and accurately obtain useful information from massive data and observe the laws therein, data visualization will be relied upon.

[0003] In order to solve the explosion impact problem in the finite element simulation process, it is usually necessary to establish a large-scale Euler domain grid for simulation calculation. In the structural simulation process, the mesh volume of Euler domain parts accounts for more than 90% in some working conditions, and the mesh volume of other parts may be less than 10%. The mesh volume of Euler domain parts reaches tens of millions or hundreds of millions. At the same time, with the development of high-performance computers, in order to achieve more accurate simulation, the grid is drawn more and more accurately and finely, thus generating large-scale time-varying data sets. Faced with such huge data, it is difficult to use them effectively. Due to the large scale of data, the visualization and analysis of these data face huge challenges. The existing visualization solutions are slow to execute and inefficient. Summary of the invention

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, at least one embodiment of the present disclosure provides a visualization processing method, device and equipment for large-scale Euler domain simulation data.

[0005] In a first aspect, the present disclosure provides a visualization processing method for large-scale Euler domain simulation data, the method comprising:

[0006] Parsing the numerical simulation result file of the simulation scene to generate a multi-part data set, wherein the multi-part data set includes a part type of each part in the plurality of parts and part data of each part;

[0007] Traversing the multi-part data set according to the parts, processing the part data of each part according to the part type of each part, and storing the processing result in a preset parallel post-processing format file;

[0008] Using file pointers to read the parallel post-processing format file in parallel to obtain a grid data set corresponding to each part;

[0009] A plurality of threads are created according to the number of the plurality of parts, and the mesh data sets corresponding to each of the parts are rendered in parallel using the plurality of threads to generate a visualization model of the plurality of parts, wherein one thread is used to render the mesh data set of one part.

[0010] In a second aspect, the present disclosure provides a visualization processing device for large-scale Euler domain simulation data, the device comprising:

[0011] A data parsing module, used for parsing the numerical simulation result file of the simulation scene to generate a multi-part data set, wherein the multi-part data set includes a part type of each part in a plurality of parts and part data of each part;

[0012] A data processing module, used for traversing the multi-part data set according to the parts, processing the part data of each part according to the part type of each part, and storing the processing result in a preset parallel post-processing format file;

[0013] A data reading module, used for reading the parallel post-processing format file in parallel using a file pointer to obtain a grid data set corresponding to each part;

[0014] A rendering module is used to create multiple threads according to the number of parts of the multiple parts, and use the multiple threads to parallel render the grid data sets corresponding to each part to generate a visualization model of the multiple parts, wherein one thread is used to render the grid data set of one part.

[0015] In a third aspect, the present disclosure provides an electronic device comprising: a processor and a memory; the processor is used to execute any of the visualization processing methods for large-scale Euler domain simulation data provided in the first aspect of the present disclosure by calling a program or instruction stored in the memory.

[0016] In a fourth aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program or instruction, wherein the program or instruction enables a computer to execute any of the visualization processing methods for large-scale Euler domain simulation data provided in the first aspect of the present disclosure.

[0017] In a fifth aspect, the present disclosure provides a computer program product, which is used to execute any of the visualization processing methods for large-scale Euler domain simulation data provided in the first aspect of the present disclosure.

[0018] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has at least the following advantages:

[0019] In the disclosed embodiment, by parsing the numerical simulation result file of the simulation scene, a multi-part data set is generated, the multi-part data set includes the part type of each part in the multiple parts and the part data of each part, the multi-part data set is traversed according to the parts, the part data of each part is processed according to the part type of each part, and the processing result is stored in a preset parallel post-processing format file, and then the parallel post-processing format file is read in parallel using the file pointer to obtain the grid data set corresponding to each part, and multiple threads are created according to the number of parts of the multiple parts, and the grid data set corresponding to each part is rendered in parallel using the multiple threads to generate a visualization model of the multiple parts, wherein one thread is used to render the grid data set of one part. By adopting the above technical solution, by processing the part data according to the part type and storing the processing result in the preset parallel post-processing format file, the subsequent parallel reading of the data in the file and the parallel rendering are facilitated, and the rendering efficiency is greatly improved by parallel reading of the data and parallel rendering, which solves the problem that large-scale Euler domain data is difficult to efficiently use and the visualization process is inefficient in the existing simulation result display. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] Figure 1 A schematic diagram of a flow chart of a visualization processing method for large-scale Euler domain simulation data provided by an embodiment of the present disclosure;

[0023] Figure 2 A schematic diagram showing a parallel post-processing format file of an exemplary embodiment of the present disclosure is shown;

[0024] Figure 3 A schematic diagram of a flow chart of a visualization processing method for large-scale Euler domain simulation data provided by another embodiment of the present disclosure;

[0025] Figure 4 A schematic diagram showing the reconstruction of unstructured grid data of Euler domain parts into structured grid data;

[0026] Figure 5 A schematic diagram showing a process in which each thread renders a mesh data set corresponding to a part in an exemplary embodiment of the present disclosure is shown;

[0027] Figure 6 A schematic diagram of the structure of a visualization processing device for large-scale Euler domain simulation data provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] In order to more clearly understand the above-mentioned purposes, features and advantages of the present disclosure, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understandable that the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments, and the specific embodiments described herein are only used to explain the present disclosure, rather than to limit the present disclosure. In the absence of conflict, the embodiments of the present disclosure and the features in the embodiments can be combined with each other. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in the field belong to the scope of protection of the present disclosure.

[0029] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0030] In view of the huge amount of data generated by simulation scenarios such as high-speed collision, impact penetration and explosion in the prior art, and the low execution efficiency of the existing solutions for visualization and analysis of these data, the present invention designs a parallel post-processing format file that is easy to process in parallel. Through data interpolation and mapping methods, the part data set is reconstructed, the Euler domain parts are reconstructed into a structured grid for storage, and the physical field data is saved at the same time. Specifically, the result file of the numerical simulation is parsed, key data such as node coordinates, connection relationships between nodes, and physical field values ​​are extracted, the part type of each part in the multi-part data set is determined, the model is reconstructed for three-dimensional Euler domain type parts, and a simplified Euler domain part data set is constructed according to the format requirements of the structured grid data set. For non-Euler domain type parts, the part data is constructed according to the unstructured grid data set, and the reconstructed data uses a custom parallel post-processing file data saving format to save the key information of the multi-part data set, which provides conditions for parallel rendering. For the loading of custom post-processing format files, multi-threaded concurrent loading and construction of the mesh data set of each part are adopted, and then the constructed data set of each part is rendered through a thread-based parallel method. The execution efficiency of the visualization process is improved through parallel rendering, which can solve the problem that the traditional display process adopts a serial method, the visualization algorithm execution process is slow, and the computing resources of the multi-core CPU cannot be fully utilized. In addition, this solution uses the cloud map drawing method to display the distribution of the physical field, and accelerates the rendering model process based on GPU automatic scheduling, so that the model is presented on the screen, further realizing the efficient visualization of large-scale Euler domain grids.

[0031] The specific implementation process of the visualization processing method, device and equipment of large-scale Euler domain simulation data disclosed in the present invention is explained in detail below with reference to the accompanying drawings.

[0032] Figure 1 A flow chart of a method for visualizing large-scale Euler domain simulation data provided in an embodiment of the present disclosure. The method for visualizing large-scale Euler domain simulation data can be executed by a device for visualizing large-scale Euler domain simulation data provided in an embodiment of the present disclosure. The device for visualizing large-scale Euler domain simulation data can be implemented using software and / or hardware, and can be integrated on any electronic device with processing capabilities, such as computers, servers and other devices.

[0033] like Figure 1 As shown, the visualization processing method of large-scale Euler domain simulation data provided by the embodiment of the present disclosure may include the following steps:

[0034] Step 101 , parsing the numerical simulation result file of the simulation scenario to generate a multi-part data set, wherein the multi-part data set includes a part type of each part in a plurality of parts and part data of each part.

[0035] The simulation scenarios may include but are not limited to simulation scenarios of high-speed collision, impact penetration, explosion and other working conditions, and the numerical simulation result file records all simulation data obtained under the simulation scenarios.

[0036] In the disclosed embodiment, for the numerical simulation result file generated after the simulation is completed, it can be parsed by calling a preset parsing program to extract the node coordinate data of the model and the node connection relationship data, identify the part type of each part, and construct a multi-part data set based on the parsed data. Wherein, when constructing a multi-part data set, each part can be constructed according to an unstructured data set, and node data or unit data can be added at the same time. A part can include multiple unit data, and a unit data includes multiple node data. In this embodiment, the constructed multi-part data set includes the part type and part data of each part in the multiple parts. The part type is an Euler domain type or a non-Euler domain type (other types). The part data may include but is not limited to the node coordinates of the node, the physical field value corresponding to the node, the connection relationship between the nodes, and may also include part numbers, etc.

[0037] Step 102, traverse the multi-part data set according to the parts, process the part data of each part according to the part type of each part, and store the processing result in a preset parallel post-processing format file.

[0038] In the disclosed embodiment, for the obtained multi-part data set, the multi-part data set can be traversed according to the parts, the part data of the currently traversed part can be processed according to the part type of the currently traversed part, and the obtained processing results can be stored in a preset parallel post-processing format file.

[0039] After the original numerical simulation result file is parsed, each part generally uses an unstructured grid data set to store data, retaining all the information of the model. A loop structure is used to traverse each part data set, and data processing is performed separately for the Euler domain and the non-Euler domain. Specifically, if the part type is an Euler domain type, all nodes can be extracted from the unstructured data set of the part, and the part data can be reconstructed according to the requirements of the structured grid, reconstructed into a structured grid data set, and the node coordinates of the structured grid are stored in a custom parallel post-processing format file, and the physical field values ​​of the nodes are mapped to the newly reconstructed structured grid data set and stored in a custom parallel post-processing format file. If the part type is a non-Euler domain type, the node coordinates, the connection relationship between the nodes, and the physical field values ​​are extracted from the unstructured data set of the part and saved in a custom parallel post-processing format file.

[0040] In this embodiment, the parallel post-processing format file is a file using a custom parallel post-processing file format, and the design of the custom parallel post-processing file format conforms to the idea of ​​easy parallelization. The parallel post-processing format file may include a multi-part data set field and a part data set field, and in some embodiments, may also include a file header field. Among them, the multi-part data set field is used to record the information of all parts contained in the model, including but not limited to the number of parts, the list of part types of each part, the list of physical field quantity names, the number of units contained in each part, and the number of nodes; the part data set field is used to record the grid data set of a single part. For the Euler domain type and the non-Euler domain type, the content of the grid data set recorded in the part data set field is different. For the non-Euler domain type, the data recorded in the part data set field may include the part name or part number, the part type (that is, the unit type), the node coordinate list of the node contained in the part, the node index, and the physical field data (that is, the physical field value of the node); for the Euler domain type, the data recorded in the part data set field may include the part name or part number, the part type, the node coordinate list of the node contained in the part, and the physical field data.

[0041] For example, a custom parallel post-processing format file such as Figure 2 As shown. Figure 2It can be seen that the custom parallel post-processing format file includes a file header field, a multi-part data set field, and a part data set field. The data in these fields constitute the basic information of the model. Among them, the file header field is composed of the model version information, file title, and time step information. The time step information includes the modeling unit system adopted by the model, the number of loop iterations when the file is saved, etc. The multi-part data set field needs to save the number of parts N. When reading the file, the parallel domain is divided according to the number of parts N read; the part type list of each part is saved, and different data set construction methods are used for visualization processing for the Euler domain type and the non-Euler domain type. Then there is the physical field data (i.e., a list of physical field values), which indicates the type of physical field data contained in the data model. The storage of unit data volume and node number facilitates the location of file content when the file is read in parallel, and the file content is divided according to different part data. Finally, the node coordinates of each part, the connection relationship between nodes, unit type and physical field data are saved in sequence according to the order of parts. The data saved based on this file format can realize the parallel reading of files and the parallel construction of data sets of each part according to parts, which are rendered separately and then displayed on the screen.

[0042] It can be seen that the present invention designs a post-processing result format file that is easy to parallelize, stores data according to the data storage method of the parts defined in the file, and can realize the reading and concurrent construction of multi-part data set files through thread-level parallelism, forming a data source suitable for various subsequent visualization algorithms.

[0043] Step 103, using a file pointer to read the parallel post-processing format file in parallel to obtain a mesh data set corresponding to each part.

[0044] In the embodiment of the present disclosure, after obtaining the parallel post-processing format file, the data in the parallel post-processing format file can be read in parallel using the file pointer to obtain the mesh data set corresponding to each part. For example, the data can be read in parallel according to the part number and the mesh data set of the part can be constructed.

[0045] In practical applications, in order to utilize the performance of multi-core CPU machines when reading files, a custom parallel post-processing format file is used for loading. First, a buffer is allocated for the file reading operation, and a file pointer is set to point to the buffer. The number of threads to be used is set according to the number of parts obtained by parsing the parallel post-processing format file. Based on the OpenMP multi-threaded programming method, a thread queue is created according to the number of parts, and the file reading operation is assigned to multiple threads. Each thread reads a part of the data from the file and stores it in the buffer. Once all the data is read into the buffer, the file is closed immediately. Then the Fork-Join parallel execution model is used to process the node coordinates and connection relationships by thread and construct part structured and unstructured data sets. That is, if the current part is a non-Eulerian domain type, it is constructed into an unstructured grid data set. If the current part is an Euler domain part type, it is constructed using the rectangular linear grid data set in the structured grid data set. Thus, the grid data set corresponding to each part is obtained. The result data is passed to the mapper, which is responsible for mapping the data into geometric primitives.

[0046] The pseudo code for reading files in parallel and constructing each part data set is as follows:

[0047]

[0048] Step 104, creating multiple threads according to the number of parts of the multiple parts, using the multiple threads to parallel render the mesh data set corresponding to each part to generate a visualization model of the multiple parts, wherein one thread is used to render the mesh data set of one part.

[0049] In the disclosed embodiment, multiple threads can be created according to the number of parts, one thread is used to render the mesh data set of one part, and multiple threads are used to render the mesh data sets corresponding to the corresponding parts in parallel to generate visualization models of multiple parts. For example, thread 1 is used to render part 1, thread 2 is used to render part 2, and so on, thread n is used to render part n, and these threads are executed synchronously, realizing multi-threaded parallel rendering and improving rendering efficiency.

[0050] Specifically, the scalar visualization method of color mapping can be used to complete the visualization of physical field quantities. It is a point-to-point mapping process that maps data points to colors, that is, color mapping realizes the mapping from physical field values ​​to color values. First, create a color mapper to define the relationship between color and physical field values, and add multiple color intervals and corresponding physical field values ​​to define color mapping. Then create a transparency mapper to define the relationship between physical field values ​​and transparency. Finally, set the created color mapper and transparency mapper to the properties of the renderer respectively. Set the mesh data set of the part to the renderer, and use VTK pseudo-color rendering to draw the cloud map to realize the visualization of the part. In this process, each data point will be rendered into the corresponding color and transparency according to its corresponding color mapping and transparency mapping. In order to realize the parallel processing of each part, a thread-level parallel strategy can be adopted to divide the parallel domain according to the number of parts. Each thread is based on the color mapping method to establish a one-to-one mapping relationship between the physical field value and the color value of the model node, realize the parallel rendering of multiple parts at the data level, draw a data cloud map of the smooth and continuously changing physical field, and show the changing trend of the physical quantity. Furthermore, after obtaining the visualization model, the model can be mapped, passed to the rendering engine, and finally displayed in the interactive window.

[0051] In this embodiment, for the physical field visualization of multi-part data sets, the traditional overall cloud map drawing method has the problem of low efficiency. The present invention performs physical field mapping on the reconstructed structured grid data set, adopts a multi-threaded parallel drawing processing method, splits the scalar field data according to the parts, and realizes the parallel drawing of continuous gradient physical quantity cloud maps through color mapping. The computing performance of the CPU is used to truly graphically show the changes in the physical field under working conditions such as high-speed collision, impact penetration and explosion, which accelerates the model rendering process and retains the authenticity of the physical field of the original model.

[0052] The visualization processing method of large-scale Euler domain simulation data of the disclosed embodiment is to parse the numerical simulation result file of the simulation scene to generate a multi-part data set, the multi-part data set includes the part type of each part in the multiple parts and the part data of each part, traverse the multi-part data set according to the parts, process the part data of each part according to the part type of each part, and store the processing results in a preset parallel post-processing format file, and then use the file pointer to read the parallel post-processing format file in parallel to obtain the grid data set corresponding to each part, and create multiple threads according to the number of parts of the multiple parts, use multiple threads to render the grid data set corresponding to each part in parallel, and generate a visualization model of multiple parts, wherein one thread is used to render the grid data set of one part. By adopting the above technical solution, by processing the part data according to the part type and storing the processing results in the preset parallel post-processing format file, the subsequent parallel reading of the data in the file and the parallel rendering are facilitated, and the rendering efficiency is greatly improved by parallel reading of the data and parallel rendering, which solves the problem that large-scale Euler domain data is difficult to use efficiently and the visualization process is inefficient in the existing simulation result display.

[0053] Figure 3 A flow chart of a visualization processing method for large-scale Euler domain simulation data provided by another embodiment of the present disclosure is shown in FIG. Figure 3 As shown, in Figure 1 Based on the illustrated embodiment, step 102 may include the following sub-steps:

[0054] Step 201, in response to the part type of the currently traversed part being the Euler domain type, traverse the node coordinates of all nodes in the part data of the currently traversed part to obtain the x-coordinate point set in the x-axis direction, the y-coordinate point set in the y-axis direction, and the z-coordinate point set in the z-axis direction.

[0055] In the disclosed embodiment, for parts of the Euler domain type, a rectangular linear grid in a structured grid is used to save file data. First, the node coordinates of all nodes in the part data of the currently traversed part are traversed, and the x-coordinate point set in the x-axis direction, the y-coordinate point set in the y-axis direction, and the z-coordinate point set in the z-axis direction of the three coordinate axis directions in the three-dimensional coordinate system are counted.

[0056] Among them, the x-coordinate point set includes the x-coordinate value of each node in all the nodes of the currently traversed part. Similarly, the y-coordinate point set includes the y-coordinate value of each node in all the nodes of the currently traversed part, and the z-coordinate point set includes the z-coordinate value of each node in all the nodes of the currently traversed part.

[0057] Step 202: down-sampling is performed in the x-axis direction based on the x-coordinate point set and a preset x-coordinate sampling step to obtain an x-coordinate sampling point set.

[0058] The x-coordinate sampling step can be pre-set according to actual needs to control the sampling rate in the x-axis direction, that is, the number of points in the x-axis direction at which an x-coordinate value is taken, and the x-coordinate sampling step is the number of points.

[0059] In the embodiment of the present disclosure, downsampling can be performed in the x-axis direction according to the x-coordinate point set and the preset x-coordinate sampling step to obtain the x-coordinate sampling point set. When downsampling is performed, sampling can be started from the smallest x-coordinate value in the x-coordinate point set, and the smallest x-coordinate value is the first x-coordinate sampling point value obtained by sampling. After that, an x-coordinate value is taken every x-coordinate sampling step, until the x-coordinate point set is traversed to obtain each x-coordinate sampling point value, and each x-coordinate sampling point value constitutes the x-coordinate sampling point set. Alternatively, sampling can also be started from the largest x-coordinate value in the x-coordinate point set, or sampling can be started from any x-coordinate value in the x-coordinate point set, and the present disclosure does not limit this.

[0060] Step 203 : down-sampling is performed in the y-axis direction based on the y-coordinate point set and a preset y-coordinate sampling step to obtain a y-coordinate sampling point set.

[0061] The y-coordinate sampling step can be pre-set according to actual needs to control the sampling rate in the y-axis direction, that is, the number of points in the y-axis direction at which a y-coordinate value is taken, and the y-coordinate sampling step is the number of points.

[0062] It should be noted that, for obtaining the y-coordinate sampling point set, the sampling process of obtaining the x-coordinate sampling point set in the previous step can be referred to, and will not be repeated here.

[0063] Step 204 : Down-sampling is performed in the z-axis direction based on the z-coordinate point set and a preset z-coordinate sampling step to obtain a z-coordinate sampling point set.

[0064] The z-coordinate sampling step can be pre-set according to actual needs to control the sampling rate in the z-axis direction, that is, the number of points in the z-axis direction at which a z-coordinate value is taken, and the z-coordinate sampling step is the number of points.

[0065] It should be noted that, for obtaining the z-coordinate sampling point set, reference can be made to the sampling process of obtaining the x-coordinate sampling point set in the previous step, which will not be repeated here.

[0066] Step 205 : generating sampling node coordinates corresponding to a plurality of sampling nodes respectively based on the x-coordinate sampling point set, the y-coordinate sampling point set and the z-coordinate sampling point set.

[0067] In the disclosed embodiment, after obtaining the x-coordinate sampling point set, the y-coordinate sampling point set and the z-coordinate sampling point set, multiple sampling node coordinates may be generated based on the three sampling point sets, where one sampling node coordinate corresponds to one sampling point.

[0068] When generating sampling node coordinates, an x-coordinate sampling point value in the x-coordinate sampling point set, a y-coordinate sampling point value in the y-coordinate sampling point set, and a z-coordinate sampling point value in the z-coordinate sampling point set can be randomly selected to form a sampling node coordinate.

[0069] In the disclosed embodiment, the data size is directly reduced by downsampling the nodes.

[0070] Step 206 , determining a target physical field value of each sampling node in the plurality of sampling nodes according to the sampling node coordinates, the node coordinates of all nodes in the part data of the currently traversed part, and the physical field values.

[0071] In the disclosed embodiment, for each adopted node coordinate, the target physical field value of each sampling node in the multiple sampling nodes can be determined according to the sampling node coordinate, the node coordinates of all nodes in the part data of the currently traversed part, and the physical field value.

[0072] In an optional embodiment of the present disclosure, when determining the target physical field value of each sampling node, the node coordinates of all nodes in the part data of the currently traversed part can be searched for a target node coordinate that is consistent with the currently traversed sampling node coordinate according to the currently traversed sampling node coordinate, and if so, the target node index corresponding to the target node coordinate is obtained, and the physical field value corresponding to the target node index is determined based on the target node index, and the physical field value corresponding to the target node index is determined as the target physical field value of the sampling node corresponding to the currently traversed sampling node coordinate. If there is no node coordinate that is consistent with the currently traversed sampling node coordinate among the node coordinates of all nodes in the part data of the currently traversed part, then according to the currently traversed sampling node coordinate, the node coordinates of the candidate node with the closest preset number of distances to the currently traversed sampling node coordinate are determined from the node coordinates of all nodes in the part data of the currently traversed part, and the physical field value corresponding to the candidate node coordinate is determined according to the candidate node index corresponding to the candidate node coordinate, and the average value of the physical field value corresponding to the candidate node coordinate is calculated, and the obtained average value is determined as the target physical field value of the sampling node corresponding to the currently traversed sampling node coordinate.

[0073] That is to say, in this embodiment, the node index of the currently traversed sampling node in all the nodes of the currently traversed part can be searched through the three-dimensional space coordinates, so as to obtain the physical field value of the current node as the target physical field value of the currently traversed sampling node; if the currently traversed sampling node does not exist in all the nodes of the currently traversed part, it is necessary to find the physical field values ​​on the preset number of nodes closest to the currently traversed sampling node and average them to obtain the target physical field value of the currently traversed sampling node. In this way, the target physical field values ​​of all sampling nodes on the downsampled part data set are obtained, which provides physical field scalar data for the subsequent drawing of continuous gradient smooth cloud maps.

[0074] Step 207 : determining the sampling node coordinates of each sampling node in the plurality of sampling nodes and the corresponding target physical field value as the processing result of the currently traversed part.

[0075] In the disclosed embodiment, the obtained sampling node coordinates of each sampling node among the multiple sampling nodes and the corresponding target physical field value are the processing results of the currently traversed part.

[0076] The pseudo code for saving the part data of the Euler domain part as a rectangular linear grid is as follows:

[0077]

[0078] Figure 4 A schematic diagram showing the reconstruction of unstructured mesh data of Euler domain parts into structured mesh data is shown. Figure 4 In the figure, the upper part is the rectangular linear grid data of the Euler domain type part, and the lower part is the corresponding visualization model. Figure 4 It can be seen that for Euler domain type parts, the unstructured grid data is reconstructed into rectangular linear grid data in the above way, so that the grid amount is reduced from 1000000 to 39304, and the grid data is greatly reduced.

[0079] In the disclosed embodiment, in order to solve the problem of large-scale Euler domain visualization in the numerical simulation process of explosion impact, the data format of the hexahedral mesh of the Euler domain type parts is converted, and the unstructured mesh data set is converted to a structured mesh data set through node unit topology reconstruction. The connection relationship between the nodes of the unstructured mesh data set is omitted to reduce the data storage amount, thereby reducing the mesh data and speeding up the rendering process.

[0080] In an optional embodiment of the present disclosure, in response to the part type of the currently traversed part being not an Euler domain type, the node coordinates of all nodes and the corresponding physical field values ​​can be extracted from the part data of the currently traversed part, as well as the connection relationship between the nodes, and the extracted node coordinates of all nodes and the corresponding physical field values, as well as the connection relationship between the nodes are determined as the processing result of the currently traversed part.

[0081] Exemplarily, if the current part is a non-Euler domain type, the node information of the part can be extracted and saved in order, and the connection relationship and unit type between the nodes, as well as the node physical field values ​​of the currently traversed part, are saved, one-to-one corresponding to the physical field data variable name list of the multi-part data part.

[0082] The pseudo code for saving the part data of non-Eulerian domain type parts as unstructured grids is as follows:

[0083]

[0084] In the disclosed embodiment, according to the data conversion method of the Euler domain parts and the non-Euler domain parts described above, the result file of the numerical simulation can be converted into a customized parallel post-processing format file. The parallel post-processing format file saves the file header, the basic information of the multi-part data set, and the basic data of each part construction grid, including node coordinates, topological relationships, physical field values ​​of nodes, etc.

[0085] In an optional embodiment of the present disclosure, storing the processing results in a preset parallel post-processing format file may include: counting the number of nodes contained in each part according to the processing results corresponding to each part, and generating node data corresponding to each part, the node data including node coordinates and physical field values ​​of the nodes; constructing multi-part information according to the number of nodes corresponding to each part, the part type and the number of parts of multiple parts, and then writing the multi-part information into the multi-part data set field of the parallel post-processing format file, and writing the node data corresponding to each part into the part data set field of the parallel post-processing format file in sequence according to the part number corresponding to each part.

[0086] In the embodiment of the present disclosure, a thread parallel drawing strategy is adopted, and multiple threads are used to render multiple parts respectively, and one thread is used to draw one part. Figure 5 FIG. 4 shows a schematic diagram of a process in which each thread renders a mesh data set corresponding to a part in an exemplary embodiment of the present disclosure. Figure 5 As shown, each thread renders the mesh data set corresponding to the part, which may include the following steps:

[0087] Step 301 : drawing a basic mesh model corresponding to a part according to a mesh data set corresponding to the part, wherein the nodes in the mesh data set are the facet vertices of the basic mesh model.

[0088] Step 302: According to the physical field values ​​of the facet vertices, the physical field values ​​corresponding to the pixels on the facet are determined by interpolation processing.

[0089] In the disclosed embodiment, a basic grid model corresponding to a part can be drawn according to a grid data set corresponding to the part, and each node in the grid data set constitutes a panel vertex on the basic grid model. The panel vertex forms a panel, and the panel includes a plurality of pixels. For each pixel, the physical field value corresponding to the pixel can be determined by interpolation processing according to the physical field value of the panel vertex of the panel to which it belongs.

[0090] Among them, the currently commonly used interpolation algorithm can be used to determine the physical field value corresponding to the pixel point, and the present disclosure does not limit the specific interpolation processing method.

[0091] Step 303, determining the color index number corresponding to the current traversal point on the basic grid model according to the physical field value of the current traversal point, wherein the current traversal point is the face element vertex or a pixel point on the face element.

[0092] In the disclosed embodiment, for all data points on the basic grid model (including face vertices and pixel points on the face elements), each data point can be traversed one by one, and the color index number corresponding to the current traversal point can be determined based on the physical field value of the current traversal point, where the current traversal point is a face vertex or a pixel point on the face element.

[0093] In an optional implementation of the present disclosure, the color index number corresponding to the current traversal point may be determined by the following formula:

[0094] ;

[0095] in, S j Indicates the physical field value of the current traversal point, min indicates the minimum value of the physical field value of all points on the basic grid model, and max indicates the maximum value of the physical field value of all points on the basic grid model. n Indicates the number of preset colors. i Indicates the color index number corresponding to the current traversal point.

[0096] Step 304: Render the current traversal point according to the color corresponding to the color index number.

[0097] In the disclosed embodiment, after the color index number of the current traversal point is determined, the corresponding color can be determined according to the color index number, and then the current traversal point can be rendered according to the color.

[0098] The pseudo code for multi-threaded parallel rendering of physical quantity cloud maps is as follows:

[0099]

[0100] In actual applications, the renderer can be called to render the current traversal point according to the color corresponding to the color index number. Specifically, by checking whether the system hardware information includes a GPU, different renderers and rendering window objects can be initialized and set GPU-related properties. When creating a renderer object, the GPU can be set for rendering. If the system includes a GPU, a specific renderer type vtkOpenGLRenderer is used for rendering, and vtkGenericOpenGLRendererWindow is used for display to support GPU acceleration and realize accelerated rendering of the model. In this way, the renderer will use the GPU for rendering by default when it is created. If the system does not include a GPU, the vtkRenderer renderer is used for rendering, and vtkRendererWindow is used for display. Therefore, by judging the hardware information of the rendering machine and combining the rendering class in VTK, the automatic scheduling process of the graphics rendering GPU is realized. When the system includes a GPU, the GPU automatic scheduling mechanism is started to realize the accelerated rendering of the model and improve the efficiency of graphics rendering.

[0101] When the present solution is actually applied, the implementation of the solution can be triggered by the user. Specifically, when a rendering instruction from the user is received, the solution disclosed in the present invention is executed, the numerical simulation result file of the simulation scene is parsed to construct a multi-part data set, and a parallel domain is constructed according to the number of parts in a thread-parallel manner. The mesh data set of each part is constructed by thread, and the mapper of the rendering pipeline is filled. Then, according to the mesh data set, a multi-threaded parallel rendering strategy is adopted to color the outer surface meshes at different physical field quantity positions to obtain a visualization model.

[0102] Based on the above contents, it can be known that the present disclosure first designs a multi-part set data storage format that is easy to parallelize for numerical simulation structure files, that is, a parallel post-processing file format that can be loaded by simulation software, including data storage methods for Euler domains and non-Euler domains, which can be used for multi-threaded loading of file contents and parallel construction of grid structures for each part data set. Secondly, the present disclosure proposes a method for simplifying data in large-scale Euler domains during dynamic simulation of explosion impact problems, a solution for converting unstructured grids into rectangular linear grids by setting sampling steps, and a method for obtaining data from the original data set, including how to construct a structured grid data set using the connection relationship between node coordinates and nodes, and a method for obtaining physical field values ​​of grid units or nodes. Finally, based on OpenMP multi-threading, the custom storage format is loaded, the physical quantity data cloud map is drawn in parallel, and the GPU is automatically scheduled to render the model. Through the data processing method based on computer multi-threaded concurrency and utilizing the computing performance of the CPU, the files are read in parallel and the model data sets of each part are constructed. In addition, a continuous and smooth physical field cloud map of each part is drawn in parallel, which greatly improves the algorithm execution efficiency and realizes efficient visualization of large-scale Euler domain. Based on the GPU automatic scheduling mechanism, the evolution process of the model physical field distribution under conditions such as high-speed collision, impact penetration and explosion can be truly graphically displayed, thereby solving the problems of large-scale Euler domain data being difficult to efficiently utilize and the inefficiency of the visualization process in the display of simulation results.

[0103] In order to implement the above embodiments, the present disclosure also provides a visualization processing device for large-scale Euler domain simulation data.

[0104] Figure 6 A schematic diagram of the structure of a visualization processing device for large-scale Euler domain simulation data provided in one embodiment of the present disclosure. The device can be implemented using software and / or hardware and can be integrated on any electronic device with processing capabilities, such as computers, servers and other devices.

[0105] like Figure 6 As shown, the visualization processing device 40 for large-scale Euler domain simulation data provided by the embodiment of the present disclosure may include: a data parsing module 410 , a data processing module 420 , a data reading module 430 and a rendering module 440 .

[0106] The data parsing module 410 is used to parse the numerical simulation result file of the simulation scene to generate a multi-part data set, wherein the multi-part data set includes a part type of each part in a plurality of parts and part data of each part;

[0107] The data processing module 420 is used to traverse the multi-part data set according to the parts, process the part data of each part according to the part type of each part, and store the processing result in a preset parallel post-processing format file;

[0108] A data reading module 430 is used to read the parallel post-processing format file in parallel using a file pointer to obtain a grid data set corresponding to each part;

[0109] The rendering module 440 is used to create multiple threads according to the number of parts of the multiple parts, and use the multiple threads to parallel render the grid data sets corresponding to each part to generate a visualization model of the multiple parts, wherein one thread is used to render the grid data set of one part.

[0110] In a possible implementation of the embodiment of the present disclosure, the data processing module 420 includes:

[0111] A node traversal unit, for traversing the node coordinates of all nodes in the part data of the currently traversed part in response to the part type of the currently traversed part being an Euler domain type, to obtain an x-coordinate point set in the x-axis direction, a y-coordinate point set in the y-axis direction, and a z-coordinate point set in the z-axis direction;

[0112] a sampling unit, configured to perform downsampling in the x-axis direction based on the x-coordinate point set and a preset x-coordinate sampling step to obtain an x-coordinate sampling point set; perform downsampling in the y-axis direction based on the y-coordinate point set and a preset y-coordinate sampling step to obtain a y-coordinate sampling point set; and perform downsampling in the z-axis direction based on the z-coordinate point set and a preset z-coordinate sampling step to obtain a z-coordinate sampling point set;

[0113] A node reconstruction unit, used to generate sampling node coordinates corresponding to a plurality of sampling nodes respectively based on the x-coordinate sampling point set, the y-coordinate sampling point set and the z-coordinate sampling point set;

[0114] A field quantity determination unit, configured to determine a target physical field quantity value of each sampling node in the plurality of sampling nodes according to the sampling node coordinates, the node coordinates of all nodes in the part data of the currently traversed part, and the physical field quantity values;

[0115] The first result determination unit is used to determine the sampling node coordinates and the corresponding target physical field value of each sampling node in the multiple sampling nodes as the processing result of the currently traversed part.

[0116] In a possible implementation manner of the embodiment of the present disclosure, the field quantity determination unit is further configured to:

[0117] According to the sampling node coordinates of the current traversal, searching whether there is a target node coordinate consistent with the sampling node coordinates of the current traversal in the node coordinates of all nodes in the part data of the currently traversed part;

[0118] If it exists, obtain the target node index corresponding to the target node coordinates;

[0119] Based on the target node index, determining a physical field value corresponding to the target node index;

[0120] The physical field value corresponding to the target node index is determined as the target physical field value of the sampling node corresponding to the currently traversed sampling node coordinates.

[0121] In a possible implementation manner of the embodiment of the present disclosure, the field quantity determination unit is further configured to:

[0122] If there is no node coordinate consistent with the sampling node coordinate of the current traversal among the node coordinates of all nodes in the part data of the currently traversed part, then according to the sampling node coordinate of the current traversal, determine a preset number of candidate node coordinates that are closest to the sampling node coordinate of the current traversal from the node coordinates of all nodes in the part data of the currently traversed part;

[0123] Determine the physical field value corresponding to the candidate node coordinates according to the candidate node index corresponding to the candidate node coordinates;

[0124] Calculate the average value of the physical field value corresponding to the candidate node coordinates;

[0125] The average value is determined as the target physical field value of the sampling node corresponding to the coordinates of the currently traversed sampling node.

[0126] In a possible implementation of the embodiment of the present disclosure, the data processing module 420 further includes:

[0127] A data extraction unit, configured to extract node coordinates and corresponding physical field values ​​of all nodes from the part data of the currently traversed part, and to extract connection relationships between nodes in response to the part type of the currently traversed part not being an Euler domain type;

[0128] The second result determination unit is used to determine the node coordinates of all the extracted nodes and the corresponding physical field values, and the connection relationship between the nodes as the processing result of the currently traversed part.

[0129] In a possible implementation of the embodiment of the present disclosure, the data processing module 420 is further configured to:

[0130] According to the processing result corresponding to each part, the number of nodes contained in each part is counted, and the node data corresponding to each part is generated, wherein the node data includes the node coordinates and the physical field value of the node;

[0131] Constructing multi-part information according to the number of nodes corresponding to each part, the part type and the number of parts of the multiple parts;

[0132] The multi-part information is written into the multi-part data set field of the parallel post-processing format file, and the node data corresponding to each part is written into the part data set field of the parallel post-processing format file in sequence according to the part number corresponding to each part.

[0133] In a possible implementation of the embodiment of the present disclosure, the rendering module 440 is further configured to:

[0134] Draw a basic mesh model corresponding to the part according to the mesh data set corresponding to the part, wherein the nodes in the mesh data set are the facet vertices of the basic mesh model;

[0135] According to the physical field values ​​of the facet vertices, determining the physical field values ​​corresponding to each pixel point on the facet through interpolation processing;

[0136] Determine a color index number corresponding to a current traversal point on the basic grid model according to a physical field value of the current traversal point, wherein the current traversal point is a vertex of the face element or a pixel point on the face element;

[0137] The current traversal point is rendered according to the color corresponding to the color index number.

[0138] In a possible implementation of the embodiment of the present disclosure, the rendering module 440 is further configured to:

[0139] The color index number corresponding to the current traversal point is determined by the following formula:

[0140] ;

[0141] in, S j represents the physical field value of the current traversal point, min represents the minimum value of the physical field value of all points on the basic grid model, and max represents the maximum value of the physical field value of all points on the basic grid model. n Indicates the number of preset colors. i Indicates the color index number corresponding to the current traversal point.

[0142] The visualization processing device for large-scale Euler domain simulation data applied to electronic devices provided in the embodiments of the present disclosure can execute any visualization processing method for large-scale Euler domain simulation data applicable to electronic devices provided in the embodiments of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not fully described in the embodiments of the present disclosure, reference can be made to the description in any method embodiment of the present disclosure.

[0143] The embodiments of the present disclosure also provide an electronic device, including a processor and a memory; the processor calls the program or instructions stored in the memory to execute the steps of each embodiment of the visualization processing method of large-scale Euler domain simulation data as described in the above embodiments. To avoid repeated description, they will not be repeated here.

[0144] The embodiments of the present disclosure also provide a non-transitory computer-readable storage medium, which stores programs or instructions. The programs or instructions enable a computer to execute the steps of each embodiment of the visualization processing method for large-scale Euler domain simulation data as described in the aforementioned embodiments. To avoid repeated description, they are not repeated here.

[0145] The embodiments of the present disclosure also provide a computer program product, which is used to execute the steps of each embodiment of the method for visualizing large-scale Euler domain simulation data as described in the aforementioned embodiments.

[0146] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0147] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A visualization processing method for large-scale Euler domain simulation data, characterized in that: The method comprises: Parsing the numerical simulation result file of the simulation scenario to generate a multi-part data set, wherein the multi-part data set includes a part type of each part in the multiple parts and part data of each part, wherein the numerical simulation result file records simulation data obtained after the simulation in the simulation scenario is completed; The multi-part data set is traversed according to the parts, and the part data of each part is processed according to the part type of each part, and the processing result is stored in a preset parallel post-processing format file, wherein the parallel post-processing format file includes a file header field, a multi-part data set field and a part data set field, and the data of these fields constitute the basic information of the model; wherein, for a part whose part type is an Euler domain type, the sampling node coordinates are determined based on the node coordinates of all nodes corresponding to the part, and the processing result of the part is determined based on the sampling node coordinates and the part data of the part; for a part whose part type is not an Euler domain type, the processing result of the part is determined based on the part data of the part; Using file pointers to read the parallel post-processing format file in parallel to obtain a grid data set corresponding to each part; A plurality of threads are created according to the number of the plurality of parts, and the mesh data sets corresponding to each of the parts are rendered in parallel using the plurality of threads to generate a visualization model of the plurality of parts, wherein one thread is used to render the mesh data set of one part.

2. The method according to claim 1, characterized in that The processing of the part data of each part according to the part type of each part includes: In response to the part type of the currently traversed part being the Euler domain type, traversing the node coordinates of all nodes in the part data of the currently traversed part to obtain an x-coordinate point set in the x-axis direction, a y-coordinate point set in the y-axis direction, and a z-coordinate point set in the z-axis direction; Downsampling is performed in the x-axis direction based on the x-coordinate point set and a preset x-coordinate sampling step to obtain an x-coordinate sampling point set; Downsampling is performed in the y-axis direction based on the y-coordinate point set and a preset y-coordinate sampling step to obtain a y-coordinate sampling point set; Downsampling is performed in the z-axis direction based on the z-coordinate point set and a preset z-coordinate sampling step to obtain a z-coordinate sampling point set; Based on the x-coordinate sampling point set, the y-coordinate sampling point set and the z-coordinate sampling point set, generating sampling node coordinates corresponding to a plurality of sampling nodes respectively; Determine a target physical field value of each sampling node in the plurality of sampling nodes according to the sampling node coordinates, the node coordinates of all nodes in the part data of the currently traversed part, and the physical field values; The sampling node coordinates of each sampling node in the plurality of sampling nodes and the corresponding target physical field value are determined as the processing result of the currently traversed part.

3. The method according to claim 2, characterized in that The step of determining a target physical field value of each sampling node in the plurality of sampling nodes according to the sampling node coordinates, the node coordinates of all nodes in the part data of the currently traversed part, and the physical field values ​​includes: According to the sampling node coordinates of the current traversal, searching whether there is a target node coordinate consistent with the sampling node coordinates of the current traversal in the node coordinates of all nodes in the part data of the currently traversed part; If it exists, obtain the target node index corresponding to the target node coordinates; Based on the target node index, determining a physical field value corresponding to the target node index; The physical field value corresponding to the target node index is determined as the target physical field value of the sampling node corresponding to the currently traversed sampling node coordinates.

4. The method according to claim 3, characterized in that The method further comprises: If there is no node coordinate consistent with the sampling node coordinate of the current traversal among the node coordinates of all nodes in the part data of the currently traversed part, then according to the sampling node coordinate of the current traversal, determine a preset number of candidate node coordinates that are closest to the sampling node coordinate of the current traversal from the node coordinates of all nodes in the part data of the currently traversed part; Determine the physical field value corresponding to the candidate node coordinates according to the candidate node index corresponding to the candidate node coordinates; Calculate the average value of the physical field value corresponding to the candidate node coordinates; The average value is determined as the target physical field value of the sampling node corresponding to the coordinates of the currently traversed sampling node.

5. The method according to claim 1, characterized in that The processing of the part data of each part according to the part type of each part includes: In response to the part type of the currently traversed part not being an Euler domain type, extracting node coordinates and corresponding physical field values ​​of all nodes from the part data of the currently traversed part, and extracting connection relationships between the nodes; The node coordinates of all the extracted nodes and the corresponding physical field values, as well as the connection relationships between the nodes, are determined as the processing result of the currently traversed part.

6. The method according to any one of claims 1 to 5, characterized in that: The step of storing the processing results in a preset parallel post-processing format file includes: According to the processing result corresponding to each part, the number of nodes contained in each part is counted, and the node data corresponding to each part is generated, wherein the node data includes the node coordinates and the physical field value of the node; Constructing multi-part information according to the number of nodes corresponding to each part, the part type and the number of parts of the multiple parts; The multi-part information is written into the multi-part data set field of the parallel post-processing format file, and the node data corresponding to each part is written into the part data set field of the parallel post-processing format file in sequence according to the part number corresponding to each part.

7. The method according to any one of claims 1 to 5, characterized in that: The process of each thread rendering the mesh dataset corresponding to the part includes: Draw a basic mesh model corresponding to the part according to the mesh data set corresponding to the part, wherein the nodes in the mesh data set are the facet vertices of the basic mesh model; According to the physical field values ​​of the facet vertices, determining the physical field values ​​corresponding to each pixel point on the facet through interpolation processing; Determine a color index number corresponding to a current traversal point on the basic grid model according to a physical field value of the current traversal point, wherein the current traversal point is a vertex of the face element or a pixel point on the face element; The current traversal point is rendered according to the color corresponding to the color index number.

8. The method according to claim 7, characterized in that The step of determining the color index number corresponding to the current traversal point according to the physical field value of the current traversal point on the basic grid model comprises: The color index number corresponding to the current traversal point is determined by the following formula: in, S j represents the physical field value of the current traversal point, min represents the minimum value of the physical field value of all points on the basic grid model, and max represents the maximum value of the physical field value of all points on the basic grid model. n Indicates the number of preset colors. i Indicates the color index number corresponding to the current traversal point.

9. A visualization processing device for large-scale Euler domain simulation data, characterized in that: The device comprises: A data parsing module, used for parsing a numerical simulation result file of a simulation scenario to generate a multi-part data set, wherein the multi-part data set includes a part type of each part in a plurality of parts and part data of each part, wherein the numerical simulation result file records simulation data obtained after the simulation in the simulation scenario is completed; A data processing module, used for traversing the multi-part data set according to the parts, processing the part data of each part according to the part type of each part, and storing the processing result in a preset parallel post-processing format file, wherein the parallel post-processing format file includes a file header field, a multi-part data set field and a part data set field, and the data of these fields constitute the basic information of the model; wherein, for a part whose part type is an Euler domain type, the sampling node coordinates are determined based on the node coordinates of all nodes corresponding to the part, and the processing result of the part is determined based on the sampling node coordinates and the part data of the part; for a part whose part type is not an Euler domain type, the processing result of the part is determined based on the part data of the part; A data reading module, used for reading the parallel post-processing format file in parallel using a file pointer to obtain a grid data set corresponding to each part; A rendering module is used to create multiple threads according to the number of parts of the multiple parts, and use the multiple threads to parallel render the grid data sets corresponding to each part to generate a visualization model of the multiple parts, wherein one thread is used to render the grid data set of one part.

10. An electronic device, characterized in that: include: Processor and memory; The processor is used to execute the visualization processing method for large-scale Euler domain simulation data as described in any one of claims 1 to 8 by calling the program or instruction stored in the memory.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute the visualization processing method for large-scale Euler domain simulation data according to any one of claims 1 to 8.