A variable arc length based geometric edge mesh generation method and system

By using a geometric edge mesh generation method based on variable arc length and employing a gradual advancement method to calculate the reference values ​​of intermediate nodes, the problem that existing line mesh generation cannot quickly perform variable arc length mesh generation based on geometric edge dimensions is solved, thus achieving more efficient simulation calculations.

CN116738798BActive Publication Date: 2026-11-20PERA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310799814.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-03
Publication Date
2026-11-20
Estimated Expiration
2043-07-03

AI Technical Summary

Technical Problem

Existing line mesh generation algorithms cannot quickly generate meshes of varying arc lengths based on geometric edge dimensions, affecting the efficiency and quality of simulation calculations.

Method used

A geometric edge mesh generation method based on variable arc length is adopted. By obtaining the mesh division parameters of the geometric edge, the reference value of the intermediate node on the geometric edge is calculated using the gradual advancement method, and the coordinates of the mesh point are calculated based on the reference value, so as to achieve a good transition of the line mesh size.

Benefits of technology

A more reasonably sized line mesh was generated, which improved the efficiency and effectiveness of simulation calculations, reduced mesh redundancy, and improved the accuracy of calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116738798B_ABST
    Figure CN116738798B_ABST
Patent Text Reader

Abstract

The present application relates to a kind of variable arc length based on geometric edge grid generation method and system, belong to grid generation technical field, solve the problem that the line grid generation in prior art cannot be quickly carried out variable arc length grid division according to the size of geometric edge, affect simulation calculation efficiency and quality.Problems.The method comprises the following steps: obtaining the grid division parameter of geometric edge;The grid division parameter includes initial step, size growth rate and grid node number;Based on the grid division parameter, the reference value of intermediate node on geometric edge is calculated using gradual change advancing method;Based on the reference value of intermediate node, the coordinates of grid point on geometric edge are calculated, and line grid is generated.Variable arc length line grid is quickly generated, and the efficiency and effect of simulation calculation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of mesh generation technology, and in particular to a method and system for generating geometric edge meshes based on variable arc length. Background Technology

[0002] Meshing is the process of discretizing the internal region of a geometric model into a set of simple elements to generate a mesh model. It forms the basis for subsequent simulation calculations and analyses based on numerical simulation methods such as the Finite Element Method (FEM) and the Finite Volume Method (FMM). A typical mesh generation algorithm follows a process of "line mesh generation - surface mesh generation - volume mesh generation." That is, before generating surface meshes, the geometric edges in the geometric model need to be discretized into a set of mesh edges using line mesh generation. While discretizing geometric edges using methods such as equal arc lengths and equal intervals is simple to implement, it is difficult to achieve a good transition in dimensions based on the shape of the geometric edges, making it impossible to generate meshes with better dimensions, thus affecting the efficiency and quality of subsequent simulation calculations. Summary of the Invention

[0003] Based on the above analysis, the embodiments of the present invention aim to provide a method and system for generating geometric edge meshes based on variable arc length, in order to solve the problem that existing line mesh generation cannot quickly perform variable arc length mesh division according to the geometric edge size, which affects the efficiency and quality of simulation calculation.

[0004] On one hand, embodiments of the present invention provide a method for generating geometric edge meshes based on variable arc lengths, comprising the following steps:

[0005] Obtain the meshing parameters for the geometric edges; the meshing parameters include the initial step size, the size growth rate, and the number of mesh nodes;

[0006] The reference values ​​of intermediate nodes on the geometric edges are calculated using the gradual advancement method based on the aforementioned mesh division parameters.

[0007] The coordinates of the grid points on the geometric edge are calculated based on the reference value of the intermediate node to generate a line mesh.

[0008] Based on a further improvement of the above method, the gradual advancement method is used to calculate the reference value of the intermediate node by gradually advancing from both ends of the geometric edge towards the middle.

[0009] Based on a further improvement of the above method, the initial step size includes the initial step size at the start end and the initial step size at the end end; the size growth rate includes the size growth rate at the start end and the size growth rate at the end end.

[0010] A further improvement to the above method involves calculating reference values ​​for intermediate nodes on geometric edges using a gradual progression method based on the mesh generation parameters, including:

[0011] S21. Set the current starting index to zero and the current ending index to N-1, where N represents the number of grid nodes;

[0012] S22. Calculate the current advanceable length at the starting end, the current advanceable length at the ending end, and the average length of the uncalculated segment, respectively.

[0013] S23. If the average length of the uncalculated segments is less than the advanceable length at the starting end and the advanceable length at the current ending end, then calculate the reference value of the intermediate nodes based on the total length of the uncalculated segments and the number of uncalculated intermediate nodes; otherwise, if the advanceable length at the current starting end is less than or equal to the advanceable length at the current ending end, then increment the current starting end index by 1 and calculate the reference value of the intermediate node corresponding to the current starting end index; if the advanceable length at the current starting end is greater than the advanceable length at the current ending end, then decrement the current ending end index by 1 and calculate the reference value of the intermediate node corresponding to the current ending end index.

[0014] S24. If the difference between the current end index and the current start index is greater than 1, return to step S22; otherwise, the calculation ends and the reference value of the intermediate reference point is obtained.

[0015] Based on further improvements to the above method, according to formula H l =ts[iL]·(R1-1)+L1 calculates the current advanceable length from the starting point; according to the formula H r =(L e -ts[iR])·(R2-1)+L2 calculates the current end-point advanceable length; where iL represents the current starting end index, iR represents the current end-point index, L1 represents the initial step size of the starting end, L2 represents the initial step size of the end-point, R1 represents the starting end size growth rate, R2 represents the end-point size growth rate, ts[iL] represents the reference value of the intermediate node corresponding to the current starting end index, ts[iR] represents the reference value of the intermediate node corresponding to the current end-point index, and Le represents the length of the geometric edge.

[0016] Based on the further improvement of the above method, the average length u of the uncalculated segment is calculated according to the formula u=(ts[iR]-ts[iL]) / (iR-iL), where iL represents the current starting index, iR represents the current ending index, ts[iL] represents the reference value of the intermediate node corresponding to the current starting index, and ts[iR] represents the reference value of the intermediate node corresponding to the current ending index.

[0017] A further improvement to the above method involves calculating reference values ​​for intermediate nodes based on the total length of uncalculated segments and the number of uncalculated intermediate nodes. This includes calculating the reference value for each uncalculated intermediate node using the following formula:

[0018]

[0019] Where iL represents the current starting index, iR represents the current ending index, ts[iL] represents the reference value of the intermediate node corresponding to the current starting index, and ts[iR] represents the reference value of the intermediate node corresponding to the current ending index. <i<iR。

[0020] Based on the further improvement of the above method, according to the formula ts[iL]=ts[iL-1]+H l Calculate the reference value of the intermediate node corresponding to the current starting index; according to the formula ts[iR]=ts[iR+1]+H r Calculate the reference value of the intermediate node corresponding to the current terminal index; where iL represents the current starting index, iR represents the current terminal index, ts[iL-1] represents the reference value of the intermediate node corresponding to index iL-1, ts[iR+1] represents the reference value of the intermediate node corresponding to index iR+1, and H... l H represents the length that can be advanced from the current starting point. r This indicates the current advanceable length at the end point.

[0021] A further improvement to the above method involves calculating the coordinates of grid points on the geometric edge based on the reference value of the intermediate node, including:

[0022] The reference values ​​of the intermediate nodes are normalized based on the length of the geometric edges;

[0023] The coordinates of the grid points corresponding to each intermediate node on the geometric edge are calculated based on the expression of the geometric edge and the reference values ​​of the normalized intermediate nodes.

[0024] On the other hand, embodiments of the present invention provide a geometric edge mesh generation system based on variable arc length, comprising the following modules:

[0025] The parameter acquisition module is used to acquire the meshing parameters of the geometric edges; the meshing parameters include the initial step size, the size growth rate, and the number of mesh nodes;

[0026] The reference value calculation module is used to calculate the reference value of the intermediate node on the geometric edge based on the mesh division parameters using the gradual advancement method;

[0027] The line mesh generation module is used to calculate the coordinates of the mesh points on the geometric edges based on the reference values ​​of the intermediate nodes, and generate a line mesh.

[0028] Compared with existing technologies, this invention calculates reference values ​​for intermediate nodes on geometric edges using a gradual advancement method based on the meshing parameters of the geometric edges. The coordinates of mesh points on the geometric edges are then calculated based on these reference values. This allows for automatic adjustment of the mesh size according to the shape of the geometric edges, achieving a smooth transition in line mesh size. This rapid generation of discrete line meshes with unequal sizes from the geometric edges results in a more rationally sized line mesh, improving the efficiency and effectiveness of simulation calculations. Furthermore, the above-mentioned technical solutions can be combined to achieve more optimal combinations. Other features and advantages of this invention will be set forth in the following description, and some advantages may become apparent from the description or be learned by practicing the invention. The objects and other advantages of this invention are realized and obtained through the description and accompanying drawings, which are particularly pointed out. Attached Figure Description

[0029] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Throughout the drawings, the same reference numerals denote the same parts.

[0030] Figure 1 This is a flowchart of a method for generating geometric edge meshes based on variable arc length according to an embodiment of the present invention;

[0031] Figure 2 This is a block diagram of a geometric edge mesh generation system based on variable arc length, according to an embodiment of the present invention. Detailed Implementation

[0032] Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not intended to limit the scope of the present invention.

[0033] A specific embodiment of the present invention discloses a method for generating geometric edge meshes based on variable arc length, such as... Figure 1 As shown, it includes the following steps:

[0034] S1. Obtain the meshing parameters for the geometric edges; the meshing parameters include the initial step size, the size growth rate, and the number of mesh nodes;

[0035] S2. Based on the meshing parameters, the reference values ​​of the intermediate nodes on the geometric edges are calculated using the gradual advancement method;

[0036] S3. Calculate the coordinates of the grid points on the geometric edge based on the reference value of the intermediate node, and generate a line grid.

[0037] This invention calculates reference values ​​for intermediate nodes on geometric edges using a gradual advancement method based on the meshing parameters of the geometric edges. The coordinates of mesh points on the geometric edges are then calculated based on these reference values. This allows for automatic adjustment of the mesh size according to the shape of the geometric edges, achieving a smooth transition in the line mesh size. This process quickly generates discretized line meshes of unequal sizes for the geometric edges, resulting in a more rationally sized line mesh and improving the efficiency and effectiveness of simulation calculations.

[0038] To generate better line meshes, a gradual advancement method is used during implementation to calculate the reference values ​​of intermediate nodes by gradually advancing from both ends of the geometric edge towards the middle, thereby reducing mesh redundancy and improving the efficiency of subsequent calculations.

[0039] During implementation, in order to advance from both ends to the middle, the initial step size in the mesh generation parameters includes the initial step size L1 at the start end and the initial step size L2 at the end end; the size growth rate includes the size growth rate R1 at the start end and the size growth rate R2 at the end end.

[0040] During implementation, the meshing parameters can be set by the user, and these parameters may also include the maximum mesh size. If both the initial step size at the start and end are less than the maximum mesh size, the line meshing algorithm performs bidirectional discretization. That is, based on the initial step size parameters at both ends, the mesh size increases proportionally to the mesh growth rate at both ends as it approaches the center region of the geometric edge. If only one end has an initial step size parameter set less than the maximum mesh size for that geometric edge, the end with the initial step size less than the maximum mesh size will discretize towards the center with a continuously increasing mesh size, while the other end will automatically discretize with the maximum mesh size. If both initial mesh step sizes at both ends are greater than or equal to the maximum mesh size, both ends will perform curve discretization with a length equal to the maximum mesh size. Therefore, once the meshing parameters are set, the geometric edge discretization method can be determined based on these parameters.

[0041] After obtaining the mesh generation parameters, the reference values ​​of intermediate nodes on the geometric edges are calculated using the gradual advancement method based on these parameters. Specifically, step S2 includes:

[0042] S21. Set the current starting index to zero and the current ending index to N-1, where N represents the number of grid nodes;

[0043] S22. Calculate the current advanceable length at the starting end, the current advanceable length at the ending end, and the average length of the uncalculated segment, respectively.

[0044] S23. If the average length of the uncalculated segments is less than the advanceable length at the starting end and the advanceable length at the current ending end, then calculate the reference value of the intermediate nodes based on the total length of the uncalculated segments and the number of uncalculated intermediate nodes; otherwise, if the advanceable length at the current starting end is less than or equal to the advanceable length at the current ending end, then increment the current starting end index by 1 and calculate the reference value of the intermediate node corresponding to the current starting end index; if the advanceable length at the current starting end is greater than the advanceable length at the current ending end, then decrement the current ending end index by 1 and calculate the reference value of the intermediate node corresponding to the current ending end index.

[0045] S24. If the difference between the current end index and the current start index is greater than 1, return to step S22; otherwise, the calculation ends and the reference value of the intermediate node is obtained.

[0046] The process of calculating the reference value of the intermediate node is to continuously advance from both ends of the geometric topology edge towards the middle, while accumulating the already discretized curve length, and finally complete the calculation of the coordinates of each node of the entire geometric topology edge mesh.

[0047] In implementation, firstly, an array `ts` of length N is defined to store the reference value corresponding to each node. The reference value represents the distance from the intermediate node to the starting endpoint along the geometric edge. The first grid point of the geometric edge is the starting endpoint, i.e., `ts[0] = 0`, and the last grid point is the ending endpoint, i.e., `ts[N-1] = L`. e L e Indicates the length of the geometric side.

[0048] Initially, the current starting index iL is set to 0, and the current ending index iR is set to N-1, which facilitates calculation from both sides towards the middle.

[0049] First, consider the grid size starting from the initial point. It's clear that, starting from the first node, the distance between the i-th node and the previous node is...

[0050]

[0051] Starting from the initial point, the grid size increases proportionally. When the grid size reaches its maximum, the spacing between grid nodes is limited to the maximum grid size.

[0052] Suppose that the distance between the i-th node and the 0th node at one end of the geometric edge (e.g., the starting end) is D. i Then when the node spacing is less than the maximum mesh size L max Sometimes:

[0053]

[0054] Therefore, the distance from the (i+1)th node to its preceding node (the i-th node) is:

[0055]

[0056] Therefore, in step S22, according to formula H l =ts[iL]·(R1-1)+L1 can be used to calculate the current advanceable length from the starting point; according to the formula H r =(L e The current end-point advanceable length can be calculated using -ts[iR])·(R2-1)+L2; where iL represents the current starting end index, iR represents the current ending end index, L1 represents the initial step size of the starting end, L2 represents the initial step size of the ending end, R1 represents the starting end size growth rate, R2 represents the ending end size growth rate, ts[iL] represents the reference value of the intermediate node corresponding to the current starting end index, ts[iR] represents the reference value of the intermediate node corresponding to the current ending end index, and Le represents the length of the geometric edge.

[0057] The average length of the discrete segment is not yet calculated, i.e., the average length u of the segment is not yet calculated. It can be calculated using the formula u=(ts[iR]-ts[iL]) / (iR-iL), where iR-iL represents the number of intermediate nodes calculated, and ts[iR]-ts[iL] represents the length of the undiscrete curve.

[0058] After calculating the possible advance lengths at both ends, it is necessary to determine from which end to advance towards the middle.

[0059] If the average length of the uncalculated segments is less than the advanceable lengths at the starting and ending points, it indicates that the remaining intermediate nodes (i.e., nodes between indices iL and iR) cannot be allocated according to the continuously increasing grid size. Therefore, instead of increasing the grid size based on the size growth rate, the reference value of the intermediate nodes is calculated based on the total length of the uncalculated segments and the number of uncalculated intermediate nodes. In implementation, the reference value of each uncalculated intermediate node is calculated using an average division method. Specifically, the reference value of the intermediate node with index i∈(iL,iR) is calculated using the following formula:

[0060]

[0061] Where iL represents the current starting index, iR represents the current ending index, ts[iL] represents the reference value of the intermediate node corresponding to the current starting index, and ts[iR] represents the reference value of the intermediate node corresponding to the current ending index. <i<iR。

[0062] If the uncalculated average length of the segment is greater than or equal to the advanceable length of the starting end or the advanceable length of the preceding end, then the end with the smaller advanceable length is selected and advanced towards the middle. That is, if the advanceable length of the current starting end is less than or equal to the advanceable length of the current ending end, then the current starting end index is incremented by 1, and the reference value of the intermediate node corresponding to the current starting end index is calculated; if the advanceable length of the current starting end is greater than the advanceable length of the current ending end, then the current ending end index is decremented by 1, and the reference value of the intermediate node corresponding to the current ending end index is calculated.

[0063] During implementation, according to the formula ts[iL]=ts[iL-1]+H l Calculate the reference value of the intermediate node corresponding to the current starting index; according to the formula ts[iR]=ts[iR+1]+H r Calculate the reference value of the intermediate node corresponding to the current terminal index; where iL represents the current starting index, iR represents the current terminal index, ts[iL-1] represents the reference value of the intermediate node corresponding to index iL-1, ts[iR+1] represents the reference value of the intermediate node corresponding to index iR+1, and H... l H represents the length that can be advanced from the current starting point. r This indicates the current advanceable length at the end point.

[0064] By recommending reference values ​​for calculating intermediate nodes by varying the arc length from both ends towards the middle, the mesh division is more closely aligned with the shape of the geometric edges, resulting in a more reasonable mesh division, reduced subsequent computation, and improved computational efficiency.

[0065] After calculating the reference values ​​of the intermediate nodes, the coordinates of the grid points on the geometric edges are calculated based on the reference values ​​of the intermediate nodes. Specifically, step S3 includes:

[0066] S31. Normalize the reference values ​​of intermediate nodes based on the length of the geometric edges;

[0067] S32. Calculate the coordinates of the grid points corresponding to each intermediate node on the geometric edge based on the expression of the geometric edge and the reference values ​​of the normalized intermediate nodes.

[0068] To facilitate calculation, the reference values ​​of the intermediate nodes are first normalized according to the length of the geometric edges, i.e., based on... Convert the reference value to a value between 0 and 1.

[0069] The normalized reference value can be seen as the proportion of the distance from the corresponding intermediate node to the starting point of the geometric edge to the total length of the geometric edge.

[0070] The coordinates of each intermediate node are calculated based on the expression of the geometric edges and the normalized reference values ​​of each intermediate node. During implementation, the geometric edges and the normalized reference values ​​of the intermediate nodes can be input into the geometry engine, which then calculates the coordinates of the corresponding intermediate nodes. Connecting adjacent intermediate nodes quickly yields a mesh with more appropriately sized geometric edges.

[0071] This invention calculates reference values ​​for intermediate nodes on geometric edges using a gradual advancement method based on the meshing parameters of the geometric edges. The coordinates of mesh points on the geometric edges are then calculated based on these reference values. This allows for automatic adjustment of the mesh size according to the shape of the geometric edges, achieving a smooth transition in the line mesh size. This process quickly generates discretized line meshes of unequal sizes for the geometric edges, resulting in a more rationally sized line mesh and improving the efficiency and effectiveness of simulation calculations.

[0072] A specific embodiment of the present invention discloses a geometric edge mesh generation system based on variable arc length, such as... Figure 2 As shown, the system includes the following modules:

[0073] The parameter acquisition module is used to acquire the meshing parameters of the geometric edges; the meshing parameters include the initial step size, the size growth rate, and the number of mesh nodes;

[0074] The reference value calculation module is used to calculate the reference value of the intermediate node on the geometric edge based on the mesh division parameters using the gradual advancement method;

[0075] The line mesh generation module is used to calculate the coordinates of mesh points on the geometric edges based on the reference values ​​of the intermediate nodes, and generate a line mesh. The above method and system embodiments are based on the same principle, and their related aspects can be mutually referenced, achieving the same technical effect. For specific implementation processes, please refer to the foregoing embodiments, which will not be repeated here.

[0076] Those skilled in the art will understand that all or part of the processes of the methods described in the above embodiments can be implemented by a computer program instructing related hardware, and the program can be stored in a computer-readable storage medium. The computer-readable storage medium may be a disk, optical disk, read-only memory, or random access memory, etc.

[0077] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for generating geometric edge meshes based on variable arc length, characterized in that, Includes the following steps: Obtain the meshing parameters for the geometric edges; the meshing parameters include the initial step size, the size growth rate, and the number of mesh nodes; the initial step size includes the initial step size at the start end and the initial step size at the end end; the size growth rate includes the size growth rate at the start end and the size growth rate at the end end. Based on the aforementioned meshing parameters, a method of gradually advancing from both ends of the geometric edge towards the middle is used to calculate the reference value of the middle node on the geometric edge; The coordinates of the grid points on the geometric edge are calculated based on the reference values ​​of the intermediate nodes to generate a line grid; The reference values ​​for the intermediate nodes on the geometric edge are calculated using a gradual progression method from both ends of the geometric edge towards the middle, based on the meshing parameters. This includes: S21. Set the current starting index to zero and the current ending index to N-1, where N represents the number of grid nodes; S22. Calculate the current advanceable length at the starting end, the current advanceable length at the ending end, and the average length of the uncalculated segment, respectively. S23. If the average length of the uncalculated segments is less than the advanceable length at the starting end and the advanceable length at the current ending end, then calculate the reference value of the intermediate nodes based on the total length of the uncalculated segments and the number of uncalculated intermediate nodes; otherwise, if the advanceable length at the current starting end is less than or equal to the advanceable length at the current ending end, then increment the current starting end index by 1 and calculate the reference value of the intermediate node corresponding to the current starting end index; if the advanceable length at the current starting end is greater than the advanceable length at the current ending end, then decrement the current ending end index by 1 and calculate the reference value of the intermediate node corresponding to the current ending end index. S24. If the difference between the current end index and the current start index is greater than 1, return to step S22; otherwise, the calculation ends and the reference value of the intermediate node is obtained. According to the formula Calculate the advanceable length from the current starting point; according to the formula Calculate the current advanceable length of the end point; where iL represents the current starting point index, iR represents the current end point index, L1 represents the initial step size of the starting point, L2 represents the initial step size of the end point, R1 represents the starting point size growth rate, R2 represents the end point size growth rate, ts[iL] represents the reference value of the intermediate node corresponding to the current starting point index, ts[iR] represents the reference value of the intermediate node corresponding to the current end point index, and Le represents the length of the geometric edge.

2. The method for generating geometric edge meshes based on variable arc length according to claim 1, characterized in that, According to the formula Calculate the average length u of the uncalculated segment, where iL represents the current starting index, iR represents the current ending index, ts[iL] represents the reference value of the intermediate node corresponding to the current starting index, and ts[iR] represents the reference value of the intermediate node corresponding to the current ending index.

3. The method for generating geometric edge meshes based on variable arc length according to claim 1, characterized in that, Calculate reference values ​​for intermediate nodes based on the total length of uncalculated segments and the number of uncalculated intermediate nodes. This includes calculating a reference value for each uncalculated intermediate node according to the following formula: ; Where iL represents the current starting index, iR represents the current ending index, ts[iL] represents the reference value of the intermediate node corresponding to the current starting index, and ts[iR] represents the reference value of the intermediate node corresponding to the current ending index. <i<iR。 4. The method for generating geometric edge meshes based on variable arc length according to claim 1, characterized in that, According to the formula Calculate the reference value of the intermediate node corresponding to the current starting index; According to the formula Calculate the reference value of the intermediate node corresponding to the current terminal index; where iL represents the current starting index, iR represents the current terminal index, ts[iL-1] represents the reference value of the intermediate node corresponding to index iL-1, ts[iR+1] represents the reference value of the intermediate node corresponding to index iR+1, and H... l H represents the length that can be advanced from the current starting point. r This indicates the current advanceable length at the end point.

5. The method for generating geometric edge meshes based on variable arc length according to claim 1, characterized in that, Calculating the coordinates of grid points on the geometric edge based on the reference value of the intermediate node includes: The reference values ​​of the intermediate nodes are normalized based on the length of the geometric edges; The coordinates of the grid points corresponding to each intermediate node on the geometric edge are calculated based on the expression of the geometric edge and the reference values ​​of the normalized intermediate nodes.

6. A geometric edge mesh generation system based on variable arc length, characterized in that, Includes the following modules: The parameter acquisition module is used to acquire the meshing parameters of the geometric edges; the meshing parameters include the initial step size, the size growth rate, and the number of mesh nodes; the initial step size includes the initial step size at the start end and the initial step size at the end end; the size growth rate includes the size growth rate at the start end and the size growth rate at the end end. The reference value calculation module is used to calculate the reference value of the middle node on the geometric edge based on the mesh division parameters using a gradual progression method from both ends of the geometric edge to the middle. The line mesh generation module is used to calculate the coordinates of the mesh points on the geometric edges based on the reference values ​​of the intermediate nodes, and generate a line mesh. The reference values ​​for the intermediate nodes on the geometric edge are calculated using a gradual progression method from both ends of the geometric edge towards the middle, based on the meshing parameters. This includes: S21. Set the current starting index to zero and the current ending index to N-1, where N represents the number of grid nodes; S22. Calculate the current advanceable length at the starting end, the current advanceable length at the ending end, and the average length of the uncalculated segment, respectively. S23. If the average length of the uncalculated segments is less than the advanceable length at the starting end and the advanceable length at the current ending end, then calculate the reference value of the intermediate nodes based on the total length of the uncalculated segments and the number of uncalculated intermediate nodes; otherwise, if the advanceable length at the current starting end is less than or equal to the advanceable length at the current ending end, then increment the current starting end index by 1 and calculate the reference value of the intermediate node corresponding to the current starting end index; if the advanceable length at the current starting end is greater than the advanceable length at the current ending end, then decrement the current ending end index by 1 and calculate the reference value of the intermediate node corresponding to the current ending end index. S24. If the difference between the current end index and the current start index is greater than 1, return to step S22; otherwise, the calculation ends and the reference value of the intermediate node is obtained. According to the formula Calculate the advanceable length from the current starting point; according to the formula Calculate the current advanceable length of the end point; where iL represents the current starting point index, iR represents the current end point index, L1 represents the initial step size of the starting point, L2 represents the initial step size of the end point, R1 represents the starting point size growth rate, R2 represents the end point size growth rate, ts[iL] represents the reference value of the intermediate node corresponding to the current starting point index, ts[iR] represents the reference value of the intermediate node corresponding to the current end point index, and Le represents the length of the geometric edge.

Citation Information

Patent Citations

  • Non-standard part load analysis method and system based on dynamic mesh generation

    CN111539080A

  • Image generation program and apparatus

    JP2012014587A