A method, device, storage medium and program product for rapid rendering of simulated cloud images

By performing weighted averaging of stress values ​​and node adjustment on the original mesh model, the problem of low rendering efficiency of million-level mesh models is solved, fast rendering is achieved and simulation accuracy and appearance accuracy are guaranteed, solving the rendering problems in the existing technology. The problem of mismatch between efficiency and simulation efficiency.

CN118537508BActive Publication Date: 2024-10-22HUAZHONG UNIV OF SCI & TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411006487.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-22
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

Existing model reduced-order rendering technology cannot render the cloud image of a million-level mesh model quickly and with high fidelity after fast simulation calculations, resulting in a mismatch between simulation calculation efficiency and rendering efficiency. Simplified simulation may lead to model shape distortion and reduced simulation accuracy.

Method used

A simplified mesh model is formed by randomly selecting some nodes from the original mesh model, weighting the stress values, and adjusting according to the maximum stress value and coordinate deviation to ensure the stress distribution and position accuracy of the simplified model to achieve fast rendering.

Benefits of technology

On the premise of ensuring the appearance of the model and the accuracy of the simulation, it achieves rapid rendering of the model, resolves the contradiction between efficient simulation calculations and high-fidelity rendering, and ensures the accuracy and efficiency of the rendering results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537508B_ABST
    Figure CN118537508B_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of image rendering, and discloses a method, device, storage medium and program product for rapid rendering of a simulation cloud image. The method comprises: S1: selecting m nodes from an original grid model to form a node set {K i}; S2: K i The center of the circle is r. i The set of stress values ​​covered by {SN it}; S3: for {SN it} Perform weighted average to obtain node K i Stress value; S4: Determine whether the maximum stress values ​​of the original and simplified models are close, if not, adjust the stress value weight and jump to S3, if yes, execute S5; S5: Determine whether the node coordinates with the maximum stress value of the original and simplified mesh models are close, if not, increase m and jump to S1, if yes, output the simplified mesh model for model rendering. Through the above methods, the model can be quickly rendered while ensuring the appearance and simulation accuracy of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field related to image rendering, and more specifically, to a method, device, storage medium and program product for rapid rendering of a simulation cloud image. Background Art

[0002] With the continuous mention and development of technologies such as digital twins, requirements have been put forward for real-time cloud map display of models after simulation. At present, there are related model reduction technologies that can achieve fast simulation of models in seconds without finite element software, and render them through model reconstruction technology, so that simulation calculation and cloud map display of models under real-time changing working conditions can be realized. However, the existing model reduction rendering technology still has some problems.

[0003] First, for large models such as underground engineering equipment, although model reduction technology can be used to achieve rapid simulation calculations of stress, strain and other properties, solving the problem of long calculation time of traditional finite element methods, the model cloud map after model reduction calculation needs to be reconstructed to realize the cloud map display of simulation results. Simple models can still be calculated and rendered quickly, but models with millions of grids cannot be quickly reconstructed and visualized. This creates a contradiction between high simulation calculation efficiency and low rendering efficiency. Therefore, it is necessary to find a method to quickly and highly fidelity display the model cloud map after obtaining the cloud map data of each node of the grid after rapid calculation.

[0004] Secondly, many existing technologies choose to simplify the model for simulation, which will reduce the number of meshes in the model, but the simulation accuracy may decrease, and the shape of the model may be distorted due to the small number of meshes.

[0005] Therefore, in response to the above problems, how to achieve fast rendering of the model while ensuring the model appearance and simulation accuracy is an issue that needs to be solved urgently. Summary of the invention

[0006] In response to the above defects or improvement needs of the prior art, the present application provides a method, device, storage medium and program product for rapid rendering of a simulation cloud map, the purpose of which is to achieve rapid rendering of the model while ensuring the model appearance and simulation accuracy.

[0007] To achieve the above-mentioned purpose, according to a first aspect of the present application, a method for rapid rendering of a simulation cloud image is provided, which comprises:

[0008] Step S1: randomly select m nodes from the original mesh model to be rendered to form a simplified mesh model. The node set of the simplified mesh model is {K i}, K i is the i-th node in the set, i=1,2,3,…,m;

[0009] Step S2: K i As the center of the circle, within the set search radius r i Determine the node set covered in the original grid model {N it} and obtain the corresponding stress value set {SN it},N it is the tth node in the set, SN it is the corresponding node N in the set it The stress value of

[0010] Step S3: Corresponding to the stress value set {SN it} is weighted averaged to obtain the stress values ​​of node K i Stress value SK i , the stress value set of all nodes of the simplified mesh model is {SK i};

[0011] Step S4: determine whether the deviation between the maximum stress value ma1 of the simplified mesh model and the maximum stress value ma2 of the original mesh model is less than or equal to the preset stress error. If not, adjust the stress value weight and jump to step S3. If yes, execute step S5.

[0012] Step S5: Obtain the coordinates Cor1 of the node with the maximum stress value in the simplified mesh model and the coordinates Cor2 of the node with the maximum stress value in the original mesh model, and determine whether the coordinate deviation between the coordinates Cor1 and Cor2 is less than or equal to the preset coordinate error. If not, increase m and jump to step S1. If so, output the node set and the corresponding stress value set of the simplified mesh model for model rendering.

[0013] Exemplarily, the initial value of m ranges from n / 3 to n / 2.

[0014] For example, the search radius r i The value of satisfies: In the original grid model, K i As the center of the circle, with r i The circular area covered by the radius does not contain any nodes except node K in the simplified mesh model. i Other nodes outside.

[0015] For example, for the stress value set {SN it The initial stress weights of each stress value when taking the weighted average of the stress values ​​of} are equal.

[0016] Exemplarily, the deviation calculation formula of the stress value is:

[0017] ε s =|ma1-ma2|*(1 / ma2)

[0018] In the formula, ε s is the stress deviation.

[0019] Exemplarily, the preset stress error ranges from 0.001 to 0.1.

[0020] Exemplarily, the preset coordinate error does not exceed an average value of the grid sizes in the original grid model.

[0021] According to a second aspect of the present application, there is provided an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of any of the above methods when executing the computer program.

[0022] According to a third aspect of the present application, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any of the methods described above.

[0023] According to a fourth aspect of the present application, there is provided a computer program product, comprising a computer program or instructions, wherein when the computer program or instructions are executed by a processor, the steps of any of the methods described above are implemented.

[0024] In general, compared with the prior art, the above technical solutions conceived by the present application and the method, device, storage medium and program product for rapid rendering of simulated cloud images provided by the present application mainly have the following beneficial effects.

[0025] 1. The method for rapid rendering of simulation cloud images provided in this application simplifies the original mesh model of the simulation cloud image before rendering, selects m nodes from it to form a simplified mesh model, and judges whether the current simplified result is appropriate, specifically judging from two aspects: the degree of proximity to the maximum stress value of the original model and the degree of proximity to the coordinate distance corresponding to the maximum stress value. Through the above two aspects of judgment, it can be confirmed that the simplified model can accurately reflect the maximum stress value and its position, otherwise it means that the nodes and areas selected in the current way are unreasonable and the simplified model needs to be readjusted. Before comparing the maximum stress values, this application compares the nodes K in the original model. i The weighted average stress values ​​of all nodes in the area are obtained to obtain the node K in the simplified model. iThe stress value of each node of the simplified model is estimated by this method, which can ensure that the simplified stress value of the node can replace the stress situation in the area to the greatest extent without losing the truth. After calculating the stress value of each node of the simplified model, it is judged whether the maximum stress value of the simplified model is close to the maximum stress value of the original mesh model. If it is close, it means that the current simplified model can reflect the maximum stress level of the original model, which means that the stress value of the current simplified model is appropriate; then, it is judged whether the node coordinates of the maximum stress value of the simplified model are close to the node coordinates of the original maximum stress value. If it is close, it means that the stress distribution in the simplified model is more accurate, which means that the number of nodes in the current simplified model is appropriate. Only when both conditions are met can the model appearance and simulation accuracy be guaranteed. Otherwise, it is necessary to recalculate the stress value of each node or increase the number of nodes and recalculate until the above two conditions are met. Finally, the simplified model is rendered, which can achieve fast rendering and ensure the model appearance and simulation accuracy.

[0026] 2. In the specific example, the initial value range of m is set to n / 3~n / 2, so that the model can be simplified to a great extent.

[0027] 3. In the specific example, set the search radius r i It is satisfied that other nodes of the simplified model will not be covered. In this way, on the one hand, the amount of calculation can be reduced, because repeated calculations will cause the stress values ​​of repeated nodes to be substituted into the calculation. On the other hand, if adjacent areas have common nodes substituted into the calculation, the stress values ​​of these areas will be over-averaged, that is, if a region includes nodes that are too far away from its central node, such as nodes in other regions, then its average stress will definitely be unreasonably affected, reducing accuracy, and ultimately making the number of iterations longer and reducing calculation efficiency.

[0028] 4. In the specific example, the preset coordinate error does not exceed the average value of the mesh size in the original mesh model. In this way, it can be ensured that the simplified nodes will not deviate too far from the original model and the stress level will not differ too much from the original model. Because for the finite element model, the stress level of a mesh is determined by the stress levels of several nodes that constitute it. If the preset coordinate error exceeds the size of the mesh, it means that this node can no longer reflect the stress level of this mesh. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a flowchart of the steps of a method for rapid rendering of a simulation cloud image in one embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as they do not conflict with each other.

[0031] Example 1

[0032] like Figure 1 The figure shows a flowchart of the steps of a method for rapid rendering of a simulation cloud image in one embodiment of the present application, and each step thereof is introduced below.

[0033] Step S1: randomly select m nodes from the original mesh model to be rendered to form a simplified mesh model. The node set of the simplified mesh model is {K i}, K i is the i-th node in the set to which it belongs, i=1,2,3,…,m.

[0034] The original mesh model is the cloud mesh obtained by simulation. The mesh is composed of multiple mesh nodes. Each node corresponds to a stress value, which is determined by simulation. The node set of the original mesh model can be expressed as {N j}, the stress value set can be expressed as {SN j},N j is the jth node in the set, j=1,2,3,…,n, n is the number of nodes in the original grid model, SN j is the corresponding node N in the set j The stress value.

[0035] This step requires randomly selecting some nodes from the original grid model to form a simplified grid model, where the initial value range of m can be set to n / 3~n / 2. If the number of nodes in the original model reaches more than 10 million, n / 3 can be selected. In this way, the model can be simplified to a large extent.

[0036] Step S2: K i As the center of the circle, within the set search radius r i Determine the node set covered in the original grid model {N it} and obtain the corresponding stress value set {SN it},N it is the tth node in the set, SN it is the corresponding node N in the set it The stress value.

[0037] For each node K in the simplified model i , on the original mesh model, with Ki As the center of the circle, with r i Divide the coverage area into the radius, obtain the stress values ​​of all nodes in the covered area and perform weighted average calculation, and the calculation result is used as the node K in the simplified model i The stress value.

[0038] In one embodiment, the search radius r i The value of satisfies: In the original grid model, K i As the center of the circle, with r i The circular area covered by the radius does not contain any nodes except node K in the simplified mesh model. i Other nodes outside the search radius r i It should be smaller than the minimum value between adjacent nodes in the simplified model, or smaller than the mesh size of the mesh model after the above preliminary simplification.

[0039] Step S3: Corresponding to the stress value set {SN it} is weighted averaged to obtain the stress values ​​of node K i Stress value SK i , the stress value set of all nodes of the simplified mesh model is {SK i}.

[0040] Specifically, set the weight set {V it},V it is the corresponding stress value SN in the set it The weight of .

[0041] The weight set satisfies:

[0042] V i1 +V i2 +...+V it +...+V ip =1

[0043] Where p is the number of nodes in the coverage area.

[0044] Node K i Stress value SK i The calculation formula is:

[0045] SK i =∑SN it * V it

[0046] In one embodiment, for the stress value set {SN it The initial stress weights of each stress value when taking the weighted average of the stress values ​​of} are equal, that is, the initialized stress weights are 1 / p.

[0047] Step S4: Determine whether the deviation between the maximum stress value ma1 of the simplified mesh model and the maximum stress value ma2 of the original mesh model is less than or equal to the preset stress error. If not, adjust the stress value weight and jump to step S3. If yes, execute step S5.

[0048] After obtaining the stress value set {SK i}, obtain the maximum stress value ma1 of the simplified mesh model node and the maximum stress result ma2 of the original mesh model node:

[0049] ma1=Max{SK i}

[0050] ma2=Max{SN j}

[0051] Compare ma1 and ma2. If the deviation between the two is less than the preset stress error ε s , indicating that the current simplified model is able to reflect the maximum stress level of the original model, which indicates that the stress value of the current simplified model is appropriate, and the stress value set is retained and subsequent judgments are performed. Otherwise, it means that the stress value of the current simplified model is inappropriate, and the stress value weight needs to be adjusted and return to step S3 to recalculate the stress value of each node of the simplified model until the deviation between ma1 and ma2 is less than the preset stress error ε s .

[0052] Specifically, the weight adjustment method may be:

[0053] Calculate {SK i The distance between each node and the central node in} is sorted from near to far. The first iterative adjustment is to increase the weight of the nearest node first, such as from 1 / p to 2 / p.

[0054] The remaining node weights redistribute the remaining (1-2 / p) weights evenly, still ensuring V i1 +V i2 +...+V it +...+V ip =1, if the accuracy is not satisfied and needs to be iterated again, the weight of the node with the next closest distance is increased to 2 / p, and the weights of the remaining nodes are redistributed evenly by the remaining (1-2 / p) weights, still ensuring V i1 +V i2 +...+V it +...+V ip =1, and so on. If the accuracy is still not met after the distance to the farthest node is adjusted to 2 / p, the weight of the nearest node is increased, such as from 2 / p to 3 / p, and so on. The maximum increased weight for each node is p / p.

[0055] In one embodiment, the stress value deviation ε s The calculation formula is:

[0056] ε s =|ma1-ma2|*(1 / ma2)

[0057] In one embodiment, the preset stress error η s It can be set according to user needs, with a setting range of 0.001~0.1. It is generally not recommended to be higher than 0.1. s ≤η s When , step S5 can be executed.

[0058] Step S5: Obtain the coordinates Cor1 of the node with the maximum stress value in the simplified mesh model and the coordinates Cor2 of the node with the maximum stress value in the original mesh model, and determine whether the coordinate deviation between the coordinates Cor1 and Cor2 is less than or equal to the preset coordinate error. If not, increase m and jump to step S1. If so, output the node set and the corresponding stress value set of the simplified mesh model for model rendering.

[0059] Specifically, the coordinates Cor1 of the maximum stress node of the simplified mesh model and the coordinates Cor2 of the maximum stress node of the original mesh model are obtained:

[0060] Cor1=(ma 1x ,ma 1y ,ma 1z )

[0061] Cor2=(ma 2x ,ma 2y ,ma 2z )

[0062] Determine whether the coordinates Cor1 of the maximum stress node of the simplified mesh model and the coordinates Cor2 of the maximum stress node of the original mesh model differ too much. If so, it means that the stress distribution position is inaccurate. It is necessary to increase the number of meshes m and repeat steps S1 to S5 until the coordinate value accuracy requirements are met. The coordinate value accuracy can be expressed as the coordinate deviation ε cor To measure the deviation ε cor The calculation formula can be calculated as follows:

[0063] ε cor =|Cor1-Cor2|

[0064] Preset coordinate error η cor It can be set according to user needs. Generally, it is determined according to the grid size. Assume that the average size of the grid in the original grid model is L, and the allowable coordinate value error η corIt can be set to not exceed L, specifically L; when the deviation value ε s ≤η cor When , it can be considered that the node values ​​of the current simplified mesh model meet the requirements, the current mesh simplification degree meets the requirements, and the node set and corresponding stress value set of the simplified mesh model are output for model rendering.

[0065] In general, through the above simulation cloud map fast rendering method, before rendering, the original mesh model of the simulation cloud map is simplified, and the simplified model is judged from two aspects: the degree of proximity to the maximum stress value of the original model and the degree of proximity to the coordinate distance corresponding to the maximum stress value. If so, it means that the simplified model is appropriate. Otherwise, it means that the nodes and areas selected in the current way are unreasonable and the simplified model needs to be readjusted. Before comparing the maximum stress values, this application compares the original model containing nodes K i The weighted average stress values ​​of all nodes in the area are obtained to obtain the node K in the simplified model. i The stress value of each node of the simplified model is estimated by this method, which can ensure that the simplified stress value of the node can replace the stress situation in the area to the greatest extent without losing the truth. After calculating the stress value of each node of the simplified model, it is judged whether the maximum stress value of the simplified model is close to the maximum stress value of the original mesh model. If it is close, it means that the current simplified model can reflect the maximum stress level of the original model, which means that the stress value of the current simplified model is appropriate; then, it is judged whether the node coordinates of the maximum stress value of the simplified model are close to the node coordinates of the original maximum stress value. If it is close, it means that the stress distribution in the simplified model is more accurate, which means that the number of nodes in the current simplified model is appropriate. Only when both conditions are met can the model appearance and simulation accuracy be guaranteed. Otherwise, it is necessary to recalculate the stress value of each node or increase the number of nodes and recalculate until the above two conditions are met. Finally, the simplified model is rendered, which can achieve fast rendering and ensure the model appearance and simulation accuracy.

[0066] Example 2

[0067] The present application also relates to an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0068] The electronic device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The memory may be used to store computer programs and / or modules, and the processor may perform various functions of the electronic device by running or executing computer programs and / or modules stored in the memory, and calling data stored in the memory.

[0069] Example 3

[0070] The present application also relates to a computer-readable storage medium having a computer program stored thereon, and the steps of the above method are implemented when the computer program is executed by a processor.

[0071] Specifically, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0072] Example 4

[0073] The embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of the method of the above embodiment of the present application.

[0074] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. It should be noted that "in one embodiment", "for example", "for example", etc. in this application are intended to illustrate this application, rather than to limit this application.

[0075] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.

Claims

1. A method for rapid rendering of a simulation cloud image, characterized in that: include: Step S1: randomly select m nodes from the original mesh model to be rendered to form a simplified mesh model. The node set of the simplified mesh model is {K i }, K i is the i-th node in the set, i=1,2,3,…,m; Step S2: K i As the center of the circle, within the set search radius r i Determine the node set covered in the original grid model {N it } and obtain the corresponding stress value set {SN it },N it is the tth node in the set, SN it is the corresponding node N in the set it The stress value of Step S3: Corresponding to the stress value set {SN it } is weighted averaged to obtain the stress values ​​of node K i Stress value SK i , the stress value set of all nodes of the simplified mesh model is {SK i }; Step S4: determine whether the deviation between the maximum stress value ma1 of the simplified mesh model and the maximum stress value ma2 of the original mesh model is less than or equal to the preset stress error. If not, adjust the stress value weight and jump to step S3. If yes, execute step S5. Step S5: Obtain the coordinates Cor1 of the node with the maximum stress value in the simplified mesh model and the coordinates Cor2 of the node with the maximum stress value in the original mesh model, and determine whether the coordinate deviation between the coordinates Cor1 and Cor2 is less than or equal to the preset coordinate error. If not, increase m and jump to step S1. If so, output the node set and the corresponding stress value set of the simplified mesh model for model rendering.

2. The method for rapid rendering of a simulation cloud image according to claim 1, characterized in that: The initial value of m ranges from n / 3 to n / 2, where n is the number of nodes in the original mesh model.

3. The method for rapid rendering of a simulation cloud image according to claim 1, characterized in that: Search radius r i The value of satisfies: In the original grid model, K i As the center of the circle, with r i The circular area covered by the radius does not contain any nodes except node K in the simplified mesh model. i Other nodes outside.

4. The method for rapid rendering of a simulation cloud image according to claim 1, characterized in that: The corresponding stress value set {SN it The initial stress weights of each stress value when taking the weighted average of the stress values ​​of} are equal.

5. The method for rapid rendering of simulated cloud images according to claim 1, characterized in that: The deviation calculation formula of stress value is: ε s =|ma1-ma2|*(1 / ma2) In the formula, ε s is the stress deviation.

6. The method for rapid rendering of a simulation cloud image according to claim 5, characterized in that: The preset stress error range is 0.001~0.

1.

7. The method for rapid rendering of simulated cloud images according to claim 1, characterized in that: The preset coordinate error does not exceed the average value of the mesh size in the original mesh model.

8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method for checking strength of bonding structure in full service temperature interval of vehicle

    CN114528732A

  • Cloud picture visualization method and device for three-dimensional point cloud multi-level recursion and weighted smoothing

    CN115546441A

  • Array antenna assembly performance digital twin model rapid reconstruction method based on simulation analysis

    CN117910361A

  • Systems and methods for efficient rendering and processing of point clouds using textures

    US11615578B1

  • Imaging method and system for residual stress in basin insulator, and test block preparation method

    WO2024131209A1