Two-dimensional geological finite element model grid automatic generation method and device and program product
By automatically generating a two-dimensional finite element model grid based on the shear wave velocity and pixelation of geological profile images, the problem of long grid division and insufficient accuracy in the existing technology is solved, and efficient finite element model construction and calculation are achieved. Taking into account precision.
Patent Information
- Application Number
- CN202410750705.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing finite element pre-processing software lacks specialized modules for dynamic response of large-scale non-uniform sites during the meshing process of two-dimensional geological finite element models, resulting in long calculation time and high technical threshold, making it difficult to balance calculation accuracy and efficiency.
A two-dimensional geological finite element model grid automatic generation method is adopted, by determining the grid size based on the shear wave velocity, pixelating the geological profile, dividing it into square blocks, and determining the initial and final grid sizes based on the distribution of geotechnical materials. , identify and divide transition elements, supplement triangular or square elements to smooth the surface transition, and generate a two-dimensional finite element model mesh.
It significantly reduces the time and difficulty of finite element dynamic analysis modeling of large-scale two-dimensional complex sites, improves calculation efficiency, meets the requirements of the finite element method for grid accuracy and efficiency, and reduces calculation errors caused by surface scarps.
Smart Images

Figure CN118627166A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of geotechnical engineering finite element pre-processing, and in particular to a two-dimensional geological finite element model grid automatic generation method, device and program product. Background Art
[0002] Numerical simulation of dynamic response of large-scale two-dimensional non-uniform sites is a problem often faced in the evaluation of seismic and explosion-resistant performance of long linear projects such as bridges and tunnels. Since the finite element method has high adaptability, flexibility and calculation accuracy, and can adapt to various complex geometric shapes and boundary conditions, it has become the first choice for numerical analysis of dynamic response of large-scale non-uniform sites. However, in the process of meshing of two-dimensional geological finite element models, it is necessary to deal with geometric irregularities and mesh transition problems caused by material non-uniformity at the same time in order to balance calculation accuracy and efficiency. At present, existing finite element pre-processing software (such as ANSA, Hypermesh, Truegrid, etc.) does not have a special module for this application scenario; and when processing, it is necessary to manually optimize and adjust the generated mesh to ensure the mesh quality, so it is time-consuming and has a high technical threshold. The present invention proposes a method that can automatically generate a two-dimensional finite element mesh according to a geological profile, which greatly reduces the time and difficulty required for finite element dynamic analysis modeling of large-scale two-dimensional complex sites. Summary of the invention
[0003] The present invention provides a method, device and program product for automatically generating a two-dimensional geological finite element model grid, which are used to solve technical problems such as pixelation, blocking, identification and division of transition units and surface supplementation in automatic finite element grid division of two-dimensional geological profiles.
[0004] To achieve the above object, the present invention adopts the following technical solution:
[0005] The method for automatically generating a two-dimensional geological finite element model grid is characterized by the following specific steps:
[0006] Step 1: Determine the grid size of different geotechnical materials in the two-dimensional geological profile according to the shear wave velocity;
[0007] Step 2: pixelate the two-dimensional geological profile according to the global minimum grid size;
[0008] Step 3: Evenly divide the pixelated two-dimensional geological profile into multiple square blocks of the same size according to the global maximum grid size;
[0009] Step 4: Determine the initial grid size S1 of each square block according to the distribution of different geotechnical materials in the square block;
[0010] Step 5: Determine the final grid size S2 of each square block according to the initial grid size of itself and the surrounding square blocks, so as to ensure that the final grid size does not exceed the initial grid size and the ratio of the final grid sizes of adjacent square blocks does not exceed 2;
[0011] Step 6: Divide each square block evenly into multiple square units of the same size according to the final grid size, and identify transition units and transition edges;
[0012] Step 7: Further mesh the transition unit according to the number and relative position of the transition edges, and add triangular units and / or square units at the steep surface to ensure a smooth transition of the surface; thereby, the final two-dimensional geological finite element model mesh is generated.
[0013] Further, in step 1, the mesh sizes of different geotechnical materials in the two-dimensional geological profile are determined according to the shear wave velocity: the different geotechnical materials in the two-dimensional geological profile are sorted in the order of shear wave velocity from small to large, and their shear wave velocities are recorded as V s1 、V s2 、V s3 ,...V sn , where n is the number of geomaterial types contained in the profile. Then, the global minimum grid size, i.e., the grid size L1 of the first geomaterial, is calculated according to the following formula:
[0014] L1=k1×V s1 / f max
[0015] f max is the upper limit of the frequency band of interest; k1 is an empirical constant with a value of 1 / 8 to 1 / 12;
[0016] Next, determine the mesh size for other geotechnical materials according to the following formula;
[0017]
[0018] L i and V si Respectively represent the grid size and shear wave velocity of the i-th geomaterial, i ranges from 2 to n, represents rounding down; the grid size L of the nth geotechnical material n This is the global maximum grid size.
[0019] Furthermore, in step 2, the two-dimensional geological profile is pixelated according to the global minimum grid size:
[0020] The two-dimensional geological profile is pixelated according to the resolution of m1×n1. The side length of each pixel is L1, and the corresponding material is the corresponding material in the original two-dimensional geological profile at the center of the pixel; the pixels corresponding to the blank space in the two-dimensional geological profile are called blank pixels, and the other pixels are called non-blank pixels;
[0021] The calculation formulas for m1 and n1 are as follows:
[0022]
[0023] W and H represent the width and height of the two-dimensional geological profile, respectively. Indicates rounding up.
[0024] Furthermore, for step 3, the pixelated two-dimensional geological profile is evenly divided into multiple square blocks of the same size according to the global maximum grid size:
[0025] A column of blank pixels is added on both sides of the pixelated cross-section image, and then it is evenly divided into m2×n2 sections with a side length of L n The insufficient part can be supplemented with blank pixels on the right and top, where the calculation formulas of m2 and n2 are as follows:
[0026]
[0027] Furthermore, in step 4, the initial grid size S1 of each square block is determined according to the distribution of different geotechnical materials in the square block:
[0028] Among them, if the square block contains blank pixels, the initial grid size S1 is equal to the global minimum grid size L1;
[0029] If there are no blank pixels in the square block, the square block is evenly divided into multiple square grids of the same size. The initial side length of the square grid takes the minimum grid size of different geotechnical materials in the square block. If all square grids in the square block contain only one type of geotechnical material, the initial grid size S1 is equal to the side length of the square grid; if not all square grids contain only one type of geotechnical material, the side length of the square grid is reduced by half until all square grids contain only one type of geotechnical material.
[0030] Furthermore, in step 5, the final grid size S2 of each square block is determined according to the following formula, so as to ensure that the final grid size does not exceed the initial grid size, and the ratio of the final grid sizes of adjacent square blocks does not exceed 2:
[0031] S2=min[S g (d)×2^(d / L n)]d=0,L n ,2L n ,3L n ,…,d max
[0032] Where d represents the Manhattan distance between the centers of two square blocks, which is equal to the sum of the horizontal and vertical distances between the two points; S g (d) represents the minimum initial grid size corresponding to all square blocks with a Manhattan distance d between the square blocks under consideration; min is the symbol for taking the minimum value; d max is the maximum Manhattan distance to be considered.
[0033] Furthermore, the d max Calculated by the following formula:
[0034] d max =log2(S g (0) / L1)×L n
[0035] Among them, S g (0) is the initial grid size of the considered square block itself.
[0036] Furthermore, in step 6, each square block is evenly divided into multiple square units of the same size according to the final grid size, and transition units and transition edges are identified:
[0037] According to the final grid size, each square block is evenly divided into multiple square units of the same size, and then the units corresponding to the blank pixels are removed. It is then determined whether there are nodes of adjacent units at the midpoints of the four sides of each square unit; if so, the side where it is located is a transition side, and the unit is a transition unit.
[0038] Furthermore, in step 7, according to the number and relative position of the transition edges, the transition unit is further meshed according to the following five situations:
[0039] Case 1:
[0040] The number of transition edges is 1, and the transition unit is divided into an equilateral right triangle and two trapezoids;
[0041] Case 2:
[0042] The number of transition edges is 2, and the transition edges are adjacent. The transition unit is divided into a square and two trapezoids;
[0043] Case 3:
[0044] The number of transition edges is 2, and the transition edges are not adjacent, and the transition unit is divided into two rectangles;
[0045] Case 4:
[0046] The number of transition edges is 3, and the transition unit is divided into three equilateral right triangles and two squares;
[0047] Case 5:
[0048] The number of transition edges is 4, and the transition unit is divided into four squares.
[0049] Furthermore, in step 7, triangle units and / or square units are added at the steep slopes of the ground surface:
[0050] If a steep step appears on one side, an equilateral right triangle unit with a side length of L1 is added at the bottom of the step; if steep steps appear on both sides at the same time, a square unit with a side length of L1 is added in the depression; the material of the added unit is the same as that of the unit directly below it.
[0051] Furthermore, the two-dimensional geological finite element model grid automatic generation device includes an image acquisition module, a processing module connected to the image acquisition module, and an output module connected to the processing module:
[0052] Among them, the image acquisition module is used to read the two-dimensional geological profile and the shear wave velocity of different geotechnical materials;
[0053] The processing module is used to determine the grid size of different geotechnical materials in the two-dimensional geological profile according to the shear wave velocity; pixelate the two-dimensional geological profile according to the global minimum grid size; evenly divide the pixelated two-dimensional geological profile into a plurality of square blocks of the same size according to the global maximum grid size; determine the initial grid size of each square block according to the distribution of different geotechnical materials in the square block; determine the final grid size of each square block according to the initial grid size of itself and the surrounding square blocks; evenly divide each square block into a plurality of square units of the same size according to the final grid size, and identify transition units and transition edges; further grid the transition units according to the number and relative positions of the transition edges, and supplement triangular units and / or square units at the steep surface to ensure a smooth transition of the surface; thereby, generate the final two-dimensional geological finite element model grid.
[0054] The output module is used to automatically generate files containing all node coordinates and unit information, and display the final generated two-dimensional finite element model.
[0055] Furthermore, a computer program product includes a computer program / instruction, which, when executed by a processor, implements the above-mentioned two-dimensional geological finite element model grid automatic generation method steps.
[0056] The beneficial effects of the present invention are embodied in:
[0057] 1) The present invention determines the grid size of different geotechnical materials in a two-dimensional geological profile according to the medium shear wave velocity, and pixelates the two-dimensional geological profile according to the global minimum grid size, laying the foundation for subsequent grid generation;
[0058] 2) The present invention achieves the goal of reducing the number of units of the finite element model as much as possible while meeting the requirements of calculation accuracy by segmenting the two-dimensional geological profile and determining the local grid size of each segmented part;
[0059] 3) The present invention meets the requirements of the finite element method for two-dimensional space discrete grids by identifying and dividing transition units;
[0060] 4) The present invention reduces the calculation error caused by pixelation at the steep slope of the ground surface by making supplementary settings at the ground surface.
[0061] Other features and advantages of the present invention will be set forth in the following description, and in part will become apparent from the description, or may be understood by practicing the present invention; the main purpose and other advantages of the present invention may be realized and obtained through the solutions particularly pointed out in the description. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 It is a raw picture of a two-dimensional geological section containing two materials;
[0063] Figure 2 This is a pixelated example of a two-dimensional geological section;
[0064] Figure 3 This is an example of a two-dimensional geological section dividing a square block;
[0065] Figure 4 This is an example diagram for determining the initial grid size of a square block;
[0066] Figure 5 This is an example diagram of the initial grid size distribution of square blocks;
[0067] Figure 6 This is an example diagram of square blocks corresponding to different Manhattan distances;
[0068] Figure 7 This is an example diagram for determining the final grid size of a square block;
[0069] Figure 8 is a grid composed of square units and an example diagram of the identified transition units;
[0070] Fig. 9 It is the transition unit classification situation one;
[0071] Fig.10It is the second classification situation of transition unit division;
[0072] Fig.11 It is the transition unit classification situation three;
[0073] Fig.12 It is the fourth situation of transition unit classification;
[0074] Fig.13 It is the transition unit classification situation five;
[0075] Fig.14 It is the grid after dividing the transition unit;
[0076] Fig.15 This is an example of the final grid after the cells are added on the surface;
[0077] Fig.16 It is a two-dimensional geological profile of a tunnel site and a local magnified view of the automatically generated finite element model mesh;
[0078] Fig.17 It is a comparison diagram of calculation results and a local magnified diagram of the finite element model mesh automatically generated and manually divided by the present invention. DETAILED DESCRIPTION
[0079] Combination Figures 1 to 15 As shown, this embodiment is described by a two-dimensional geological profile containing two materials, sandy silt and engineering bedrock. The specific steps of the two-dimensional geological finite element model grid automatic generation method are as follows:
[0080] Step 1: Determine the grid size of different geotechnical materials in the two-dimensional geological profile according to the shear wave velocity:
[0081] The different rock and soil materials in the two-dimensional geological profile are sorted in order from small to large shear wave velocity, and their shear wave velocities are denoted as V s1 、V s2 、V s3 ,...V sn , where n is the number of geomaterial types contained in the two-dimensional geological profile. Then, the global minimum grid size, i.e., the grid size L1 of the first type of geomaterial, is calculated according to the following formula:
[0082] L1=k1×V s1 / f max
[0083] f max is the upper limit of the frequency band of interest; k1 is an empirical constant with a value of 1 / 8 to 1 / 12;
[0084] Next, determine the mesh size for other geotechnical materials according to the following formula;
[0085]
[0086] L i and V si Respectively represent the grid size and shear wave velocity of the i-th geomaterial, i ranges from 2 to n, represents rounding down; the grid size L of the nth geotechnical material n This is the global maximum grid size.
[0087] In this embodiment, Figure 1 As shown in the figure, the shear wave velocities of sandy silt (material 1) and engineering bedrock (material 2) are V s1 =200m / s, V s2 =900m / s; k1 takes 1 / 10; f max Taking 10Hz, the above formula yields L1=2m, L2=8m.
[0088] Step 2: Pixelate the 2D geological profile according to the global minimum grid size:
[0089] The two-dimensional geological profile is pixelated according to the resolution of m1×n1. The side length of each pixel is L1, and the corresponding geotechnical material is the geotechnical material corresponding to the center of the pixel in the original two-dimensional geological profile. The pixels corresponding to the blank areas in the two-dimensional geological profile are called blank pixels, and the other pixels are called non-blank pixels.
[0090] The calculation formulas for m1 and n1 are as follows:
[0091]
[0092] W and H represent the width and height of the two-dimensional geological profile, respectively. Indicates rounding up.
[0093] like Figure 2 As shown, the width and height of the two-dimensional geological profile are W=100m; H=45.5m; m1=50, n1=23 respectively; thus, the two-dimensional geological profile is pixelated according to a resolution of 50×23, and the scale corresponding to each pixel is 2m×2m.
[0094] Step 3: Evenly divide the pixelated two-dimensional geological profile into multiple square blocks of the same size according to the global maximum grid size:
[0095] A column of blank pixels is added on both sides of the pixelated two-dimensional geological profile, and then it is evenly divided into m2×n2 pixels with a side length of L n The insufficient part can be supplemented with blank pixels on the right and top, where the calculation formulas of m2 and n2 are as follows:
[0096]
[0097] In this embodiment, m2=13, n2=6; first, a row of blank pixels is added on both sides and the top of the cross section, and then the cross section is divided into 13×6 square blocks with a side length of 8 meters, such as Figure 3 shown.
[0098] Step 4: Determine the initial grid size S1 of each square block according to the distribution of different geotechnical materials in the square block: if the square block contains blank pixels, the initial grid size S1 is equal to the global minimum grid size L1;
[0099] If there are no blank pixels in the square block, the square block is evenly divided into multiple square grids of the same size. The initial side length of the square grid takes the minimum grid size of different geotechnical materials in the square block. If all square grids in the square block contain only one type of geotechnical material, the initial grid size S1 is equal to the side length of the square grid; if not all square grids contain only one type of geotechnical material, the side length of the square grid is reduced by half until all square grids contain only one type of geotechnical material.
[0100] like Figure 4 As shown, the square blocks can be divided into four categories:
[0101] Class A: blocks containing blank pixels
[0102] Category B: does not contain blank pixels and only contains blocks of material 1
[0103] Category C: does not contain blank pixels and only contains blocks of material 2
[0104] Category D: Blocks that do not contain blank pixels and contain both material 1 and material 2
[0105] According to step 4, Category A: S1 = L1 = 2m
[0106] Class B and C: S1 is equal to L1 and L2 respectively;
[0107] Category D: Take L1 as the initial side length to divide the grid, so that each grid contains only one type of geotechnical material, so S1 = L1 = 2m; therefore, the initial grid size distribution diagram of the square block is as follows Figure 5 shown.
[0108] Step 5: Determine the final grid size S2 of each square block according to the following formula to ensure that the final grid size does not exceed the initial grid size and the ratio of the final grid sizes of adjacent square blocks does not exceed 2:
[0109] S2=min[S g (d)×2^(d / L n )]d=0,L n ,2L n ,3L n ,…,d max
[0110] Where d represents the Manhattan distance between the centers of two square blocks, which is equal to the sum of the horizontal and vertical distances between the two points; S g (d) represents the minimum initial grid size of all square blocks that satisfy the Manhattan distance d between the square block under consideration; min is the symbol for the minimum value; d max is the maximum Manhattan distance to be considered.
[0111] Furthermore, the d max Calculated by the following formula:
[0112] d max =log2(S g (0) / L1)×L n
[0113] Among them, S g (0) is the initial grid size of the considered square block itself.
[0114] Figure 6 The Manhattan distance is 0, L n、 2L n、 3L n Schematic diagram of the corresponding square blocks; and in this embodiment, the grid size of 14 square blocks is changed from the initial 8 meters to the final 4 meters, so as to ensure that the ratio of the final grid size of adjacent square blocks does not exceed 2, such as Figure 7 shown.
[0115] Step 6: Divide each square block evenly into multiple square units of the same size according to the final grid size, and identify transition units and transition edges:
[0116] According to the final grid size, each square block is evenly divided into multiple square units of the same size, and then the units corresponding to the blank pixels are removed. Then, it is determined whether there is a node of an adjacent unit at the midpoint of the four sides of each square unit; if there is, the side is a transition side, and the unit is a transition unit. Figure 8 shown.
[0117] In step seven, if Fig.14 As shown in , the transition units are classified and further meshed. Figures 9 to 13As shown in the figure, according to the number and relative position of the transition edges, the transition unit is further meshed according to the following five cases:
[0118] Case 1:
[0119] The number of transition edges is 1, and the transition unit is divided into an equilateral right triangle and two trapezoids;
[0120] Case 2:
[0121] The number of transition edges is 2, and the transition edges are adjacent. The transition unit is divided into a square and two trapezoids;
[0122] Case 3:
[0123] The number of transition edges is 2, and the transition edges are not adjacent, and the transition unit is divided into two rectangles;
[0124] Case 4:
[0125] The number of transition edges is 3, and the transition unit is divided into three equilateral right triangles and two squares;
[0126] Case 5:
[0127] The number of transition edges is 4, and the transition unit is divided into four squares.
[0128] In addition, triangular units and / or square units are added at the steep steps on the ground surface: if a steep step appears on one side, an equilateral right triangle unit with a side length of L1 is added at the bottom of the step; if steep steps appear on both sides, a square unit with a side length of L1 is added at the depression; the material of the added unit is the same as the material of the unit directly below it. In this embodiment, equilateral right triangle units are added at the steep steps on the ground surface to ensure a smooth transition of the ground surface; thus, the final two-dimensional finite element mesh is obtained, as shown in FIG. Fig.15 shown.
[0129] like Fig.16 and Fig.17 As shown, this application takes a two-dimensional geological profile of a tunnel project site as an example. The length of the two-dimensional geological profile is 6000 meters, the maximum surface elevation is 81 meters, and the two-dimensional geological profile includes six materials, namely clay, clay sand, gravel clay sand, silt, sand and bedrock. The shear wave speeds are 100m / s, 190m / s, 220m / s, 270m / s, 380m / s and 1000m / s, respectively. k1 and f maxTaking 1 / 10 and 10 Hz respectively, the mesh sizes of the six materials can be determined to be 1m, 1m, 2m, 2m, 2m, and 8m through step 1. The resolution of the pixelated section can be obtained as 6000×81 through step 2 calculation; the pixelated section can be divided into 751×11 square blocks with a side length of 8m through step 3 calculation, and the final two-dimensional finite element model mesh can be generated after subsequent processing. The model has a total of 233,882 units, including 5,605 triangular units and 228,577 quadrilateral units. The finite element mesh manually divided by ANSA software has a total of 306,199 units, including 4,882 triangular units and 301,317 quadrilateral units. The material structure adopts viscoelastic constitutive model, and the boundary condition is vertical constraint. The seismic motion is recorded by the KSRH01 station in Japan in the east-west direction of the underground bedrock in the 5.0 magnitude Kitami earthquake on June 4, 2015, and the amplitude is modulated to 1m / s. 2 ; By comparison, it can be seen that the peak acceleration of the ground surface obtained by the two grid divisions is basically the same, and the average absolute relative error is slightly less than 5%. It can be seen that the method proposed in the present invention can significantly reduce the time spent on pre-processing and numerical calculation while ensuring the accuracy of the calculation results.
[0130] In addition, in this embodiment, the two-dimensional geological finite element model grid automatic generation device includes an image acquisition module, a processing module connected to the image acquisition module, and an output module connected to the processing module:
[0131] Among them, the image acquisition module is used to read the two-dimensional geological profile and the shear wave velocity of different geotechnical materials;
[0132] The processing module is used to determine the grid size of different geotechnical materials in the two-dimensional geological profile according to the shear wave velocity; pixelate the two-dimensional geological profile according to the global minimum grid size; evenly divide the pixelated two-dimensional geological profile into a plurality of square blocks of the same size according to the global maximum grid size; determine the initial grid size of each square block according to the distribution of different geotechnical materials in the square block; determine the final grid size of each square block according to the initial grid size of itself and the surrounding square blocks; evenly divide each square block into a plurality of square units of the same size according to the final grid size, and identify transition units and transition edges; further grid the transition units according to the number and relative positions of the transition edges, and supplement triangular units and / or square units at the steep surface to ensure a smooth transition of the surface; thereby, generate the final two-dimensional geological finite element model grid.
[0133] The output module is used to automatically generate files containing all node coordinates and unit information, and display the final generated two-dimensional finite element model.
[0134] The image acquisition module of the present application can read and convert images in formats including bmp, jpg, png, tif, gif, pcx, tga, etc., and convert them into the format required by the processing module; the processing module is a program module formed by programming languages such as Java, Smalltalk, C++, etc., which can execute the processing method of the present application. The output module includes the visual display and editing of each node of the processing module.
[0135] In the present embodiment, the computer program code for performing the operation of the present invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0136] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that a technician familiar with the technical field can think of within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for automatically generating a two-dimensional geological finite element model grid, characterized in that: The specific steps are as follows: Step 1: Determine the grid size of different geotechnical materials in the two-dimensional geological profile according to the shear wave velocity; Step 2: pixelate the two-dimensional geological profile according to the global minimum grid size; Step 3: Evenly divide the pixelated two-dimensional geological profile into multiple square blocks of the same size according to the global maximum grid size; Step 4: Determine the initial grid size S1 of each square block according to the distribution of different geotechnical materials in the square block; Step 5: Determine the final grid size S2 of each square block according to the initial grid size of itself and the surrounding square blocks, so as to ensure that the final grid size does not exceed the initial grid size and the ratio of the final grid sizes of adjacent square blocks does not exceed 2; Step 6: Divide each square block evenly into multiple square units of the same size according to the final grid size, and identify transition units and transition edges; Step 7: Further mesh the transition unit according to the number and relative position of the transition edges, and add triangular units and / or square units at the steep surface to ensure a smooth transition of the surface; thereby, the final two-dimensional geological finite element model mesh is generated.
2. The method for automatically generating a two-dimensional geological finite element model grid according to claim 1, characterized in that: For step 1, the mesh size of different geotechnical materials in the two-dimensional geological profile is determined according to the shear wave velocity: The different rock and soil materials in the two-dimensional geological profile are sorted in order from small to large shear wave velocity, and their shear wave velocities are denoted as V s1 、V s2 、V s3 ,...V sn , where n is the number of geomaterial types contained in the profile. Then, the global minimum grid size, i.e., the grid size L1 of the first geomaterial, is calculated according to the following formula: L1=k1×V s1 / f max f max is the upper limit of the frequency band of interest; k1 is an empirical constant with a value of 1 / 8 to 1 / 12; Next, determine the mesh size for other geotechnical materials according to the following formula; L i and V si Respectively represent the grid size and shear wave velocity of the i-th geomaterial, i ranges from 2 to n, represents rounding down; the grid size L of the nth geotechnical material n This is the global maximum grid size.
3. The method for automatically generating a two-dimensional geological finite element model grid according to claim 1, characterized in that: For step 2, pixelate the 2D geological profile according to the global minimum grid size: The two-dimensional geological profile is pixelated according to the resolution of m1×n1. The side length of each pixel is L1, and the corresponding material is the corresponding material in the original two-dimensional geological profile at the center of the pixel; the pixels corresponding to the blank space in the two-dimensional geological profile are called blank pixels, and the other pixels are called non-blank pixels; The calculation formulas for m1 and n1 are as follows: W and H represent the width and height of the two-dimensional geological profile, respectively. Indicates rounding up.
4. The method for automatically generating a two-dimensional geological finite element model grid according to claim 1, characterized in that: For step 3, the pixelated two-dimensional geological profile is evenly divided into multiple square blocks of the same size according to the global maximum grid size: a column of blank pixels is added on both sides of the pixelated two-dimensional geological profile, and then it is evenly divided into m2×n2 square blocks with a side length of L n The insufficient part can be supplemented with blank pixels on the right and top, where the calculation formulas of m2 and n2 are as follows:
5. The method for automatically generating a two-dimensional geological finite element model grid according to claim 1, characterized in that: In step 4, the initial grid size S1 of each square block is determined according to the distribution of different geotechnical materials in the square block: Among them, if the square block contains blank pixels, the initial grid size S1 is equal to the global minimum grid size L1; If there are no blank pixels in the square block, the square block is evenly divided into multiple square grids of the same size. The initial side length of the square grid takes the minimum grid size of different geotechnical materials in the square block. If all square grids in the square block contain only one type of geotechnical material, the initial grid size S1 is equal to the side length of the square grid; if not all square grids contain only one type of geotechnical material, the side length of the square grid is reduced by half until all square grids contain only one type of geotechnical material.
6. The method for automatically generating a two-dimensional geological finite element model grid according to claim 1, characterized in that: In step 5, the final grid size S2 of each square block is determined according to the initial grid size of itself and the surrounding square blocks according to the following formula, so as to ensure that the final grid size does not exceed the initial grid size and the ratio of the final grid sizes of adjacent square blocks does not exceed 2: <h2 style=";text-align:left;direction:ltr">S2 = min[S<h2 style=";text-align:left;direction:ltr"> g <h2 style=";text-align:left;direction:ltr"> (d)×2^(d / L<h2 style=";text-align:left;direction:ltr"> n <h2 style=";text-align:left;direction:ltr"> )]d=0,L<h2 style=";text-align:left;direction:ltr"> n <h2 style=";text-align:left;direction:ltr"> 2L<h2 style=";text-align:left;direction:ltr"> n <h2 style=";text-align:left;direction:ltr"> 3L<h2 style=";text-align:left;direction:ltr"> n <h2 style=";text-align:left;direction:ltr"> ,…,d<h2 style=";text-align:left;direction:ltr"> max Where d represents the Manhattan distance between the centers of two square blocks, which is equal to the sum of the horizontal and vertical distances between the two points; S g (d) represents the minimum initial grid size corresponding to all square blocks with a Manhattan distance d between the square blocks under consideration; min is the symbol for taking the minimum value; d max is the maximum Manhattan distance to be considered.
7. The method for automatically generating a two-dimensional geological finite element model grid according to claim 6, characterized in that: The d max Calculated by the following formula: d max =log2(S g (0) / L1)×L n Among them, S g (0) is the initial grid size of the considered square block itself.
8. The method for automatically generating a two-dimensional geological finite element model grid according to claim 1, characterized in that: In step 6, each square block is evenly divided into multiple square units of the same size according to the final grid size, and transition units and transition edges are identified: According to the final grid size, each square block is evenly divided into multiple square units of the same size, and then the units corresponding to the blank pixels are removed. It is then determined whether there are nodes of adjacent units at the midpoints of the four sides of each square unit; if so, the side where it is located is a transition side, and the unit is a transition unit.
9. The method for automatically generating a two-dimensional geological finite element model grid according to claim 1, characterized in that: In step 7, according to the number and relative position of the transition edges, the transition unit is further meshed according to the following five cases: Case 1: The number of transition edges is 1, and the transition unit is divided into an equilateral right triangle and two trapezoids; Case 2: The number of transition edges is 2, and the transition edges are adjacent. The transition unit is divided into a square and two trapezoids; Case 3: The number of transition edges is 2, and the transition edges are not adjacent, and the transition unit is divided into two rectangles; Case 4: The number of transition edges is 3, and the transition unit is divided into three equilateral right triangles and two squares; Case 5: The number of transition edges is 4, and the transition unit is divided into four squares.
10. The method for automatically generating a two-dimensional geological finite element model grid according to claim 1, characterized in that: For step 7, add triangle units and / or square units at the steep slopes of the ground: If a steep step appears on one side, an equilateral right triangle unit with a side length of L1 is added at the bottom of the step; if steep steps appear on both sides at the same time, a square unit with a side length of L1 is added in the depression; the material of the added unit is the same as that of the unit directly below it.
11. A two-dimensional geological finite element model grid automatic generation device, characterized in that: It includes an image acquisition module, a processing module connected to the image acquisition module, and an output module connected to the processing module: The image acquisition module is used to read the two-dimensional geological profile and the shear wave velocity of different geotechnical materials; The processing module is used to determine the grid size of different geotechnical materials in the two-dimensional geological profile according to the shear wave velocity; pixelate the two-dimensional geological profile according to the global minimum grid size; evenly divide the pixelated two-dimensional geological profile into a plurality of square blocks of the same size according to the global maximum grid size; determine the initial grid size of each square block according to the distribution of different geotechnical materials in the square block; determine the final grid size of each square block according to the initial grid size of itself and the surrounding square blocks; evenly divide each square block into a plurality of square units of the same size according to the final grid size, and identify transition units and transition edges; further grid the transition unit according to the number and relative position of the transition edges, and supplement the triangular unit and / or square unit at the steep slope of the surface to ensure a smooth transition of the surface; thereby, generate the final two-dimensional geological finite element model grid; The output module is used to automatically generate files containing all node coordinates and unit information, and display the final generated two-dimensional finite element model.
12. A computer program product comprising a computer program / instructions, characterized in that: When the computer program / instructions are executed by a processor, the method steps described in any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Image based adaptive finite element mesh division method
CN105260526A
Image compression method and electronic device
CN109005411A
Texture mapping expansion method and device of voxel model, electronic equipment and medium
CN114782606A
Large-scale-range site classification processing method and device and electronic equipment
CN116630676A
Optimized division method for structure and foundation grids in SSI calculation
CN117540611A
Cited By
Method and program product for automatically generating three-dimensional geological finite element model
CN118627167A
Method and program product for automatic generation of a three-dimensional geological finite element model
CN118627167B
