Toolpath topology design method based on vector field in sub-regional processing for curved surface
11429081 · 2022-08-30
Assignee
Inventors
- Jianwei Ma (Liaoning, CN)
- Zhenyuan Jia (Liaoning, CN)
- Xiao Lu (Liaoning, CN)
- Wenwen Jiang (Liaoning, CN)
- Xiaoxuan Zhao (Liaoning, CN)
- Wei Liu (Liaoning, CN)
- Likun Si (Liaoning, CN)
Cpc classification
G05B19/402
PHYSICS
International classification
Abstract
A toolpath topology design method based on vector field in sub-regional processing for the curved surface is disclosed which comprising: finding the functional relationships in feeding direction between the chord error and the normal curvature and between the scallop-height error and the normal curvature; establishing the bi-objective optimization model and calculating the optimal feeding direction at each cutting contact point within the surface through the constructed evaluation function, the space vector field is built; calculating divergence and rotation of the projected vector field and according to whether them are zeros or not to classify different sub-regions, the primary surface segmentation is achieved, etc. The method is applied for the complex curved surface processing, which can reduce the machining error and enhance the feed motion stability.
Claims
1. A toolpath topology design method based on vector field in sub-regional processing for the curved surface, wherein, first, finding the functional relationships in feeding direction between the chord error and the normal curvature and between the scallop-height error and the normal curvature, after normalization, establishing the bi-objective optimization model and calculating the optimal feeding direction at each cutting contact point within the surface through the constructed evaluation function, the space vector field is built, second, calculating divergence and rotation of the projected vector field and according to whether them are zeros or not to classify different sub-regions, the primary surface segmentation is achieved, third, after analyzing the feature of different vector fields and fitting of the streamline by feeding vectors, the kinematics parameters of when the rotational axes of machine tool feed along the streamlines are calculated and the surface subdivision is finished by judging the abrupt change of the kinematics parameters, finally, different sub-regional toolpath topologies for machining region are designed based on toolpath modes; the detail procedure is as follows: step one: vector field construction for tool feeding direction with constraint of chord error and scallop-height error the machining surface region can be defined as S(u,v)=(x(u,v),y(u,v),z(u,v)) in the Cartesian coordinate system O-xyz, where u and v are parameters for curved surface; when d and f are the determined step-size and step-size, the chord error e at any cutting contact point on the toolpath for curved surface is calculated as,
e*=k.sub.f.sup.2 (2) solving the monotonicity of the chord error e and the new variable e* respectively, it can be seen that they are positively correlated, and therefore the chord error is substituted by e* in order to reduce the difficulty of subsequent calculations; the scallop-height error h is calculated as,
k.sub.d+k.sub.f=2H (4) where, H is the average curvature which is constant for any point within a certain complex curved surface; by solving Eqs. (3)-(4), the scallop-height error can also be written as,
min Q=α.sub.1e.sub.n+α.sub.2h.sub.n
s.t. k.sub.2≤k.sub.f≤k.sub.1 (14) where, the weights of the evaluation function of chord error and scallop-height error, α.sub.1 and α.sub.2, are calculated as,
k.sub.f=k.sub.1 cos.sup.2θ+k.sub.2 sin.sup.2θ (16) where, θ is the angle between the feeding direction and the corresponding main direction; in this case,
Description
DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION
(7) The specific embodiments of the present invention will be described in detail in combination with the technical solutions and the drawings.
(8) To solve the problems that the existing methods for surface segmentation and toolpath generation in sub-regional processing for the curved surface are lack of the comprehensive consideration of feeding direction and kinematics performance of the machine tool, which results in local out-of-tolerance and obvious cutting vibration and seriously affects the processing quality, a design method of toolpath topology based on the vector field of tool feeding direction in sub-regional processing is proposed in order to enhance the machining precision and the feed motion stability in sub-regional processing.
(9) The detail procedure is as follows.
(10) Step One (S1): Vector Field Construction for Tool Feeding Direction with Constraint of Chord Error and Scallop-Height Error
(11) Construct the Bi-Objective Optimization Model with Constraint of Normalized Chord Error and Scallop-Height Error (S11)
(12) The machining surface region can be defined as S(u,v)=(x(u,v),y(u,v),z(u,v)) in the Cartesian coordinate system O-xyz, where u and v are parameters for curved surface. When d and f are the determined step-size and step-size, the chord error e at any CCP on the toolpath for curved surface is calculated as,
(13)
Where, k.sub.f is the normal curvature in feeding direction.
(14) The new variable e* is set as,
e*=k.sub.f.sup.2 (2)
(15) Solving the monotonicity of the chord error e and the new variable e* respectively, it can be seen that they are positively correlated, and therefore the chord error is substituted by e* in order to reduce the difficulty of subsequent calculations.
(16) The scallop-height error h is calculated as,
(17)
Where, k.sub.d is the normal curvature in side-step direction and r is the effective milling cutter radius.
(18) The feeding direction and the side-step direction are perpendicular to each other and according to the differential geometry, they satisfy Eq. (4),
k.sub.d+k.sub.f=2H (4)
Where, H is the average curvature which is constant for any point within a certain complex curved surface.
(19) By solving Eqs. (3)-(4), the scallop-height error can also be written as,
(20)
(21) According to Eqs. (2) and (5), given step-size and side-step, the values of the chord error and the scallop-height error are determined only by the normal curvature in feeding direction. In order to calculate the optimal feeding direction at each CCP, the bi-objective optimization model is constructed taking two types of error as objective function.
(22) The two types of error should be normalized as,
(23)
Where, e.sub.n and h.sub.n are the normalized chord error and the normalized scallop-height error, e*.sub.min and e*.sub.max are the minimum and maximum of the chord error, and h.sub.min and h.sub.max are the minimum and maximum of the scallop-height error. The calculations for them are as followings.
(24) The principal curvatures of the complex curved surface are represented as k.sub.1 and k.sub.2 (k.sub.1>k.sub.2), which can be expressed as,
(25)
Where, K is the Gaussian curvature which is constant for any CCP on a certain curved surface.
(26) According to Eqs. (2) and (5), the maximum and the minimum of the scallop-height error are calculated as,
(27)
(28) The maximum of the chord error is calculated as,
(29)
(30) The minimum of the chord error is calculated as,
(31)
(32) By solving Eqs. (6)-(10), the normalized scallop-height error h.sub.n is calculated as,
(33)
(34) The normalized chord error e.sub.n is calculated as,
(35)
(36) To simplify the description, the normalized errors are used in the following paragraphs. The bi-objective optimization model taking two types of error as objective function is constructed as,
V-min(e.sub.n,h.sub.n)
s.t. k.sub.2≤k.sub.f≤k.sub.1 (13)
Where, V-min means vector minimization, that is the sub-objective functions e.sub.n and h.sub.n for vector objective are as minimized as possible.
(37) Using the linear weighted sum method, an evaluation function Q can be constructed as,
min Q=α.sub.1e.sub.n+α.sub.2h.sub.n
s.t. k.sub.2≤k.sub.f≤k.sub.1 (14)
Where, the weights of the evaluation function of chord error and scallop-height error, α.sub.1 and α.sub.2, are calculated as,
(38)
Where, h.sub.n1 is the scallop-height error when the chord error is minimized and e.sub.n1 is the chord error when the scallop-height error is minimized. e.sub.n min and h.sub.n min are the minimum values of the chord error and the scallop-height error.
(39) The classified discussion by the value range of the principal curvature for the bi-objective optimization model is as followings.
(40) (1) When k.sub.2≥0, assigned k.sub.f=k.sub.2, e.sub.n and h.sub.n are minimized simultaneously, thus, the optimal solution k.sub.f for the bi-objective optimization is k.sub.f=k.sub.2. By the Euler Theorem as,
k.sub.f=k.sub.1 cos.sup.2θ+k.sub.2 sin.sup.2θ (16)
Where, θ is the angle between the feeding direction and the corresponding main direction. In this case,
(41)
(42) (2) When −k.sub.1≤k.sub.2≤0, the evaluation function Q is,
(43)
(44) Assigned
(45)
Q is minimized, thus, the optimal solution k.sub.f for the bi-objective optimization is
(46)
In this case,
(47)
(48) (3) When 0≤k.sub.1≤−k.sub.2, the evaluation function Q is,
(49)
(50) Assigned
(51)
Q is minimized, thus, the optimal solution k.sub.f for the bi-objective optimization is
(52)
In this case,
(53)
(54) (4) When k.sub.1<0, the evaluation function Q is,
(55)
(56) Assigned
(57)
Q is minimized, thus, the optimal solution k.sub.f for the bi-objective optimization is
(58)
In this case,
(59)
(60) The arbitrary tangent vector direction is expressed as (du:dv), and the first fundamental form and the second fundamental form in this direction are defined as,
(61)
Where, E, F and G are the first fundamental quantities for curved surface, and L, M and N are the second fundamental quantities for curved surface. They are expressed as,
(62)
Where, S.sub.u and S.sub.v are first-order partial derivatives for curved surface S(u,v), S.sub.uu, S.sub.uv and S.sub.vv second-order partial derivatives for curved surface S(u,v), n is the normal vector of the curved surface S(u,v).
(63) Calculate the Optimal Tool Feeding Direction by Evaluation Function (S12)
(64) The direction of the maximum normal curvature is expressed as (du.sup.1:dv.sup.1), which is calculated as,
(65)
(66) The direction of the optimal feeding direction is expressed as (du*:dv*), which is calculated as,
(67)
Where, a, b and c are expressed as,
(68)
(69) Solving Eqs. (22)-(24), the optimal feeding direction at each CCP is calculated, along which the unit feeding vector is established, and the vector filed under the constraint of chord error and scallop-height error is constructed.
(70) Step Two (S2): Primary Surface Segmentation Based on Vector Field of Tool Feeding Direction
(71) Calculate the Divergence and Rotation of Vector Field by Vector Projecting (S21)
(72) The expression of the vector field in the Cartesian coordinate system O-xyz is F(γ)=(g.sub.1(x,y,z),g.sub.2(x,y,z),g.sub.3(x,y,z)) according to Step One, where γ is the feeding vector in optimal feeding direction of each point on the surface. Projecting the space vector field into plane xOy, the two-dimensional unit feeding vector γ* in each optimal feeding direction is obtained, and the plane vector field is expressed as A(γ*)=(f.sub.1(x,y),f.sub.2(x,y)). The optimal feeding directions have regional distribution feature in the constructed vector field of tool feeding direction for the complex curved surface. Focusing on the vector field constructed by feeding vectors with sub-regional distribution feature, the primary surface segmentation is achieved based on distribution of tool feeding vector.
(73) According to the divergence and the rotation of the vector filed, the regional distribution feature of the feeding vectors can be confirmed. The divergence divA(γ*) at each point on the plane vector field A(γ*)=(f.sub.1(x,y),f.sub.2(x,y)) is calculated as,
(74)
Where, ∇ is the Hamilton operator.
(75) The rotation rotA(γ*) at each point is calculated as,
(76)
Where, k is the unit vector in positive direction of z coordinate axis in Cartesian coordinate system.
(77) Segment the Surface Based on the Tool Feeding Vector Distribution (S22)
(78) Calculating the divergence and the rotation at each CCP on the curved surface, according to whether the values of the divergence and the rotation are zero or not, the plane vector field is divided into four categories.
(79) (1) Irrotational Divergence-Free Vector Field
(80) All the values of divergence and rotation are zero in such plane vector field, and the distribution feature of these feeding vectors is parallel.
(81) (2) Rotational Vector Field
(82) All the values of divergence are zero but the values of rotation are nonzero in such plane vector field, and the distribution feature of these feeding vectors is swirling.
(83) (3) Divergence Vector Field
(84) All the values of rotation are zero but the values of divergence are nonzero in such plane vector field, and the distribution feature of these feeding vectors is radialized.
(85) (4) Rotational Divergence Vector Field
(86) All the values of divergence and rotation are nonzero in such plane vector field, and the distribution feature of these feeding vectors is disorderly.
(87) Calculating the values of the divergence and the rotation for the plane vector field, the projected plane vector field categories of different sub-regions are confirmed. Mapping the abrupt change points onto the machining region of the complex curved surface and fitting curve as boundaries for different sub-regions, the primary surface segmentation based on the vector field of tool feeding direction is achieved.
(88) Step Three: Surface Subdivision for Guaranteeing Stability of Feed Motion (S3)
(89) Calculate the Kinematics Parameters Along the Fitted Streamlines of Space Vector Field (S31)
(90) According to the primary surface segmentation in Step Two, the streamlines in different sub-regions can be fitted by the space vector field. The surface subdivision is carried out based on the kinematics parameters when axes of machine tool feed along the space vector field streamlines, which guarantees the stability of feed motion.
(91) The five-axis CNC machine with AC Type dual rotary table is taken as an example, whose rotation axis of the rotary table A is parallel to the X-axis of the machine coordinate system and the rotation axis of the rotary table C is parallel to the Z-axis of the machine coordinate system. The vector field streamline in the machining region is set as r(ξ), where ξ is the parameter by arc length of the streamline equation. The tool orientation n(ξ)=(n.sub.x(ξ), n.sub.y(ξ), n.sub.z(ξ)) which is the normal vector of the streamline on the sub-region of the complex curved surface is calculated as,
(92)
Where, S.sub.u(u(ξ),v(ξ)) and S.sub.v (u(ξ),v(ξ)) are the first-order partial derivative in the streamline of the complex curved surface S(u,v).
(93) According to the tool orientations at each point on the streamline, the rotation angles of A-axis and C-axis of the machine tool are calculated as,
(94)
(95) Based on Eqs. (27) and (28), the angular velocities of the A-axis and the C-axis of machine tool feeding along the streamline are calculated as,
(96)
Where, t is the processing time and v is the feed speed set.
(97) The angular accelerations of the A-axis and the C-axis of machine tool feeding along the streamline are calculated as,
(98)
(99) The angular velocities ω(ξ) and the angular accelerations α(ξ) of the rotation axes of the machine tool are calculated as,
(100)
(101) Surface Subdivision for Feed Motion Stability (S32)
(102) In order to avoid obvious cutting vibration when the rotation axes of machine tool feed along the streamlines, the angular velocities and the angular accelerations in sub-regions should meet the requirements as,
(103)
Where, σ is a stability coefficient to be set from 1 to 5, which is proportional to the feeding motion stability, and s is the total arc length of the streamline.
(104) Evaluating the feeding motion stability by Eq. (32), take the points which are not fit this Eq. as the abrupt change points. Based on the primary surface segmentation and fitting these abrupt change points in sub-regions as new boundaries, the surface subdivision which guarantees the feeding motion stability is finished.
(105) Step Four: Design of Sub-Regional Toolpath Topology for Curved Surface (S4)
(106) The complex curved surface can be segmented and subdivided into different sub-regions where the feeding vectors are in regular distribution feature and the feeding motion stability is guaranteed when axes of machine tool feed along the space vector field streamlines according to Step Two and Step Three.
(107) Based on the plane field type in different sub-regions, two frequently-used toolpath modes, direction-parallel machining and contour-parallel machining are designed on the plane fields projected by corresponding sub-regions as followings.
(108) (1) Irrotational Divergence-Free Vector Field
(109) The feeding vectors in such plane vector field present a parallel form, thus, the direction-parallel machining is designed. Fitting the vectors at each point as streamlines, the direction-parallel toolpaths are generated.
(110) (2) Rotational Vector Field
(111) The feeding vectors in such plane vector field present as the vorticity form. When the boundaries of sub-regions are parallel to corresponding vector field streamlines, the streamlines are closed vortex lines and the contour-parallel machining is designed. When the boundaries of sub-regions are not parallel to corresponding vector field streamlines, the streamlines are incomplete vortex lines as the circle regions, and the direction-parallel machining is designed. Taking the vector at each point as the tangent direction of the toolpath and fitting the streamline, the gyrate toolpaths are generated.
(112) (3) Divergence Vector Field
(113) The feeding vectors in such plane vector field present a radial form, thus, the direction-parallel machining is designed. Taking the vector at each point as the tangent direction of the toolpath and fitting the streamline, the radial toolpaths are generated.
(114) (4) Rotational Divergence Vector Field
(115) Due to the feature of disorderly distribution, the machining sub-region of the rotational divergence vector field is unpractical for direction-parallel or contour-parallel machining. Hence, the rotational divergence vector field need to be converted into irrotational divergence-free vector field. Based on the parallel form presented by the irrotational divergence-free vector field, the feeding vectors in rotational divergence vector field are modified as followings.
(116) Taking m unit feeding vectors from the rotational divergence vector field B(γ*)=(f.sub.1(x,y),f.sub.2(x,y)) to be converted, the vectors are respectively expressed as B(γ.sub.i*)=(f.sub.1(x.sub.i,y.sub.i),f.sub.2 (x.sub.i,y.sub.i)), where i=1, 2, . . . , m. The average of feeding vectors
(117)
(118) Taking the modified vector at each point as the tangent direction of the toolpath and fitting the streamline, the direction-parallel toolpaths are generated.
(119) Designing the plane toolpath topologies on plane fields corresponded with different sub-regions and mapping the plane toolpaths onto the machining region for curved surface, the space toolpaths are generated and the toolpath topology design in sub-regional processing based on vector field is realized.
(120) The five-axis CNC machine with AC Type dual rotary table is used in the embodiment and a complex surface with geometric feature of high-gradient and multiple-concave-convex, which just has rapidly changed curvature geometric feature, is modelled as an example by the software UG NX and the software MATLAB to describe the implementation process of the invention in detail.
(121) First, model the complex curved surface by software UG NX. The surface is formed as a rotationally symmetrical surface with local gradient of 60° and two irregular pits designed so that the complex surface with geometric feature of high-gradient, multiple-concave-convex and rapidly changed curvature geometric feature is modelled. The functional relationships between the normal curvature in feeding direction and the two errors are established using Eq. (1)-(5) and the two errors are normalized using Eq. (6)-(12). Based on the software MATLAB, the bi-objective optimization model and its evaluation function are constructed and the optimal feeding direction of each point on the surface are calculated using Eq. (13)-(24).
(122) Second, the space vector field is projected into a plane vector field. By the software MATLAB, the divergence and the rotation of each point on the plane vector field are calculated using Eq. (25) and (26), where the maximum and the minimum of the divergence are 0.2299 and 0, and the maximum and the minimum of the rotation are 0.1191 and 0.0045. According to whether the divergence and the rotation are zeros or not to classify different sub-regions, the primary surface segmentation for this complex curved surface is achieved based on sub-regional boundaries fitting by points where the divergence or the rotation abrupt changes. In which, sub-regions of pit are corresponded with the rotational divergence vector field and other sub-regions are corresponded with the irrotational divergence-free vector field.
(123) Then, using function streamslice of the software MATLAB to fit the space vectors as streamlines, the angular velocities and the angular accelerations of the A-axis of the machine tool feeding along the streamlines are calculated using Eq. (27)-(31). In the sub-regions of two pits, the maximum angular velocity is 16.56°/s and the maximum angular acceleration is 864.29°/s.sup.2. Setting the stability coefficient as 2 according to Eq. (32), the new boundaries for surface subdivision are fitted by points with the abrupt change of angular velocity or angular acceleration and the surface subdivision for this complex curved surface is finished.
(124) Finally, referring to the frequently-used direction-parallel machining and contour-parallel machining, the sub-regional toolpath topologies are designed. The sub-regions of pit of this complex curved surface are corresponded with the rotational divergence vector field where the feeding vectors are modified using Eq. (33) and toolpath with direction-parallel topology is designed as shown in
(125) In order to verify the effectiveness of the proposed method, a comparison experiment between conventional processing and proposed sub-regional processing is carried out. The same machining parameters are taken in comparison experiment, where the spindle speed is 5000 r/min, the cutting depth is 0.25 mm, the feed rate is 300 mm/min, the side-step is 0.2 mm, and the step-size is 1.8 mm. The experimental results show that processing by the proposed method can effectively improve the processing quality of the complex curved surface parts compared with the parts processed by the conventional global processing method. The machining region at a same height of 20 mm from the top of the workpiece is taken as example, where the surface toughness and surface profile error are measured. The surface roughness of the complex curved surface obtained by the global processing is 4.7384 m, and the surface roughness of the complex curved surface obtained by the proposed method is 3.6715 m, which is 22.52% lower than the global processing.