Tetrahedron mesh optimization method and system based on particle swarm algorithm

Optimizing the tetrahedral mesh through the particle swarm algorithm solves the problem that the Delaunay insertion method cannot optimize all tetrahedrons, improves the geometric quality of the tetrahedrons, meets the needs of earthquake forward simulation, and achieves efficient modeling.

CN112652069BActive Publication Date: 2024-10-18CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910968678.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-12
Publication Date
2024-10-18
Estimated Expiration
2039-10-12

AI Technical Summary

Technical Problem

The existing Delaunay interpolation method cannot effectively optimize all tetrahedral meshes, resulting in unstable calculation results of tetrahedrons in forward seismic simulations, and cannot meet size constraints, making it impossible to guarantee mesh accuracy.

Method used

The tetrahedral mesh optimization method based on particle swarm optimization is used to construct the initial tetrahedral model by obtaining the basic data of the three-dimensional block model, and uses the particle swarm optimization algorithm to move the tetrahedral vertices to reduce the average aspect ratio of the tetrahedron. , ensure that the tetrahedron has a good geometric shape and avoid being too narrow, long and flat.

Benefits of technology

It improves the quality of tetrahedral segmentation, meets the needs of three-dimensional finite element forward simulation algorithms, improves modeling efficiency, realizes fast attribute modeling, and has strong practicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112652069B_ABST
    Figure CN112652069B_ABST
Patent Text Reader

Abstract

A tetrahedron mesh optimization method and system based on particle swarm algorithm is disclosed. The method may include: step 1: obtaining basic data of the three-dimensional block model of the target area and constructing an initial tetrahedron model; step 2: determining the tetrahedron to be optimized of the initial tetrahedron model and adding it to the queue Q to be optimized; step 3: judging whether there is a tetrahedron to be optimized in Q, if so, entering step 4, if not, ending the optimization; step 4: performing particle swarm optimization on the four vertices of each tetrahedron to be optimized to obtain an optimized tetrahedron model. The present invention aims to optimize the average quality of the tetrahedrons around the vertices, so that the tetrahedron has a good geometric shape, avoids the tetrahedron from being too narrow and flat, improves the quality of tetrahedron partitioning, meets the requirements of the three-dimensional finite element forward simulation algorithm, has high modeling efficiency, can achieve the purpose of rapid attribute modeling, and has strong practicality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional forward attribute modeling, and more specifically, to a tetrahedron mesh optimization method and system based on particle swarm algorithm. Background Art

[0002] Seismic forward modeling technology is widely used in the acquisition, processing and interpretation of seismic exploration, and plays an important role in the design optimization of observation systems, the extraction of processing parameters and the verification of interpretation schemes. Insertion optimization based on Delaunay partitioning can not only improve the network quality, but also encrypt the original grid. Because the tetrahedral grid used for forward modeling must meet the size limit, the forward modeling accuracy cannot be guaranteed if the tetrahedron is too large. Therefore, the insertion method can be used to optimize the grid to ensure that the grid size is not larger than the forward calculation requirement. However, on the other hand, the forward calculation requires that the tetrahedral grid size cannot be too small. Because the grid is small, the propagation time of seismic waves in the grid is also small. When it is less than the time interval of the forward calculation, the forward calculation result will be unstable. Therefore, it is not advisable to use the Delaunay insertion method to optimize the tetrahedron by inserting vertices without restriction. When the tetrahedron size is closest to the minimum grid size, the insertion optimization should be stopped. Due to the minimum size limit, Delaunay insertion optimization cannot complete the optimization of all tetrahedrons. Therefore, it is necessary to develop a tetrahedron partitioning grid optimization method and system based on particle swarm algorithm.

[0003] The information disclosed in the background technology section of the present invention is only intended to deepen the understanding of the general background technology of the present invention, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art already known to those skilled in the art. Summary of the invention

[0004] The present invention proposes a tetrahedron mesh optimization method and system based on particle swarm algorithm, which aims to optimize the average quality of tetrahedrons around vertices, so that the tetrahedrons have good geometric shapes, avoid the tetrahedrons from being too narrow and flat, improve the quality of tetrahedron meshing, meet the needs of three-dimensional finite element forward simulation algorithms, have high modeling efficiency, can achieve the purpose of rapid attribute modeling, and has strong practicality.

[0005] According to one aspect of the present invention, a tetrahedron mesh optimization method based on particle swarm algorithm is proposed. The method may include: step 1: obtaining basic data of the three-dimensional block model of the target area, and constructing an initial tetrahedron model through the three-dimensional Delaunay insertion method; step 2: determining the tetrahedron to be optimized of the initial tetrahedron model, and adding it to the queue to be optimized Q; step 3: judging whether there is a tetrahedron to be optimized in Q, if so, proceeding to step 4, if not, ending the optimization; step 4: performing particle swarm optimization on the four vertices of each tetrahedron to be optimized to obtain the optimized tetrahedron model.

[0006] Preferably, the tetrahedron to be optimized of the initial tetrahedron model is determined as follows: the ratio of the radius of the circumscribed sphere of the tetrahedron space to the length of the shortest side of the tetrahedron is used as the target parameter, and the tetrahedron whose target parameter does not meet the set requirements is the tetrahedron to be optimized.

[0007] Preferably, before step 2, the method further includes: performing Delaunay segmentation insertion optimization on the initial tetrahedron model.

[0008] Preferably, performing particle swarm optimization on the four vertices of each tetrahedron to be optimized includes: sequentially moving the four vertices of each tetrahedron to be optimized to reduce the average aspect ratio of tetrahedrons adjacent to the vertices.

[0009] Preferably, the average aspect ratio is calculated by formula (1):

[0010]

[0011] Among them, A is the average aspect ratio, N is the total number of adjacent tetrahedrons of the vertex, and L i is the longest side length of the i-th adjacent tetrahedron, H i is the minimum height of the i-th adjacent tetrahedron.

[0012] According to another aspect of the present invention, a tetrahedron decomposition grid optimization system based on particle swarm algorithm is proposed, characterized in that the system includes: a memory storing computer executable instructions; a processor, the processor runs the computer executable instructions in the memory to perform the following steps: Step 1: obtain basic data of the three-dimensional block model of the target area, and construct an initial tetrahedron model through a three-dimensional Delaunay insertion method; Step 2: determine the tetrahedron to be optimized of the initial tetrahedron model, and add it to a queue Q to be optimized; Step 3: determine whether there is a tetrahedron to be optimized in Q, if so, enter step 4, if not, end the optimization; Step 4: perform particle swarm optimization on the four vertices of each tetrahedron to be optimized to obtain an optimized tetrahedron model.

[0013] Preferably, the tetrahedron to be optimized of the initial tetrahedron model is determined as follows: the ratio of the radius of the circumscribed sphere of the tetrahedron space to the length of the shortest side of the tetrahedron is used as the target parameter, and the tetrahedron whose target parameter does not meet the set requirements is the tetrahedron to be optimized.

[0014] Preferably, before step 2, the method further includes: performing Delaunay segmentation insertion optimization on the initial tetrahedron model.

[0015] Preferably, performing particle swarm optimization on the four vertices of each tetrahedron to be optimized includes: sequentially moving the four vertices of each tetrahedron to be optimized to reduce the average aspect ratio of tetrahedrons adjacent to the vertices.

[0016] Preferably, the average aspect ratio is calculated by formula (1):

[0017]

[0018] Among them, A is the average aspect ratio, N is the total number of adjacent tetrahedrons of the vertex, and L i is the longest side length of the ith adjacent tetrahedron, H i is the minimum height of the i-th adjacent tetrahedron.

[0019] Its beneficial effects are:

[0020] (1) The principle of particle swarm optimization algorithm is combined with 3D interactive modeling technology to solve the optimization problem of closed block tetrahedron decomposition algorithm in 3D interactive modeling software;

[0021] (2) With the goal of optimizing the average quality of the tetrahedrons around the vertices, the vertices of the tetrahedrons with quality problems are moved so that the tetrahedrons have a good geometric shape after the move, avoiding the tetrahedrons from being too narrow and flat, improving the quality of the tetrahedron decomposition, and meeting the requirements of the three-dimensional finite element forward simulation algorithm.

[0022] The methods and apparatus of the present invention have other features and advantages that will be apparent from, or will be described in detail in, the accompanying drawings and subsequent detailed descriptions incorporated herein, which together serve to explain the specific principles of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present invention.

[0024] Figure 1A flow chart showing the steps of a tetrahedron mesh optimization method based on a particle swarm algorithm according to the present invention.

[0025] Figure 2a and Figure 2b Schematic diagrams of a triangulated mesh of an initial tetrahedron model and a triangulated mesh of an optimized tetrahedron model according to an embodiment of the present invention are respectively shown.

[0026] Figure 3a , Figure 3b , Figure 3c The diagrams respectively show a comparison of a three-dimensional model before particle swarm optimization of an actual work area according to an embodiment of the present invention, an optimization model with a target parameter of 1.8, and an optimization model with a target parameter of 1.4. DETAILED DESCRIPTION

[0027] The present invention will be described in more detail below with reference to the accompanying drawings. Although preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.

[0028] Figure 1 A flow chart showing the steps of a tetrahedron mesh optimization method based on a particle swarm algorithm according to the present invention.

[0029] In this embodiment, the tetrahedron decomposition grid optimization method based on particle swarm algorithm according to the present invention may include: step 1: obtaining basic data of the three-dimensional block model of the target area, and constructing an initial tetrahedron model through a three-dimensional Delaunay insertion method; step 2: determining the tetrahedron to be optimized of the initial tetrahedron model, and adding it to a queue Q to be optimized; step 3: judging whether there is a tetrahedron to be optimized in Q, if so, proceeding to step 4, if not, ending the optimization; step 4: performing particle swarm optimization on the four vertices of each tetrahedron to be optimized to obtain an optimized tetrahedron model.

[0030] In one example, the tetrahedron to be optimized of the initial tetrahedron model is determined as follows: the ratio of the radius of the circumscribed sphere of the tetrahedron space to the length of the shortest side of the tetrahedron is used as the target parameter, and the tetrahedron whose target parameter does not meet the set requirements is the tetrahedron to be optimized.

[0031] In one example, before step 2, the method further includes: performing Delaunay mesh insertion optimization on the initial tetrahedral model.

[0032] In one example, performing particle swarm optimization on four vertices of each tetrahedron to be optimized includes: sequentially moving four vertices of each tetrahedron to be optimized to reduce an average aspect ratio of tetrahedrons adjacent to the vertices.

[0033] In one example, the average aspect ratio is calculated by formula (1):

[0034]

[0035] Among them, A is the average aspect ratio, N is the total number of adjacent tetrahedrons of the vertex, and L i is the longest side length of the ith adjacent tetrahedron, H i is the minimum height of the i-th adjacent tetrahedron.

[0036] Specifically, the particle swarm optimization algorithm is an evolutionary computing technology that originates from the study of the behavior of bird flocks. The basic idea of ​​the particle swarm optimization algorithm is to find the optimal solution through collaboration and information sharing between individuals in the group. The tetrahedron mesh optimization method based on the particle swarm algorithm according to the present invention may include:

[0037] Step 1: Obtain the basic data of the 3D block model of the target area, and construct the initial tetrahedron model through the 3D Delaunay interpolation method. Then, the initial tetrahedron model is optimized by Delaunay subdivision and interpolation, which can improve the network quality and encrypt the original mesh at the same time. Because the tetrahedron mesh used for forward modeling must meet the size limit, the forward modeling accuracy cannot be guaranteed if the tetrahedron is too large, so the mesh optimization by the interpolation method can ensure that the mesh size is not larger than the requirement of the forward calculation;

[0038] Step 2: The ratio of the radius of the circumscribed sphere of the tetrahedron space to the length of the shortest side of the tetrahedron is used as the target parameter. The tetrahedron whose target parameter does not meet the set requirements is the tetrahedron to be optimized and is added to the queue Q to be optimized. The optimal range of the target parameter should be less than or equal to 1.8 and greater than 1. If the target parameter is greater than 1.8, the tetrahedron will become very narrow and long, and the quality of the tetrahedron will not meet the forward modeling requirements. Those skilled in the art can set the requirements according to the specific situation;

[0039] Step 3: Determine whether there is a tetrahedron to be optimized in Q. If so, proceed to step 4. If not, end the optimization.

[0040] Step 4: Perform particle swarm optimization on the four vertices of each tetrahedron to be optimized, move the four vertices of each tetrahedron to be optimized in turn, calculate the average aspect ratio using formula (1), reduce the average aspect ratio of vertex-adjacent tetrahedrons, and obtain the optimized tetrahedron model.

[0041] This method aims to optimize the average quality of tetrahedrons around vertices, so that the tetrahedrons have good geometric shapes, avoid the tetrahedrons being too narrow and flat, improve the quality of tetrahedron segmentation, meet the needs of three-dimensional finite element forward simulation algorithms, have high modeling efficiency, can achieve the purpose of rapid attribute modeling, and has strong practicality.

[0042] Application Examples

[0043] To facilitate understanding of the solution and effects of the embodiments of the present invention, a specific application example is given below. Those skilled in the art should understand that this example is only for facilitating understanding of the present invention, and any specific details thereof are not intended to limit the present invention in any way.

[0044] The tetrahedron mesh optimization method based on particle swarm algorithm according to the present invention comprises:

[0045] Step 1: Obtain the basic data of the 3D block model of the target area, and construct the initial tetrahedron model through the 3D Delaunay interpolation method. Then, the initial tetrahedron model is optimized by Delaunay subdivision and interpolation, which can improve the network quality and encrypt the original mesh at the same time. Because the tetrahedron mesh used for forward modeling must meet the size limit, the forward modeling accuracy cannot be guaranteed if the tetrahedron is too large, so the mesh optimization by the interpolation method can ensure that the mesh size is not larger than the requirement of the forward calculation;

[0046] Step 2: The ratio of the radius of the circumscribed sphere of the tetrahedron space to the length of the shortest side of the tetrahedron is used as the target parameter. The tetrahedrons whose target parameters do not meet the set requirements are the tetrahedrons to be optimized and are added to the queue Q to be optimized;

[0047] Step 3: Determine whether there is a tetrahedron to be optimized in Q. If so, proceed to step 4. If not, end the optimization.

[0048] Step 4: Perform particle swarm optimization on the four vertices of each tetrahedron to be optimized, move the four vertices of each tetrahedron to be optimized in turn, calculate the average aspect ratio using formula (1), reduce the average aspect ratio of vertex-adjacent tetrahedrons, and obtain the optimized tetrahedron model.

[0049] Figure 2a and Figure 2b Schematic diagrams of a triangulated mesh of an initial tetrahedron model and a triangulated mesh of an optimized tetrahedron model according to an embodiment of the present invention are respectively shown.

[0050] Figure 3a , Figure 3b , Figure 3cThe comparison diagrams of the three-dimensional model before particle swarm optimization of the actual work area according to an embodiment of the present invention, the optimization model with a target parameter of 1.8 and the optimization model with a target parameter of 1.4 are respectively shown. It can be seen that as the target parameter decreases, the quality of the tetrahedron becomes better and better, and the amount of calculation becomes larger and larger.

[0051] In summary, the present invention aims to optimize the average quality of tetrahedrons around vertices, so that the tetrahedrons have good geometric shapes, avoid the tetrahedrons from being too narrow and flat, improve the quality of tetrahedron decomposition, meet the requirements of three-dimensional finite element forward simulation algorithms, have high modeling efficiency, can achieve the purpose of rapid attribute modeling, and has strong practicality.

[0052] Those skilled in the art should understand that the purpose of the above description of the embodiments of the present invention is only to exemplarily illustrate the beneficial effects of the embodiments of the present invention, and is not intended to limit the embodiments of the present invention to any given examples.

[0053] According to an embodiment of the present invention, a tetrahedron decomposition grid optimization system based on a particle swarm algorithm is provided, characterized in that the system comprises: a memory storing computer executable instructions; a processor, wherein the processor runs the computer executable instructions in the memory to perform the following steps: Step 1: obtaining basic data of a three-dimensional block model of a target area, and constructing an initial tetrahedron model by a three-dimensional Delaunay insertion method; Step 2: determining a tetrahedron to be optimized in the initial tetrahedron model, and adding it to a queue Q to be optimized; Step 3: determining whether there is a tetrahedron to be optimized in Q, and if so, proceeding to Step 4, and if not, ending the optimization; Step 4: performing particle swarm optimization on the four vertices of each tetrahedron to be optimized to obtain an optimized tetrahedron model.

[0054] In one example, the tetrahedron to be optimized of the initial tetrahedron model is determined as follows: the ratio of the radius of the circumscribed sphere of the tetrahedron space to the length of the shortest side of the tetrahedron is used as the target parameter, and the tetrahedron whose target parameter does not meet the set requirements is the tetrahedron to be optimized.

[0055] In one example, before step 2, the method further includes: performing Delaunay mesh insertion optimization on the initial tetrahedral model.

[0056] In one example, performing particle swarm optimization on four vertices of each tetrahedron to be optimized includes: sequentially moving four vertices of each tetrahedron to be optimized to reduce an average aspect ratio of tetrahedrons adjacent to the vertices.

[0057] In one example, the average aspect ratio is calculated by formula (1):

[0058]

[0059] Among them, A is the average aspect ratio, N is the total number of adjacent tetrahedrons of the vertex, and L i is the longest side length of the ith adjacent tetrahedron, H i is the minimum height of the i-th adjacent tetrahedron.

[0060] The system aims to optimize the average quality of tetrahedrons around vertices, so that the tetrahedrons have good geometric shapes, avoid the tetrahedrons being too narrow and flat, improve the quality of tetrahedron segmentation, meet the needs of three-dimensional finite element forward simulation algorithms, have high modeling efficiency, can achieve the purpose of rapid attribute modeling, and has strong practicality.

[0061] Those skilled in the art should understand that the purpose of the above description of the embodiments of the present invention is only to exemplarily illustrate the beneficial effects of the embodiments of the present invention, and is not intended to limit the embodiments of the present invention to any given examples.

[0062] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.

Claims

1. A tetrahedron mesh optimization method based on particle swarm algorithm, characterized in that: include: Step 1: Obtain the basic data of the 3D block model of the target area and construct the initial tetrahedron model through the 3D Delaunay interpolation method; Step 2: Determine the tetrahedron to be optimized of the initial tetrahedron model and add it to the queue Q to be optimized; Step 3: Determine whether there is a tetrahedron to be optimized in Q. If so, proceed to step 4. If not, end the optimization. Step 4: Perform particle swarm optimization on the four vertices of each tetrahedron to be optimized to obtain an optimized tetrahedron model; Wherein, the tetrahedron to be optimized of the initial tetrahedron model is determined as: The ratio of the radius of the circumscribed sphere of the tetrahedron space to the length of the shortest side of the tetrahedron is used as the target parameter, and the tetrahedron whose target parameter does not meet the set requirements is the tetrahedron to be optimized; Among them, the particle swarm optimization for the four vertices of each tetrahedron to be optimized includes: Move the four vertices of each tetrahedron to be optimized in turn to reduce the average aspect ratio of the tetrahedrons adjacent to the vertex; The average aspect ratio is calculated by formula (1): Among them, A is the average aspect ratio, N is the total number of adjacent tetrahedrons of the vertex, and L i is the longest side length of the i-th adjacent tetrahedron, H i is the minimum height of the i-th adjacent tetrahedron.

2. The tetrahedron mesh optimization method based on particle swarm algorithm according to claim 1, wherein: Before step 2, also include: A Delaunay mesh insertion optimization is performed on the initial tetrahedron model.

3. A tetrahedron mesh optimization system based on particle swarm algorithm, characterized in that: The system includes: a memory storing computer executable instructions; A processor, wherein the processor runs the computer executable instructions in the memory to perform the following steps: Step 1: Obtain the basic data of the 3D block model of the target area and construct the initial tetrahedron model through the 3D Delaunay interpolation method; Step 2: Determine the tetrahedron to be optimized of the initial tetrahedron model and add it to the queue Q to be optimized; Step 3: Determine whether there is a tetrahedron to be optimized in Q. If so, proceed to step 4. If not, end the optimization. Step 4: Perform particle swarm optimization on the four vertices of each tetrahedron to be optimized to obtain an optimized tetrahedron model; Wherein, the tetrahedron to be optimized of the initial tetrahedron model is determined as: The ratio of the radius of the circumscribed sphere of the tetrahedron space to the length of the shortest side of the tetrahedron is used as the target parameter, and the tetrahedron whose target parameter does not meet the set requirements is the tetrahedron to be optimized; Among them, the particle swarm optimization for the four vertices of each tetrahedron to be optimized includes: Move the four vertices of each tetrahedron to be optimized in turn to reduce the average aspect ratio of the tetrahedrons adjacent to the vertex; The average aspect ratio is calculated by formula (1): Among them, A is the average aspect ratio, N is the total number of adjacent tetrahedrons of the vertex, and L i is the longest side length of the i-th adjacent tetrahedron, H i is the minimum height of the i-th adjacent tetrahedron.

4. The tetrahedron mesh optimization system based on particle swarm algorithm according to claim 3, wherein: Before step 2, also include: A Delaunay mesh insertion optimization is performed on the initial tetrahedron model.