A reliability analysis method and device for a nuclear power numerical control wheel groove milling machine

By combining finite element analysis and virtual environment mapping with particle swarm optimization, the dynamic space occupancy of the cutting tool in the CNC wheel groove milling machine for nuclear power plants is accurately calculated, which solves the problem of high interference risk during high-speed tool movement and improves the safety and reliability of path planning.

CN123158992APending Publication Date: 2026-11-24SICHUAN COLLEGE OF ARCHITECTURAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611357261.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies cannot accurately determine the actual space occupancy caused by dynamic deformation and sway due to mass distribution and overhang during high-speed motion when automatically storing and retrieving cutting tools on nuclear power plant wheel groove milling machines, resulting in a high risk of interference.

Method used

By constructing a dynamic envelope surface through finite element analysis and filling it with voxels, and combining virtual environment mapping and particle swarm optimization, potential interference points are accurately calculated. Trajectory smoothing correction and dynamic envelope volume generation are then performed to optimize motion parameters and reduce interference risk.

Benefits of technology

This improves the safety and reliability of path planning for CNC wheel groove milling machines used in nuclear power plants, and reduces the risk of interference caused by dynamic deformation and swaying.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158992A_ABST
    Figure CN123158992A_ABST
Patent Text Reader

Abstract

This invention relates to the field of CNC machine tool technology, and discloses a reliability analysis method and apparatus for CNC wheel groove milling machines used in nuclear power plants. The method includes acquiring the tool mass distribution, overhang length, and oscillation deformation; performing voxel filling to obtain dynamic occupancy voxels; analyzing interference regions based on the dynamic occupancy voxels to obtain potential interference points; performing spatial coordinate transformation based on the potential interference points to obtain precise envelope boundaries; performing risk clustering analysis based on the precise envelope boundaries to obtain hazard assessment results and high-risk sections; performing spatial occupancy analysis based on the hazard assessment results and high-risk sections to obtain extended occupancy ranges; performing trajectory smoothing correction based on the extended occupancy ranges to obtain optimized trajectories; calculating trajectory matching degrees based on the optimized trajectories to obtain final interference indices; and performing collision detection based on the final interference indices to obtain interference-free access configurations. This method can reduce the interference risk during the machining process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of CNC machine tool technology, and in particular to a reliability analysis method and apparatus for CNC wheel groove milling machines used in nuclear power plants. Background Technology

[0002] Currently, industrial control systems face the challenge of accurately depicting the dynamic space occupancy when automatically storing and retrieving tools on nuclear power plant wheel groove milling machines. Due to uneven mass distribution and long overhangs, the tools experience slight oscillations and deformations during high-speed movement, resulting in actual space occupancy exceeding the theoretical static outline. This necessitates not only fully replicating the tool's motion trajectory within the industrial control system but also constructing a dynamic envelope that changes over time based on its physical properties. This is crucial for accurately identifying potential interference and ensuring absolute safety under complex paths.

[0003] In one existing technology, the industrial control system first acquires the standard geometric model of the tool using a 3D scanning device and collects the position data of fixed obstacles between the tool magazine and the spindle. Then, the system simplifies the tool into a rigid body and plans a storage path from the tool magazine to the spindle in offline programming software based on its theoretical dimensions. After the path is generated, the industrial control system calls a static interference detection module to discretize the simplified tool model along the planned path, calculating the spatial distance between the tool model and the obstacle model at each sampling point. When the minimum distance at all sampling points is greater than a preset safety threshold, the system determines that the path is safe and feasible and sends the path command to the servo driver to execute the automatic tool storage and retrieval process. This existing technology uses a simplified theoretical model and static discrete sampling for interference detection, neglecting tool dimensional tolerances, clamping mechanisms, and potential collisions during continuous motion. It cannot reflect the dynamic deformation and oscillation caused by mass distribution and overhang during high-speed motion, resulting in actual space occupation exceeding the theoretical contour.

[0004] Therefore, existing technologies have a high risk of interference. Summary of the Invention

[0005] This invention provides a reliability analysis method and apparatus for CNC wheel groove milling machines used in nuclear power plants, in order to reduce the risk of interference during the machining process.

[0006] Firstly, in order to solve the above-mentioned technical problems, the present invention provides a reliability analysis method for CNC wheel groove milling machines used in nuclear power plants, comprising:

[0007] Obtain the tool mass distribution, overhang length, and oscillation deformation;

[0008] Based on the tool mass distribution and the overhang length, finite element analysis is performed to construct a dynamic envelope surface, and voxelization is performed based on the dynamic envelope surface to obtain dynamically occupied voxels.

[0009] Based on the dynamically occupied voxels, virtual environment mapping is performed to obtain instantaneous voxels, and interference region analysis is performed based on the instantaneous voxels to obtain potential interference points;

[0010] Based on the potential interference points, particle swarm optimization is performed to obtain an optimized posture set, and spatial coordinate transformation is performed based on the optimized posture set to obtain the precise envelope boundary.

[0011] Based on the precise envelope boundary, a mesh reconstruction is performed to obtain a dynamic boundary mesh, and a risk clustering analysis is performed based on the dynamic boundary mesh to obtain the hazard assessment results and high-risk sections.

[0012] Based on the hazard assessment results and the high-risk section, trajectory variation scenarios are generated to obtain a set of variation scenarios. Then, spatial occupancy analysis is performed based on the set of variation scenarios to obtain the extended occupancy range.

[0013] Based on the extended occupancy range and the swing deformation, the overlapping coordinates are filtered based on the fixture overlap judgment to obtain the node to be corrected, and the trajectory is smoothed and corrected based on the node to be corrected to obtain the optimized trajectory.

[0014] Based on the optimized trajectory, a dynamic envelope is generated to obtain a dynamic envelope sequence, and the trajectory matching degree is calculated based on the dynamic envelope sequence to obtain the final interference index.

[0015] Based on the final interference index, motion parameters are optimized to obtain updated motion parameters, and collision detection is performed based on the updated motion parameters to obtain an interference-free access configuration.

[0016] Secondly, the present invention provides a reliability analysis device for a nuclear power plant CNC wheel groove milling machine, comprising:

[0017] The data acquisition module is used to acquire the tool mass distribution, overhang length, and oscillation deformation.

[0018] The filling module is used to perform finite element analysis based on the tool mass distribution and the overhang length, construct a dynamic envelope surface, and perform voxel filling based on the dynamic envelope surface to obtain dynamically occupied voxels;

[0019] The mapping module is used to perform virtual environment mapping based on the dynamically occupied voxels to obtain instantaneous voxels, and to perform interference region analysis based on the instantaneous voxels to obtain potential interference points.

[0020] The transformation module is used to perform particle swarm optimization based on the potential interference points to obtain an optimized posture set, and to perform spatial coordinate transformation based on the optimized posture set to obtain an accurate envelope boundary.

[0021] The assessment module is used to reconstruct the grid based on the precise envelope boundary to obtain a dynamic boundary grid, and to perform risk clustering analysis based on the dynamic boundary grid to obtain the hazard assessment results and high-risk sections.

[0022] The analysis module is used to generate trajectory variation scenarios based on the hazard assessment results and the high-risk section, obtain a set of variation scenarios, and perform space occupancy analysis based on the set of variation scenarios to obtain the extended occupancy range.

[0023] The correction module is used to filter overlapping coordinates based on the expanded occupancy range and the swing deformation amount, obtain the node to be corrected, and perform trajectory smoothing correction based on the node to be corrected to obtain the optimized trajectory.

[0024] The calculation module is used to generate a dynamic envelope based on the optimized trajectory, obtain a dynamic envelope sequence, and calculate the trajectory matching degree based on the dynamic envelope sequence to obtain the final interference index.

[0025] The output module is used to optimize motion parameters based on the final interference index to obtain updated motion parameters, and to perform collision detection based on the updated motion parameters to obtain an interference-free access configuration.

[0026] Compared with the prior art, the present invention has the following beneficial effects:

[0027] (1) This invention maps the tool mass distribution and overhang length into non-uniform mesh elements through finite element analysis and voxel filling, solves the dynamic equation to obtain the nodal displacement vector, and then constructs a dynamic envelope surface and fills it with dynamic occupancy voxels, which truly reflects the swing deformation of the tool under high speed, improves the physical fidelity of the virtual model, and provides an accurate spatial occupancy basis for subsequent interference analysis.

[0028] (2) This invention integrates the dynamic occupancy voxels with the static obstacles in the warehouse through virtual environment mapping, samples instantaneous voxels along the tool movement path, calculates the distance field and marks the interference voxels, combines DBSCAN clustering to obtain potential interference points, and then obtains the optimized posture set through particle swarm optimization iteration, so as to realize the accurate positioning of interference risks and the adaptive adjustment of tool posture, and improve the safety and reliability of path planning.

[0029] (3) This invention generates trajectory variation scenarios and determines the extended occupancy range through Monte Carlo simulation. It combines the swing deformation amount to screen the fixture overlap and smooth the spline to obtain the optimized trajectory. Then, the trajectory matching degree is calculated by Boolean difference set operation between the dynamic envelope sequence and the safety channel. The interference-free access configuration is obtained through PID closed-loop control, reducing the interference risk caused by speed fluctuations and dynamic deformation. Attached Figure Description

[0030] Figure 1 This is a schematic flowchart of a reliability analysis method for a CNC wheel groove milling machine for nuclear power plants, provided in the first embodiment of the present invention.

[0031] Figure 2 This is a schematic diagram of the reliability analysis device for CNC wheel groove milling machines used in nuclear power plants, provided in the second embodiment of the present invention. Detailed Implementation

[0032] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0033] Reference Figure 1 The first embodiment of the present invention provides a reliability analysis method for a CNC wheel groove milling machine for nuclear power plants, comprising the following steps:

[0034] S11, obtain the tool mass distribution, overhang length and oscillation deformation;

[0035] S12, Based on the tool mass distribution and the overhang length, perform finite element analysis to construct a dynamic envelope surface, and fill the dynamic envelope surface with voxels to obtain dynamically occupied voxels;

[0036] S13, based on the dynamically occupied voxels, perform virtual environment mapping to obtain instantaneous voxels, and perform interference region analysis based on the instantaneous voxels to obtain potential interference points;

[0037] S14. Based on the potential interference points, perform particle swarm optimization to obtain an optimized posture set, and perform spatial coordinate transformation based on the optimized posture set to obtain the precise envelope boundary.

[0038] S15. Based on the precise envelope boundary, perform mesh reconstruction to obtain a dynamic boundary mesh, and perform risk clustering analysis based on the dynamic boundary mesh to obtain hazard assessment results and high-risk sections.

[0039] S16. Based on the hazard assessment results and the high-risk section, generate trajectory variation scenarios to obtain a set of variation scenarios, and perform space occupancy analysis based on the set of variation scenarios to obtain the extended occupancy range.

[0040] S17, Based on the extended occupied range and the swing deformation, the overlapping coordinates are filtered based on the fixture overlap judgment to obtain the node to be corrected, and the trajectory is smoothed and corrected based on the node to be corrected to obtain the optimized trajectory.

[0041] S18. Based on the optimized trajectory, a dynamic envelope is generated to obtain a dynamic envelope sequence, and the trajectory matching degree is calculated based on the dynamic envelope sequence to obtain the final interference index.

[0042] S19, based on the final interference index, optimize the motion parameters to obtain updated motion parameters, and perform collision detection based on the updated motion parameters to obtain an interference-free access configuration.

[0043] In step S11, the tool mass distribution, overhang length, and oscillation deformation are obtained.

[0044] Specifically, the tool mass distribution is obtained by consulting tool design drawings or by measuring using a segmented weighing method. It is represented as a sequence of mass values ​​within discrete intervals along the tool axis, reflecting the material density differences in different parts of the tool. The overhang length is measured by the actual distance the tool extends after being clamped by the machine tool spindle, and can be directly read from the tool parameter table of the CNC system or acquired on-site using a laser rangefinder. The oscillation deformation is obtained by querying a pre-established tool dynamic deformation database. This database is built based on multiple high-speed rotation experiments on the same type of tool and the recording of its radial offset data. Each record in the database corresponds to the maximum deformation under a specific rotation speed and mass distribution. In actual use, the corresponding oscillation deformation value is matched from the database based on the current tool mass distribution characteristics and the preset spindle speed. These three variables serve as the initial inputs for subsequent finite element analysis and path planning, providing the necessary physical parameters for constructing a high-fidelity dynamic model.

[0045] In step S12, finite element analysis is performed based on the tool mass distribution and the overhang length to construct a dynamic envelope surface. Voxelization is then performed based on the dynamic envelope surface to obtain dynamically occupied voxels, including:

[0046] Based on the tool mass distribution and the overhang length, a non-uniform finite element mesh is constructed using the advance wavefront method to obtain finite element mesh elements.

[0047] Based on the preset spindle rotation frequency, the centrifugal force field load of the finite element mesh element is calculated, and the dynamic equilibrium equation containing the centrifugal force field load is solved by the direct integration method to obtain the nodal displacement vector.

[0048] Based on the node displacement vector and the finite element mesh element, vector superposition is performed to obtain the updated mesh element;

[0049] Based on the updated mesh cells, a dynamic envelope surface is constructed by performing surface fitting using the moving least squares method.

[0050] Based on the dynamic envelope surface, voxelization is performed using a spatial octree voxelization algorithm to obtain dynamically occupied voxels.

[0051] Specifically, based on the tool mass distribution and overhang length obtained in step S11, a non-uniform finite element mesh is constructed using the advancing wavefront method to obtain finite element mesh elements. The tool mass distribution is used to determine the local density of the mesh division. Regions with drastic mass changes, such as the connection between the tool tip and the tool holder, require smaller element sizes to capture stress concentration. The overhang length is used to determine the geometric range of the tool. The advancing wavefront method starts from the boundary of the tool geometry model and gradually advances inward to generate tetrahedral or hexahedral elements. In each advancing step, the element size is dynamically adjusted according to the local mass value, so that a finer mesh is generated in high-density regions. Finally, a set of finite element mesh elements composed of a large number of nodes and elements is formed. This set completely describes the geometry of the tool and carries the mass inertia parameters of each element.

[0052] Based on the preset spindle rotation frequency, the centrifugal force load on each finite element mesh element is calculated, and the dynamic equilibrium equation containing this load is solved by direct integration to obtain the nodal displacement vector. The preset spindle rotation frequency is determined according to the machine tool machining process specifications, specifically from the cutting parameter table set in the CNC system for different tool and workpiece materials. This parameter table is established through statistical analysis of historical machining experimental data. For each tool type and machining condition, the optimal speed range from multiple experiments is collected, and the median is taken as the preset value. When calculating the centrifugal force, the rotation frequency is first converted to angular velocity, with the conversion relationship being angular velocity equal to the rotation frequency multiplied by twice pi. Then, for each element, its mass value is multiplied by the distance from the centroid of the element to the rotation axis, and then multiplied by the square of the angular velocity to obtain the magnitude of the centrifugal force on that element, with the direction radially outward. The centrifugal forces of all elements are assembled into a global centrifugal force load vector according to the nodal degrees of freedom. The dynamic equilibrium equations describe the relationship between inertial forces, damping forces, elastic forces and external forces. Direct integration methods, such as the Newmark method, are used to advance the time step by step. The equations are solved in each time step to obtain the nodal acceleration, velocity and displacement. Finally, the displacement vector of each node at steady state or at a specific moment is extracted. This vector contains the offset of each node in the three coordinate axes.

[0053] Based on the node displacement vector and the finite element mesh, vector superposition is performed to obtain an updated mesh element. Specifically, the original spatial coordinates of each node are extracted, and the three directional displacement components of the corresponding node in the node displacement vector are added to the corresponding components of the original coordinates, thereby obtaining the new coordinates of the deformed node. After performing the same operation on all nodes, the node positions of the entire finite element mesh are updated, forming an updated mesh element that reflects the elastic deformation of the tool under centrifugal force. This set of elements retains the original element connection relationships, with only the coordinates changing.

[0054] Based on the updated mesh elements, a dynamic envelope surface is constructed by performing surface fitting using the moving least squares method. The implementation of the moving least squares method involves defining a local neighborhood for each node in the updated mesh element, selecting all nodes within this neighborhood as fitting samples, constructing a weighted least squares problem based on polynomial basis functions, and solving this problem to obtain the local surface fitting function for that node. The weight function is determined based on the distance between the sample point and the center point; the closer the distance, the greater the weight. The local fitting functions of all nodes are then combined using a weighted average to form a smooth surface covering the entire tool. This surface is the dynamic envelope surface, which accurately represents the geometric contour of the tool after dynamic deformation.

[0055] Based on the dynamic envelope surface, voxelization is performed using a spatial octree voxelization algorithm to obtain dynamically occupied voxels. The smallest cube bounding box containing the dynamic envelope surface is determined and used as the root node of the octree. Then, each node is recursively divided into eight equal child nodes until the child node size reaches a preset voxel resolution. The preset voxel resolution is determined by balancing accuracy and computational efficiency. Size distribution data of the tool deformation region in historical simulation tasks are collected, and the 5th percentile of its smallest feature size is used as the baseline resolution. Multiple resolution trials are then performed on typical tool models, and the maximum value that can stably detect deformation features and whose computation time is within an acceptable range is selected as the final preset value. For each smallest child node, it is determined whether its corresponding cube space intersects with or is completely enclosed by the dynamic envelope surface. If so, the voxel is marked as occupied; otherwise, it is marked as empty. After traversing all smallest child nodes, all voxel units marked as occupied constitute dynamically occupied voxels.

[0056] In step S13, virtual environment mapping is performed based on the dynamically occupied voxels to obtain instantaneous voxels, and interference region analysis is performed based on the instantaneous voxels to obtain potential interference points, including:

[0057] Based on the dynamically occupied voxels and the preset static obstacles in the warehouse, a virtual scene is constructed to obtain a time-varying virtual environment. The preset tool movement path is sampled at equal intervals through preset time intervals to obtain path sampling points.

[0058] Map the dynamically occupied voxels corresponding to the path sampling points to the time-varying virtual environment to obtain instantaneous voxels;

[0059] Calculate the Euclidean distance from each instantaneous voxel to the nearest obstacle among the static obstacles in the warehouse to obtain the distance field;

[0060] Mark the instantaneous voxels in the distance field whose distances are less than a preset safety distance threshold to obtain the interference voxels;

[0061] Based on the interferometric voxels, spatial clustering is performed using the DBSCAN algorithm to obtain the interference region, and the geometric center coordinates of the interference region are calculated to obtain the potential interference points.

[0062] Specifically, based on the dynamic occupancy voxels obtained in step S12 and the preset static obstacles in the warehouse, a virtual scene is constructed to obtain a time-varying virtual environment. The static obstacles in the warehouse are point cloud data obtained by scanning the actual warehouse environment with a 3D laser scanner, and a 3D geometric model is generated after filtering, denoising, and surface reconstruction. The dynamic occupancy voxels describe the real-time spatial occupancy of the tool during its movement. The virtual scene construction process loads the dynamic occupancy voxels and the static obstacles in the warehouse into the same virtual coordinate system, and performs spatial registration and combination through a 3D graphics engine to form a time-varying virtual environment that can change with time. The preset tool movement path is sampled at equal intervals according to the preset time interval to obtain path sampling points. The tool movement path is the trajectory of the tool center point planned in advance in the CNC system according to the machining process requirements, and its data form is a series of continuous spatial coordinate points. The preset value of the time interval is determined by comprehensively considering the path length and calculation accuracy. The curvature change data of typical paths in historical machining tasks are collected, the arc length corresponding to the minimum curvature radius is statistically analyzed, one-tenth of the arc length is taken as the sampling step size, and then divided by the average feed rate of the path to obtain the time interval. The sampling process starts from the beginning of the path and calculates the position of the tool center point at every time interval, generating a set of path sampling points containing timestamps and spatial coordinates.

[0063] The dynamically occupied voxels corresponding to each path sampling point are mapped to a time-varying virtual environment to obtain instantaneous voxels. The mapping operation involves applying rotation and translation transformations to all voxel units in the dynamically occupied voxels, moving their center points to the sampling point positions, and rotating them according to the theoretical attitude angle of the tool at that point, thereby obtaining the set of spatial voxels actually occupied by the tool at that moment. After performing the above operation on all path sampling points, a series of instantaneous voxels arranged in time are obtained, with each instantaneous voxel corresponding to the spatial occupancy state of the tool at a sampling moment.

[0064] Calculate the Euclidean distance from each instantaneous voxel to the nearest obstacle in the warehouse static obstacle model to obtain the distance field. For each voxel element in the instantaneous voxel, take its center point coordinates, traverse all triangular facets of all obstacle surfaces in the warehouse static obstacle model, calculate the shortest distance from that point to each triangular facet, and take the minimum value among all distances as the distance from that voxel element to the nearest obstacle. After completing the calculation for all voxel elements, obtain a distance field with the same spatial resolution as the instantaneous voxel. Each value in this distance field represents the proximity of the corresponding voxel to the obstacle.

[0065] Interference voxels are obtained by marking instantaneous voxels in the distance field that are less than a preset safe distance threshold. The preset safe distance threshold is determined by statistically analyzing experimental data of tool-obstacle collisions during historical machining processes. Minimum safe clearance data recorded in previous machining processes are collected, and the 5th percentile of these data is used as the baseline threshold. This threshold is then appropriately amplified based on machine tool positioning accuracy and dynamic response error to ultimately determine a fixed value. Voxel units with distances less than this threshold are considered to have interference risk and are marked as interference voxels; other voxels are ignored.

[0066] Based on the interferometric voxels, spatial clustering is performed using the DBSCAN algorithm to obtain the interferometric regions, and the geometric center coordinates of the interferometric regions are calculated to obtain the potential interferometric points. Two key parameters of the DBSCAN algorithm, the neighborhood radius and the minimum number of cluster points, are determined through cross-validation. The preset value of the neighborhood radius is obtained based on the spatial distribution density statistics of the interferometric voxels. Historical interferometric voxel samples are randomly selected, and the distance from each voxel to its nearest neighbor voxel is calculated. The 75th percentile of these distances is taken as the initial value of the neighborhood radius, and then adjusted through multiple trial clustering until the clustering results are stable. The minimum number of cluster points is set to an empirical value that can distinguish between noise and real interferometric regions, typically three times the average number of voxels within the volume corresponding to the voxel spatial resolution. During algorithm execution, starting from any unvisited interferometric voxel, all voxels within its neighborhood radius are found. If the number is greater than or equal to the minimum number of cluster points, a new cluster is formed, and the cluster is recursively expanded; otherwise, it is marked as noise. After clustering, each cluster corresponds to a continuous interferometric region. For each interference region, take the three-dimensional coordinates of all voxel units contained therein, calculate the average value of these coordinates, and obtain the geometric center coordinates of the region, which is the potential interference point.

[0067] In step S14, particle swarm optimization is performed based on the potential interference points to obtain an optimized pose set, and spatial coordinate transformation is performed based on the optimized pose set to obtain the precise envelope boundary, including:

[0068] Based on the potential interference points and the preset physical characteristics of the tool, a three-dimensional model is performed to obtain the initial tool model;

[0069] Based on the initial tool model, particle initialization is performed using a particle swarm optimization algorithm to obtain a set of candidate postures;

[0070] The overlap volume between each candidate pose in the candidate pose set and the static obstacle in the warehouse is calculated to obtain the interference volume. A preset penalty constant is assigned to the candidate poses whose interference volume is greater than a preset interference volume threshold to obtain the updated particle swarm.

[0071] Based on the updated particle swarm, the optimized posture set is obtained by iterative optimization using the particle swarm optimization algorithm.

[0072] Based on the optimized posture set, Euler angle transformation is performed to obtain a spatial transformation matrix. Then, based on the initial tool model and the spatial transformation matrix, coordinate transformation is performed to obtain the precise envelope boundary.

[0073] Specifically, based on the potential interference points obtained in step S13 and the preset tool physical characteristics, a 3D model is performed to obtain an initial tool model. Tool physical characteristic data includes parameters such as tool holder length, tool head diameter, and tool tip geometry. These parameters are pre-stored in the tool parameter table of the CNC system, and their values ​​originate from technical specifications provided by the tool manufacturer or actual measurements. The 3D modeling process, based on these geometric parameters, constructs the initial 3D geometric model of the tool by combining basic geometric shapes such as cylinders and spheres.

[0074] Based on the initial tool model, particle initialization is performed using a particle swarm optimization (PSO) algorithm to obtain a candidate attitude set. The search space for PSO consists of three attitude angles: yaw angle around the X-axis, pitch angle around the Y-axis, and roll angle around the Z-axis, with each angle ranging from 0 to 360 degrees. The preset particle number was determined through convergence analysis of historical simulation data. Fifty attitude optimization tasks for similar tool models and warehouse environments were collected, and the minimum number of particles required for the algorithm to reach a stable solution in each task was calculated. The 75th percentile of the critical particle number for all tasks was rounded up, ultimately setting the particle number to forty-five. During initialization, forty-five particles are randomly generated within the attitude angle range. The position of each particle is formed by a three-dimensional vector composed of the three attitude angles. Simultaneously, an initial velocity vector is randomly generated for each particle, with each velocity component set as a uniformly distributed random number within the range of -0.1 to +0.1. These particles together form the candidate attitude set, representing a series of possible tool passage attitudes.

[0075] The overlap volume between each candidate posture and the static obstacle in the warehouse is calculated to obtain the interference volume. A preset penalty constant is assigned to candidate postures whose interference volume exceeds a preset threshold, resulting in an updated particle swarm. The calculation process for the overlap volume is as follows: for each candidate posture, the initial tool model is rotated according to the yaw, pitch, and roll angles of that posture, and then translated to the potential interference point to obtain the transformed tool model. This transformed tool model is then simultaneously voxelized along with the geometric model of the static obstacle in the warehouse, with the voxel resolution consistent with S12. The number of voxels simultaneously occupied by the tool model and obstacle model is counted, and multiplied by the volume of a single voxel to obtain the interference volume. The preset value of the interference volume threshold is determined through historical collision simulation data. The minimum overlap volume when the tool and obstacle just come into contact is collected from multiple simulations, and the 90th percentile of these data is used as the threshold. The preset value of the penalty constant is determined by statistically analyzing the fitness distribution of feasible and infeasible solutions in historical optimization tasks. Interference volume data for all candidate postures are collected from the past 100 particle swarm optimization tasks. The interference volume value corresponding to the 95th percentile is taken as the baseline value, and this baseline value is multiplied by ten to obtain the penalty constant. The interference volume of each particle is calculated. If the interference volume is greater than the interference volume threshold, the penalty constant is added to the base fitness; otherwise, the interference volume itself is used as the fitness value, resulting in the updated particle swarm and its fitness values.

[0076] Based on the updated particle swarm, an iterative optimization algorithm is used to obtain an optimized pose set. The iterative optimization process begins with updating the particle swarm. Each particle records its own historical best position and fitness, while the swarm records the global best position and fitness. In each iteration, the velocity of each particle is recalculated according to the standard update rules. The new velocity equals the inertia weight multiplied by the old velocity, plus the cognitive coefficient multiplied by a random number multiplied by the difference between the individual best and the current position, plus the social coefficient multiplied by a random number multiplied by the difference between the global best and the current position. The inertia weight is set to a value that decreases linearly with the number of iterations, with an initial value of 0.9 and a termination value of 0.4. Both the cognitive coefficient and the social coefficient are set to 2.0. After the position is updated, the interference volume of the new position is recalculated, and the individual best and the global best are updated. The iteration is performed for a preset number of twenty times, or until the global best fitness remains unchanged for five consecutive iterations. The final optimal particle positions are the optimized pose set, containing one or more pose parameters.

[0077] Based on the optimized attitude set, Euler angle transformation is performed to obtain the spatial transformation matrix. Then, based on the initial tool model and the spatial transformation matrix, coordinate transformation is performed to obtain the precise envelope boundary. The specific operation of Euler angle transformation is as follows: The yaw, pitch, and roll angles in the optimized attitude set are sequentially constructed into rotation matrices around their corresponding axes in ZYX order. These three rotation matrices are then multiplied to obtain the total rotation matrix. A translation vector is then constructed using the 3D coordinates of potential interference points. The rotation matrix and translation vector are combined into a 4x4 spatial transformation matrix. During coordinate transformation, for each vertex coordinate in the initial tool model, it is treated as a column vector and expanded into homogeneous coordinates. This coordinate is then multiplied by the spatial transformation matrix on the left to obtain the transformed vertex coordinates. The geometric model formed by all the new vertices constitutes the precise envelope boundary.

[0078] In step S15, based on the precise envelope boundary, mesh reconstruction is performed to obtain a dynamic boundary mesh, and risk clustering analysis is performed based on the dynamic boundary mesh to obtain hazard assessment results and high-risk sections, including:

[0079] Based on the precise envelope boundary, discretization sampling is performed according to a preset sliding time window to obtain a time-domain sampling point set;

[0080] Based on the time-domain sampling point set, the Delaunay triangulation algorithm is used to reconstruct the mesh and obtain the dynamic boundary mesh.

[0081] The risk volume is obtained by calculating the overlap volume between the dynamic boundary mesh and the preset machine tool structure model;

[0082] The time segments corresponding to the risk volume being greater than a preset risk volume threshold are marked to obtain high-risk segments;

[0083] Based on the high-risk sections, spatial density clustering is performed using the DBSCAN algorithm to obtain risk clustering regions. The location, duration, and risk volume of the risk clustering regions are then statistically analyzed to generate hazard assessment results.

[0084] Specifically, based on the precise envelope boundary obtained in step S14, discretization sampling is performed according to a preset sliding time window to obtain a time-domain sampling point set. The precise envelope boundary is the spatial occupancy sequence of the tool under optimized posture over time, with each moment corresponding to an envelope. The preset parameters of the sliding time window include the window length and the sliding step size. The window length is determined by analyzing the duration distribution of interference between the tool and the machine tool structure in historical machining. The time intervals from the start of contact to the disengagement of contact in the past one hundred interference events are collected, and the 75th percentile of these interval data is taken as the baseline value of the window length to ensure that the window can cover the complete process of most interference events. The sliding step size is set to one-quarter of the window length, so that adjacent windows have a 75% overlap rate, ensuring that the time resolution is sufficient to capture the precise moments of the start and end of the interference. The sampling process starts from the moment the tool movement begins, the window is placed at the starting position, and key geometric points on the precise envelope boundary of all moments within the window are extracted. Each point contains three-dimensional coordinates and a timestamp, and these points are used as a sampling unit. Then, the extraction process is repeated by sliding forward one step along the time axis until the entire motion cycle is covered. The geometric points in all sampling units are arranged in chronological order to form a time-domain sampling point set.

[0085] Based on the temporal sampling point set, a dynamic boundary mesh is obtained by reconstructing the mesh using the Delaunay triangulation algorithm. For the sampling point set within each time window, a minimum bounding box containing all points is constructed, and the point set is projected onto a 2D plane or directly processed into a 3D point cloud. A point-by-point insertion method is used: first, an initial tetrahedron containing all points is created, and then the remaining points are inserted one by one. For each new point inserted, all tetrahedrons whose circumspheres contain that point are identified and deleted, forming cavities. The new point is then connected to the triangular faces on the cavity boundary to form a new tetrahedron. This process is repeated until all points have been inserted. Throughout the triangulation process, the empty circumsphere criterion is maintained, meaning that the circumsphere of any tetrahedron does not contain any other points. After triangulation of all time windows, the mesh model corresponding to each time step is obtained, and these models are arranged in chronological order to form the dynamic boundary mesh.

[0086] The risk volume is obtained by calculating the overlap volume between the dynamic boundary mesh and the pre-set machine tool structure model. The machine tool structure model is a high-precision triangular mesh model generated from point cloud data of fixed components such as the machine tool bed, worktable, and spindle box obtained by 3D laser scanning, followed by surface reconstruction and mesh optimization. The calculation process for the overlap volume involves performing a spatial Boolean intersection operation between the mesh model in the dynamic boundary mesh at each time point and the machine tool structure model. A voxel-based method is used to accelerate the calculation. Both models are voxelized, with the voxel resolution consistent with S12. The number of voxels simultaneously occupied by the two models is counted and multiplied by the volume of a single voxel to obtain the overlap volume at that time point. The same operation is performed for all time points to obtain the risk volume corresponding to each time point. These volume values ​​constitute a sequence that changes over time.

[0087] High-risk segments are identified by marking the time intervals where the risk volume exceeds a preset risk volume threshold. The preset risk volume threshold is determined by statistically analyzing volume data recorded during historical machining operations when the tool and machine tool structure collide. Overlapping volume values ​​detected in the past fifty collision events are collected, and the 95th percentile of these data is used as the threshold, ensuring that only 5% of severe collision events exceed this threshold. The value at each moment in the risk volume sequence is compared to this threshold. When the risk volume at multiple consecutive moments exceeds the threshold, the consecutive time intervals formed by these moments are marked as a high-risk segment. All marked high-risk segments form a high-risk segment set, with each segment containing a start time, end time, and the corresponding risk volume sequence.

[0088] Based on the high-risk sections, spatial density clustering is performed using the DBSCAN algorithm to obtain risk clustering regions. The location, duration, and risk volume of these risk clustering regions are then statistically analyzed to generate hazard assessment results. Two key parameters of the DBSCAN algorithm, the neighborhood radius and the minimum number of cluster points, are determined through cross-validation. The preset value of the neighborhood radius is obtained based on the spatial distribution density of risk points within the high-risk sections. Specifically, risk point samples are randomly selected from historical high-risk sections, and the distance from each risk point to its nearest neighbor is calculated. The 75th percentile of these distances is used as the initial value of the neighborhood radius, and this is adjusted through multiple trial clustering iterations until the clustering results are stable. The minimum number of cluster points is set to an empirical value that can distinguish between noise and real risk areas, typically three times the average number of points within the volume corresponding to the spatial resolution of the risk points. During algorithm execution, starting from any unvisited risk point within a high-risk zone, all risk points within its neighborhood radius are identified. If the number of risk points is greater than or equal to the minimum cluster size, a new cluster is formed, and this cluster is recursively expanded to include all densely connected risk points within the same neighborhood; otherwise, they are marked as noise. After clustering, each cluster corresponds to a spatially contiguous high-risk region. For each high-risk region, the number of risk points it contains, the average risk volume, the duration, and the spatial location range are statistically analyzed. This information is then integrated to form the hazard assessment result.

[0089] In step S16, based on the hazard assessment results and the high-risk section, trajectory variation scenarios are generated to obtain a set of variation scenarios. Then, spatial occupancy analysis is performed based on the set of variation scenarios to obtain the extended occupancy range, including:

[0090] Based on the hazard assessment results, the basic trajectory parameters in the high-risk section are extracted to obtain the initial movement speed;

[0091] Based on the initial velocity, trajectory variation scenarios are generated using the Monte Carlo simulation method to obtain a set of variation scenarios;

[0092] The set of mutated scenes is projected onto a preset spatial voxel grid to obtain a projected voxel field, and the number of times each voxel unit in the projected voxel field is covered by different trajectories is counted to obtain the trajectory coverage count.

[0093] The voxel units corresponding to the trajectory coverage times being greater than a preset trajectory coverage times threshold are marked to obtain the high-frequency occupancy area;

[0094] The volume difference between the high-frequency occupancy region and the preset theoretical trajectory envelope is calculated to obtain the volume increment, and the voxel region corresponding to the volume increment located within the preset confidence interval is determined as the extended occupancy range.

[0095] Specifically, based on the hazard assessment results obtained in step S15, the basic trajectory parameters of the high-risk sections are extracted to obtain the initial motion speed. The high-risk sections contain a series of time intervals and corresponding tool center point coordinate sequences and motion speed values. The extraction process is as follows: for each high-risk section, the instantaneous speed at its starting moment is taken as the initial motion speed of that section. This speed value is directly read from the motion commands of the CNC system, or calculated by dividing the position difference between two adjacent path sampling points by the time interval. The initial motion speeds of all high-risk sections form a set of speed values, which serve as input parameters for subsequent Monte Carlo simulations.

[0096] Based on the initial velocity, trajectory variation scenarios are generated using Monte Carlo simulation, resulting in a set of variation scenarios. The random perturbation model of Monte Carlo simulation is based on the statistical characteristics of velocity fluctuations in historical processing. Deviation data between actual and commanded velocities from the past 100 processing tasks are collected, the relative percentage deviation at each sampling time is calculated, and the distribution characteristics of these deviations are statistically analyzed. A normal distribution random number generator is constructed using the initial velocity as the mean and the standard deviation of historical deviation data as the standard deviation of the velocity perturbation. For each initial velocity, a predetermined number of random samples (e.g., 5,000) are performed independently, with each sample adding a velocity perturbation value to the initial velocity to obtain the mutated velocity. Then, based on the mutated velocity and the geometry of the original path, the entire trajectory is regenerated. The trajectory generation method is to maintain the geometric curvature of the path while using the start and end points of the original path as constraints, adjusting the time parameter only according to the mutated velocity, thus obtaining a new trajectory position sequence. All randomly sampled trajectories are aggregated to form a set of 5,000 variation scenarios that may deviate from the path.

[0097] The mutated scene set is projected onto a preset spatial voxel grid to obtain a projected voxel field. The number of times each voxel unit in the projected voxel field is covered by different trajectories is counted to obtain the trajectory coverage count. The preset resolution and range of the spatial voxel grid are determined according to the machine tool machining area, and the grid resolution is set to be consistent with the voxel resolution in S12 to ensure the accuracy of space occupancy statistics. The projection process is as follows: for each trajectory in the mutated scene set, it is discretized into a series of spatial points, each point representing the position of the tool center at a certain moment. For each spatial point, a tool envelope body surrounding the point is constructed according to the tool geometry, and this envelope body is mapped onto the spatial voxel grid, marking all voxel units occupied by the envelope body. After traversing all trajectories, the number of times each voxel unit is marked is counted to obtain the trajectory coverage count, which reflects the probability density of different trajectories passing through the voxel.

[0098] Voxel units corresponding to trajectory coverage counts exceeding a preset threshold are marked to obtain the high-frequency occupancy zone. The preset threshold for trajectory coverage counts is determined by statistically analyzing the distribution of voxel coverage counts in the variability scenario. Specifically, the coverage counts of all voxels in the variability scenario set are sorted, and the percentile of the distribution, such as the 95th percentile, is taken as the threshold. This means that only voxels with coverage counts exceeding this threshold are considered high-frequency occupancy zones, i.e., areas traversed by more than 95% of variability trajectories. Voxels with coverage counts below the threshold are considered to have passed by chance and are not included in the high-frequency occupancy zone. All voxel units exceeding the threshold constitute the high-frequency occupancy zone, which represents the space range most likely to be occupied by the tool under the influence of speed fluctuations.

[0099] The volume difference between the high-frequency occupied area and the preset theoretical trajectory envelope is calculated to obtain the volume increment. The theoretical trajectory envelope is an ideal envelope constructed based on the initial tool movement path and tool geometry, without considering the influence of speed fluctuations. Its construction method is similar to that in S18, but uses the initial movement speed. The calculation process of the volume difference is as follows: a spatial Boolean difference operation is performed between the high-frequency occupied area and the theoretical trajectory envelope, that is, the part overlapping with the theoretical trajectory envelope is subtracted from the high-frequency occupied area to obtain the additional space occupied area caused only by speed fluctuations. The total volume of this area is calculated, which is the volume increment. This volume increment reflects the degree of space occupancy expansion caused by speed fluctuations.

[0100] The voxel region corresponding to the volume increment falling within a preset confidence interval is defined as the extended occupancy range. The preset value of the confidence interval is determined by statistically analyzing the spatial expansion data caused by actual velocity fluctuations in historical processing. Deviation data between measured and theoretical trajectories from the past fifty processing tasks are collected, and the volume increment for each task is calculated. The 2.5th and 97.5th percentiles of these volume increment data are used as the lower and upper limits of the confidence interval. For the volume increment calculated for the current task, if its value falls within this confidence interval, the extended range is considered to conform to historical statistical patterns and is reliable. In this case, the voxel region in the high-frequency occupancy area that does not overlap with the theoretical trajectory envelope is defined as the extended occupancy range. If the volume increment exceeds the confidence interval, the random perturbation model needs to be re-examined or the number of simulations increased.

[0101] In step S17, based on the extended occupancy range and the swing deformation, overlapping coordinates are filtered according to the fixture overlap judgment to obtain the node to be corrected, and trajectory smoothing correction is performed based on the node to be corrected to obtain the optimized trajectory, including:

[0102] The swing deformation is superimposed on the extended occupied range to obtain the total occupied range, and the extended occupied range is subtracted from the total occupied range to obtain the overflow area. The overlap volume of the overflow area and the preset machine tool fixture model is calculated to obtain the fixture overlap volume.

[0103] When the overlap volume of the fixture is zero, the tool movement path is directly used as the optimized trajectory.

[0104] When the overlap volume of the fixture is not equal to zero, extract the spatial coordinate points within the overlap area of ​​the fixture to obtain the fixture overlap coordinate set, and filter out the path nodes in the tool movement path that fall into the fixture overlap coordinate set to obtain the nodes to be corrected.

[0105] Calculate the normal escape direction and escape distance from each node to be corrected to the machine tool fixture model, and superimpose the normal escape direction and escape distance onto the corresponding node to be corrected to obtain a collision-free path node;

[0106] Based on the collision-free path nodes, a trajectory smoothing fit is performed using a spline curve interpolation algorithm to obtain an optimized trajectory containing time series coordinate points.

[0107] Specifically, based on the extended occupancy range obtained in step S16 and the oscillation deformation amount obtained in step S11, spatial superposition and difference operations are performed. The extended occupancy range is a spatial region composed of voxel units, each voxel unit having center coordinates and side length. The oscillation deformation amount is a three-dimensional vector representing the maximum offset generated by the tool under cutting force, with its direction perpendicular to the tool axis. During the superposition operation, the oscillation deformation amount vector is added to the outer surface of each boundary voxel of the extended occupancy range. Specifically, for the minimum bounding box of the extended occupancy range, the bounding box is extended outward by a corresponding distance along the deformation direction, and voxelization is performed again to obtain the total occupancy range including the deformation effect. Then, through spatial difference operations, the original extended occupancy range is subtracted from the total occupancy range, that is, the extra area caused only by the oscillation deformation amount is retained, resulting in the overflow area. The overflow area also exists in the form of a voxel set. Spatial Boolean intersection is performed between the overflow region and the preset machine tool fixture model. The machine tool fixture model is a high-precision triangular mesh model constructed by scanning the fixture in 3D and optimizing the mesh. When finding the intersection, the voxelization method is used to count the number of voxels that belong to both the overflow region and the fixture model at the same time, and multiply them by the volume of a single voxel to obtain the fixture overlap volume.

[0108] When the overlap volume of the fixture is zero, it indicates that the spatial expansion after the tool deformation has not made any contact with the fixture. At this time, there is no need to modify the path. The tool motion path preset in step S13 is directly output as the optimized trajectory. The path consists of a series of path nodes arranged in chronological order. Each node contains three-dimensional coordinates and a timestamp.

[0109] When the fixture overlap volume is not zero, further processing is required. First, all spatial coordinate points within the fixture overlap area are extracted. These points represent the voxel center coordinates of the overlapping portion of the overflow area and the fixture model, forming a fixture overlap coordinate set. Then, path nodes whose spatial positions fall within this coordinate set are selected from the preset tool motion paths. Specifically, for each path node's 3D coordinates, it is checked whether it lies within the bounding box of any voxel element in the fixture overlap coordinate set. If so, it is marked as a node to be corrected. All marked nodes form a set of nodes to be corrected; these nodes are located inside or near the boundary of the interference region.

[0110] For each node to be corrected, calculate its normal escape direction and escape distance to the machine tool fixture model. The calculation process is as follows: for each node, search for the nearest triangular facet in the triangular mesh of the machine tool fixture model. Calculate the perpendicular distance from the node to the facet plane by traversing all faces, ensuring the perpendicular foot falls inside the facet; otherwise, take the nearest distance from the node to a vertex or edge of the facet. This distance value is the escape distance, with the direction being the facet normal pointing outwards from the model, ensuring the node can escape the fixture surface by moving along this direction. Multiply the escape distance by the unit normal vector to obtain the escape displacement vector. Superimpose this vector onto the original coordinates of the node to be corrected to obtain the new coordinates of the collision-free path node. After performing the same operation on all nodes to be corrected, a set of collision-free path nodes is generated; these nodes have avoided the fixture interference region.

[0111] Based on collision-free path nodes, a spline curve interpolation algorithm is used to smoothly fit the trajectory, resulting in an optimized trajectory containing time-series coordinate points. Specifically, the spline curve interpolation is implemented by using collision-free path nodes as model points and employing cubic spline functions for interpolation. This involves constructing a cubic polynomial between every two adjacent nodes, ensuring continuity of the function values, first derivative, and second derivative at the nodes. First, the parameter positions of each node are determined based on the node timestamps. Then, the coefficients of each segment of the polynomial are obtained by solving a tridiagonal system of equations. After interpolation, the points are resampled at the same time intervals as the original path to obtain a smoothed trajectory point sequence. These points maintain the geometric trend of the original path and satisfy first and second-order smoothness at the nodes, thus generating an optimized trajectory without abrupt changes, suitable for execution by a machine tool servo system.

[0112] In step S18, a dynamic envelope is generated based on the optimized trajectory to obtain a dynamic envelope sequence. The trajectory matching degree is then calculated based on the dynamic envelope sequence to obtain the final interference index, including:

[0113] Calculate the tangential velocity vector and normal acceleration of each coordinate point in the optimized trajectory to generate a set of motion nodes;

[0114] Based on the set of motion nodes, a dynamic envelope is generated to obtain a dynamic envelope sequence;

[0115] Based on the dynamic envelope sequence and the preset barrier-free safety channel, a three-dimensional Boolean difference set operation is performed to obtain a set of conflicting geometric entities;

[0116] The trajectory matching degree is obtained by calculating the ratio of the total volume of each conflicting geometric entity in the conflicting geometric entity set to the total volume of the corresponding dynamic envelope in the dynamic envelope sequence.

[0117] The trajectory matching degree is weighted and corrected according to the preset deformation amplitude coefficient to obtain the final interference index.

[0118] Specifically, based on the optimized trajectory obtained in step S17, the tangential velocity vector and normal acceleration of each coordinate point in the trajectory are calculated to generate a set of motion nodes. The optimized trajectory consists of a series of coordinate points arranged in chronological order, each containing three-dimensional spatial coordinates and a corresponding timestamp. For each coordinate point, the position difference between that point and the previous time point is divided by the time interval to obtain the instantaneous velocity vector of that point, whose direction is the tangent direction of the trajectory, and whose magnitude reflects the speed of motion. The calculation of normal acceleration is based on the trajectory curvature. A local curvature circle is determined through the point and its adjacent points before and after it. The square of the velocity vector is divided by the radius of the curvature circle to obtain the magnitude of the normal acceleration, and its direction points towards the center of the curvature circle. All coordinate points and their corresponding velocity vectors and normal acceleration values ​​are merged to form a set of motion nodes, each node containing four pieces of information: position, time, velocity vector, and normal acceleration.

[0119] Based on the set of motion nodes, a dynamic envelope is generated to obtain a dynamic envelope sequence. The generation of the dynamic envelope is based on the initial tool model obtained in step S14, and spatial expansion is performed by incorporating the kinematic parameters of each node. For each node, the initial tool model is deformed according to the velocity direction and normal acceleration direction at that node. The expansion in the velocity direction is obtained by multiplying the velocity magnitude by a preset velocity-expansion coefficient, and the expansion in the normal acceleration direction is obtained by multiplying the normal acceleration magnitude by a preset acceleration-expansion coefficient. The velocity-expansion coefficient and acceleration-expansion coefficient are determined statistically from historical machining experimental data. The deviation between the actual tool envelope and the theoretical model in the past one hundred machining operations is collected, and the contribution ratio of the velocity component and acceleration component to the expansion is calculated. The 75th percentile of each contribution ratio is taken as the coefficient value. The deformed model is the dynamic envelope of that node. The dynamic envelopes of all nodes are arranged in chronological order to form a dynamic envelope sequence.

[0120] Based on the dynamic envelope sequence and the pre-defined barrier-free safety passage, a three-dimensional Boolean difference operation is performed to obtain a set of conflicting geometric entities. The barrier-free safety passage is an ideal spatial region generated by scanning the machine tool's working area in three dimensions and removing the toolpath body. Its boundaries are predetermined by the machine tool design drawings and process requirements. The scanned data, after denoising and surface reconstruction, forms a closed geometric model. The Boolean difference operation is implemented as follows: for each envelope in the dynamic envelope sequence, it is spatially subtracted from the barrier-free safety passage model; that is, the portion overlapping with the safety passage is subtracted from the envelope, retaining the geometric entities that extend beyond the safety passage boundary. A voxelization method is used to accelerate the calculation. Both models are voxelized separately, with the voxel resolution consistent with S12. Voxels that belong to both the envelope and the safety passage are marked; the set of these voxels constitutes the conflicting geometric entities of that node. The conflicting geometric entities of all nodes are summarized to obtain the set of conflicting geometric entities.

[0121] The trajectory matching degree is obtained by calculating the ratio of the volume of each conflicting geometric entity in the conflicting geometric entity set to the total volume of the corresponding dynamic envelope in the dynamic envelope sequence. For each conflicting geometric entity, the conflict volume is obtained by multiplying the number of voxels it contains by the volume of a single voxel. Simultaneously, the total volume of the complete dynamic envelope at that node is calculated, which is the product of the number of all voxels at that node and the volume of a single voxel. Dividing the conflict volume by the total volume of the dynamic envelope yields a dimensionless ratio. The smaller this ratio, the higher the fit between the envelope and the safe passage, and the better the security. The same calculation is performed on all nodes to obtain the trajectory matching degree for each node. These matching degrees form a sequence arranged in chronological order.

[0122] Based on a preset deformation amplitude coefficient, the trajectory matching degree is weighted and corrected to obtain the final interference index. The deformation amplitude coefficient is a scalar value reflecting the degree of influence of cutting force on the tool during machining. Its preset value is determined by statistical analysis of tool deformation monitoring data from historical machining operations. The ratio of actual tool deformation to theoretical deformation in the past fifty machining tasks is collected, and the 90ths percentile of these ratios is taken as the deformation amplitude coefficient. The specific operation of the weighted correction is to multiply the trajectory matching degree of each node by the deformation amplitude coefficient to obtain the corrected matching degree value. The larger the corrected matching degree value, the higher the interference risk at that node. The corrected matching degree values ​​of all nodes are arranged in chronological order to form the final interference index sequence.

[0123] In step S19, motion parameters are optimized based on the final interference index to obtain updated motion parameters, and collision detection is performed based on the updated motion parameters to obtain an interference-free access configuration, including:

[0124] Extract the regions corresponding to the final interference index being less than the preset trajectory matching degree threshold to obtain a low matching region set;

[0125] Calculate the normal distance from the outer edge of the tool to the boundary of the unobstructed safety passage within each low-matching region of the low-matching region set to obtain the spatial deviation value;

[0126] Based on the spatial deviation value, the adjustment amount is calculated using a PID algorithm to obtain the motion compensation component. Based on the motion compensation component, the motion parameters corresponding to the tool motion path are vector superpositioned to obtain the updated motion parameters.

[0127] Based on the updated motion parameters, three-dimensional spatial collision detection is performed. When no intersecting volumes are detected, the updated motion parameters are directly determined to be an interference-free access configuration.

[0128] When intersecting volumes are detected, the spatial deviation value is recalculated until no intersecting volumes are detected, thus obtaining an interference-free access configuration.

[0129] Specifically, based on the final interference index obtained in step S18, regions with matching degrees below a preset trajectory matching degree threshold are extracted to obtain a low-matching region set. The preset value of the trajectory matching degree threshold is determined by statistically analyzing the matching degree distribution of safe and dangerous states in historical processing. Matching degree values ​​for each position recorded in each of the past one hundred processing tasks are collected. The minimum matching degree in each task is used as the critical value for that task, and the 90ths percentile of these critical values ​​is taken as the threshold benchmark. Simultaneously, the threshold benchmark is corrected based on the minimum allowable safety margin specified in the machine tool safety regulations, ultimately determining a fixed value. The final interference index is a sequence arranged in chronological order, with each element corresponding to a matching degree value for a trajectory position. Scanning begins from the start of the sequence, marking all consecutive time intervals with matching degree values ​​below the threshold. The trajectory points within each interval constitute a low-matching region, and all such regions form a low-matching region set.

[0130] Calculate the normal distance from the outer edge of the tool to the boundary of the unobstructed safety passage within each low-matching region set to obtain the spatial deviation value. The position of the outer edge of the tool is determined based on the geometry and current orientation of the initial tool model in step S14, specifically the point reached by extending the tool radius outward along the radial direction from the trajectory point. The boundary of the unobstructed safety passage is a pre-constructed closed surface model, constructed in the same way as in S18. The normal distance is calculated as follows: for each trajectory point within a low-matching region, take the coordinates of its outer edge point, search for the nearest triangular facet on the safety passage boundary model, and calculate the perpendicular distance from the point to the plane containing the facet. If the foot of the perpendicular falls inside the facet, this distance is the normal distance; otherwise, take the shortest distance from the point to the vertex or edge of the facet. A positive distance value indicates that the outer edge of the tool is outside the safety passage, while a negative value indicates that it has intruded into the passage. Perform the same calculation for all trajectory points within all low-matching regions to obtain the spatial deviation value corresponding to each point. These deviation values ​​reflect the degree to which the tool deviates from the safety passage.

[0131] Based on the spatial deviation value, the adjustment amount is calculated using a PID algorithm to obtain the motion compensation component. The three parameters of the PID algorithm—proportional coefficient, integral coefficient, and derivative coefficient—are determined through optimization using deviation response data from historical processing. The deviation sequence and corresponding compensation effect of each adjustment in the past fifty processing tasks are collected. A grid search method is used to find the parameter combination that minimizes the adjusted deviation within a preset parameter range, and the median of the optimal parameters for all tasks is taken as the preset value. The proportional coefficient determines the response intensity to the current deviation, the integral coefficient is used to eliminate accumulated errors, and the derivative coefficient is used to predict the deviation change trend. For each low-matching region, the spatial deviation values ​​of all trajectory points within it are used as the input sequence and substituted sequentially into the PID calculation formula. The compensation component at each moment is equal to the proportional coefficient multiplied by the current deviation, plus the integral coefficient multiplied by the cumulative sum of deviations from the beginning to the current moment, plus the derivative coefficient multiplied by the difference between the current deviation and the deviation at the previous moment. The calculated compensation component is a vector, with the direction consistent with the deviation direction, and its magnitude reflects the required adjustment amplitude. The compensation components at all moments are arranged in chronological order to obtain the motion compensation component sequence.

[0132] Based on the motion compensation components, the motion parameters corresponding to the tool motion path are vector-superimposed to obtain updated motion parameters. The motion parameters corresponding to the tool motion path refer to the initially planned tool position coordinates, velocity, attitude angle, and other command values, which are pre-stored in the CNC system. During the superposition operation, for each trajectory point within a low-matching region, the motion compensation component vector at the corresponding moment is added to the original position coordinates of that point to obtain new position coordinates; simultaneously, the velocity magnitude and direction of that point are adjusted according to the compensation amount to make the velocity vector tangent to the compensated trajectory. For trajectory points outside the region, the motion parameters remain unchanged. The updated parameters for all trajectory points constitute the updated motion parameters, and this parameter set contains the corrected tool motion commands.

[0133] Based on the updated motion parameters, 3D spatial collision detection is performed. When no intersecting volumes are detected, the updated motion parameters are directly determined as the non-interference access configuration. The collision detection method is the same as the overlapping volume calculation in S15. The tool dynamic envelope sequence corresponding to the updated motion parameters is spatially intersected with the unobstructed safety passage model using Boolean intersection. The voxel resolution uses the same preset value as in S12. The number of overlapping voxels between the envelope and the safety passage at all times is counted, and the total volume is calculated. If the total volume is zero, no interference is determined, and the updated motion parameters are directly output as the non-interference access configuration, which contains the final safe tool motion command. If intersecting volumes are detected, the spatial deviation value is recalculated and the PID is adjusted. That is, the current updated motion parameters are used as new inputs, and the low-matching region, spatial deviation value, motion compensation component, and updated motion parameters are repeatedly calculated until the collision detection result is zero after a certain iteration. During the iterative process, the spatial deviation value calculated each time gradually decreases until interference is completely eliminated.

[0134] Reference Figure 2 The second embodiment of the present invention provides a reliability analysis device for a nuclear power plant CNC wheel groove milling machine, comprising:

[0135] The data acquisition module is used to acquire the tool mass distribution, overhang length, and oscillation deformation.

[0136] The filling module is used to perform finite element analysis based on the tool mass distribution and the overhang length, construct a dynamic envelope surface, and perform voxel filling based on the dynamic envelope surface to obtain dynamically occupied voxels;

[0137] The mapping module is used to perform virtual environment mapping based on the dynamically occupied voxels to obtain instantaneous voxels, and to perform interference region analysis based on the instantaneous voxels to obtain potential interference points.

[0138] The transformation module is used to perform particle swarm optimization based on the potential interference points to obtain an optimized posture set, and to perform spatial coordinate transformation based on the optimized posture set to obtain an accurate envelope boundary.

[0139] The assessment module is used to reconstruct the grid based on the precise envelope boundary to obtain a dynamic boundary grid, and to perform risk clustering analysis based on the dynamic boundary grid to obtain the hazard assessment results and high-risk sections.

[0140] The analysis module is used to generate trajectory variation scenarios based on the hazard assessment results and the high-risk section, obtain a set of variation scenarios, and perform space occupancy analysis based on the set of variation scenarios to obtain the extended occupancy range.

[0141] The correction module is used to filter overlapping coordinates based on the expanded occupancy range and the swing deformation amount, obtain the node to be corrected, and perform trajectory smoothing correction based on the node to be corrected to obtain the optimized trajectory.

[0142] The calculation module is used to generate a dynamic envelope based on the optimized trajectory, obtain a dynamic envelope sequence, and calculate the trajectory matching degree based on the dynamic envelope sequence to obtain the final interference index.

[0143] The output module is used to optimize motion parameters based on the final interference index to obtain updated motion parameters, and to perform collision detection based on the updated motion parameters to obtain an interference-free access configuration.

[0144] It should be noted that the reliability analysis device for nuclear power CNC wheel groove milling machine provided in this embodiment of the invention is used to execute all the process steps of the reliability analysis method for nuclear power CNC wheel groove milling machine in the above embodiment. The working principle and beneficial effect of the two are one-to-one, so they will not be described again.

[0145] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0146] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.

Claims

1. A reliability analysis method for a nuclear power digital slotter, characterized in that, include: Obtain the tool mass distribution, overhang length, and oscillation deformation; Based on the tool mass distribution and the overhang length, finite element analysis is performed to construct a dynamic envelope surface, and voxelization is performed based on the dynamic envelope surface to obtain dynamically occupied voxels. Based on the dynamically occupied voxels, virtual environment mapping is performed to obtain instantaneous voxels, and interference region analysis is performed based on the instantaneous voxels to obtain potential interference points; Based on the potential interference points, particle swarm optimization is performed to obtain an optimized posture set, and spatial coordinate transformation is performed based on the optimized posture set to obtain the precise envelope boundary. Based on the precise envelope boundary, a mesh reconstruction is performed to obtain a dynamic boundary mesh, and a risk clustering analysis is performed based on the dynamic boundary mesh to obtain the hazard assessment results and high-risk sections. Based on the hazard assessment results and the high-risk section, trajectory variation scenarios are generated to obtain a set of variation scenarios. Then, spatial occupancy analysis is performed based on the set of variation scenarios to obtain the extended occupancy range. Based on the extended occupancy range and the swing deformation, the overlapping coordinates are filtered based on the fixture overlap judgment to obtain the node to be corrected, and the trajectory is smoothed and corrected based on the node to be corrected to obtain the optimized trajectory. Based on the optimized trajectory, a dynamic envelope is generated to obtain a dynamic envelope sequence, and the trajectory matching degree is calculated based on the dynamic envelope sequence to obtain the final interference index. Based on the final interference index, motion parameters are optimized to obtain updated motion parameters, and collision detection is performed based on the updated motion parameters to obtain an interference-free access configuration.

2. The method for reliability analysis of nuclear power digital slotter according to claim 1, characterized in that, The process involves performing finite element analysis based on the tool mass distribution and the overhang length to construct a dynamic envelope surface, and then performing voxelization filling based on the dynamic envelope surface to obtain dynamically occupied voxels, including: Based on the tool mass distribution and the overhang length, a non-uniform finite element mesh is constructed using the advance wavefront method to obtain finite element mesh elements. Based on the preset spindle rotation frequency, the centrifugal force field load of the finite element mesh element is calculated, and the dynamic equilibrium equation containing the centrifugal force field load is solved by the direct integration method to obtain the nodal displacement vector. Based on the node displacement vector and the finite element mesh element, vector superposition is performed to obtain the updated mesh element; Based on the updated mesh cells, a dynamic envelope surface is constructed by performing surface fitting using the moving least squares method. Based on the dynamic envelope surface, voxelization is performed using a spatial octree voxelization algorithm to obtain dynamically occupied voxels.

3. The method for reliability analysis of nuclear power digital slotter according to claim 1, characterized in that, The process of mapping a virtual environment based on the dynamically occupied voxels to obtain instantaneous voxels, and then performing interference region analysis based on the instantaneous voxels to obtain potential interference points, includes: Based on the dynamically occupied voxels and the preset static obstacles in the warehouse, a virtual scene is constructed to obtain a time-varying virtual environment. The preset tool movement path is sampled at equal intervals through preset time intervals to obtain path sampling points. Map the dynamically occupied voxels corresponding to the path sampling points to the time-varying virtual environment to obtain instantaneous voxels; Calculate the Euclidean distance from each instantaneous voxel to the nearest obstacle among the static obstacles in the warehouse to obtain the distance field; Mark the instantaneous voxels in the distance field whose distances are less than a preset safety distance threshold to obtain the interference voxels; Based on the interferometric voxels, spatial clustering is performed using the DBSCAN algorithm to obtain the interference region, and the geometric center coordinates of the interference region are calculated to obtain the potential interference points.

4. The method for reliability analysis of nuclear power digital slotter according to claim 3, characterized in that, The process of performing particle swarm optimization based on the potential interference points to obtain an optimized pose set, and then performing spatial coordinate transformation based on the optimized pose set to obtain the precise envelope boundary, includes: Based on the potential interference points and the preset physical characteristics of the tool, a three-dimensional model is performed to obtain the initial tool model; Based on the initial tool model, particle initialization is performed using a particle swarm optimization algorithm to obtain a set of candidate postures; The overlap volume between each candidate pose in the candidate pose set and the static obstacle in the warehouse is calculated to obtain the interference volume. A preset penalty constant is assigned to the candidate poses whose interference volume is greater than a preset interference volume threshold to obtain the updated particle swarm. Based on the updated particle swarm, the optimized posture set is obtained by iterative optimization using the particle swarm optimization algorithm. Based on the optimized posture set, Euler angle transformation is performed to obtain a spatial transformation matrix. Then, based on the initial tool model and the spatial transformation matrix, coordinate transformation is performed to obtain the precise envelope boundary.

5. The method for reliability analysis of nuclear power digital slotter according to claim 1, wherein, The process involves reconstructing a mesh based on the precise envelope boundary to obtain a dynamic boundary mesh, and then performing risk clustering analysis based on the dynamic boundary mesh to obtain hazard assessment results and high-risk sections, including: Based on the precise envelope boundary, discretization sampling is performed according to a preset sliding time window to obtain a time-domain sampling point set; Based on the time-domain sampling point set, the Delaunay triangulation algorithm is used to reconstruct the mesh and obtain the dynamic boundary mesh. The risk volume is obtained by calculating the overlap volume between the dynamic boundary mesh and the preset machine tool structure model; The time segments corresponding to the risk volume being greater than a preset risk volume threshold are marked to obtain high-risk segments; Based on the high-risk sections, spatial density clustering is performed using the DBSCAN algorithm to obtain risk clustering regions. The location, duration, and risk volume of the risk clustering regions are then statistically analyzed to generate hazard assessment results.

6. The method for reliability analysis of nuclear power digital slotter according to claim 1, wherein, Based on the hazard assessment results and the high-risk section, trajectory variation scenarios are generated to obtain a set of variation scenarios. Spatial occupancy analysis is then performed on the set of variation scenarios to obtain the extended occupancy range, including: Based on the hazard assessment results, the basic trajectory parameters in the high-risk section are extracted to obtain the initial movement speed; Based on the initial velocity, trajectory variation scenarios are generated using the Monte Carlo simulation method to obtain a set of variation scenarios; The set of mutated scenes is projected onto a preset spatial voxel grid to obtain a projected voxel field, and the number of times each voxel unit in the projected voxel field is covered by different trajectories is counted to obtain the trajectory coverage count. The voxel units corresponding to the trajectory coverage times being greater than a preset trajectory coverage times threshold are marked to obtain the high-frequency occupancy area; The volume difference between the high-frequency occupancy region and the preset theoretical trajectory envelope is calculated to obtain the volume increment, and the voxel region corresponding to the volume increment located within the preset confidence interval is determined as the extended occupancy range.

7. The method for reliability analysis of nuclear power digital slotter according to claim 3, wherein, The process of filtering overlapping coordinates based on the extended occupancy range and the swing deformation amount, obtaining nodes to be corrected, and performing trajectory smoothing correction based on the nodes to be corrected to obtain an optimized trajectory includes: The swing deformation is superimposed on the extended occupied range to obtain the total occupied range, and the extended occupied range is subtracted from the total occupied range to obtain the overflow area. The overlap volume of the overflow area and the preset machine tool fixture model is calculated to obtain the fixture overlap volume. When the overlap volume of the fixture is zero, the tool movement path is directly used as the optimized trajectory. When the overlap volume of the fixture is not equal to zero, extract the spatial coordinate points within the overlap area of ​​the fixture to obtain the fixture overlap coordinate set, and filter out the path nodes in the tool movement path that fall into the fixture overlap coordinate set to obtain the nodes to be corrected. Calculate the normal escape direction and escape distance from each node to be corrected to the machine tool fixture model, and superimpose the normal escape direction and escape distance onto the corresponding node to be corrected to obtain a collision-free path node; Based on the collision-free path nodes, a trajectory smoothing fit is performed using a spline curve interpolation algorithm to obtain an optimized trajectory containing time series coordinate points.

8. The method for reliability analysis of nuclear power digital slotter according to claim 3, wherein, The process involves generating a dynamic envelope based on the optimized trajectory to obtain a dynamic envelope sequence, and calculating the trajectory matching degree based on the dynamic envelope sequence to obtain the final interference index, including: Calculate the tangential velocity vector and normal acceleration of each coordinate point in the optimized trajectory to generate a set of motion nodes; Based on the set of motion nodes, a dynamic envelope is generated to obtain a dynamic envelope sequence; Based on the dynamic envelope sequence and the preset barrier-free safety channel, a three-dimensional Boolean difference set operation is performed to obtain a set of conflicting geometric entities; The trajectory matching degree is obtained by calculating the ratio of the total volume of each conflicting geometric entity in the conflicting geometric entity set to the total volume of the corresponding dynamic envelope in the dynamic envelope sequence. The trajectory matching degree is weighted and corrected according to the preset deformation amplitude coefficient to obtain the final interference index.

9. The reliability analysis method for CNC wheel groove milling machines for nuclear power plants according to claim 8, characterized in that, The step of optimizing motion parameters based on the final interference index to obtain updated motion parameters, and performing collision detection based on the updated motion parameters to obtain an interference-free access configuration includes: Extract the regions corresponding to the final interference index being less than the preset trajectory matching degree threshold to obtain a low matching region set; Calculate the normal distance from the outer edge of the tool to the boundary of the unobstructed safety passage within each low-matching region of the low-matching region set to obtain the spatial deviation value; Based on the spatial deviation value, the adjustment amount is calculated using a PID algorithm to obtain the motion compensation component. Based on the motion compensation component, the motion parameters corresponding to the tool motion path are vector superpositioned to obtain the updated motion parameters. Based on the updated motion parameters, three-dimensional spatial collision detection is performed. When no intersecting volumes are detected, the updated motion parameters are directly determined to be an interference-free access configuration. When intersecting volumes are detected, the spatial deviation value is recalculated until no intersecting volumes are detected, thus obtaining an interference-free access configuration.

10. A reliability analysis device for CNC wheel groove milling machines used in nuclear power plants, characterized in that, include: The data acquisition module is used to acquire the tool mass distribution, overhang length, and oscillation deformation. The filling module is used to perform finite element analysis based on the tool mass distribution and the overhang length, construct a dynamic envelope surface, and perform voxel filling based on the dynamic envelope surface to obtain dynamically occupied voxels; The mapping module is used to perform virtual environment mapping based on the dynamically occupied voxels to obtain instantaneous voxels, and to perform interference region analysis based on the instantaneous voxels to obtain potential interference points. The transformation module is used to perform particle swarm optimization based on the potential interference points to obtain an optimized posture set, and to perform spatial coordinate transformation based on the optimized posture set to obtain an accurate envelope boundary. The assessment module is used to reconstruct the grid based on the precise envelope boundary to obtain a dynamic boundary grid, and to perform risk clustering analysis based on the dynamic boundary grid to obtain the hazard assessment results and high-risk sections. The analysis module is used to generate trajectory variation scenarios based on the hazard assessment results and the high-risk section, obtain a set of variation scenarios, and perform space occupancy analysis based on the set of variation scenarios to obtain the extended occupancy range. The correction module is used to filter overlapping coordinates based on the expanded occupancy range and the swing deformation amount, obtain the node to be corrected, and perform trajectory smoothing correction based on the node to be corrected to obtain the optimized trajectory. The calculation module is used to generate a dynamic envelope based on the optimized trajectory, obtain a dynamic envelope sequence, and calculate the trajectory matching degree based on the dynamic envelope sequence to obtain the final interference index. The output module is used to optimize motion parameters based on the final interference index to obtain updated motion parameters, and to perform collision detection based on the updated motion parameters to obtain an interference-free access configuration.