Finite element meshing method, device and storage medium based on arch dam simulation
Through the overall zoning and meshing of the arch dam, combined with the processing of contour features, the problem of poor meshing coordination in the existing technology is solved, and the quality of the finite element mesh and the accuracy of the simulation calculation are improved.
Patent Information
- Application Number
- CN202410436339.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-04-11
AI Technical Summary
The existing finite element meshing method based on arch dam simulation lacks overall coordinated planning, resulting in poor coordination of the divided mesh and inability to meet computing needs.
By obtaining the three-dimensional model and partition parameters of the arch dam, first partition it as a whole, then mesh the upstream and downstream surfaces according to the partitions, and extract the discharge holes and generate three-dimensional meshes of additional structures based on the contour characteristics to ensure Grid density is consistent and mappable.
The quality of finite element meshing is improved, the problem of poor mesh coordination is avoided, and the meshing of drainage holes and additional structures is considered during the division, which enhances the accuracy of simulation calculations.
Smart Images

Figure CN118211457B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of water conservancy and hydropower engineering, and in particular to a finite element meshing method, device and storage medium based on arch dam simulation. Background Art
[0002] As a large-scale water conservancy project hub, the operation status and safety of the arch dam throughout its life cycle are of concern to all parties. Therefore, it is very important to simulate the arch dam throughout its life cycle. As the basis of engineering simulation calculation, finite element meshing refers to the process of dividing the corresponding model of the project into many small grid units before engineering simulation. In this way, decomposing the corresponding model of the arch dam into small grid units can more accurately describe the geometric shape and physical properties of each position of the arch dam model, so that the simulation results of the arch dam project are closer to the actual situation.
[0003] At present, the finite element meshing method based on arch dam simulation usually first builds the geometric solid model of the arch dam according to the design drawings, and then performs meshing according to the finite element meshing rules, such as the number, density, shape, etc. of meshes. However, since this finite element meshing method usually lacks overall coordination planning, it often leads to poor coordination of the meshes divided and cannot meet the calculation requirements well. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a finite element meshing method, device and storage medium based on arch dam simulation, which can improve the quality of the divided mesh.
[0005] In the first aspect, the present application provides a finite element mesh division method based on arch dam simulation, including: obtaining a three-dimensional model, partition parameters, and a preset mesh size of the arch dam; the arch dam includes at least a dam body, spill holes, and additional structures; dividing the three-dimensional model into multiple partitions according to the partition parameters to obtain a three-dimensional partition model; based on the principle that the surface mesh density of the upstream surface and the downstream surface corresponding to the partition is consistent and mappable, constructing a two-dimensional mesh of the upstream surface and the downstream surface of the three-dimensional partition model according to contour features, multiple partitions, and a preset mesh size; the contour features are the contour features of the spill holes and the additional structures in the three-dimensional partition model; mapping the two-dimensional meshes of the upstream surface and the downstream surface of the three-dimensional partition model according to each partition to obtain a three-dimensional mesh of the dam body; extracting the spill holes in the three-dimensional mesh of the dam body according to the contour features, and generating a three-dimensional mesh of the additional structure to obtain a three-dimensional mesh model suitable for finite element simulation calculations.
[0006] In some embodiments, the zoning parameters include at least one of the transverse joint position of the arch dam, the material distribution of the arch dam, the casting elevation of the arch dam in each time period, and the layout elevation of the detection instrument.
[0007] In some embodiments, before obtaining the three-dimensional partition model, the method also includes: obtaining a first height difference; the first height difference is the height difference between a first edge of the first partition and a second edge of the second partition, the first partition is adjacent to the second partition, the first edge and the second edge have no intersection, and the first edge is different from the second edge; when the first height difference is less than a first threshold, extending the target edge to be a common edge of the first partition and the second partition, and deleting the non-target edge; the target edge is the edge with the highest elevation between the first edge and the second edge.
[0008] In some embodiments, before acquiring the first height difference, the method further includes: determining a first threshold according to a preset grid size.
[0009] In some embodiments, a two-dimensional grid of the upstream and downstream surfaces of the three-dimensional partitioned model is constructed based on contour features, multiple partitions, and a preset grid size, including: using the contour features and multiple partitions as control boundaries, and dividing each partition into grids according to the preset grid size to obtain the two-dimensional grid of the upstream and downstream surfaces of the three-dimensional partitioned model.
[0010] In some embodiments, before extracting the spill holes in the three-dimensional grid of the dam body according to the contour features, the method also includes: obtaining a second height difference between the upstream dam surface and the downstream dam surface of the spill holes; when the second height difference is greater than a second threshold, extracting the spill holes in the three-dimensional grid of the dam body according to the contour features, including: extracting the overflow surface of the spill holes in the three-dimensional grid of the dam body in a step-like manner according to the contour features.
[0011] In some embodiments, generating a three-dimensional mesh of the additional structure includes: generating the three-dimensional mesh of the additional structure according to the outline features reserved by the additional structure in the three-dimensional partition model and in accordance with single-sided mesh control.
[0012] In the second aspect, the present application provides a finite element mesh division device based on arch dam simulation, including: an acquisition module, used to obtain a three-dimensional model, partition parameters, and a preset mesh size of the arch dam; the arch dam includes at least a dam body, spill holes and additional structures; a division module, used to divide the three-dimensional model into multiple partitions according to the partition parameters to obtain a three-dimensional partition model; a construction module, used to construct a two-dimensional mesh of the upstream surface and downstream surface of the three-dimensional partition model based on the principle that the surface mesh density of the upstream surface and the downstream surface corresponding to the partition is consistent and mappable according to contour features, multiple partitions, and a preset mesh size; the contour features are the contour features of the spill holes and the additional structures in the three-dimensional partition model; a processing module, used to map the two-dimensional meshes of the upstream surface and the downstream surface of the three-dimensional partition model according to each partition to obtain a three-dimensional mesh of the dam body; the processing module is also used to extract the spill holes in the three-dimensional mesh of the dam body according to the contour features, and generate a three-dimensional mesh of the additional structure to obtain a three-dimensional mesh model suitable for finite element simulation calculations.
[0013] In some embodiments, the zoning parameters include at least one of the transverse joint position of the arch dam, the material distribution of the arch dam, the casting elevation of the arch dam in each time period, and the layout elevation of the detection instrument.
[0014] In some embodiments, the acquisition module is also used to acquire a first height difference before obtaining the three-dimensional partition model; the first height difference is the height difference between the first edge of the first partition and the second edge of the second partition, the first partition is adjacent to the second partition, the first edge and the second edge have no intersection, and the first edge is different from the second edge; the processing module is also used to extend the target edge to the common edge of the first partition and the second partition when the first height difference is less than a first threshold, and delete the non-target edge; the target edge is the edge with the highest elevation between the first edge and the second edge.
[0015] In some embodiments, the processing module is further configured to determine a first threshold value according to a preset grid size.
[0016] In some embodiments, the construction module is specifically used to use the contour features and multiple partitions as control boundaries, and divide each partition into grids according to a preset grid size to obtain two-dimensional grids of the upstream surface and downstream surface of the three-dimensional partition model.
[0017] In some embodiments, the processing module is also used to obtain a second height difference between the upstream dam surface and the downstream dam surface of the leakage hole before extracting the leakage hole in the three-dimensional grid of the dam body according to the contour feature; when the second height difference is greater than a second threshold, the overflow surface of the leakage hole is extracted in the three-dimensional grid of the dam body in a step-like manner according to the contour feature.
[0018] In some embodiments, the processing module is specifically configured to generate a three-dimensional mesh of the additional structure according to the contour features reserved by the additional structure in the three-dimensional partition model and in accordance with the single-sided mesh control.
[0019] In a third aspect, the present application provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the finite element meshing method based on arch dam simulation as in the first aspect is implemented.
[0020] In a fourth aspect, the present application provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, it implements the finite element meshing method based on arch dam simulation as in the first aspect.
[0021] In a fifth aspect, the present application provides a computer program product, comprising: when the computer program product runs on a computer, the computer implements the finite element meshing method based on arch dam simulation as in the first aspect.
[0022] Compared with the prior art, the technical solution provided by the present application has the following advantages: first, the three-dimensional model, partition parameters, and preset grid size of the arch dam are obtained. Then, the three-dimensional model is divided into multiple partitions according to the partition parameters to obtain a three-dimensional partition model. Then, based on the principle that the surface grid density of the upstream surface and the downstream surface corresponding to the partition is consistent and mappable, the two-dimensional grids of the upstream surface and the downstream surface of the three-dimensional partition model are constructed according to the contour features, multiple partitions, and the preset grid size; the contour features are the contour features of the discharge holes and the additional structures in the three-dimensional partition model. Then, according to each partition, the two-dimensional grids of the upstream surface and the downstream surface of the three-dimensional partition model are mapped to obtain the three-dimensional grid of the dam body. Finally, according to the contour features, the discharge holes are extracted from the three-dimensional grid of the dam body, and the three-dimensional grid of the additional structure is generated to obtain a three-dimensional grid model suitable for finite element simulation calculation. On the one hand, the three-dimensional model of the arch dam can be partitioned as a whole, and then the upstream surface and the downstream surface corresponding to the three-dimensional model are meshed according to the partitions, and finally the two-dimensional grids of the upstream surface and the downstream surface are mapped according to the partitions to obtain the three-dimensional grid of the dam body. In this way, the method of first performing overall partitioning and then performing detailed partitioning according to the partitioning avoids the problem of poor coordination of the divided meshes due to the lack of overall coordination planning, and improves the quality of the finite element mesh division. On the other hand, the contour features of the spill holes and additional structures are reserved in the two-dimensional meshes of the upstream and downstream surfaces of the arch dam, and the spill holes and the three-dimensional meshes of the additional structures are extracted according to the contour features in the three-dimensional mesh of the dam body; in this way, the mesh division of the spill holes and additional structures of the arch dam is also considered during the mesh division, which further improves the quality of the finite element mesh division. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0025] Figure 1 One of the schematic diagrams of application scenarios of the finite element meshing method based on arch dam simulation provided in an embodiment of the present application;
[0026] Figure 2 One of the flow diagrams of the finite element meshing method based on arch dam simulation provided in the embodiment of the present application;
[0027] Figure 3 A second schematic diagram of an application scenario of the finite element meshing method based on arch dam simulation provided in an embodiment of the present application;
[0028] Figure 4 A third schematic diagram of an application scenario of the finite element meshing method based on arch dam simulation provided in an embodiment of the present application;
[0029] Figure 5 A second flow chart of a finite element meshing method based on arch dam simulation provided in an embodiment of the present application;
[0030] Figure 6 A fourth schematic diagram of an application scenario of the finite element meshing method based on arch dam simulation provided in an embodiment of the present application;
[0031] Figure 7 A fifth schematic diagram of an application scenario of the finite element meshing method based on arch dam simulation provided in an embodiment of the present application;
[0032] Figure 8 A schematic structural diagram of a finite element meshing device based on arch dam simulation provided in an embodiment of the present application;
[0033] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0035] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.
[0036] First, some nouns or terms involved in the specification and claims of this application are explained in conjunction with the drawings.
[0037] Arch dam: usually a water retaining dam built in a canyon. It is a water retaining structure that bends upstream in a plane and is curved, and can transfer part of the horizontal load to both sides. For example, Figure 1 A structural schematic diagram of an arch dam provided in the implementation of this application includes a dam body 10, a spillway hole 11, an additional structure 12, and a transverse joint 13.
[0038] Upstream of an arch dam: refers to the side of the arch dam facing the direction of the water flow in the water area. For example, Figure 1 The upstream side of an arch dam, as shown in the figure, usually refers to the side of the arch protrusion (i.e. Figure 1 side shown in FIG.
[0039] Downstream of an arch dam: refers to the side of the arch dam facing the opposite direction of the water flow in the water area. For example, Figure 1 The downstream side of an arch dam as shown in the figure usually refers to the side of the arch depression.
[0040] The finite element meshing method, device and storage medium based on arch dam simulation provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments.
[0041] The finite element meshing method based on arch dam simulation provided in the embodiment of the present application can be executed by a finite element meshing device based on arch dam simulation, and the finite element meshing device based on arch dam simulation can be hardware or software. When the finite element meshing device based on arch dam simulation is hardware, it can be various electronic devices with the function of running the finite element meshing based on arch dam simulation, including but not limited to computers, computers, tablet computers, mobile phones, televisions, smart TVs, laser projection equipment, monitors, vehicle-mounted equipment, smart vehicles, electronic bulletin boards, electronic desktops, etc. When the finite element meshing device based on arch dam simulation is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules, or as a single software or software module, which is not specifically limited here.
[0042] Figure 2 A schematic diagram of the process flow of the finite element meshing method based on arch dam simulation provided in the embodiment of the present application is shown in FIG. Figure 2 As shown, the finite element meshing method based on arch dam simulation can include the following steps.
[0043] S21. Obtain the three-dimensional model, partition parameters, and preset grid size of the arch dam.
[0044] Among them, the arch dam at least includes a dam body, spill holes and additional structures.
[0045] First, obtain the 3D model of the arch dam.
[0046] Specifically, the way to obtain the three-dimensional model of the arch dam can be to receive the three-dimensional model of the arch dam from other devices in response to user operations; or to construct the three-dimensional model of the arch dam through relevant software, such as Catia, AutoCAD, etc. in response to user operations.
[0047] Secondly, the partition parameters and preset grid size are obtained. The partition parameters include at least one of the transverse joint position of the arch dam, the material distribution of the arch dam, the casting elevation of the arch dam in each time period, and the layout elevation of the detection instrument; the preset grid size is the default value, or is determined by relevant personnel according to the actual situation of the construction process simulation.
[0048] Specifically, the partition parameters and preset grid size are set by relevant personnel according to the actual situation of the arch dam. For example, the position of the transverse joint of the arch dam is set by relevant personnel according to the actual position of the transverse joint of the arch dam; the material distribution of the arch dam is set by relevant personnel according to the actual material distribution of the arch dam; the casting elevation of the arch dam in each time period is marked by relevant personnel according to the casting elevation of the arch dam in each time period when the arch dam is actually constructed; the layout elevation of the detection instrument is set by relevant personnel according to the elevation of the detection instrument arranged in the actual arch dam.
[0049] S22. Divide the three-dimensional model into multiple partitions according to the partition parameters to obtain a three-dimensional partition model.
[0050] In some embodiments, when the partition parameters only include the transverse joint positions of the arch dam, the arch dam is Figure 1 When the arch dam is shown in the figure, the 3D model is divided into multiple partitions according to the transverse joint positions of the arch dam. The obtained 3D partition model is as follows Figure 1 As shown in the figure (the division position is the transverse joint position), the transverse joints divide the three-dimensional model into multiple vertical partitions; the partition parameters include the transverse joint position of the arch dam, the material distribution of the arch dam, the casting elevation of the arch dam in each time period, and the layout elevation of the detection equipment. Figure 1 When the arch dam is shown in FIG. 1 , the 3D model is divided into multiple partitions according to the partition parameters, and the obtained 3D partition model is as follows: Figure 3 As shown, the three-dimensional model is divided into multiple block partitions by partition parameters; of course, the three-dimensional model can also be partitioned by other combinations of the transverse joint position of the arch dam, the material distribution of the arch dam, the casting elevation of the arch dam in each time period, and the layout elevation of the detection instrument, which should all fall within the protection scope of this application.
[0051] In the above scheme, before the finite element mesh division, the 3D model can be divided into zones as a whole according to any combination of the acquired transverse joint positions of the arch dam, the material distribution of the arch dam, the casting elevation of the arch dam in each time period, and the layout elevation of the detection instrument, so as to divide the large volume of the 3D model into small volume zones, so that each zone can be divided separately when the finite element mesh division is performed later. In this way, the method of first dividing the zones as a whole and then dividing them locally in detail avoids the problem of poor coordination of the divided grids due to lack of overall coordination planning, and improves the division quality.
[0052] S23. Based on the principle that the surface mesh density of the corresponding partitions of the upstream surface and the downstream surface is consistent and mappable, a two-dimensional mesh of the upstream surface and the downstream surface of the three-dimensional partition model is constructed according to contour features, multiple partitions, and a preset mesh size.
[0053] Among them, the contour features are the contour features of the leakage holes and additional structures in the three-dimensional partition model.
[0054] Specifically, the relevant software can be used based on the principle that the mesh density of the corresponding partitions of the upstream and downstream surfaces is consistent and mappable, and according to the partitions in the three-dimensional partition model, the contour features of the discharge holes, and the contour features of the additional structures, the contour features and the partitions are used as control boundaries, and each partition is meshed according to the preset mesh size to obtain the two-dimensional mesh of the upstream and downstream surfaces of the three-dimensional partition model. For example, hypermesh, ANSYS Workbench, gmsh, salome, etc. For another example, the three-dimensional model is imported into hypermesh, and the 2D mesh module of hypermesh is used. Based on the principle that the mesh density of the corresponding partitions of the upstream and downstream surfaces is consistent, the contour features and the partitions are used as control boundaries, and each partition is meshed according to the preset mesh size and mesh shape to obtain a two-dimensional mesh. Among them, the mesh shape is pre-set by relevant personnel according to actual conditions. For example, the mesh shape is a quadrilateral, and it is inevitable that a local triangular mesh can be used for transition.
[0055] For example, in an arch dam Figure 1 When the arch dam is constructed, based on the principle that the mesh density of the corresponding partitions of the upstream and downstream surfaces is consistent and mappable, the contour features and partitions are used as control boundaries, and each partition is meshed according to the preset mesh size. The two-dimensional mesh of the upstream surface is as follows: Figure 4 As shown, each partition is divided into multiple grids.
[0056] S24. Mapping processing is performed on the two-dimensional grids of the upstream surface and the downstream surface of the three-dimensional partition model according to each partition to obtain the three-dimensional grid of the dam body.
[0057] Specifically, the three-dimensional mesh of the dam body can be obtained by mapping each plane mesh in each partition for the two-dimensional mesh in each partition through relevant software. For example, hypermesh, ANSYS Workbench, gmsh, salome, etc. For another example, the three-dimensional partition model is imported into hypermesh, and the 3D mesh module of hypermesh is used to map each two-dimensional mesh in each partition of the upstream surface to the two-dimensional mesh of the corresponding partition of the downstream surface to obtain the three-dimensional mesh of the dam body; or, the two-dimensional mesh in each partition of the downstream surface is mapped to the two-dimensional mesh of the corresponding partition of the upstream surface to obtain the three-dimensional mesh of the dam body.
[0058] S25. Extract spill holes from the three-dimensional mesh of the dam body according to the contour features, and generate a three-dimensional mesh of the additional structure to obtain a three-dimensional mesh model suitable for finite element simulation calculations.
[0059] First, according to the outline features of the spill holes reserved in the two-dimensional grid, the spill holes are cut out in the three-dimensional grid of the dam body. Specifically, the spill holes can be cut out using software that divides the finite element grid, such as hypermesh, ANSYS Workbench, gmsh, salome, etc.
[0060] Secondly, according to the outline features reserved by the additional structure in the two-dimensional grid, a three-dimensional grid of the additional structure is generated according to the single-sided grid control. Specifically, the outline features reserved by the additional structure in the two-dimensional grid are used as the processing control boundary of the additional structure, and the three-dimensional grid of the additional structure is generated according to the single-sided grid control.
[0061] In the above scheme, the three-dimensional model, partition parameters, and preset grid size of the arch dam are first obtained. Then, the three-dimensional model is divided into multiple partitions according to the partition parameters to obtain a three-dimensional partition model. Then, based on the principle that the surface mesh density of the upstream surface and the downstream surface corresponding to the partition is consistent and mappable, the two-dimensional mesh of the upstream surface and the downstream surface of the three-dimensional partition model is constructed according to the contour features, multiple partitions, and the preset grid size; the contour features are the contour features of the discharge holes and the additional structures in the three-dimensional partition model. Then, according to each partition, the two-dimensional meshes of the upstream surface and the downstream surface of the three-dimensional partition model are mapped to obtain the three-dimensional mesh of the dam body. Finally, according to the contour features, the discharge holes are extracted from the three-dimensional mesh of the dam body, and the three-dimensional mesh of the additional structure is generated to obtain a three-dimensional mesh model suitable for finite element simulation calculation. On the one hand, the three-dimensional model of the arch dam can be partitioned as a whole, and then the upstream surface and the downstream surface corresponding to the three-dimensional model are meshed according to the partitions, and finally the two-dimensional meshes of the upstream surface and the downstream surface are mapped according to the partitions to obtain the three-dimensional mesh of the dam body. In this way, the method of first performing overall partitioning and then performing detailed partitioning according to the partitioning avoids the problem of poor coordination of the divided meshes due to the lack of overall coordination planning, and improves the quality of the finite element mesh division. On the other hand, the contour features of the spill holes and additional structures are reserved in the two-dimensional meshes of the upstream and downstream surfaces of the arch dam, and the spill holes and the three-dimensional meshes of the additional structures are extracted according to the contour features in the three-dimensional mesh of the dam body; in this way, the mesh division of the spill holes and additional structures of the arch dam is also considered during the mesh division, which further improves the quality of the finite element mesh division.
[0062] In some embodiments, Figure 5 As shown, before obtaining the three-dimensional partition model, step S22 also includes:
[0063] S221. Obtain a first height difference.
[0064] The first height difference is the height difference between the first side of the first partition and the second side of the second partition, the first partition is adjacent to the second partition, the first side and the second side have no intersection, and the first side and the second side are different. Figure 6 A is a partial partition structure diagram of a three-dimensional partition model provided in an embodiment of the present application, including seven partitions, namely, A1 partition, A2 partition, B1 partition, B2 partition, C1 partition, C2 partition, and D partition. Among them, the adjacent partitions of A1 partition include A2 partition and B1 partition. Then, when the a1 side of A1 partition is the first side, the second side can be the a2 side; similarly, when the a2 side is the first side, the second side can be the a1 side or the b1 side; when the b1 side is the first side, the second side can be the a2 side or the b2 side; when the b2 side is the first side, the second side can be the b1 side or the c1 side; when the c1 side is the first side, the second side can be the b2 side.
[0065] S222: When the first height difference is less than a first threshold, extend the target edge to be a common edge of the first partition and the second partition, and delete the non-target edge.
[0066] The target edge is the edge with the highest elevation between the first edge and the second edge.
[0067] In some embodiments, the first threshold is preset, for example, it may be a default value, or it may be a value set by relevant personnel according to actual conditions.
[0068] In some embodiments, the first threshold is determined according to a preset grid size. For example, when L is L, the first threshold is 0.5L.
[0069] For example, when Figure 6 In the partition shown in A, the first edge is edge a1, the second edge is edge a2, and when the height difference between edge a1 and edge a2 is less than the first threshold, it can be seen that the elevation of edge a2 is lower than the elevation of edge a1, then edge a1 is the target edge and edge a2 is the non-target edge; at this time, if Figure 6 As shown in B, the a1 edge is extended to the common edge of the A1 partition and the A2 partition, and the edge extending to the A2 partition is used as the new a2 edge (recorded as a2' edge), and the original a2 edge is deleted; similarly, when the first edge is the c1 edge, the second edge is the b2 edge, and the height difference between the c1 edge and the b2 edge is less than the first threshold, it can be seen that the elevation of the c1 edge is lower than the elevation of the b2 edge, then the b2 edge is the target edge, and the c1 edge is the non-target edge; at this time, if Figure 6 As shown in B, the b2 edge is extended to be a common edge of the C1 partition and the B2 partition, and the edge extended to the C1 partition is used as a new c1 edge (recorded as c1' edge), and the original c1 edge is deleted.
[0070] In some embodiments, when the first height difference is greater than or equal to the first threshold, no processing is performed. For example, in some embodiments, when the first side is side a2 and the second side is side b1, and the height difference between side a2 and side b1 is greater than or equal to the first threshold, no processing is performed.
[0071] It should be noted that before obtaining the three-dimensional partition model, it is only necessary to perform a limited number of target edge adjustments on multiple partitions as a whole, and not too many times, to avoid multiple adjustments that cause the division results of each partition to lose the connection with the partition parameters, resulting in inaccurate finite element mesh division.
[0072] In the above scheme, when the first height difference between the two edges is less than the first threshold, the target edge can be extended to a common edge of the first partition and the second partition, and the non-target edge can be deleted. In this way, the edges with smaller height differences can be merged into one edge, which can reduce the amount of simulation calculations during simulation to a certain extent and improve the simulation speed. In addition, the number of adjustments can be limited to avoid multiple adjustments that cause the division results of each partition to lose the connection with the partition parameters, resulting in inaccurate finite element mesh division.
[0073] In some embodiments, before step S25, the method further includes: obtaining a second height difference between the upstream dam surface and the downstream dam surface of the spill hole, and when the second height difference is greater than a second threshold, picking out the overflow surface of the spill hole in the three-dimensional grid of the dam body in a step-like manner according to the contour feature; when the second height difference is less than or equal to the second threshold, directly picking out the spill hole. The second threshold is preset, for example, it can be a default value, or it can be a value set by relevant personnel according to actual conditions.
[0074] For example, Figure 7 An overflow surface provided in an embodiment of the present application is a spill hole in the shape of a step. In this way, when the second height difference between the upstream dam surface and the downstream dam surface of the spill hole is greater than a second threshold, the overflow surface of the spill hole is cut out in the three-dimensional grid of the dam body in a step shape. Since the step-shaped overflow surface can divide into relatively regular hexagons, the problem of a large number of deformations of the finite element grids divided around the spill hole caused by directly cutting out the spill hole due to the large height difference of the spill hole is avoided, thereby improving the division quality of the finite element grid.
[0075] The embodiment of the present application can divide the functional modules of the finite element mesh division device based on arch dam simulation according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0076] like Figure 8 As shown, it is a structural schematic diagram of a finite element mesh division device based on arch dam simulation provided in an embodiment of the present application. The finite element mesh division device based on arch dam simulation includes an acquisition module 91, a division module 92, a construction module 93 and a processing module 94.
[0077] The acquisition module 91 is used to obtain the three-dimensional model, partition parameters, and preset grid size of the arch dam; the arch dam includes at least a dam body, a spill hole, and an additional structure; the division module 92 is used to divide the three-dimensional model into multiple partitions according to the partition parameters to obtain a three-dimensional partition model; the construction module 93 is used to construct the two-dimensional grids of the upstream surface and the downstream surface of the three-dimensional partition model according to the contour features, multiple partitions, and the preset grid size based on the principle that the surface grid density of the upstream surface and the downstream surface corresponding to the partition is consistent and mappable; the contour features are the contour features of the spill holes and the additional structure in the three-dimensional partition model; the processing module 94 is used to map the two-dimensional grids of the upstream surface and the downstream surface of the three-dimensional partition model according to each partition to obtain a three-dimensional grid of the dam body; the processing module 94 is also used to extract the spill holes in the three-dimensional grid of the dam body according to the contour features, and generate a three-dimensional grid of the additional structure to obtain a three-dimensional grid model suitable for finite element simulation calculation.
[0078] In some embodiments, the zoning parameters include at least one of the transverse joint position of the arch dam, the material distribution of the arch dam, the casting elevation of the arch dam in each time period, and the layout elevation of the detection instrument.
[0079] In some embodiments, the acquisition module 91 is also used to obtain a first height difference before obtaining the three-dimensional partition model; the first height difference is the height difference between the first edge of the first partition and the second edge of the second partition, the first partition is adjacent to the second partition, the first edge and the second edge have no intersection, and the first edge is different from the second edge; the processing module 94 is also used to extend the target edge to the common edge of the first partition and the second partition when the first height difference is less than a first threshold, and delete the non-target edge; the target edge is the edge with the highest elevation between the first edge and the second edge.
[0080] In some embodiments, the processing module 94 is further configured to determine a first threshold value according to a preset grid size.
[0081] In some embodiments, the construction module 93 is specifically used to use the contour features and multiple partitions as control boundaries, and divide each partition into grids according to a preset grid size to obtain two-dimensional grids of the upstream surface and downstream surface of the three-dimensional partition model.
[0082] In some embodiments, the processing module 94 is also used to obtain a second height difference between the upstream dam surface and the downstream dam surface of the leakage hole before extracting the leakage hole in the three-dimensional grid of the dam body according to the contour feature; when the second height difference is greater than a second threshold, the overflow surface of the leakage hole is extracted in the three-dimensional grid of the dam body in a step-like manner according to the contour feature.
[0083] In some embodiments, the processing module 94 is specifically configured to generate a three-dimensional mesh of the additional structure according to the contour features reserved by the additional structure in the three-dimensional partition model and in accordance with the single-sided mesh control.
[0084] The finite element mesh division device based on arch dam simulation provided in this embodiment can execute the finite element mesh division method based on arch dam simulation provided in the above method embodiment. Its implementation principle and technical effect are similar to those of the above method and will not be repeated here.
[0085] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0086] like Fig. 9 As shown, the embodiment of the present application provides an electronic device, which includes: a processor 1001, a memory 1002, and a computer program stored in the memory 1002 and executable on the processor 1001, and when the computer program is executed by the processor 1001, each process of the finite element meshing method based on arch dam simulation in the above method embodiment is implemented. And the same technical effect can be achieved, so it will not be repeated here to avoid repetition.
[0087] An embodiment of the present application provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process of the finite element mesh division method based on arch dam simulation in the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0088] The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0089] An embodiment of the present application provides a computer program product, which stores a computer program. When the computer program is executed by a processor, each process of the finite element mesh division method based on arch dam simulation in the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0090] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media that include computer-usable program code.
[0091] In the present application, 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. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0092] In this application, memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0093] In this application, computer-readable media includes permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data and carrier waves.
[0094] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0095] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A finite element meshing method based on arch dam simulation, characterized in that: include: Obtain the 3D model, partition parameters, and preset grid size of the arch dam; The arch dam at least comprises a dam body, spill holes and additional structures; Dividing the three-dimensional model into a plurality of partitions according to the partition parameters to obtain a three-dimensional partition model; Based on the principle that the surface mesh density of the corresponding partitions of the upstream surface and the downstream surface is consistent and mappable, a two-dimensional mesh of the upstream surface and the downstream surface of the three-dimensional partition model is constructed according to the contour feature, multiple partitions, and the preset mesh size; the contour feature is the contour feature of the leakage hole and the additional structure in the three-dimensional partition model; According to each partition, mapping processing is performed on the two-dimensional grids of the upstream surface and the downstream surface of the three-dimensional partition model to obtain the three-dimensional grid of the dam body; The discharge holes are extracted from the three-dimensional mesh of the dam body according to the contour features, and a three-dimensional mesh of the additional structure is generated to obtain a three-dimensional mesh model suitable for finite element simulation calculation.
2. The finite element mesh generation method according to claim 1, characterized in that: The partition parameters include at least one of the transverse joint position of the arch dam, the material distribution of the arch dam, the casting elevation of the arch dam in each time period, and the layout elevation of the detection instrument.
3. The finite element mesh generation method according to claim 1, characterized in that: Before obtaining the three-dimensional partition model, the method further includes: Obtaining a first height difference; the first height difference is a height difference between a first side of a first partition and a second side of a second partition, the first partition is adjacent to the second partition, the first side has no intersection with the second side, and the first side is different from the second side; When the first height difference is less than a first threshold, the target edge is extended to be a common edge of the first partition and the second partition, and non-target edges are deleted; the target edge is the edge with the highest elevation between the first edge and the second edge.
4. The finite element mesh generation method according to claim 3, characterized in that: Before acquiring the first height difference, the method further includes: The first threshold is determined according to a preset grid size.
5. The finite element mesh generation method according to claim 1, characterized in that: The step of constructing a two-dimensional grid of an upstream surface and a downstream surface of the three-dimensional partition model according to the contour feature, the plurality of partitions, and the preset grid size comprises: The contour features and the multiple partitions are used as control boundaries, and each partition is meshed according to the preset mesh size to obtain two-dimensional meshes of the upstream surface and the downstream surface of the three-dimensional partition model.
6. The finite element mesh generation method according to claim 1, characterized in that: Before extracting the drainage holes in the three-dimensional grid of the dam body according to the contour features, the method further includes: Obtaining a second height difference between the upstream dam surface and the downstream dam surface of the spillway hole; When the second height difference is greater than a second threshold, extracting the drainage hole in the three-dimensional grid of the dam body according to the contour feature includes: According to the contour features, the overflow surface of the discharge hole is cut out in the three-dimensional grid of the dam body in a step-like manner.
7. The finite element mesh generation method according to claim 1, characterized in that: The generating of the three-dimensional grid of the additional structure comprises: According to the outline features of the additional structure reserved in the three-dimensional partition model, a three-dimensional mesh of the additional structure is generated according to single-sided mesh control.
8. A finite element meshing device based on arch dam simulation, characterized in that: include: An acquisition module is used to obtain the three-dimensional model, partition parameters, and preset grid size of the arch dam; The arch dam at least comprises a dam body, spill holes and additional structures; A partitioning module, used for dividing the three-dimensional model into a plurality of partitions according to the partitioning parameters to obtain a three-dimensional partition model; A construction module is used to construct two-dimensional grids of the upstream surface and the downstream surface of the three-dimensional partition model based on the principle that the surface grid densities of the corresponding partitions of the upstream surface and the downstream surface are consistent and mappable, according to contour features, multiple partitions, and the preset grid size; the contour features are contour features of the leakage holes and the additional structure in the three-dimensional partition model; A processing module, used for mapping the two-dimensional grids of the upstream surface and the downstream surface of the three-dimensional partition model according to each partition to obtain a three-dimensional grid of the dam body; The processing module is also used to extract the discharge holes in the three-dimensional grid of the dam body according to the contour features, and generate the three-dimensional grid of the additional structure to obtain a three-dimensional grid model suitable for finite element simulation calculation.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the finite element meshing method based on arch dam simulation as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the finite element meshing method based on arch dam simulation according to any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that When the computer program product is run on a computer, the computer is enabled to implement the steps of the finite element meshing method based on arch dam simulation according to any one of claims 1 to 7.
