Parameterization automatic identification method for boundary of plane finite element model
By automatically identifying the inner and outer contours of a planar finite element model, the problem of low efficiency and errors caused by manual operation in traditional finite element modeling is solved. It realizes intelligent load application and internal force extraction, and is applicable to planar finite element models of arbitrary shapes. In particular, it improves modeling efficiency and accuracy in tunnel structure design.
Patent Information
- Application Number
- CN202511017938.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-23
- Publication Date
- 2025-10-28
AI Technical Summary
In traditional structural finite element modeling and analysis, the application of loads and constraints and the extraction of internal forces rely on manual operation, resulting in low design efficiency and a high risk of errors.
This paper provides a parameterized automatic identification method for the boundary of a planar finite element model. By acquiring the point and surface information of the model, the method automatically identifies the inner and outer contour lines of the planar finite element model, and realizes intelligent application of loads and constraints and extraction of cross-sectional internal forces.
It achieves automated boundary recognition of planar finite element models, improving modeling efficiency and accuracy. It is applicable to planar finite element models of arbitrary shapes, and is particularly useful in tunnel structure design to improve the efficiency and accuracy of intelligent design.
Smart Images

Figure CN120850679A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of planar finite element model technology, and in particular to a parametric automatic identification method for the boundary of a planar finite element model. Background Technology
[0002] Structural finite element modeling and analysis mainly involves the following steps: creating geometric objects, applying loads and constraints, generating finite element meshes, performing calculations and analysis, and extracting internal forces. In traditional design, applying loads and constraints relies on a graphical user interface, requiring designers to select the locations of loads and constraints and manually input load values and directions, as well as constraint types and directions. Extracting internal forces similarly requires designers to specify the cross-sectional locations from which internal forces need to be extracted through graphical interaction or coordinate input. Manual model operation reduces design efficiency and may introduce errors in operation and input.
[0003] Intelligent design helps reduce manual model operations and improves modeling efficiency and accuracy.
[0004] To achieve intelligent design of tunnel structures, it is necessary to use computers to intelligently identify the geometric features of the tunnel structure, such as its outer and inner contour lines, in a planar finite element model. This enables intelligent application of loads and constraints, and extraction of internal forces within the cross-section. A tunnel structure cross-section can generally be abstracted as a ring-like structure, where one outer contour line contains one or more inner contour lines. Loads and constraints are applied to the outer contour line, with both the load's direction of action and the constraint's reaction direction pointing inwards along the normal direction of the outer contour line. The design cross-section for extracting internal forces generally points inwards along the normal direction of the inner contour line towards the tunnel's outer contour line. Identifying and extracting the inner and outer contour lines of the tunnel structure cross-section is a necessary step for intelligently applying loads and constraints and extracting internal forces. Summary of the Invention
[0005] This disclosure provides a parametric automatic identification method for the boundaries of a planar finite element model, capable of achieving parametric automatic identification of the boundaries (including outer and inner contour lines) of the planar finite element model. The technical solution includes at least the following: In a first aspect, a parametric automatic identification method for the boundary of a planar finite element model is provided, comprising: acquiring point information and surface information of the planar finite element model, wherein the point information includes the coordinates and number of each point in the planar finite element model, the surface information includes each surface in the planar finite element model and the correspondence between each surface and surface vertices, the surface vertices are the points in the point information, each surface corresponds to at least three surface vertices, a surface is the smallest unit in the planar finite element model, the planar finite element model includes multiple surfaces, and the planar finite element model includes an outer contour line and at least one inner contour line; Based on the point information and the surface information, all edge line segments of each surface are determined to obtain a set of edge line segments; based on the repetition frequency of each edge line in the set of edge line segments, the set of edge line segments is divided into a set of contour line segments and a set of internal line segments; based on the endpoint numbers of each edge line segment in the set of contour line segments, the edges in the contour line segments are connected sequentially according to the endpoint numbers to obtain a set of contour lines, which includes at least two contour lines; based on the geometric inclusion relationship of each contour line in the set of contour lines, the contour lines in the set of contour lines are divided into outer contour lines and inner contour lines.
[0006] Optionally, determining all edge segments of each face based on the point information and the face information to obtain a set of edge segments includes: obtaining the face vertices of a first unit based on the point information and the face information, where the first unit is a face in the planar finite element model; determining multiple initial edge segments of the first unit based on the face vertices of the first unit, where each initial edge segment is a line segment obtained by connecting two adjacent face vertices of the first unit, and each initial edge segment is located at the boundary of the first unit; determining whether there are non-endpoint points in each initial edge segment of the first unit based on the point information; for initial edge segments in the first unit that have non-endpoint points, taking each pair of adjacent points in the initial edge segment as an edge segment of the first unit according to the arrangement order of the points on the initial edge segment; and taking initial edge segments in the first unit that do not have non-endpoint points as an edge segment of the first unit.
[0007] Optionally, dividing the set of edge segments into a set of outline segments and a set of internal segments based on the number of repetitions of each edge segment in the set of edge segments includes: if a first edge segment appears only once in the set of edge segments, then the first edge segment belongs to the set of outline segments, and the first edge segment is an edge segment in the set of edge segments; if a first edge segment appears twice in the set of edge segments, then the first edge segment belongs to the set of internal segments.
[0008] Optionally, the step of connecting the edges in the contour line segment sequentially according to the endpoint numbers of each edge line segment in the contour line segment set to obtain the contour line set includes: determining a third edge line segment connected to the first endpoint from the contour line set according to the endpoint number of the first endpoint of the second edge line segment, wherein the second edge line segment is a randomly selected edge line segment from the contour line set, the first endpoint is an endpoint of the second edge line segment, and there is an endpoint in the third edge line segment with the same endpoint number as the first endpoint number of the second edge line segment; connecting the first endpoint of the second edge line segment to the endpoint in the third edge line segment with the same endpoint number as the first endpoint number of the second edge line segment, thereby connecting the second edge line segment and the third edge line segment.
[0009] Optionally, dividing the contour lines in the contour line set into outer contour lines and inner contour lines based on the geometric inclusion relationship of each contour line in the contour line set includes: determining the second contour line as the outer contour line and the first contour line as the inner contour line when the area indicated by the first contour line is completely contained within the area indicated by the second contour line, and the first contour line and the second contour line are different contour lines in the contour line set.
[0010] Optionally, obtaining the point information and surface information of the planar finite element model includes: parsing multiple points and the coordinates of each point from the planar finite element model to obtain a first point set; parsing multiple surfaces from the planar finite element model and obtaining the coordinates of the face vertices of each surface, with all face vertices constituting a second point set; merging the first point set and the second point set to obtain a third point set; merging points in the third point set whose distance is less than the tolerance into a single point to remove duplicates from the third point set; and numbering the points in the deduplicated third point set to obtain the point information.
[0011] Secondly, a parametric automatic identification device for the boundary of a planar finite element model is also provided, comprising: an acquisition module for acquiring point information and surface information of the planar finite element model, wherein the point information includes the coordinates and number of each point in the planar finite element model, and the surface information includes each surface in the planar finite element model and the correspondence between each surface and its vertices, wherein the vertices are the points in the point information, each surface corresponds to at least three vertices, a surface is the smallest unit in the planar finite element model, the planar finite element model includes multiple surfaces, and the planar finite element model includes an outer contour line and at least one inner contour line; and an edge segment determination module for determining the boundary based on the points... The information and the surface information are used to determine all edge line segments of each surface, resulting in a set of edge line segments; a first partitioning module is used to partition the set of edge line segments into a set of contour line segments and a set of internal line segments based on the repetition frequency of each edge line in the set of edge line segments; a contour line connection module is used to connect the edges in the contour line segments sequentially according to the endpoint numbers of each edge line segment in the set of contour line segments, resulting in a set of contour lines, which includes at least two contour lines; a second partitioning module is used to partition the contour lines in the set of contour lines into outer contour lines and inner contour lines based on the geometric inclusion relationship of each contour line in the set of contour lines.
[0012] Optionally, the edge segment determination module is further configured to: obtain the face vertices of the first unit based on the point information and the face information, wherein the first unit is a face in the planar finite element model; determine multiple initial edge segments of the first unit based on the face vertices of the first unit, wherein each initial edge segment is a line segment obtained by connecting two adjacent face vertices of the first unit, and each initial edge segment is located at the boundary of the first unit; determine whether there are non-endpoint points in each initial edge segment of the first unit based on the point information; for initial edge segments in the first unit that have non-endpoint points, take each pair of adjacent points in the initial edge segment as an edge segment of the first unit according to the arrangement order of the points on the initial edge segment; and take the initial edge segment in the first unit that does not have non-endpoint points as an edge segment of the first unit.
[0013] Optionally, the first division module is further configured to, in the set of edge line segments, if the first edge line segment appears only once, then the first edge line segment belongs to the set of contour line segments, and the first edge line segment is an edge line segment in the set of edge line segments; in the set of edge line segments, if the first edge line segment appears twice, then the first edge line segment belongs to the set of internal line segments.
[0014] Optionally, the contour line connection module is further configured to determine, based on the number of the first endpoint of the second side line segment, a third side line segment connected to the first endpoint from the contour line set, wherein the second side line segment is a side line segment randomly selected from the contour line set, the first endpoint is an endpoint of the second side line segment, and there exists an endpoint in the third side line segment with the same number as the first endpoint of the second side line segment; and connect the first endpoint of the second side line segment to the endpoint in the third side line segment with the same number as the first endpoint of the second side line segment, thereby connecting the second side line segment and the third side line segment.
[0015] Optionally, the second division module is further configured to determine, when the area indicated by the first contour line is completely contained within the area indicated by the second contour line, that the second contour line is an outer contour line, the first contour line is an inner contour line, and the first contour line and the second contour line are different contour lines in the set of contour lines.
[0016] Optionally, the acquisition module is further configured to parse multiple points and the coordinates of each point from the planar finite element model to obtain a first point set; parse multiple faces from the planar finite element model and obtain the coordinates of the face vertices of each face, with all face vertices constituting a second point set; merge the first point set and the second point set to obtain a third point set; merge points in the third point set whose distance is less than the tolerance into a single point to remove duplicates from the third point set; and number the points in the deduplicated third point set to obtain the point information.
[0017] Thirdly, a computer device is also provided, comprising: a memory and a processor, wherein the memory stores at least one computer program, the at least one computer program being loaded and executed by the processor to perform the parameterized automatic identification method for the boundary of the planar finite element model described in the above embodiments.
[0018] Fourthly, a computer-readable storage medium is also provided, wherein at least one computer program is stored in the computer-readable storage medium, the at least one computer program being loaded and executed by a processor, thereby performing the parameterized automatic identification method for the boundary of the planar finite element model described in the above embodiments.
[0019] Fifthly, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the method described in the first aspect.
[0020] The beneficial effects of the technical solutions provided in this disclosure include at least the following: In this embodiment, point and surface information of a planar finite element model are obtained. Point information includes the coordinates and number of each point in the planar finite element model, and surface information includes each surface in the planar finite element model and the correspondence between each surface and its vertices. Based on the point and surface information, all edge segments of each surface are determined, resulting in a set of edge segments. Based on the repetition frequency of each edge in the set of edge segments, the set of edge segments is divided into a set of contour segments and a set of internal segments. Based on the endpoint numbers of each edge segment in the set of contour segments, the edges in the contour segments are connected sequentially according to the endpoint numbers to obtain a set of contour lines, which includes at least two contour lines. Based on the geometric inclusion relationship of each contour line in the set of contour lines, the contour lines in the set of contour lines are divided into outer contour lines and inner contour lines. This enables automated and intelligent identification of the inner and outer contour lines of the planar finite element model, and further enables intelligent application of loads and constraints, extraction of cross-sectional internal forces, and other operations based on these inner and outer contour lines. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 A flowchart illustrating a parametric automatic identification method for the boundary of a planar finite element model provided in an exemplary embodiment of this disclosure is shown. Figure 2 A flowchart illustrating a method for automatic parameterization of the boundary of a planar finite element model provided in another exemplary embodiment of this disclosure is shown. Figure 3 This is a schematic diagram of a planar finite element model provided in an exemplary embodiment of this disclosure; Figure 4 A schematic diagram of the structure of an automatic parameterization identification device for the boundary of a planar finite element model provided in an exemplary embodiment of the present disclosure is shown. Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of this disclosure. Detailed Implementation
[0023] Unless otherwise defined, the technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this disclosure pertains. The terms “first,” “second,” “third,” and similar terms used in this patent application specification and claims do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, the terms “an” or “a” and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms “comprising” or “including” and similar terms mean that the elements or objects preceding “comprising” or “including” encompass the elements or objects listed following “comprising” or “including” and their equivalents, and do not exclude other elements or objects. The terms “connected” or “linked” and similar terms are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect.
[0024] To make the objectives, technical solutions, and advantages of this disclosure clearer, the embodiments of this disclosure will be described in further detail below with reference to the accompanying drawings.
[0025] Figure 1 A flowchart illustrating a parametric automatic identification method for the boundary of a planar finite element model provided in an exemplary embodiment of this disclosure is shown. This method can be executed by a computer device. See also Figure 1 The method includes: In step 101, the point information and surface information of the planar finite element model are obtained.
[0026] Point information includes the coordinates and number of each point in the planar finite element model. Surface information includes each surface in the planar finite element model and the correspondence between each surface and its vertices. Surface vertices are the points in the point information. Each surface corresponds to at least three surface vertices. A surface is the smallest unit in the planar finite element model. The planar finite element model includes multiple surfaces and includes an outer contour line and at least one inner contour line.
[0027] The planar finite element model described in this embodiment is a closed planar finite element model, meaning it necessarily has at least one inner contour line. A non-closed planar finite element model only has an outer contour line and no inner contour line.
[0028] Optionally, step 101 includes the following five steps.
[0029] The first step is to analyze multiple points and the coordinates of each point from the planar finite element model to obtain the first point set.
[0030] The second step is to parse multiple faces from the planar finite element model and obtain the coordinates of the face vertices of each face. All face vertices constitute the second point set.
[0031] In the embodiments of this disclosure, the smallest unit in the planar finite element model is a region formed by connecting multiple line segments, such as a triangle, quadrilateral, pentagon, etc. Therefore, the smallest unit must have face vertices.
[0032] The planar finite element model in this embodiment is, for example, a planar finite element model in SAP2000. In SAP2000, the coordinates of each point and the coordinates of the face vertices of each face in the planar finite element model can be directly obtained.
[0033] The third step is to merge the first point set and the second point set to obtain the third point set.
[0034] The fourth step is to merge points in the third point set whose distance is less than the tolerance into a single point to remove duplicates from the third point set.
[0035] When parsing the first and second point sets, there may be cases where the same point exists in both the first and second point sets, so deduplication is necessary.
[0036] When deduplicating, a certain tolerance is considered (the value of the tolerance is set according to experience). If there are two points in the third set whose distance is less than the tolerance, then these two points are merged.
[0037] The fifth step is to number the points in the third set of points after deduplication to obtain the point information.
[0038] When numbering, it is important to note that the numbers of each point in the third point set must not be the same.
[0039] After obtaining the point information, since multiple faces have been parsed in the second step, the face information has also been obtained (the deduplication in the fourth step may merge some face vertices in the second step with the points in the first point set, but the merged face vertices also exist in the third point set, so the correspondence between faces and face vertices is also determined).
[0040] In step 102, based on point information and surface information, all edge line segments of each surface are determined to obtain a set of edge line segments.
[0041] In step 103, based on the number of repetitions of each edge line in the edge line segment set, the edge line segment set is divided into an outline line segment set and an internal line segment set.
[0042] In step 104, based on the endpoint numbers of each edge line segment in the contour line segment set, the edge lines in the contour line segments are connected sequentially according to the endpoint numbers to obtain the contour line set.
[0043] The set of contour lines includes at least two contour lines; In step 105, based on the geometric inclusion relationship of each contour line in the contour line set, the contour lines in the contour line set are divided into outer contour lines and inner contour lines.
[0044] In this embodiment, point and surface information of a planar finite element model are obtained. Point information includes the coordinates and number of each point in the planar finite element model, and surface information includes each surface in the planar finite element model and the correspondence between each surface and its vertices. Based on the point and surface information, all edge segments of each surface are determined, resulting in a set of edge segments. Based on the repetition frequency of each edge in the set of edge segments, the set of edge segments is divided into a set of contour segments and a set of internal segments. Based on the endpoint numbers of each edge segment in the set of contour segments, the edges in the contour segments are connected sequentially according to the endpoint numbers to obtain a set of contour lines, which includes at least two contour lines. Based on the geometric inclusion relationship of each contour line in the set of contour lines, the contour lines in the set of contour lines are divided into outer contour lines and inner contour lines. This enables automated and intelligent identification of the inner and outer contour lines of the planar finite element model, and further enables intelligent application of loads and constraints, extraction of cross-sectional internal forces, and other operations based on these inner and outer contour lines.
[0045] Figure 2 A flowchart illustrating a method for the parametric automatic identification of the boundary of a planar finite element model, provided in another exemplary embodiment of this disclosure, is shown. This method can be executed by a computer device. See also Figure 2 The method includes: In step 201, the point information and surface information of the planar finite element model are obtained.
[0046] Point information includes the coordinates and number of each point in the planar finite element model. Surface information includes each surface in the planar finite element model and the correspondence between each surface and its vertices. Surface vertices are the points in the point information. Each surface corresponds to at least three surface vertices. A surface is the smallest unit in the planar finite element model. The planar finite element model includes multiple surfaces and includes an outer contour line and at least one inner contour line.
[0047] The details of step 201 are the same as those in step 101 above, and will not be described in detail here.
[0048] In step 202, based on point information and surface information, all edge line segments of each surface are determined to obtain a set of edge line segments.
[0049] Figure 3 This is a schematic diagram of a planar finite element model provided in an exemplary embodiment of this disclosure, which is described below in conjunction with... Figure 3 The embodiments of this disclosure will be described. An edge segment refers to a line segment existing on the edge of a face. An edge segment is not necessarily obtained by connecting two face vertices, because there may be other points between two face vertices. Figure 3 In the diagram, red numbers represent face numbers, and black numbers represent point numbers. For example... Figure 3 As shown, face 3 has a total of 4 vertices, namely points 7, 8, 9, and 10. Between points 7 and 8, there are points 60 and 59. In this embodiment, [a, b] represents a line segment, where a and b are the numbers of the two endpoints of the line segment. The two endpoints do not have a sequential relationship; that is, [a, b] and [b, a] are the same line segment. Therefore, the edge segments of face 3 should include the three edge segments [8, 60], [60, 59], and [59, 7].
[0050] Based on the above ideas, step 202 may optionally include steps a to e.
[0051] Step a: Based on point information and surface information, obtain the face vertices of the first unit.
[0052] The first element is a surface in a planar finite element model. Given that the point and surface information are known, the vertices of the first element's surface are also known.
[0053] Step b: Determine multiple initial edge segments of the first unit based on the face vertices of the first unit.
[0054] The initial edge line segment is the line segment obtained by connecting two adjacent face vertices of the first unit (adjacent here means adjacent on the edge of the first unit), and each initial edge line segment is located at the boundary of the first unit.
[0055] by Figure 3 Taking face 3 as an example, face 3 has a total of 4 vertices, namely points 7, 8, 9, and 10. In the edge of the first unit, points 7 and 8 are adjacent, points 8 and 10 are adjacent, points 9 and 10 are adjacent, and points 7 and 9 are adjacent. Therefore, face 3 can obtain a total of 4 initial edge line segments, namely [7,8], [8,10], [9,10], and [7,9]. In addition, it is obvious that points 7 and 10 are not adjacent in the edge of the first unit, and the line segment formed by connecting points 7 and 10 passes through face 3 but is not located at the edge of face 3. Therefore, the line segment formed by connecting points 7 and 10 does not belong to the initial edge line segments.
[0056] Step c: Based on the point information, determine whether there are non-endpoint points in each initial edge line segment of the first unit.
[0057] Since the point information contains the position of each point, and given that each initial edge segment is known, and the positions of the two endpoints of each initial edge segment are also known, it is easy to determine whether there are any non-endpoint points in each initial edge segment.
[0058] For example, given the positions of points 7 and 8, a function for the initial edge segment [7,8] can be established. If a point in the point information satisfies this function, then that point exists within the initial edge segment [7,8]. In this way, all points in the point information that satisfy the function of the initial edge segment [7,8] can be found, such as points 7, 8, 60, and 59; among these points, points 60 and 59 are non-endpoints. That is, the initial edge segment [7,8] is an initial edge segment containing non-endpoint points, requiring step d.
[0059] Step d: For an initial edge segment in the first unit that contains non-endpoint points, each pair of adjacent points in the initial edge segment is taken as an edge segment of the first unit according to the order of the points on the initial edge segment.
[0060] The points on the initial edge line segment are arranged in order according to the direction of the line segment, for example, starting from one endpoint and sorting them one by one towards the other endpoint.
[0061] Taking the initial edge line segment [7,8] as an example, step d is explained. There are a total of four points in the initial edge line segment [7,8]: point 7, point 8, point 60, and point 59. The order of the points on the initial edge line segment is determined starting from one endpoint. For example, starting from point 7 and moving towards point 8, the order of the points in the initial edge line segment [7,8] is: point 7, point 59, point 60, and point 8. Starting from point 8 and moving towards point 7, the order of the points in the initial edge line segment [7,8] is: point 8, point 60, point 59, and point 7.
[0062] In any given arrangement, each pair of adjacent points forms a line segment. Taking the arrangement of points in the initial line segment [7,8] as points 7, 59, 60 and 8 as an example, in this arrangement, points 7 and 59 are adjacent, points 59 and 60 are adjacent, and points 60 and 8 are adjacent. Therefore, there are a total of three line segments in the initial line segment [7,8], namely [8,60], [60,59] and [59,7].
[0063] Step e: For the initial edge segment in the first unit that does not contain any non-endpoint points, the initial edge segment is used as an edge segment of the first unit.
[0064] If an initial edge segment in the first unit contains only endpoints and no non-endpoints, then the initial edge segment is a complete segment and can be directly used as an edge segment of the first unit.
[0065] Depending on whether there are non-endpoint points in each initial edge line segment of the first unit, the initial edge line segments of the first unit are processed by step d or step e to obtain all edge line segments of the first unit.
[0066] By processing each face using steps a to e as described above, the edge segments of each face can be obtained. These edge segments are then stored in the same set, which is called the edge segment set. It should be noted that edge segments in the edge segment set can be repeated. For example, if the edge segments of face 31 include [8, 60], and the edge segments of face 3 also include [8, 60], then the edge segment set contains two edge segments [8, 60], representing the edge segments of face 3 and face 31 respectively.
[0067] In step 203, based on the number of repetitions of each edge line in the edge line segment set, the edge line segment set is divided into an outline line segment set and an internal line segment set.
[0068] Optionally, for the first edge segment, step 203 includes the following two cases. Wherein, the first edge segment is an edge segment in the set of edge segments.
[0069] Case 1: If the first edge segment appears only once in the set of edge segment segments, then the first edge segment belongs to the set of contour segment segments.
[0070] In the second case, if the first edge segment appears twice in the set of edge segments, then the first edge segment belongs to the set of internal segments.
[0071] In addition, if the set of edge segments contains three or more edge segments, it indicates that the program has an error and needs to be exited with an error message and re-executed from step 201.
[0072] In the second case, if the first edge line segment appears only twice, it means that the first edge line segment belongs to two different surfaces, that is, the first edge line segment is the intersection line between the two surfaces. This indicates that the first edge line segment is a line segment inside the planar finite element model. Therefore, the first edge line segment belongs to the set of internal line segments at this time.
[0073] Corresponding to the second case, for the first case, if the first edge segment appears only once, it means that the first edge segment belongs to only one surface. That is, the first edge segment is not the intersection of two surfaces, indicating that the first edge segment is not a line segment inside the planar finite element model, but belongs to the contour line segment of the planar finite element model. Therefore, in this case, the first edge segment belongs to the set of contour line segments.
[0074] For all edge line segments in the edge line segment set except for the first edge line segment, they can be processed in the same way as the first edge line segment, thus dividing the edge line segment set into the contour line segment set and the internal line segment set.
[0075] When there is no intersection between the inner and outer contour lines of the planar finite element model, for multiple edge line segments in the contour line segment set, it is necessary to count the number of each line segment endpoint. Each number can only appear twice. If a number appears more than twice (such as once or three times), it indicates that the program has an error and needs to be exited and re-executed from step 201.
[0076] In step 204, based on the endpoint numbers of each edge line segment in the contour line segment set, the edge lines in the contour line segments are connected sequentially according to the endpoint numbers to obtain the contour line set.
[0077] The set of contour lines includes at least two contour lines.
[0078] Optionally, for any edge segment in the set of contour segments, the following two steps are used to determine another edge segment connected to that edge segment.
[0079] The first step is to determine the third side line segment connected to the first endpoint from the contour line set based on the number of the first endpoint of the second side line segment.
[0080] The second side line segment is a side line segment randomly selected from the set of contour lines. The first endpoint is an endpoint of the second side line segment. In the third side line segment, there is an endpoint with the same number as the first endpoint of the second side line segment.
[0081] The second step is to connect the first endpoint of the second side line segment with the endpoint of the third side line segment that has the same number as the first endpoint of the second side line segment, thereby connecting the second side line segment with the third side line segment.
[0082] The essence of the above two sides is to connect the points with the same number but located on different line segments in sequence. Since the number of the endpoint of each line segment in the set of contour line segments can only appear twice, for any endpoint of any line segment in the set of contour line segments, there must exist one and only one endpoint with the same number, and the endpoint with the same number belongs to another line segment that is different from the line segment.
[0083] by Figure 3 Taking the planar finite element model as an example, for this planar finite element model, two contour lines can be obtained from the contour line set, and the endpoints involved in the contour lines are arranged in chronological order. These two contour lines are: [1,2,5,6,53,7,9,11,12,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,1], where both endpoints of the contour line are 1, indicates that the starting and ending points of the contour line are both points 1, meaning that the contour line is a closed line.
[0084] [3,4,52,50,48,46,44,42,40,38,36,34,32,30,28,26,24,22,20,18,16,14,10,8,58,3] Similarly, the fact that both endpoints of this contour line are 3 indicates that the starting point and ending point of the contour line are both point 3, meaning that the contour line is a closed line.
[0085] In step 205, based on the geometric inclusion relationship of each contour line in the contour line set, the contour lines in the contour line set are divided into outer contour lines and inner contour lines.
[0086] Optionally, step 205 includes: if the area indicated by the first contour line is completely contained within the area indicated by the second contour line, determining that the second contour line is the outer contour line, the first contour line is the inner contour line, and the first and second contour lines are different contour lines in the set of contour lines.
[0087] Since the planar finite element model in this embodiment of the present disclosure has only one outer contour line, it is only necessary to use the above method to determine the outer contour line in the contour line set, and the other contour lines in the contour line set other than the outer contour line are naturally the inner contour lines.
[0088] The advantages of this invention are: it can intelligently identify the inner and outer contours of a planar structure simply by reading the point and surface information from the finite element model; it does not require pre-setting the geometric equations of the shape and can be applied to planar finite element models of any shape. In the case of a tunnel planar finite element model, the inner and outer contours extracted by this invention can be used for subsequent intelligent design of the tunnel structure, such as load and constraint application and internal force extraction, effectively improving modeling efficiency and model accuracy.
[0089] The following are device embodiments of this application. For details not described in detail in the device embodiments, please refer to the above method embodiments.
[0090] Figure 4 A schematic diagram of the structure of an automatic parameterization identification device for the boundary of a planar finite element model provided in an exemplary embodiment of this disclosure is shown. See also Figure 4The parameterized automatic identification device 400 for the boundary of the planar finite element model includes: an acquisition module 401, an edge line segment determination module 402, a first division module 403, a contour line connection module 404, and a second division module 405.
[0091] The acquisition module 401 is used to acquire point information and surface information of the planar finite element model. The point information includes the coordinates and number of each point in the planar finite element model. The surface information includes each surface in the planar finite element model and the correspondence between each surface and the surface vertex. The surface vertex is the point in the point information. Each surface corresponds to at least three surface vertices. A surface is the smallest unit in the planar finite element model. The planar finite element model includes multiple surfaces. The planar finite element model includes an outer contour line and at least one inner contour line. The edge segment determination module 402 is used to determine all edge segments of each face based on point information and face information, and obtain the edge segment set. The first partitioning module 403 is used to partition the edge line segment set into an outline line segment set and an internal line segment set based on the number of repetitions of each edge line in the edge line segment set; The contour line connection module 404 is used to connect the edges in the contour line segments sequentially according to the endpoint numbers of each edge line segment in the contour line segment set, so as to obtain a contour line set, which includes at least two contour lines. The second partitioning module 405 is used to divide the contour lines in the contour line set into outer contour lines and inner contour lines based on the geometric inclusion relationship of each contour line in the contour line set.
[0092] Optionally, the edge segment determination module 402 is further configured to: obtain the face vertices of the first unit based on point information and surface information, wherein the first unit is a face in the planar finite element model; determine multiple initial edge segments of the first unit based on the face vertices of the first unit, wherein the initial edge segments are line segments obtained by connecting two adjacent face vertices of the first unit, and each initial edge segment is located at the boundary of the first unit; determine whether there are non-endpoint points in each initial edge segment of the first unit based on the point information; for initial edge segments in the first unit that have non-endpoint points, take each pair of adjacent points in the initial edge segment as an edge segment of the first unit according to the arrangement order of the points on the initial edge segment; and take the initial edge segments in the first unit that do not have non-endpoint points as an edge segment of the first unit.
[0093] Optionally, the first division module 403 is further configured to, in the set of edge line segments, if the first edge line segment appears only once, then the first edge line segment belongs to the set of outline line segments and the first edge line segment is an edge line segment in the set of edge line segments; in the set of edge line segments, if the first edge line segment appears twice, then the first edge line segment belongs to the set of internal line segments.
[0094] Optionally, the contour line connection module 404 is further configured to determine, based on the number of the first endpoint of the second side line segment, a third side line segment connected to the first endpoint from the contour line set, wherein the second side line segment is a side line segment randomly selected from the contour line set, the first endpoint is an endpoint of the second side line segment, and there exists an endpoint in the third side line segment with the same number as the first endpoint of the second side line segment; and connect the first endpoint of the second side line segment to the endpoint in the third side line segment with the same number as the first endpoint of the second side line segment, thereby connecting the second side line segment and the third side line segment.
[0095] Optionally, the second division module 405 is further configured to determine, when the area indicated by the first contour line is completely contained within the area indicated by the second contour line, that the second contour line is an outer contour line, the first contour line is an inner contour line, and the first contour line and the second contour line are different contour lines in the set of contour lines.
[0096] Optionally, the acquisition module 401 is further configured to parse multiple points and the coordinates of each point from the planar finite element model to obtain a first point set; parse multiple faces from the planar finite element model and obtain the coordinates of the face vertices of each face, with all face vertices constituting a second point set; merge the first point set and the second point set to obtain a third point set; merge points in the third point set whose distance is less than the tolerance into the same point to remove duplicates from the third point set; and number the points in the deduplicated third point set to obtain point information.
[0097] It should be noted that the parametric automatic identification device for the boundary of a planar finite element model provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the parametric automatic identification device for the boundary of a planar finite element model provided in the above embodiments and the parametric automatic identification method for the boundary of a planar finite element model belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0098] The module division in this embodiment is illustrative and represents only one logical functional division. In actual implementation, other division methods are possible. Furthermore, the functional modules in the various embodiments of this disclosure can be integrated into a single processor, exist as separate physical entities, or be integrated into a single module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0099] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a terminal device (which may be a personal computer, mobile phone, or communication device, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0100] Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of this disclosure. For example... Figure 5 As shown, the computer device 500 includes a processor 501 and a memory 502.
[0101] Processor 501 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 501 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 501 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 501 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 501 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0102] The memory 502 may include one or more computer-readable storage media, which may be non-transitory. The memory 502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 502 is used to store at least one instruction, which is executed by the processor 501 to implement the parameterized automatic identification method for the boundary of a planar finite element model provided in this disclosure.
[0103] Those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on the computer device 500, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0104] This disclosure also provides a non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a processor of a computer device, the computer device is able to execute the parameterized automatic identification method for the boundary of a planar finite element model provided in this disclosure.
[0105] This disclosure also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the parameterized automatic identification method for the boundary of a planar finite element model provided in this disclosure.
[0106] The above description is merely an optional embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the protection scope of this disclosure.
Claims
1. A method for parametric automatic identification of the boundary of a planar finite element model, characterized in that, The method includes: Obtain point information and surface information of a planar finite element model. The point information includes the coordinates and number of each point in the planar finite element model. The surface information includes each surface in the planar finite element model and the correspondence between each surface and its vertices. The vertices are the points in the point information. Each surface corresponds to at least three vertices. A surface is the smallest unit in the planar finite element model. The planar finite element model includes multiple surfaces and includes an outer contour line and at least one inner contour line. Based on the point information and the surface information, all edge line segments of each surface are determined to obtain the edge line segment set; Based on the number of repetitions of each edge line in the edge line segment set, the edge line segment set is divided into an outline line segment set and an internal line segment set; Based on the endpoint number of each edge line segment in the contour line segment set, the edge lines in the contour line segment are connected sequentially according to the endpoint number to obtain a contour line set, which includes at least two contour lines. Based on the geometric inclusion relationship of each contour line in the contour line set, the contour lines in the contour line set are divided into outer contour lines and inner contour lines.
2. The method according to claim 1, characterized in that, Based on the point information and the surface information, all edge line segments of each surface are determined to obtain a set of edge line segments, including: Based on the point information and the surface information, the face vertices of the first unit are obtained, where the first unit is a face in the planar finite element model; Based on the face vertices of the first unit, multiple initial edge line segments of the first unit are determined. The initial edge line segments are line segments obtained by connecting two adjacent face vertices of the first unit, and each initial edge line segment is located at the boundary of the first unit. Based on the point information, determine whether there are non-endpoint points in each initial edge line segment of the first unit; For an initial edge line segment in the first unit that contains non-endpoint points, each pair of adjacent points in the initial edge line segment is taken as an edge line segment of the first unit according to the arrangement order of the points on the initial edge line segment. For an initial edge segment in the first unit that does not contain any non-endpoint points, the initial edge segment is taken as an edge segment of the first unit.
3. The method according to claim 1, characterized in that, The step of dividing the edge segment set into an outline segment set and an internal segment set based on the number of repetitions of each edge line in the edge segment set includes: If the first edge line segment appears only once in the set of edge line segments, then the first edge line segment belongs to the set of contour line segments, and the first edge line segment is an edge line segment in the set of edge line segments. If the first edge segment appears twice in the set of edge segments, then the first edge segment belongs to the set of internal segments.
4. The method according to claim 1, characterized in that, The process involves connecting the edges of the contour line segments sequentially according to the endpoint numbers of each edge line segment in the contour line segment set to obtain the contour line set, which includes: Based on the number of the first endpoint of the second side line segment, a third side line segment connected to the first endpoint is determined from the set of contour lines. The second side line segment is a side line segment randomly selected from the set of contour lines. The first endpoint is an endpoint of the second side line segment. There is an endpoint in the third side line segment with the same number as the first endpoint of the second side line segment. Connect the first endpoint of the second side line segment to the endpoint of the third side line segment that has the same number as the first endpoint of the second side line segment, thereby connecting the second side line segment and the third side line segment.
5. The method according to claim 1, characterized in that, The step of dividing the contour lines in the contour line set into outer contour lines and inner contour lines based on the geometric inclusion relationship of each contour line in the contour line set includes: When the area indicated by the first contour line is completely contained within the area indicated by the second contour line, the second contour line is determined to be the outer contour line, the first contour line is determined to be the inner contour line, and the first contour line and the second contour line are different contour lines in the set of contour lines.
6. The method according to claim 1, characterized in that, The acquisition of point and surface information of the planar finite element model includes: Multiple points and the coordinates of each point are analyzed from the planar finite element model to obtain the first point set; Multiple faces are analyzed from the planar finite element model, and the coordinates of the face vertices of each face are obtained. All face vertices constitute a second point set. Merge the first point set and the second point set to obtain the third point set; Points in the third point set whose distance is less than the tolerance are merged into a single point to remove duplicates from the third point set. The points in the deduplicated third point set are numbered to obtain the point information.
7. A parametric automatic identification device for the boundary of a planar finite element model, characterized in that, The device includes: The acquisition module is used to acquire point information and surface information of the planar finite element model. The point information includes the coordinates and number of each point in the planar finite element model. The surface information includes each surface in the planar finite element model and the correspondence between each surface and its vertices. The vertices are the points in the point information. Each surface corresponds to at least three vertices. A surface is the smallest unit in the planar finite element model. The planar finite element model includes multiple surfaces and includes an outer contour line and at least one inner contour line. The edge line segment determination module is used to determine all edge line segments of each face based on the point information and the face information, so as to obtain a set of edge line segments; The first partitioning module is used to partition the set of edge line segments into a set of outline line segments and a set of internal line segments based on the number of repetitions of each edge line in the set of edge line segments. The contour line connection module is used to connect the edges of the contour line segments sequentially according to the endpoint numbers of each edge line segment in the contour line segment set to obtain a contour line set, wherein the contour line set includes at least two contour lines. The second partitioning module is used to partition the contour lines in the contour line set into outer contour lines and inner contour lines based on the geometric inclusion relationship of each contour line in the contour line set.
8. A computer device, characterized in that, The computer device includes a memory and a processor, wherein the memory stores at least one computer program, which is loaded and executed by the processor to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the method described in any one of claims 1 to 6.