CN-122023626-A - Simulation result volume rendering drawing method and device
Abstract
The invention discloses a simulation result volume rendering drawing method and device, which are used for solving the technical problem that the efficiency of each link of volume data generation and rendering is limited due to full-flow calculation redundancy in the traditional volume rendering scheme, and finally the overall rendering efficiency is obviously low. The method comprises the steps of obtaining a model file, analyzing and extracting model point cloud data, constructing an octree space index optimization structure by using an octree construction algorithm, calculating a rule grid by combining the model point cloud data and a preset sampling resolution, constructing the rule grid, and determining three-dimensional rule grid parameters. And generating a binary filtering pretreatment file according to the binary filtering pretreatment file and the octree index, simultaneously carrying out CAE numerical simulation on the model vertexes to obtain a simulation result file, constructing three-dimensional regular grid body data by combining the binary filtering pretreatment file and the octree index, and carrying out body rendering after the combination of the body rendering files is determined to generate an interactive CAE simulation result body rendering drawing result.
Inventors
- HOU TING
- ZOU CHANGYUE
- ZHAO XIAOBIN
- XIN QINGMING
- YANG LIU
- LI HUAN
- HUANG YIHONG
- ZHANG LE
- XU JIDONG
- YANG QIFAN
- DU YUBIN
- LI LINGFEI
- GUAN XISHENG
- LU YIPING
- LUO WENBO
- Shi Youjie
- YAN YONGGUANG
- PAN KUNNIAN
Assignees
- 南方电网科学研究院有限责任公司
- 广东电网有限责任公司阳江供电局
Dates
- Publication Date
- 20260512
- Application Date
- 20260403
Claims (10)
- 1. The simulation result volume rendering drawing method is characterized by comprising the following steps of: Obtaining a model file, analyzing the model file to extract model point cloud data, and constructing an octree space index optimization structure based on the point cloud data by adopting an octree construction algorithm; performing regular grid calculation and regular grid point construction based on the model point cloud data and a preset sampling resolution, and determining three-dimensional regular grid parameters and a plurality of regular grid points; Binary file construction is carried out according to the three-dimensional regular grid parameters, the regular grid points and the octree space index optimization structure, and a binary filtering pretreatment file is generated; Performing CAE numerical simulation on a plurality of model vertexes in the model file to generate a CAE simulation result file, and performing three-dimensional rule grid body construction based on the binary filtering pretreatment file and the CAE simulation result file to generate three-dimensional rule grid body data; determining a volume rendering file combination based on the three-dimensional regular grid volume data; and performing simulation result volume rendering based on the volume rendering file combination, and generating an interactive CAE simulation result volume rendering drawing result.
- 2. The simulation result volume rendering drawing method according to claim 1, wherein the performing regular grid calculation and regular grid point construction based on the model point cloud data and a preset sampling resolution, determining three-dimensional regular grid parameters and a plurality of regular grid points, includes: traversing a plurality of model vertex coordinates in the model point cloud data, and respectively calculating boundary ranges of a transverse axis direction, a longitudinal axis direction and a vertical axis direction; calculating three-dimensional regular grid parameters by taking boundary ranges of the horizontal axis direction, the vertical axis direction and the vertical axis direction as calculation bases and combining the preset sampling resolution; And generating a plurality of regular grid points through three-layer circulation in the transverse axis direction, the longitudinal axis direction and the vertical axis direction based on the size and the spacing in the three-dimensional regular grid parameters.
- 3. The simulation result volume rendering drawing method according to claim 1, wherein the binary file construction is performed according to the three-dimensional rule grid parameters, the plurality of rule grid points and the octree spatial index optimization structure, and the binary filtering preprocessing file is generated, and the method comprises the steps of: screening the regular grid points by adopting the octree space index optimization structure to obtain a plurality of effective grid points; recording associated vertex indexes and fixed weights corresponding to the effective grid points; integrating the three-dimensional rule grid parameters with the associated vertex indexes and the fixed weights corresponding to the effective grid points to generate integrated data; and carrying out binary serialization coding on the integrated data, and outputting a binary filtering pretreatment file.
- 4. A simulation result volume rendering drawing method according to claim 3, wherein said performing CAE numerical simulation on a plurality of model vertices in the model file generates a CAE simulation result file, performing three-dimensional regular grid body construction based on the binary filtering preprocessing file and the CAE simulation result file, generating three-dimensional regular grid body data, comprising: performing CAE numerical simulation on a plurality of model vertexes to generate a CAE simulation result file; Reading the binary filtering pretreatment file and performing deserialization operation to obtain restored three-dimensional rule grid parameters and restored associated vertex indexes of each effective grid point; Reading simulation result values corresponding to the vertexes of the models in the CAE simulation result file; Establishing a one-to-one mapping table according to simulation result values corresponding to the vertexes of the models; extracting simulation result values corresponding to the effective grid points from the one-to-one mapping table according to the restored associated vertex indexes of the effective grid points; Performing interpolation calculation on simulation result values corresponding to the effective grid points according to the fixed weights corresponding to the effective grid points to obtain simulation interpolation results of the effective grid points; And generating three-dimensional regular grid body data according to simulation interpolation results of the effective grid points and the restored three-dimensional regular grid parameters.
- 5. The simulation result volume rendering drawing method according to claim 1, wherein the determining a volume rendering file combination based on the three-dimensional regular mesh volume data includes: Generating an MHD metadata file based on the metadata of the three-dimensional regular grid body data; storing all simulation interpolation result values in the three-dimensional regular grid body data according to a designated storage sequence corresponding to the MHD metadata file and in a binary original format without encoding compression to generate ZRAW original body data files; and combining the ZRAW original volume data files and the MHD metadata files into a volume rendering file.
- 6. The method for rendering and drawing a simulation result volume according to claim 1, wherein the generating the interactive CAE simulation result volume rendering and drawing result based on the volume rendering file combination comprises: performing node mapping based on the volume rendering file combination to generate Raymarch material nodes; performing rendering parameter configuration on the Raymarch material nodes to obtain Raymarch material with the configuration completed; creating a volume rendering Actor, endowing the configured Raymarch material to the volume rendering Actor, and performing real-time volume rendering to obtain an initial rendering result; and optimizing the initial rendering result to generate an interactive CAE simulation result volume rendering drawing result.
- 7. A simulation result volume rendering drawing apparatus, characterized by comprising: The acquisition module is used for acquiring a model file, analyzing the model file to extract model point cloud data, and constructing an octree space index optimization structure based on the point cloud data by adopting an octree construction algorithm; the first construction module is used for carrying out regular grid calculation and regular grid point construction based on the model point cloud data and a preset sampling resolution, and determining three-dimensional regular grid parameters and a plurality of regular grid points; The second construction module is used for constructing binary files according to the three-dimensional rule grid parameters, the rule grid points and the octree space index optimization structure to generate binary filtering pretreatment files; The third construction module is used for carrying out CAE numerical simulation on a plurality of model vertexes in the model file to generate a CAE simulation result file, and carrying out three-dimensional rule grid body construction on the basis of the binary filtering pretreatment file and the CAE simulation result file to generate three-dimensional rule grid body data; the combination module is used for determining a volume rendering file combination based on the three-dimensional regular grid volume data; And the rendering module is used for performing simulation result volume rendering based on the volume rendering file combination and generating an interactive CAE simulation result volume rendering drawing result.
- 8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the simulation result volume rendering method of any of claims 1-6.
- 9. A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed implements the simulation result volume rendering method according to any one of claims 1-6.
- 10. A computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, wherein the program instructions, when executed by a computer, cause the computer to perform the steps of the simulation result volume rendering method according to any of claims 1-6.
Description
Simulation result volume rendering drawing method and device Technical Field The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for rendering and drawing a simulation result volume. Background In the field of high-end equipment research and development such as aerospace, automobile manufacturing and mechanical engineering, a CAE (Computer AIDED ENGINEERING) simulation technology has become a core supporting means for product structure optimization and performance prediction. According to the method, key indexes such as mechanical properties, heat conduction efficiency and the like of a product under a complex working condition are simulated through accurate numerical calculation, the research and development period is effectively shortened, the physical test cost is reduced, along with the development of industrial design to a high-precision and complex direction, the scale of unstructured data generated by CAE simulation is exponentially increased, and how to efficiently convert the abstract data into visual and interpretable visual results becomes the core requirement of industrial promotion engineering application. As a key link for connecting CAE simulation data and engineering decisions, the unstructured CAE data visualization technology needs to be compatible with detail presentation, processing efficiency and interaction flexibility. The unstructured CAE data has higher requirements on grid conversion, data interpolation and rendering display in a visualization process due to the characteristics of irregular vertex distribution and strong spatial correlation, the current industry mainstream adopts a surface rendering scheme or a traditional volume rendering scheme, the former directly depends on the model surface to display data, the latter needs to convert unstructured data into regular grid volume data and then render, and the two schemes are main realization paths of current engineering visualization. The traditional volume rendering scheme does not introduce a high-efficiency spatial index mechanism to optimize, the adaptability of the grid construction and data conversion process to unstructured CAE data is insufficient, the time consumption of data preprocessing is directly prolonged, the traditional Gaussian interpolation, linear interpolation and other methods are not matched with the characteristics of irregular vertex distribution and strong relevance of unstructured data, the pertinence algorithm optimization is not carried out, the calculation cost of volume data generation is further increased, the problems are overlapped, the quick processing requirement of a large-scale complex model is difficultly met, the efficiency of each link of volume data generation and rendering is limited due to the whole flow calculation redundancy, and finally the overall rendering efficiency is obviously low. Disclosure of Invention The invention provides a simulation result volume rendering drawing method and device, which solve the technical problems that the efficiency of each link of volume data generation and rendering is limited due to full-flow calculation redundancy in the traditional volume rendering scheme, and finally the overall rendering efficiency is obviously low. The invention provides a simulation result volume rendering drawing method, which comprises the following steps: Obtaining a model file, analyzing the model file to extract model point cloud data, and constructing an octree space index optimization structure based on the point cloud data by adopting an octree construction algorithm; performing regular grid calculation and regular grid point construction based on the model point cloud data and a preset sampling resolution, and determining three-dimensional regular grid parameters and a plurality of regular grid points; Binary file construction is carried out according to the three-dimensional regular grid parameters, the regular grid points and the octree space index optimization structure, and a binary filtering pretreatment file is generated; Performing CAE numerical simulation on a plurality of model vertexes in the model file to generate a CAE simulation result file, and performing three-dimensional rule grid body construction based on the binary filtering pretreatment file and the CAE simulation result file to generate three-dimensional rule grid body data; determining a volume rendering file combination based on the three-dimensional regular grid volume data; and performing simulation result volume rendering based on the volume rendering file combination, and generating an interactive CAE simulation result volume rendering drawing result. Optionally, the determining three-dimensional rule grid parameters and a plurality of rule grid points based on the model point cloud data and a preset sampling resolution to perform rule grid calculation and rule grid point construction includes: traversing a plurality o