A three-dimensional visual tool design system and method with optimization function

The 3D visualization tool design system built using the pythonocc module, combined with parameterization, simulation, and optimization modules, solves the problem of low tool design efficiency, realizes efficient special-purpose tool design and optimization, and improves machining efficiency and tool life.

CN112651148BActive Publication Date: 2024-09-20HARBIN UNIV OF SCI & TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202011079646.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-10
Publication Date
2024-09-20
Estimated Expiration
2040-10-10

AI Technical Summary

Technical Problem

The existing tool design, simulation and optimization processes have not been effectively integrated, resulting in low efficiency in specialized tool design and difficulty in meeting the demands of modern manufacturing technology for high-efficiency machining.

Method used

A 3D visualization tool design system built using the pythonocc module combines tool parameterization, finite element simulation, and optimization modules. Parameters are input through a GUI interface to generate a 3D model, which is then simulated using finite element simulation software. The optimization module is used for data fitting and optimization to obtain the optimal machining parameters and tool parameters.

Benefits of technology

It integrates the tool design, simulation and optimization process, improves the efficiency of specialized tool design, obtains optimal parameters, extends tool life and improves the surface quality of machined workpieces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112651148B
    Figure CN112651148B
Patent Text Reader

Abstract

The present invention relates to a three-dimensional visualized tool design system and method with an optimization function, which belongs to the field of computer integrated manufacturing technology. The system overall framework is constructed by a Python OCC module, a three-dimensional model of the tool is generated by a tool parameterization module, the three-dimensional model of the tool is placed in finite element simulation software by a finite element simulation module, finite element simulation is performed according to information of a workpiece to be processed, simulation result data is obtained, and then the simulation result data is fitted by an optimization module, the function obtained after fitting is used as an objective function, and the objective function is optimized by an optimization algorithm to obtain optimal processing parameters and / or tool parameters, thereby combining tool design, simulation, and optimization processes, realizing special tool design for processing requirements, and significantly improving the design efficiency of special tools, while being able to obtain optimal tool parameters and processing parameters, thereby improving the service life of the tool and the processing surface quality of the workpiece.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer integrated manufacturing technology, and in particular to a three-dimensional visualized tool design system and method with optimization function. Background Art

[0002] Computer-aided optimization (CAO) is one of the important foundations of modern manufacturing technology. For a long time, people have been working hard to improve the practicality, integration and intelligence of computer-aided optimization systems. Especially with the acceleration of product updates and the increasing complexity of product process requirements, there are higher and more urgent requirements for the ability of computer-aided optimization in processing. However, at present, there is no system and method that combines tool design, simulation and optimization processes, which makes the design efficiency of specialized tools low. Therefore, there is an urgent need for a three-dimensional visual tool design system and method to greatly improve the design efficiency of specialized tools. Summary of the invention

[0003] The purpose of the present invention is to provide a three-dimensional visual tool design system and method with optimization function, which combines the design, simulation and optimization process of the tool to realize the design of special tools for processing requirements and significantly improve the design efficiency of special tools. At the same time, it can obtain the optimal tool parameters and processing parameters, thereby improving the service life of the tool and the processing surface quality of the workpiece.

[0004] To achieve the above object, the present invention provides the following solutions:

[0005] A three-dimensional visual tool design system with optimization function, using PythonOCC module to build the overall framework of the system, the system includes tool parameterization module, finite element simulation module, database module and optimization module;

[0006] The tool parameterization module is connected to the database module; the tool parameterization module includes a GUI interface; the tool parameterization module is used to change the parameterization file through the GUI interface, open the tool template through the Python program, run the changed parameterization file, and generate a three-dimensional model of the tool; the changed parameterization file includes tool structure information and tool parameter information; the tool parameter information includes tool angle, number of blades and length of the tool processing part;

[0007] The finite element simulation module is connected to the tool parameterization module and the database module respectively; the finite element simulation module is used to put the three-dimensional model of the tool into the finite element simulation software through the Python program, perform finite element simulation according to the information of the workpiece to be processed, obtain simulation result data, and store the simulation result data in the database module through the Python program; the information of the workpiece to be processed includes cutting parameters and the material of the workpiece to be processed; the simulation result data includes cutting force, cutting temperature, tool wear and stress field distribution of the workpiece after cutting;

[0008] The database module is connected to the optimization module; the database module is used to store the simulation result data;

[0009] The optimization module is used to call the simulation result data in the database module through a Python program, fit the simulation result data, use the function obtained after fitting as the objective function, and optimize the objective function through an optimization algorithm to obtain the optimal processing parameters and / or tool parameters.

[0010] A three-dimensional visual tool design method with optimization function, the method comprising the following steps:

[0011] Use the tool parameterization module to open the tool template and run the modified parameterization file to generate a three-dimensional model of the tool;

[0012] Using a finite element simulation module, the three-dimensional model of the tool is placed in a finite element simulation software, finite element simulation is performed according to information of the workpiece to be processed, simulation result data is obtained, and the simulation result data is stored in the database module through a Python program;

[0013] Using the optimization module to call the simulation result data and the test result data in the database module, fitting the simulation result data and the test result data, using the function obtained after fitting as the objective function, and optimizing the objective function through an optimization algorithm to obtain the optimal processing parameters and / or tool parameters;

[0014] The evaluation module is used to call the simulation result data in the database module, and the evaluation index is determined according to the actual processing requirements and tool requirements. The simulation result data is evaluated using the evaluation index to obtain the tool performance.

[0015] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0016] The present invention provides a three-dimensional visualized tool design system and method with optimization function. The PythonOCC module is used to build the overall framework of the system. The tool template is opened by the tool parameterization module, and the modified parameterization file is run to generate a three-dimensional model of the tool. The three-dimensional model of the tool is placed in finite element simulation software by the finite element simulation module. Finite element simulation is performed according to information of a workpiece to be processed to obtain simulation result data. The simulation result data is then fitted by the optimization module, and the function obtained after fitting is used as the objective function. The objective function is optimized by an optimization algorithm to obtain the optimal processing parameters and / or tool parameters. Furthermore, the present invention only requires the user to input information about the workpiece to be processed, tool structure information and tool parameter information, and can automatically generate a three-dimensional tool model, and automatically import the generated three-dimensional tool model into the finite element simulation software for cutting simulation, obtain simulation result data, and select the corresponding optimization algorithm to obtain the optimal processing parameters or tool parameters. It has the characteristics of visualization, more intuitiveness, and high efficiency, avoids information interaction between multiple software, combines tool design, simulation, and optimization processes on the same platform, realizes special tool design for processing requirements, and significantly improves the design efficiency of special tools, while obtaining the optimal tool parameters and processing parameters, which can increase the service life of the tool and the surface quality of the processed workpiece. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 This is a flow chart of the design method provided in Example 2 of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0020] The purpose of the present invention is to provide a three-dimensional visual tool design system and method with optimization function, which combines the design, simulation and optimization processes of the tool on the same platform, realizes the design of special tools for processing requirements, and significantly improves the design efficiency of special tools. At the same time, it can obtain the optimal tool parameters and processing parameters, thereby improving the service life of the tool and the processing surface quality of the workpiece.

[0021] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0022] Embodiment 1:

[0023] This embodiment is used to provide a three-dimensional visual tool design system with optimization function, and the overall framework of the system is built using the pythonocc module. The system includes a tool parameterization module, a finite element simulation module, a database module and an optimization module;

[0024] The tool parameterization module is connected to the database module; the tool parameterization module includes a GUI interface; the tool parameterization module is used to change the parameterization file through the GUI interface, and open the tool template through the Python program, run the changed parameterization file (.exp file), and generate a tool three-dimensional model, specifically including: first selecting the tool type that needs to be parameterized, obtaining the parameterization file corresponding to this tool type, and using the GUI interface to enter the corresponding parameters in the parameterization file, change the parameterization file, obtain the changed parameterization file, and open the tool template through the Python program, run the changed parameterization file (.exp file), and generate a tool three-dimensional model, thereby realizing the design of the tool. The changed parameterization file includes tool structure information and tool parameter information; the tool parameter information includes tool angle, number of blades, and length of the tool processing part; the tool angle mainly includes front angle and back angle, etc.

[0025] In addition, the tool parameterization module uses Python.PyQt5 module to set its GUI interface; the tool parameterization module is also used to use the pythonocc module to display the tool three-dimensional model generated after the tool is parameterized and store it in the database module, and then by displaying the tool three-dimensional model, the changes in the tool three-dimensional model after running the modified parameterization file can be intuitively observed. The tool parameterization module mainly includes .bat files, python files and .prt files, wherein the .bat file mainly runs the ug kernel program and the python program that realizes the tool parameterization, the .prt file is the mother file required to realize the tool parameterization, and the parameterized tool three-dimensional model is obtained by changing and saving the .prt file. The overall process of tool parameterization is to modify the python program required to realize the tool parameterization function through the interface written in python, put the .prt file and the .exp file into the .bat file, and run the .bat file to achieve the purpose of tool parameterization, thereby generating a tool three-dimensional model and realizing the tool design process.

[0026] The finite element simulation module is connected to the tool parameterization module and the database module respectively; the finite element simulation module is used to place the three-dimensional model of the tool into the finite element simulation software through the Python program, perform finite element simulation according to the information of the workpiece to be processed, obtain simulation result data, and store the simulation result data in the database module through the Python program, specifically, extract the simulation result data from the simulation result file (.odb file) through the Python program, and then use the Python program to store the simulation result data in the database module. The information of the workpiece includes cutting parameters and the material of the workpiece; the cutting parameters are cutting depth, cutting width and feed rate, and the material of the workpiece is mainly titanium alloy TC4, and a small amount of steel, etc. The simulation result data includes cutting force, cutting temperature, tool wear and stress field distribution of the workpiece after cutting;

[0027] In addition, the finite element simulation module includes a python tool change file and an interface program; the finite element simulation module is used to modify the python tool change file through the interface program, and run the modified python tool change file in the abaqus command environment, perform finite element simulation on different tool three-dimensional models, and then realize the tool change process in the finite element simulation module, thereby completing the simulation of different tool cutting processes.

[0028] The database module is connected to the optimization module; the database module is used to store the simulation result data and the three-dimensional model of the tool, so that by storing the simulation result data and the three-dimensional model of the tool obtained after parameterization in the database module, it is convenient for other users to access and obtain the data in the database module, which includes the Internet + concept. The database module uses the open source database MYSQL, and uses the python program to store and read the data in the database module; the database module is also used to use the python matplot module to draw curves for the data in the database module. The administrator can also set different permissions for the database module for different users, and the user accesses the database module according to the permissions granted by the administrator.

[0029] The optimization module is used to call the simulation result data in the database module through the Python program, fit the simulation result data, use the function obtained after fitting as the objective function, and optimize the objective function through the optimization algorithm to obtain the optimal processing parameters and / or tool parameters. Among them, the optimization module is programmed using matlab software, writes a GUI interface in the matlab environment, generates an .exe file, and integrates it into the system framework to achieve the optimization process of the tool. The objective function is the relationship function between the simulation result data, and the optimization algorithm is a genetic algorithm, an ant colony algorithm or a user-defined optimization algorithm, so that the optimization process of the tool is not limited by the optimization algorithm provided by this system. The user can write an optimization algorithm for optimization by himself, which has secondary development.

[0030] As an optional implementation, the database module is also used to store test result data; the test result data is obtained by repeatedly performing tests on tool cutting to process workpieces, including both test result data obtained by the user's own tests and test result data provided by the system; the test result data includes cutting force, cutting temperature, tool wear and stress field distribution of the workpiece after cutting; the optimization module is also used to call the simulation result data and the test result data in the database module through a Python program, fit the simulation result data and the test result data, use the function obtained after fitting as the objective function, and optimize the objective function through an optimization algorithm to obtain the optimal processing parameters and / or tool parameters, and then the tool can be optimized together with the test result data and the simulation result data, and is not limited to the simulation result data.

[0031] In addition, the system also includes an evaluation module, which uses matlab to write the program used; the evaluation module is connected to the database module; the evaluation module is used to call the simulation result data in the database module, and determine the evaluation index according to the actual processing requirements and tool requirements, and use the evaluation index to evaluate the simulation result data to obtain the tool performance, and then judge whether the currently designed tool is suitable; the evaluation index is one or more of cutting force, cutting temperature, surface roughness, tool wear and tool mode.

[0032] The system also includes a software library; the software library stores all library functions required for the tool parameterization module, finite element simulation module, database module, evaluation module and optimization module, and the software library also stores folders corresponding to the tool parameterization module, finite element simulation module, database module, evaluation module and optimization module, respectively, and the folders contain .py files and .bat files that implement the functions of the corresponding modules.

[0033] In addition, the system disclosed in this embodiment can be used for the design, simulation, and optimization processes of eleven types of complex tools, including variable pitch helix angle high school end mills, side wall semi-finishing indexable tools, high feed indexable roughing tools, thrust surface processing milling cutters, spark plug hole processing tools, valve seat ring special tools, camshaft guide strip tools, oil channel deep hole drilling tools, CBN finishing milling cutter discs, replaceable drill bits and high feed milling cutters.

[0034] The present embodiment provides a 3D visualized tool design system with optimization function, which generates a 3D model of the tool through a tool parameterization module, puts the 3D model of the tool into finite element simulation software through a finite element simulation module, performs finite element simulation according to information of the workpiece to be processed, obtains simulation result data, and then uses an optimization module to fit the simulation result data, uses the function obtained after fitting as the objective function, and optimizes the objective function through an optimization algorithm to obtain the optimal processing parameters and / or tool parameters. That is, the present embodiment only requires the user to input information of the workpiece to be processed, tool structure information and tool parameter information, and can automatically generate a 3D model of the tool, and automatically import the generated 3D model into the finite element simulation software for cutting. Cutting simulation, and select the corresponding optimization algorithm to get the optimal processing parameters or tool parameters. Users do not need to convert the process files, and can complete the tool design optimization process by inputting parameters. Compared with traditional optimization software such as isight software, since traditional optimization software needs to operate the file transfer process, users who are not familiar with the software find it difficult to master the use of the software. This system has the characteristics of visualization, more intuitiveness, and high efficiency. It avoids information interaction between multiple software, and links the tool design, simulation, and optimization process with the cutting process, realizing the design of special tools for processing needs, and significantly improving the design efficiency of special tools. At the same time, the optimal tool parameters and processing parameters are obtained, which can increase the service life of the tool and the surface quality of the processed workpiece.

[0035] Embodiment 2:

[0036] This embodiment is used to provide a three-dimensional visual tool design method with optimization function, which works by using the system described in Example 1. Figure 1 As shown, the method comprises the following steps:

[0037] Step 101: Use the tool parameterization module to open the tool template, and run the modified parameterization file to generate a three-dimensional model of the tool;

[0038] Step 102: using a finite element simulation module to place the three-dimensional model of the tool into a finite element simulation software, performing finite element simulation according to information of the workpiece to be processed, obtaining simulation result data, and storing the simulation result data in the database module through a Python program;

[0039] Step 103: using the optimization module to call the simulation result data and the test result data in the database module, fitting the simulation result data and the test result data, using the function obtained after fitting as the objective function, and optimizing the objective function through an optimization algorithm to obtain the optimal processing parameters and / or tool parameters;

[0040] Step 104: Using the evaluation module to call the simulation result data in the database module, and determining the evaluation index according to the actual processing requirements and tool requirements, and using the evaluation index to evaluate the simulation result data to obtain the tool performance.

[0041] It should be noted that there is no sequential order relationship between step 103 and step 104. After obtaining the simulation result data, those skilled in the art may first execute step 103 or step 104. The numbering of step 103 and step 104 should not be construed as a limitation to the present invention.

[0042] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0043] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A three-dimensional visual tool design system with optimization function, characterized in that: The pythonocc module is used to build the overall framework of the system, which includes a tool parameterization module, a finite element simulation module, a database module and an optimization module; The tool parameterization module is connected to the database module; the tool parameterization module includes a GUI interface; the tool parameterization module is used to select the tool type that needs to be parameterized, obtain the parameterization file corresponding to the tool type, input corresponding parameters in the parameterization file through the GUI interface, change the parameterization file, open the tool template through the Python program, run the changed parameterization file, and generate a tool three-dimensional model; the changed parameterization file includes tool structure information and tool parameter information; the tool parameter information includes tool angle, number of blades and length of the tool processing part; The finite element simulation module is connected to the tool parameterization module and the database module respectively; the finite element simulation module is used to put the three-dimensional model of the tool into the finite element simulation software through the Python program, perform finite element simulation according to the information of the workpiece to be processed, obtain simulation result data, and store the simulation result data in the database module through the Python program; the information of the workpiece to be processed includes cutting parameters and the material of the workpiece to be processed; the simulation result data includes cutting force, cutting temperature, tool wear and stress field distribution of the workpiece after cutting; The database module is connected to the optimization module; the database module is used to store the simulation result data; The optimization module is used to call the simulation result data in the database module through the Python program, fit the simulation result data, use the function obtained after fitting as the objective function, and optimize the objective function through the optimization algorithm to obtain the optimal processing parameters and tool parameters; The database module is also used to store test result data; the test result data is obtained by repeatedly testing the tool cutting the workpiece; the test result data includes cutting force, cutting temperature, tool wear and stress field distribution of the workpiece after cutting; The optimization module is also used to call the simulation result data and the test result data in the database module through the Python program, fit the simulation result data and the test result data, use the function obtained after fitting as the objective function, and optimize the objective function through an optimization algorithm to obtain the optimal processing parameters and tool parameters; the optimization algorithm is a user-defined optimization algorithm, and the user-defined optimization algorithm is an optimization algorithm written by the user himself; The system also includes an evaluation module; The evaluation module is connected to the database module; the evaluation module is used to call the simulation result data in the database module, and determine the evaluation index according to the actual processing requirements and tool requirements, and use the evaluation index to evaluate the simulation result data to obtain the tool performance; the evaluation index is cutting force, cutting temperature, surface roughness, tool wear and tool mode.

2. A three-dimensional visual tool design system with optimization function as claimed in claim 1, characterized in that: The optimization algorithm may also be a genetic algorithm or an ant colony algorithm.

3. A three-dimensional visual tool design system with optimization function as claimed in claim 1, characterized in that: The tool parameterization module uses Python.PyQt5 module to set its GUI interface; The tool parameterization module is also used to display the tool three-dimensional model using the pythonocc module.

4. A three-dimensional visual tool design system with optimization function as claimed in claim 1, characterized in that: The finite element simulation module includes a python tool change file and an interface program; the finite element simulation module is used to modify the python tool change file through the interface program, and run the modified python tool change file in the abaqus command environment to perform finite element simulation on different tool three-dimensional models.

5. The three-dimensional visual tool design system with optimization function as claimed in claim 1, characterized in that: The database module adopts the open source database MYSQL; the database module is also used to use the python matplot module to draw curves for the data in the database module.

6. A three-dimensional visual tool design system with optimization function as claimed in claim 1, characterized in that: The system also includes a software library; the software library stores all library functions required by a tool parameterization module, a finite element simulation module, a database module and an optimization module.

7. A three-dimensional visual tool design method with optimization function, which is operated by using the system according to any one of claims 1 to 6, characterized in that: The method comprises the following steps: Use the tool parameterization module to open the tool template and run the modified parameterization file to generate a three-dimensional model of the tool; Using a finite element simulation module, the three-dimensional model of the tool is placed in a finite element simulation software, finite element simulation is performed according to information of the workpiece to be processed, simulation result data is obtained, and the simulation result data is stored in the database module through a Python program; Using the optimization module to call the simulation result data and the test result data in the database module, fitting the simulation result data and the test result data, taking the function obtained after fitting as the objective function, and optimizing the objective function through the optimization algorithm to obtain the optimal processing parameters and tool parameters; The evaluation module is used to call the simulation result data in the database module, and according to the actual processing needs Sum up the tool requirements to determine the evaluation index, and use the evaluation index to evaluate the simulation result data, Get tool performance.

Citation Information

Patent Citations

  • Optimum design method for ultrasonic machining special cutter based on SVR-PSO

    CN105956235A

  • Geometric parameter optimization method for ball-end milling cutter based on co-simulation

    CN108920844A

  • Cutting tool performance evaluation system and cutting tool design method

    JP2003019646A

  • System and method for extracting parameters of a cutting tool

    US20070124015A1

  • Method and system for designing a cutting tool

    US5377116A