Hole-shaft matching tolerance compensation method considering structural deformation
Through finite element analysis and intelligent algorithms (DBSCAN-Kmeans, improved Alpha-Shape, PCA and incremental nearest neighbor search), the hole characteristic deformation is identified and compensated, solving the problem of hole-axis fit tolerance compensation and improving the assembly of aviation equipment. efficiency and performance.
Patent Information
- Application Number
- CN202410567845.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-09-27
AI Technical Summary
In the aviation industry, the structural deformation characteristic tolerance of hole-shaft fit is often ignored or not effectively compensated, resulting in assembly difficulties and performance degradation, making it difficult to achieve efficient assembly with existing optimization methods.
Finite element analysis is used combined with the fusion clustering algorithm of DBSCAN and Kmeans, improved Alpha-Shape algorithm and principal component analysis (PCA), and incremental nearest neighbor search algorithm to carry out hole feature identification and tolerance compensation to ensure high-precision assembly Interface data reconstruction and tolerance adjustment.
Efficient and accurate hole feature tolerance compensation is achieved, reducing rework costs and time, and improving assembly efficiency and performance of high-end equipment.
Smart Images

Figure CN118709463A
Abstract
Description
Technical Field
[0001] The invention relates to the field of aviation equipment manufacturing, and in particular to a hole-shaft matching tolerance compensation method taking structural deformation into consideration. Background Art
[0002] In the assembly process of equipment with high precision requirements in the aviation industry, holes are usually one of the key elements involved in the construction of hole-shaft matching. The size and shape accuracy of hole features directly affect the stability and performance of the overall structure. Due to the easy deformation under force and environmental changes, the tolerance of the size and actual position of the hole feature may deviate from the dimensional tolerance and form and position tolerance in the design stage. If this deviation is not compensated, it may lead to assembly difficulties, structural weaknesses, and ultimately overall performance degradation. At present, a large number of studies focus on the deformation prediction and process optimization of the overall assembly of the structure. This optimization usually determines the optimization target and changes various modifiable parameters recklessly, even the layout and number of holes and other parameters given by the designer. These optimizations are often difficult to achieve in engineering, so the embodiments of the present invention focus on the hole itself from a local perspective, and achieve high-performance assembly by compensating for its deformation feature tolerance. The method provided by the present invention does not require design changes, greatly reduces the time, economic and technical costs caused by secondary rework, and provides a new efficient and feasible assembly method for manufacturing personnel. Summary of the invention
[0003] In view of the above problems in the prior art, the present application proposes a hole-shaft matching tolerance compensation method that takes structural deformation into consideration. The main technical problem to be solved is that the deformation characteristic tolerance of components is often ignored or there is no effective compensation method under the background of high-end equipment high-performance assembly requirements. The implementation process is as follows: Figure 1 As shown, specifically including the following:
[0004] First, finite element analysis is performed on the deformation of the holes of structural parts to obtain the deformation data and cloud map of the hole features. By writing Python scripts, the ODB files generated by the finite element analysis of the Abaqus software are post-processed and secondary developed to realize the deformation data extraction of large engineering components. This step provides data support for the subsequent hole feature tolerance compensation.
[0005] Although detailed data on the deformation of target components at different assembly stages have been obtained from the finite element analysis results, these data usually contain information on multiple sets of hole features on different connection end faces, and the deformation characteristics of each hole may be different. Therefore, before tolerance compensation and specific analysis, each independent hole needs to be identified to ensure the highest accuracy and reliability, so as to:
[0006] On the second aspect, considering the advantages that the DBSCAN algorithm can effectively detect the density distribution difference in the feature space and the Kmeans algorithm is suitable for identifying the difference of the position in the feature space, the embodiment of the present invention proposes a fusion clustering algorithm combining DBSCAN and Kmeans, which is called the hole feature recognition method based on DBSCAN-Kmeans. First, the DBSCAN algorithm is used to remove noise points and perform preliminary clustering; then the Kmeans algorithm is used to cluster the target recognition data, and the determined end face interval data points are clustered into K clusters. The total mean square error is used as the loss function of this clustering problem, and it is iterated to assign different clusters to which point pi belongs and update the cluster center accordingly until the iteration is completed. Different clusters of the iteration results are marked with different hole feature numbers to distinguish multiple groups of hole features on different connection end faces, and finally the hole features of different areas of large engineering components are obtained.
[0007] Under the premise of structural deformation, a key prerequisite for effective tolerance adjustment is to reconstruct the geometric features of the deformed hole. Reconstructing the deformed surface can provide accurate assembly interface data, which is also the basis for optimizing the fit between parts. In order to accurately capture and simulate these deformations and realize the reconstruction of complex structures from point cloud data, the embodiment of the present invention improves the Alpha-Shape algorithm, so that:
[0008] Thirdly, the α (Alpha) parameter is adjusted to control a rolling ball to complete the rolling process in the point cloud, thereby determining the final structural contour. In addition, this parameter directly affects the shape density and boundary roughness, allowing the algorithm to adapt to point sets with different densities and irregular distributions, extract the boundaries of disordered point sets, and the appropriate α value can generate a boundary that can capture the geometric details of the hole and eliminate the influence of noise, and reconstruct the corresponding graphics.
[0009] Furthermore, the improved Alpha-shape algorithm of the embodiment of the present invention adopts the theoretical basis of Delaunay triangulation. For any 0≤α≤∞, the boundary of the α shape It is a subset S of the Delaunay triangulation, and the triangulated DT(S') is used as the constituent surface of the α shape.
[0010] Based on the visualization results of the above feature reconstruction, a deformation group hole feature tolerance compensation analysis method is needed, so:
[0011] Fourthly, point cloud data registration is performed based on principal component analysis (PCA). The registration process ensures that data sets from different perspectives can be correctly aligned in a unified reference frame. The registration process not only provides a unified coordinate system, but also helps to identify and align the main directions of each hole. In this way, high-dimensional data is processed by dimensionality reduction to extract the main feature directions of the data. The main axis of each hole can be accurately determined, thereby maintaining the integrity of its geometric and topological features during the reconstruction process, and also providing an initialization direction for the tolerance compensation algorithm.
[0012] Furthermore, by finely processing the point cloud data, it is possible to accurately locate and create a cylindrical point cloud in three-dimensional space with adaptively adjustable size and shape, which can be used as a fastener simulation dummy. By detecting the collision and contact between the simulated dummy and the deformed inner wall of the hole during assembly, and measuring the size, shape and position of the corresponding hole and pin fit at this time, the original tolerance can be compensated to achieve the basic shape and position requirements required for the fit. Therefore, an embodiment of the present invention proposes a tolerance compensation algorithm based on incremental nearest neighbor search, aiming to provide a systematic method to implement the operation of a specific tolerance compensation process.
[0013] The hole-shaft matching tolerance compensation method considering structural deformation provided by the present invention has at least the following beneficial effects compared with the prior art:
[0014] The present invention provides a new method for compensating the tolerance of deformation characteristics of high-end equipment structural parts based on intelligent algorithms. The method proposes a fusion clustering algorithm combining DBSCAN and Kmeans, improves Alpha-Shape and proposes a new tolerance compensation strategy. The new method is proposed in the context of high-end equipment assembly, and its efficiency and accuracy are higher than traditional methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The present invention will be described in more detail below based on embodiments and with reference to the accompanying drawings, wherein:
[0016] Figure 1 It is the specific implementation process of the deformation feature tolerance compensation method;
[0017] Figure 2 It is the specific implementation process of extracting the simulation result data of structural parts assembly deformation;
[0018] Figure 3 It is the specific implementation process of the hole feature recognition method based on DBSCAN-Kmeans;
[0019] Figure 4 This is the calculation flow chart of the classic Alpha-shape algorithm;
[0020] Figure 5It is the idea of improving the Alpha-shape algorithm;
[0021] Figure 6 This is the specific process of the method for determining the main direction of hole features based on PCA. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] In order to make the technical route of the embodiment of the present invention easier to understand and better reflect the difference from the existing assembly deviation analysis method, the basic technical route in the prior art is briefly described below.
[0024] In the prior art, preliminary analysis is usually performed by analyzing historical data, performing simulations or experiments. If the deformation does not have a significant impact on the assembly quality under the current tolerance, the error is compensated by adding gaskets or filing. If it has a significant impact on the assembly quality, secondary processing may be required or the unqualified product may be directly scrapped.
[0025] like Figure 2 As shown, the specific process of extracting the structural component assembly deformation simulation result data involved in the first aspect of the present invention includes the following steps:
[0026] Step 101, import all functions and classes required for processing ODB files;
[0027] Step 102, open the specified ODB file, which contains the data generated during the entire structural finite element analysis process. Specifically, select the corresponding analysis step to extract deformation data, obtain the overall node of the target component, extract the displacement data from the final deformation state and filter out the set belonging to the target component;
[0028] Step 103, defining the deformation factor as 1, and maintaining the original deformation scale;
[0029] Step 104, traverse each node in the target component, obtain its initial coordinates, then calculate the deformed coordinates according to the displacement data, and add the calculated deformed coordinates to the list;
[0030] Step 105, saving the acquired coordinates and their corresponding deformations into a text file.
[0031] like Figure 3As shown, the specific process of the hole feature recognition algorithm based on DBSCAN-Kmeans involved in the second aspect of the present invention includes the following steps:
[0032] Step 201: Use the DBSCAN algorithm to remove noise points and perform preliminary clustering. i , use formula (1) to calculate point p i and all others are considered from p i Eps distance between density-reachable points:
[0033]
[0034] Among them, m represents the number of features of the data point, p ia and p ja Represents the data point p on the ath feature i and p j If p i If the Eps neighborhood contains at least minPts points, then p i As the core point, the members of the cluster are expanded based on it;
[0035] Step 202, the target recognition data is then clustered using the Kmeans algorithm, the determined end face interval data points are clustered into K clusters, and the mean vector of each cluster data point is calculated using formula (2):
[0036]
[0037] Among them, N k is the kth cluster C k The number of samples;
[0038] Step 203, calculate the total mean square error of all clusters:
[0039]
[0040] The total mean square error is used as the loss function of this clustering problem, and the points p are assigned iteratively. i The different clusters to which the components belong are updated accordingly with cluster centers until the iteration is completed. Different clusters of the iteration results are marked with numbers of different hole features to distinguish multiple groups of hole features on different connection end faces, and finally the hole features in different areas of the component are obtained.
[0041] Furthermore, in order to more clearly illustrate the idea of implementing the above method based on Python language, a pseudo code of the hole feature recognition algorithm based on DBSCAN-Kmeans is provided, as shown in Table 1.
[0042] Table 1
[0043]
[0044]
[0045] like Figure 4 As shown in FIG. 1 , it is a flow chart of the calculation of the classic Alpha-shape algorithm. The idea of the improved Alpha-shape algorithm involved in the third aspect of the present invention is as follows: Figure 5 As shown, it includes the following steps:
[0046] Step 301, performing feature recognition based on the DBSCAN-Kmeans clustering algorithm proposed in the second aspect, and using the preprocessed results as input data for the Alpha-shape algorithm;
[0047] Step 302, adaptively assign α values, that is, apply different α values to point cloud data in different areas. Dynamically adjust the parameters according to the distribution, density and geometric characteristics of the points in each cluster, so that each cluster can set an α value individually according to the complexity of its internal structure, thereby capturing local shape features more carefully. For example, for areas with steep edges or complex surfaces, a smaller α value can be selected to maintain details; for areas that are relatively flat or have less prominent features, a larger α value can be selected to improve computational efficiency. The α value is dynamically adjusted nonlinearly in each iteration according to the following formula:
[0048]
[0049] Among them, K 0 and ρ 0 are the original curvature and original density respectively, while K and ρ are the curvature and density sets of all points, α 0 is the initialized α value. This adaptive α value allocation strategy helps to reduce unnecessary noise and artifacts while maintaining the continuity and consistency of the overall shape, thereby optimizing the performance of the algorithm while ensuring the quality of reconstruction;
[0050] Step 303 introduces two parameters: the average curvature radius of the local surface and the upper limit of the neighboring points. The two parameters control the neighborhood size and the number of neighboring points for the normal vector estimation of each point. By adjusting these parameters, the estimation quality of the normal vector can be improved. Reasonable normal vector estimation can enhance the perception of the local features of the point set by the Alpha-Shape algorithm, thereby retaining more details during the reconstruction process, especially in those areas with significant anisotropic features. The following adaptive mechanism is adopted:
[0051]
[0052] Where R 0 and N 0Represents the initial average curvature radius and the upper limit of neighboring points respectively. The initial search radius increases according to the local curvature to capture more details in areas with complex surfaces or rich features. At the same time, it also decreases according to the local density to avoid N points in dense point clouds. 0 The above adaptive mechanism ensures that in areas with sparse point clouds, the search radius is increased to include more neighboring points, while in areas with dense point clouds, the search radius is reduced to focus on local features. The adaptive adjustment of the maximum number of neighbors is to increase or decrease the number of neighbors considered as needed in different areas. In flatter areas with low curvature, increasing the maximum number of neighbors can improve the accuracy of local averaging; conversely, in areas with high curvature, reducing the maximum number of neighbors can avoid unnecessary complexity and focus on key features. Finally, rounding is performed to ensure that the updated N adapt is an integer.
[0053] Furthermore, in order to more clearly illustrate the idea of implementing the above method based on Python language, a pseudo code of the improved Alpha-shape deformation group hole feature reconstruction algorithm is provided, as shown in Table 2.
[0054] Table 2
[0055]
[0056]
[0057] Furthermore, in order to visualize the features of the deformed hole group, the 3D data visualization module of the Open3D open source library is used to realize the processing, 3D reconstruction, geometric analysis, and 3D data visualization and interaction of the wheel hub component end face hole point cloud dataset.
[0058] like Figure 6 As shown, the specific process of the method for determining the main direction of hole features based on PCA according to the fourth aspect of the present invention comprises the following steps:
[0059] Step 401: for two sets of point cloud collections Determine the centroid coordinates of the two sets of point clouds, which are the average positions of all points in the point sets X and Y, respectively:
[0060]
[0061] Step 402: Calculate the covariance matrix of the two point sets. The covariance matrix is determined by the position difference of each point in the point cloud relative to the centroid, and can reflect the distribution of the point cloud in different directions.
[0062]
[0063] According to equations (6) and (7), we can get the following equation:
[0064]
[0065] Among them, (x m ,y m ,z m ) is the point cloud coordinate, and is the center coordinate of the point cloud, and C can also be obtained Y the specific form of
[0066] Step 403: Singular value decomposition (SVD) is used to decompose the covariance matrix C X and C Y Decomposition can be performed to obtain the corresponding eigenvectors. The purpose of this step is to find the main directions of the point cloud set X and Y. SVD decomposition converts the covariance matrix into eigenvectors and eigenvalues, which represent the magnitude of the main direction and the importance of the direction respectively:
[0067]
[0068] Step 404: calculate and obtain the main direction of each point cloud cluster.
[0069] The specific process of the tolerance compensation algorithm based on incremental nearest neighbor search involved in the fourth aspect of the present invention comprises the following steps:
[0070] Step 501, the main direction obtained in step 404 is used as the axis of the cylinder (simulating the bolt), the unit vectors perpendicular to the axis are recorded as u and v, and the adaptive change function of the main parameters of the cylinder is set to the following form:
[0071]
[0072] Where n is the number of iterations, N is the total number of points on the circumference, the position of a point on the cylinder is p, i is the index of the current point, and all indexes are traversed from 0 to N-1. The surface points of the cylinder change based on the initial point as the radius is updated until the assembly requirements are met.
[0073] Step 502, by analyzing the geometric model of the simulated cylinder and the assembly target group hole, the potential interference area is calculated, and the collision process can be detected by judging the intersection of the two geometric bodies. The actual accelerated collision detection process is implemented using the spatial data structure KD (K-Dimensional) tree. Each node of the KD tree represents a division on a dimension, so that all child nodes appear on one side of the division plane or on the other side. The construction process needs to select a dimension and a division value from the data points, and divide all points into two groups. The value of all points in one group on this dimension is less than the division value, and the points in the other group are greater than or equal to the division value. Then, recursively construct sub-KD trees for these two groups of points respectively until the stop condition is met, the depth of the tree reaches a preset value, and the number of points under the node is less than a certain threshold.
[0074] Step 503, perform a search operation to find the nearest neighbor of a point, starting from the root node of the KD tree, and recursively search downward until a leaf node is reached. Then, by backtracking and checking whether there are closer points on the child nodes on the other side, the nearest neighbor point is finally found. The above process is applied to the interference collision detection process of the hole-pin fit. The target point cloud set is the point set on the surface of the simulated cylinder and the point set on the inner wall surface of the reconstructed deformation group hole. For each surface point, use the KD tree to perform a nearest neighbor search to find the closest point in the original point cloud. If the distance between the surface point and its nearest neighbor point is less than a certain threshold, it means that the two are very close or in contact, and it is considered that a collision has occurred. For any surface point p of the simulated cylinder, c Any surface point p with the mounting hole h , this process can be expressed as follows:
[0075] ||p c -p h ||<λ (11)
[0076] Where λ is the contact judgment threshold. Once interference is detected, the algorithm will measure the position and size of the simulated bolt in the current state. Then the corresponding assembly hole shape and size tolerances need to be updated, that is, tolerance compensation measures need to be taken to eliminate interference.
[0077] Although the present invention is described herein with reference to specific embodiments, it should be understood that these embodiments are merely examples of the principles and applications of the present invention. It should therefore be understood that many modifications may be made to the exemplary embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the appended claims. It should be understood that the various dependent claims and features described herein may be combined in a manner different from that described in the original claims. It should also be understood that features described in conjunction with individual embodiments may be used in other described embodiments.
Claims
1. A hole-shaft matching tolerance compensation method considering structural deformation, characterized in that: include, S1. Perform finite element analysis on the deformation of the holes of the structural parts, obtain the deformation data and cloud map of the hole features, and perform post-processing secondary development on the ODB files generated by the finite element analysis of the Abaqus software by writing Python scripts to realize the data extraction of the structural parts assembly deformation simulation results; S2. Use the DBSCAN algorithm to remove noise points and perform preliminary clustering; then use the Kmeans algorithm to cluster the target recognition data, and cluster the determined end face interval data points into K clusters; use the total mean square error as the loss function of this clustering problem, iterate, assign different clusters to which point pi belongs and update the cluster center accordingly until the iteration is completed, and mark different clusters of the iteration results with different hole feature numbers to distinguish multiple groups of hole features on different connection end faces, and finally obtain the hole features of different areas of the structural parts; S3, adjust the α parameter to control the rolling ball to complete the rolling process in the point cloud, so as to determine the final structure contour; for any 0≤α≤∞, the boundary of the α shape It is a subset S of Delaunay triangulation, and the triangulated DT(S') is used as the constituent surface of the α shape; S4. Point cloud data registration is performed based on principal component analysis. The registration process ensures that data sets from different perspectives can be correctly aligned in a unified reference frame.
2. The hole-shaft matching tolerance compensation method considering structural deformation according to claim 1 is characterized in that: By finely processing the point cloud data, a cylindrical point cloud with adaptive size and shape is accurately located in three-dimensional space and created as a simulated dummy. The collision and contact between the simulated dummy and the deformed inner wall of the hole during the assembly process is detected, and the size, shape and position of the corresponding hole and pin fit are measured. The original tolerance is compensated to achieve the basic shape and position requirements required for the fit.
3. The hole-shaft matching tolerance compensation method considering structural deformation according to claim 1 is characterized in that: The specific process of extracting the structural parts assembly deformation simulation result data includes the following steps: Step 101, import all functions and classes required for processing ODB files; Step 102, open the specified ODB file, which contains the data generated during the entire structural finite element analysis process; specifically select the corresponding analysis step for which deformation data is to be extracted, obtain the overall node of the target component, extract the displacement data from the final deformation state and filter out the set belonging to the target component; Step 103, defining the deformation factor as 1, and maintaining the original deformation scale; Step 104, traverse each node in the target component, obtain its initial coordinates, then calculate the deformed coordinates according to the displacement data, and add the calculated deformed coordinates to the list; Step 105, saving the acquired coordinates and their corresponding deformations into a text file.
4. The hole-shaft matching tolerance compensation method considering structural deformation according to claim 1 is characterized in that: The specific process of the hole feature recognition algorithm includes the following steps: Step 201: Use the DBSCAN algorithm to remove noise points and perform preliminary clustering. i , use formula (1) to calculate point p i and all others are considered from p i Eps distance between density-reachable points: Among them, m represents the number of features of the data point, p ia and p ja Represents the data point p on the ath feature i and p j If p i If the Eps neighborhood contains at least minPts points, then p i As the core point, the members of the cluster are expanded based on it; Step 202, the target recognition data is then clustered using the Kmeans algorithm, the determined end face interval data points are clustered into K clusters, and the mean vector of each cluster data point is calculated using formula (2): Among them, N k is the kth cluster C k The number of samples; Step 203, calculate the total mean square error of all clusters: The total mean square error is used as the loss function of this clustering problem, and the points p are assigned iteratively. i The different clusters to which the components belong are updated accordingly with cluster centers until the iteration is completed. Different clusters of the iteration results are marked with numbers of different hole features to distinguish multiple groups of hole features on different connection end faces, and finally the hole features in different areas of the component are obtained.
