A CNC machining process simulation system
By combining mechanical models and deep reinforcement learning to optimize tool paths in the CNC machining process simulation system, and combining the deformation and thermal stress monitoring modules, the problem of the traditional system's insufficient monitoring capabilities for material deformation and thermal stress is solved, and the stability of the workpiece is achieved. evaluation and improvement of processing quality.
Patent Information
- Application Number
- CN202410487149.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-04-22
AI Technical Summary
The traditional CNC machining process simulation system has limited monitoring capabilities for material deformation and residual stress, and cannot accurately evaluate the stability of the workpiece after processing. Moreover, the monitoring of temperature distribution and thermal stress is simple, and it cannot comprehensively evaluate the impact of thermal stress on the workpiece and tools, resulting in Deformation and thermal cracking problems may occur.
The tool path optimization module is used to optimize the tool path through mechanical models and deep reinforcement learning methods. It combines the deformation stress monitoring module and the thermal problem monitoring module to monitor material deformation and residual stress, evaluate the temperature distribution and thermal stress during the machining process, and use the CAD model to analyze And the CAM module generates optimized tool paths, reduces idle and improves cutting efficiency, and predicts possible deformation and cracking problems.
It achieves accurate assessment of the stability of the workpiece after processing, improves processing efficiency and surface quality, comprehensively monitors and analyzes thermal stress, avoids possible deformation and crack problems, and ensures processing quality.
Smart Images

Figure CN118393991B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of numerical control machining, in particular to a numerical control machining process simulation system. Background Art
[0002] CNC machining is a process method for processing parts on CNC machine tools. The process procedures of CNC machine tool processing and traditional machine tool processing are generally consistent. Generally speaking, it is a mechanical processing that uses digital information to control the displacement of parts and tools.
[0003] For example, the patent with publication number CN116300527B discloses a CNC machining process simulation system and simulation equipment, which involve fields related to mechanical engineering, including a CNC machine tool, wherein a sliding door and a simulation operation flat panel are slidingly arranged at the front end of the CNC machine tool, and a tool setting simulation component is arranged inside the CNC machine tool, and a photoelectric integrated arc plate and a photoelectric integrated straight plate are driven by a dual-axis cylinder according to set data to simulate the size of a workpiece, and the distance difference between the tool assembly and multiple groups of photoelectric integrated arc plates and other components is determined by the reset state of the set positioning parts and the servo motor, and then the first photoelectric sensor and the photoelectric integrated arc plate are driven to perform photoelectric detection under the high-precision adjustment action of the adjustment cylinder and the servo motor and other components, thereby simulating the tool setting simulation process through the high-precision overlapping detection effect of the photoelectric detection, thereby further improving the training effect for the trainees.
[0004] Although the above scheme has the above advantages, the traditional CNC machining process simulation system has limited monitoring capabilities for material deformation and residual stress, and cannot accurately evaluate the stability of the workpiece after processing, which may lead to deformation and stress concentration during the processing. At the same time, the monitoring of temperature distribution and thermal stress during the processing is usually relatively simple, and it is impossible to fully evaluate the impact of thermal stress on the workpiece and tool, resulting in thermal cracking problems during the processing. Therefore, a CNC machining process simulation system is urgently needed to solve such problems. Summary of the invention
[0005] In view of the shortcomings of the prior art, the present invention provides a CNC machining process simulation system to solve the problems existing in the prior art, such as limited monitoring capabilities of material deformation and residual stress, inability to accurately evaluate the stability of the workpiece after machining, and the fact that the monitoring of temperature distribution and thermal stress during the machining process is usually relatively simple, and inability to comprehensively evaluate the impact of thermal stress on the workpiece and cutting tool.
[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0007] The present invention provides a numerical control machining process simulation system, comprising:
[0008] The tool path optimization module is responsible for optimizing the tool path. It generates a preliminary tool path based on the workpiece geometry and processing requirements. It optimizes the tool path through mechanical models and deep reinforcement learning methods to reduce idling and improve cutting efficiency.
[0009] Toolpath Optimization Module includes:
[0010] CAD model parsing module, used to parse the CAD model and extract the geometric information of the workpiece;
[0011] The CAM module is responsible for converting the CAD model into an execution machining path, generating tool paths, cutting parameters and machining sequences according to the workpiece geometry information, machining requirements and machine tool parameters;
[0012] The tool path generation module generates the specific motion trajectory of the tool on the workpiece surface based on the cutting path information provided by the CAM module;
[0013] Deformation stress monitoring module, used to monitor material deformation and residual stress distribution during processing;
[0014] The deformation stress monitoring module includes:
[0015] Material property unit, used to construct the mechanical properties parameters of the basic workpiece material, including elastic modulus and Poisson's ratio;
[0016] A deformation simulation unit is used to simulate the deformation of the material during the machining process and then predict the dimensional changes of such workpieces based on the deformation;
[0017] Stress analysis unit, which calculates the residual stress distribution of the material during processing based on stress changes;
[0018] Thermal problem monitoring module, which monitors the temperature distribution of the tool and workpiece during the cutting process and performs thermal stress assessment based on the temperature distribution;
[0019] The thermal problem monitoring module includes:
[0020] Temperature simulation unit: The temperature simulation unit simulates the temperature changes of the tool and the workpiece during the cutting process and outputs the temperature change results as evaluation indicators;
[0021] Thermal stress analysis unit, which evaluates the impact on the workpiece and tool based on the thermal stress and temperature changes generated during machining;
[0022] In the tool path optimization module, tool path optimization methods include:
[0023] Extract the geometric features of the workpiece from the CAD model, including curvature and normal vector, and set cutting parameters, including cutting speed, feed rate, and cutting depth;
[0024] The cutting force is calculated using the mechanical model, and the effect of cutting temperature on the cutting force is added;
[0025] Use deep reinforcement learning method to optimize cutting force, consider cutting force as part of loss function, build reinforcement learning model, optimize tool path through policy gradient method to minimize cutting force;
[0026] Then, the particle swarm algorithm is used to optimize the tool path, and the multi-objective problem optimization is carried out by integrating the minimization of cutting force and machining efficiency;
[0027] The specific steps of tool path optimization include: constructing Kennametal cutting force model, using Kennametal cutting force model to calculate cutting force F c : Among them, K c Represents the cutting force coefficient, V c is the cutting speed, f is the feed speed, d is the cutting depth, T c represents cutting temperature, T0 is the reference temperature, a, b, c are the indexes of cutting parameters;
[0028] Use deep neural network to approximate the cutting force function, define the state space S, action space A and reward function R, represent the tool path as state s, use discretization to represent the set of points in the path, define action a as the movement of the midpoint in the path, and define the reward function, that is, the negative value of the cutting force R(s,a)=-F c ;
[0029] Construct a deep neural network to approximate the cutting force function F c (s,a), input state s and action a, output approximate value of cutting force;
[0030] The specific steps of tool path optimization also include:
[0031] a. Use the deep Qlearning algorithm for training and initialize the parameters of the deep neural network;
[0032] b. Select action a using the εgreedy strategy, and select the action based on the current state s and the cutting force value predicted by the neural network;
[0033] c. Execute the action and observe the reward R and next state of the environment feedback;
[0034] d. Update the parameters of the neural network to minimize the error between the predicted cutting force and the actual observed cutting force;
[0035] Repeat steps bd until the predetermined number of training times is reached;
[0036] The specific steps of tool path optimization also include:
[0037] The cutting force F c and processing efficiency η are regarded as the target to be optimized, and the objective function F(F c ,η) is the weighted sum of the two objectives: Φ(F c ,η)=w1·F c +w2·(1-η), where w1 and w2 are weight coefficients;
[0038] Use the particle swarm algorithm for optimization, initialize the particle swarm, each particle represents a tool path, calculate the fitness value of each particle, that is, the objective function value, based on the performance of the current tool path, update the particle's speed and position, and update the solution: , in, is the j-th velocity of particle i, is the j-th dimension position of particle i, pbest i,j is the best position of particle i, gbest j is the global optimal position, w is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random numbers;
[0039] Repeat the fitness value calculation and particle data update until the maximum number of iterations is reached;
[0040] The present invention is further configured as follows: the material deformation and residual stress distribution monitoring method includes:
[0041] The mechanical properties parameters of the basic workpiece material are constructed through the deformation stress monitoring module, and the elastic modulus and Poisson's ratio of the workpiece material are extracted;
[0042] Input material property parameters into subsequent deformation simulation and stress analysis units;
[0043] The deformation simulation unit uses the finite element method to establish the geometric model and meshing of the workpiece;
[0044] Apply loading conditions to simulate mechanical deformation during machining, including cutting and supporting forces;
[0045] The present invention is further configured as follows: the material deformation and residual stress distribution monitoring method also includes:
[0046] Calculate the strain field of the workpiece during machining based on loading conditions and material properties;
[0047] The stress analysis unit calculates the stress field using the strain field obtained by the deformation simulation unit;
[0048] According to the calculation results of stress field, the residual stress distribution of materials during processing is evaluated;
[0049] According to the residual stress distribution, the stability of the workpiece after processing is evaluated and possible deformation and stress concentration areas are predicted;
[0050] The present invention is further configured as follows: the thermal stress assessment method includes:
[0051] The temperature simulation unit establishes a cutting heat conduction model based on cutting conditions, tool material and workpiece material parameters, and uses the heat conduction equation to simulate the temperature changes of the tool and workpiece during the cutting process;
[0052] Then the heat conduction equation is numerically solved to obtain the temperature distribution of the tool and the workpiece during the cutting process;
[0053] The thermal stress analysis unit calculates the thermal stress generated during the cutting process based on the temperature distribution obtained by the temperature simulation unit, and calculates the thermal stress distribution of the workpiece and the tool during the cutting process;
[0054] Analyze the impact of thermal stress on workpieces and cutting tools, and evaluate possible deformation and crack problems;
[0055] The present invention is further configured as follows: the thermal stress assessment step comprises:
[0056] According to the cutting conditions, tool material and workpiece material parameters, a cutting heat conduction model is established; the temperature changes of the tool and workpiece during the cutting process are simulated using the heat conduction equation, which is expressed as: Where T is temperature, t is time, α is the thermal diffusion coefficient, Q is the heat source, represents the partial derivative, represents the second-order spatial derivative of temperature, Q(x,y,z,t) represents the external heat source at position (x,y,z) and time t in space and time;
[0057] The heat conduction equation is numerically solved to obtain the temperature distribution of the tool and the workpiece during the cutting process;
[0058] The present invention is further configured as follows: the thermal stress assessment step further comprises:
[0059] The temperature change result is used as an evaluation index, and the thermal stress generated during the cutting process is calculated according to the temperature distribution obtained by the temperature simulation unit: σ = α·(T-T0), where σ is the thermal stress, α is the linear thermal expansion coefficient, T is the current temperature, and T0 is the initial temperature;
[0060] The calculated thermal stress distribution is then used to analyze the impact on the workpiece and tool.
[0061] Compared with the prior art, the present invention has the following beneficial effects:
[0062] The present invention improves machining efficiency and surface quality by combining CAD model analysis, CAM and tool path optimization. In tool path optimization, the geometric features of the workpiece are extracted by the CAD model analysis module, and then the CAD model is converted into an executable machining path by using the CAM module. The mechanical model and deep reinforcement learning method are used to calculate the cutting force, and the cutting force is optimized by using the deep reinforcement learning method to minimize the cutting force.
[0063] The present invention adopts a particle swarm algorithm to perform multi-objective optimization to improve processing efficiency and surface quality;
[0064] The present invention constructs the mechanical performance parameters of the workpiece material through the material property unit, establishes the geometric model and meshing of the workpiece, simulates the mechanical deformation during the processing, calculates the strain field and residual stress distribution of the workpiece during the processing according to the loading conditions and material properties, and evaluates the stability of the workpiece after processing;
[0065] The present invention establishes a cutting heat conduction model to simulate the temperature changes of the tool and the workpiece during the cutting process, and performs thermal stress evaluation based on the temperature distribution, analyzes the impact of thermal stress on the workpiece and the tool, and evaluates possible deformation and crack problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 It is a framework diagram of the numerical control machining process simulation system of the present invention. DETAILED DESCRIPTION
[0067] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0068] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0069] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0070] Example
[0071] See also Figure 1 The present invention provides a numerical control machining process simulation system, comprising:
[0072] The tool path optimization module is responsible for optimizing the tool path. It generates a preliminary tool path based on the workpiece geometry and processing requirements. It optimizes the tool path through mechanical models and deep reinforcement learning methods to reduce idling and improve cutting efficiency.
[0073] Toolpath Optimization Module includes:
[0074] CAD model parsing module, used to parse the CAD model and extract the geometric information of the workpiece;
[0075] The CAM module is responsible for converting the CAD model into an execution machining path, generating tool paths, cutting parameters and machining sequences according to the workpiece geometry information, machining requirements and machine tool parameters;
[0076] The tool path generation module generates the specific motion trajectory of the tool on the workpiece surface based on the cutting path information provided by the CAM module;
[0077] In the tool path optimization module, tool path optimization methods include:
[0078] Extract the geometric features of the workpiece from the CAD model, including curvature and normal vector, and set cutting parameters, including cutting speed, feed rate, and cutting depth;
[0079] The cutting force is calculated using the mechanical model, and the effect of cutting temperature on the cutting force is added;
[0080] Use deep reinforcement learning method to optimize cutting force, consider cutting force as part of loss function, build reinforcement learning model, optimize tool path through policy gradient method to minimize cutting force;
[0081] Then, the particle swarm algorithm is used to optimize the tool path, and the multi-objective problem optimization is carried out by integrating the minimization of cutting force and machining efficiency;
[0082] The specific steps of tool path optimization include: constructing Kennametal cutting force model, using Kennametal cutting force model to calculate cutting force F c : Among them, K c Represents the cutting force coefficient, V c is the cutting speed, f is the feed speed, d is the cutting depth, T crepresents cutting temperature, T0 is the reference temperature, a, b, c are the indexes of cutting parameters;
[0083] Use deep neural network to approximate the cutting force function, define the state space S, action space A and reward function R, represent the tool path as state s, use discretization to represent the set of points in the path, define action a as the movement of the midpoint in the path, and define the reward function, that is, the negative value of the cutting force R(s,a)=-F c ;
[0084] Construct a deep neural network to approximate the cutting force function F c (s,a), input state s and action a, output approximate value of cutting force;
[0085] a. Use the deep Qlearning algorithm for training and initialize the parameters of the deep neural network;
[0086] b. Select action a using the εgreedy strategy, and select the action based on the current state s and the cutting force value predicted by the neural network;
[0087] c. Execute the action and observe the reward R and next state of the environment feedback;
[0088] d. Update the parameters of the neural network to minimize the error between the predicted cutting force and the actual observed cutting force;
[0089] Repeat steps bd until the predetermined number of training times is reached;
[0090] The specific steps of tool path optimization also include:
[0091] The cutting force F c and processing efficiency η are regarded as the target to be optimized, and the objective function F(F c ,η) is the weighted sum of the two objectives: F(F c ,η)=w1·F c +w2·(1-η), where w1 and w2 are weight coefficients;
[0092] Use the particle swarm algorithm for optimization, initialize the particle swarm, each particle represents a tool path, calculate the fitness value of each particle, that is, the objective function value, based on the performance of the current tool path, update the particle's speed and position, and update the solution: , in, is the j-th velocity of particle i, is the j-th dimension position of particle i, pbest i,j is the best position of particle i, gbest j is the global optimal position, w is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random numbers;
[0093] Repeat the fitness value calculation and particle data update until the maximum number of iterations is reached;
[0094] Deformation stress monitoring module, used to monitor material deformation and residual stress distribution during processing;
[0095] The deformation stress monitoring module includes:
[0096] Material property unit, used to construct the mechanical properties parameters of the basic workpiece material, including elastic modulus and Poisson's ratio;
[0097] A deformation simulation unit is used to simulate the deformation of the material during the machining process and then predict the dimensional changes of such workpieces based on the deformation;
[0098] Stress analysis unit, which calculates the residual stress distribution of the material during processing based on the stress change, thereby evaluating the stability of the workpiece after processing;
[0099] Material deformation and residual stress distribution monitoring methods include:
[0100] The mechanical properties parameters of the basic workpiece material are constructed through the deformation stress monitoring module, and the elastic modulus and Poisson's ratio of the workpiece material are extracted;
[0101] Input material property parameters into subsequent deformation simulation and stress analysis units;
[0102] The deformation simulation unit uses the finite element method to establish the geometric model and meshing of the workpiece;
[0103] Apply loading conditions to simulate mechanical deformation during machining, including cutting and supporting forces;
[0104] Material deformation and residual stress distribution monitoring methods also include:
[0105] Calculate the strain field of the workpiece during machining based on loading conditions and material properties;
[0106] The stress analysis unit calculates the stress field using the strain field obtained by the deformation simulation unit;
[0107] According to the calculation results of stress field, the residual stress distribution of materials during processing is evaluated;
[0108] According to the residual stress distribution, the stability of the workpiece after processing is evaluated and possible deformation and stress concentration areas are predicted;
[0109] Thermal problem monitoring module, which monitors the temperature distribution of the tool and workpiece during the cutting process and performs thermal stress assessment based on the temperature distribution;
[0110] The thermal problem monitoring module includes:
[0111] Temperature simulation unit: The temperature simulation unit simulates the temperature changes of the tool and the workpiece during the cutting process and outputs the temperature change results as evaluation indicators;
[0112] Thermal stress analysis unit, which evaluates the impact on the workpiece and tool based on the thermal stress and temperature changes generated during machining;
[0113] Heat stress assessment methods include:
[0114] The temperature simulation unit establishes a cutting heat conduction model based on cutting conditions, tool material and workpiece material parameters, and uses the heat conduction equation to simulate the temperature changes of the tool and workpiece during the cutting process;
[0115] Then the heat conduction equation is numerically solved to obtain the temperature distribution of the tool and the workpiece during the cutting process;
[0116] The temperature change results here are used as evaluation indicators for subsequent thermal stress analysis;
[0117] The thermal stress analysis unit calculates the thermal stress generated during the cutting process based on the temperature distribution obtained by the temperature simulation unit, and calculates the thermal stress distribution of the workpiece and the tool during the cutting process;
[0118] Analyze the impact of thermal stress on workpieces and cutting tools, and evaluate possible deformation and crack problems;
[0119] The steps in a heat stress assessment include:
[0120] According to the cutting conditions, tool material and workpiece material parameters, a cutting heat conduction model is established; the temperature changes of the tool and workpiece during the cutting process are simulated using the heat conduction equation, which is expressed as: Where T is temperature, t is time, α is the thermal diffusion coefficient, Q is the heat source, represents the partial derivative, represents the second-order spatial derivative of temperature, Q(x,y,z,t) represents the external heat source at position (x,y,z) and time t in space and time;
[0121] The heat conduction equation is numerically solved to obtain the temperature distribution of the tool and the workpiece during the cutting process;
[0122] The temperature change result is used as an evaluation index, and the thermal stress generated during the cutting process is calculated according to the temperature distribution obtained by the temperature simulation unit: σ = α·(T-T0), where σ is the thermal stress, α is the linear thermal expansion coefficient, T is the current temperature, and T0 is the initial temperature;
[0123] The calculated thermal stress distribution is then used to analyze the impact on the workpiece and tool.
[0124] The present invention improves machining efficiency and surface quality by combining CAD model analysis, CAM and tool path optimization. In tool path optimization, the geometric features of the workpiece are extracted by the CAD model analysis module, and then the CAD model is converted into an executable machining path by using the CAM module. The mechanical model and deep reinforcement learning method are used to calculate the cutting force, and the cutting force is optimized by using the deep reinforcement learning method to minimize the cutting force; a particle swarm algorithm is used for multi-objective optimization to improve machining efficiency and surface quality; the mechanical property parameters of the workpiece material are constructed by the material property unit, the geometric model and gridding of the workpiece are established, the mechanical deformation during the machining process is simulated, the strain field and residual stress distribution of the workpiece during the machining process are calculated according to the loading conditions and material properties, and the stability of the workpiece after machining is evaluated; a cutting heat conduction model is established to simulate the temperature changes of the tool and the workpiece during the cutting process, and thermal stress is evaluated according to the temperature distribution, the influence of thermal stress on the workpiece and the tool is analyzed, and possible deformation and crack problems are evaluated.
[0125] The present invention combines a CAD model analysis module, a CAM module and a tool path optimization module to generate an optimized tool path according to the workpiece geometry and processing requirements, reduce idling, and improve cutting efficiency. At the same time, it provides comprehensive material deformation and residual stress distribution monitoring through deformation stress monitoring, accurately evaluates the stability of the workpiece after processing, and predicts possible deformation and stress concentration areas. In addition, a thermal problem monitoring module is added to establish a cutting heat conduction model through a temperature simulation unit, comprehensively monitor and analyze the temperature distribution of the tool and the workpiece during the cutting process, and perform thermal stress evaluation, more accurately analyze the impact of thermal stress on the workpiece and the tool, avoid possible problems such as thermal cracks, and more effectively improve processing efficiency and ensure processing quality.
[0126] The above contents are only for explaining the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.
Claims
1. A numerical control machining process simulation system, characterized in that: include: The tool path optimization module is responsible for optimizing the tool path. It generates a preliminary tool path based on the workpiece geometry and processing requirements. It optimizes the tool path through mechanical models and deep reinforcement learning methods to reduce idling and improve cutting efficiency. Toolpath Optimization Module includes: CAD model parsing module, used to parse the CAD model and extract the geometric information of the workpiece; The CAM module is responsible for converting the CAD model into an execution machining path, generating tool paths, cutting parameters and machining sequences according to the workpiece geometry information, machining requirements and machine tool parameters; The tool path generation module generates the specific motion trajectory of the tool on the workpiece surface based on the cutting path information provided by the CAM module; Deformation stress monitoring module, used to monitor material deformation and residual stress distribution during processing; The deformation stress monitoring module includes: Material property unit, used to construct the mechanical properties parameters of the basic workpiece material, including elastic modulus and Poisson's ratio; A deformation simulation unit is used to simulate the deformation of the material during the machining process and then predict the dimensional changes of such workpieces based on the deformation; Stress analysis unit, which calculates the residual stress distribution of the material during processing based on stress changes; Thermal problem monitoring module, which monitors the temperature distribution of the tool and workpiece during the cutting process and performs thermal stress assessment based on the temperature distribution; The thermal problem monitoring module includes: Temperature simulation unit: The temperature simulation unit simulates the temperature changes of the tool and the workpiece during the cutting process and outputs the temperature change results as evaluation indicators; Thermal stress analysis unit, which evaluates the impact on the workpiece and tool based on the thermal stress and temperature changes generated during machining; In the tool path optimization module, tool path optimization methods include: Extract the geometric features of the workpiece from the CAD model, including curvature and normal vector, and set cutting parameters, including cutting speed, feed rate, and cutting depth; The cutting force is calculated using the mechanical model, and the effect of cutting temperature on the cutting force is added; Use deep reinforcement learning method to optimize cutting force, consider cutting force as part of loss function, build reinforcement learning model, optimize tool path through policy gradient method to minimize cutting force; Then, the particle swarm algorithm is used to optimize the tool path, and the multi-objective problem optimization is carried out by integrating the minimization of cutting force and machining efficiency; The specific steps of tool path optimization include: building a Kennametal cutting force model, using the Kennametal cutting force model to calculate the cutting force Among them, Kc represents the cutting force coefficient, Vc is the cutting speed, f is the feed speed, d is the cutting depth, Tc represents the cutting temperature, T0 is the reference temperature, and a, b, c are the indexes of cutting parameters; Use deep neural network to approximate the cutting force function, define the state space S, action space A and reward function R, represent the tool path as state s, use discretization to represent the set of points in the path, define action a as the movement of the midpoint in the path, and define the reward function, that is, the negative value of the cutting force R(s,a)=-Fc; Construct a deep neural network to approximate the cutting force function Fc(s,a), input the state s and action a, and output the approximate value of the cutting force; The specific steps of tool path optimization also include: a. Use the deep Qlearning algorithm for training and initialize the parameters of the deep neural network; b. Select action a using the εgreedy strategy, and select the action based on the current state s and the cutting force value predicted by the neural network; c. Execute the action and observe the reward R and next state of the environment feedback; d. Update the parameters of the neural network to minimize the error between the predicted cutting force and the actual observed cutting force; Repeat steps bd until the predetermined number of training times is reached; The cutting force Fc and machining efficiency η are regarded as the targets to be optimized, and the objective function F(Fc,η) is defined as the weighted sum of the two targets: F(Fc,η)=w1·F c +w2·(1-η), where w1 and w2 are weight coefficients; Use the particle swarm algorithm for optimization, initialize the particle swarm, each particle represents a tool path, calculate the fitness value of each particle, that is, the objective function value, based on the performance of the current tool path, update the particle's speed and position, and update the solution: , in, is the j-th velocity of particle i, is the j-th dimension position of particle i, pbesti,j is the best position of particle i, gbestj is the global best position, w is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random numbers; Repeat the fitness value calculation and particle data update until the maximum number of iterations is reached.
2. A numerical control machining process simulation system according to claim 1, characterized in that: Material deformation and residual stress distribution monitoring methods include: The mechanical properties parameters of the basic workpiece material are constructed through the deformation stress monitoring module, and the elastic modulus and Poisson's ratio of the workpiece material are extracted; Input material property parameters into subsequent deformation simulation and stress analysis units; The deformation simulation unit uses the finite element method to establish the geometric model and meshing of the workpiece; Apply loading conditions to simulate mechanical deformation during machining, including cutting and supporting forces.
3. A numerical control machining process simulation system according to claim 2, characterized in that: Material deformation and residual stress distribution monitoring methods also include: Calculate the strain field of the workpiece during machining based on loading conditions and material properties; The stress analysis unit calculates the stress field using the strain field obtained by the deformation simulation unit; According to the calculation results of stress field, the residual stress distribution of materials during processing is evaluated; According to the residual stress distribution, the stability of the workpiece after processing is evaluated and possible deformation and stress concentration areas are predicted.
4. A numerical control machining process simulation system according to claim 3, characterized in that: Heat stress assessment methods include: The temperature simulation unit establishes a cutting heat conduction model based on cutting conditions, tool material and workpiece material parameters, and uses the heat conduction equation to simulate the temperature changes of the tool and workpiece during the cutting process; Then the heat conduction equation is numerically solved to obtain the temperature distribution of the tool and the workpiece during the cutting process; The thermal stress analysis unit calculates the thermal stress generated during the cutting process based on the temperature distribution obtained by the temperature simulation unit, and calculates the thermal stress distribution of the workpiece and the tool during the cutting process; Analyze the impact of thermal stress on workpieces and cutting tools, and evaluate possible deformation and crack problems.
5. A numerical control machining process simulation system according to claim 4, characterized in that: The steps in a heat stress assessment include: According to the cutting conditions, tool material and workpiece material parameters, a cutting heat conduction model is established; the temperature changes of the tool and workpiece during the cutting process are simulated using the heat conduction equation, which is expressed as: Where T is temperature, t is time, α is the thermal diffusion coefficient, Q is the heat source, represents the partial derivative, represents the second-order spatial derivative of temperature, Q(x,y,z,t) represents the external heat source at position (x,y,z) and time t in space and time; The heat conduction equation is numerically solved to obtain the temperature distribution of the tool and workpiece during the cutting process.
6. A numerical control machining process simulation system according to claim 5, characterized in that: The heat stress assessment steps also include: The temperature change result is used as an evaluation index, and the thermal stress generated during the cutting process is calculated according to the temperature distribution obtained by the temperature simulation unit: σ = α·(T-T0), where σ is the thermal stress, α is the linear thermal expansion coefficient, T is the current temperature, and T0 is the initial temperature; The calculated thermal stress distribution is then used to analyze the impact on the workpiece and tool.
Citation Information
Patent Citations
A numerical control machining process simulation system and simulation equipment
CN116300527B
Digital twinning method for thermal expansion deformation of contact position of end milling cutter and workpiece
CN116305630A
CAM system for automatically controlling machining center according to drawings
CN117348524A
Die 2D processing evaluation method and system based on UG software
CN117348525A
Intelligent design method of hole machining tool for aerospace materials
CN117592223A
