Path planning method and system based on intelligent slicing of gradient material 3D printing
By optimizing slicing and path planning through material performance prediction models and deep learning algorithms, combined with genetic algorithms and real-time monitoring, the problem of low accuracy and efficiency in gradient material 3D printing is solved, achieving an efficient and reliable printing process and product quality.
Patent Information
- Application Number
- CN202410955159.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-17
AI Technical Summary
The existing technology lacks optimization for specific material properties in gradient material 3D printing. The algorithm used has low accuracy, lacks simulation verification and automatic optimization, and is difficult to adapt to complex structural designs, resulting in low printing efficiency and quality.
The material performance prediction model is used, combined with deep learning and genetic algorithms, to adaptively adjust the slice thickness and sequence, use 3D printing simulation software to verify the path, introduce a real-time monitoring system for process optimization, and evaluate the performance of the printed products through post-processing to establish a digital archive system .
It improves the accuracy and reliability of gradient material 3D printing, optimizes printing paths and parameters, reduces manual intervention, ensures the stability and efficiency of the printing process, and improves product quality and performance.
Smart Images

Figure CN118492413B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of 3D printing, and more specifically relates to a path planning method and system for 3D printing intelligent slicing based on gradient materials. Background Art
[0002] With the rapid development of 3D printing technology, its application in the manufacturing industry is no longer limited to the simple construction of a single material, but is moving towards complex structures and multifunctional materials. The 3D printing technology of gradient materials, as a cutting-edge branch in this field, allows continuous changes in material composition, structure and performance in a single construction process, thereby creating composite parts with specific functional gradients. These parts show great application potential in aerospace, biomedicine, electronics, energy and high-performance machinery, and can optimize structural performance, reduce weight and improve durability.
[0003] However, gradient material 3D printing faces unique challenges, especially the intelligent issues of slicing and path planning. Traditional 3D printing slicing technology is usually based on uniform materials and single properties. Its slicing algorithm simply divides the three-dimensional model into a series of two-dimensional layers, and then plans the path for layer-by-layer printing. However, for gradient materials, this simple processing method cannot meet the needs. First, the composition and structure of gradient materials change continuously in space, requiring the slicing process to not only consider geometric information, but also accurately map the changes in material properties to ensure that each printed layer conforms to the designed gradient distribution. Secondly, different materials or different stages of the same material require different printing parameters.
[0004] At present, some studies have begun to explore the use of advanced algorithms and software to address these challenges, such as using finite element analysis to predict the distribution of thermal stress during printing, combining topology optimization to determine the optimal material layout, or developing intelligent path planning algorithms to dynamically adjust printing parameters such as laser power and scanning speed according to material properties to adapt to the material properties of different regions. Nevertheless, existing solutions often focus on specific application scenarios, lack versatility and flexibility, and are difficult to be widely used in variable gradient material systems and complex structural designs.
[0005] For example, a Chinese patent with publication number CN116638767A discloses a method for intelligent 3D printing path planning, including: using slicing software to slice the three-dimensional model of the object to be printed to obtain a two-dimensional slice surface, and extracting the contour information of the two-dimensional slice surface; using a fast convex decomposition algorithm of concave polygons based on vertex visibility to partition the two-dimensional slice surface to obtain multiple sub-partitions of convex polygons, and then finding the point closest to the print head when the print head starts to move, and the point has the largest single-side distance from the longest axis of the sub-partition, and calculating the printing path based on the taboo search algorithm; using 3D simulation software to preset the printing accuracy value, by adjusting the caliber of the 3D printing nozzle, changing the printing rate, obtaining the preset volume of the object to be printed, substituting it into the printing rate formula, calculating the required printing time, and detecting whether the printed work is within the accuracy allowed by the 3D simulation software; after completing the planning of the printing path, outputting the path parameters, and performing 3D printing based on the path.
[0006] The above existing technologies have the following problems: 1) Lack of optimization for specific material properties; 2) Use of fast convex decomposition algorithm of concave polygons based on vertex visibility and taboo search algorithm to calculate the printing path, resulting in low accuracy; 3) Lack of simulation verification and automatic optimization, no mention of real-time monitoring and emergency response measures; 4) Insufficient post-processing steps and performance evaluation. Summary of the invention
[0007] In view of the shortcomings of the prior art, the present invention proposes a path planning method and system based on intelligent slicing of gradient material 3D printing, predicts the characteristics of metal gradient functional materials through a material performance prediction model, establishes a three-dimensional model, optimizes the model and slices it using deep learning and intelligent slicing algorithms, adaptively adjusts the slice thickness and sequence, plans the print head path through a genetic algorithm, adjusts the printing parameters in combination with an adaptive path planning method, and uses 3D printing simulation software to verify the slices and paths, optimizes potential problems, and during the printing process, a real-time monitoring system ensures smooth printing, post-processes and performs performance testing on the prints, collects user feedback to optimize the printing method and parameters, and establishes a digital archive system to record the entire process data, thereby improving printing efficiency and quality.
[0008] To achieve the above object, the present invention provides the following technical solutions:
[0009] The path planning method based on gradient material 3D printing intelligent slicing includes:
[0010] Step S1: preparing printing equipment and metal gradient functional materials, and performing inspection and pretreatment, introducing a material performance prediction model, and predicting the physical and chemical properties of the metal gradient functional materials by inputting the metal gradient functional material information;
[0011] Step S2: according to the material property prediction results, a three-dimensional model of the metal gradient functional material is established, a deep learning algorithm is used to automatically optimize the three-dimensional model, and an intelligent slicing strategy is used to slice the three-dimensional model to obtain a 3D model thin layer, a finite element analysis is performed on the 3D model thin layer, and an adaptive slicing strategy is introduced to adjust the slice thickness and sequence, and a genetic algorithm is used to plan the movement path of the print head;
[0012] Step S3: Adopting an adaptive path planning method, combining material properties, adjusting printing parameters and printing paths, using 3D printing simulation software to verify slicing and path planning, simulating the printing process, and optimizing slicing and path planning parameters according to simulation results if there are warping and collapse problems;
[0013] Step S4: import the optimized slice and path planning data into the 3D printing device, control the device to print according to the predetermined parameters and path, introduce a real-time monitoring system to monitor the entire printing process, and if a fault occurs during the printing process, the monitoring system will automatically initiate emergency measures and notify the operator to handle it in a timely manner;
[0014] The specific steps of step S2 include:
[0015] S201: Collect the performance prediction results of the metal gradient functional material, determine the performance goals and constraints that the three-dimensional model needs to achieve, use the three-dimensional modeling tool, perform conceptual design based on the material performance prediction results and performance goals, obtain the shape, size and characteristics of the three-dimensional model, and add detailed data of the three-dimensional model on the basis of the conceptual design, consider the performance characteristic parameters of the three-dimensional model, so as to obtain a preliminary three-dimensional model;
[0016] S202: using the simulation function in the 3D modeling tool to simulate and verify the preliminary 3D model, and checking whether the preliminary 3D model meets the performance requirements and constraints. If not, a deep learning model is trained using a recurrent neural network algorithm, and the simulation results of the preliminary 3D model are input into the trained deep learning model, and the optimized 3D model parameters are output, and the optimized 3D model is saved;
[0017] The specific steps of step S2 also include:
[0018] S203: Set the slice thickness to h, the slice direction to horizontal, and the minimum and maximum spacing between slice planes to and , load the optimized three-dimensional model, use the improved contour-based slicing algorithm to slice the optimized three-dimensional model along the set slicing direction and slicing thickness to obtain n 3D model thin layers;
[0019] S204: Perform finite element division on each thin layer of the 3D model to obtain k units, divide each unit into m nodes, and define physical quantities on each node. At the same time, assign material properties to each unit, apply boundary conditions and loads, and establish a unit stiffness matrix based on unit type, material properties, and boundary conditions. , the stiffness matrix of k units Integrate into the overall stiffness matrix according to the node number in the unit , and integrate the loads on k units into the overall load vector ;
[0020] S205: According to and Setting up the finite element equations , and merge the coefficients and constant terms of the finite element equations into one matrix to obtain the augmented matrix , through the row transformation Perform the upper triangular matrix-unit upper triangular matrix transformation to obtain , from the unit upper triangular matrix Starting from the last line, back-substitution is performed step by step to solve the node displacement vector ;
[0021] S206: Solve the results based on the finite element equation , extract the maximum stress, average stress, and temperature distribution performance parameters on the corresponding nodes, and use the performance parameters to evaluate the thermal conductivity performance of the 3D model. According to the performance analysis results, intelligently adjust the slice thickness of each 3D model thin layer, optimize the slicing order, iteratively optimize S205-S206, and obtain n 3D model thin layers after the optimized order;
[0022] S207: setting evaluation criteria and iteration times, generating a print head moving path according to the 3D model thin layer after the optimization order, and using the generated moving path data as the initial population, generating a new print head moving path through selection, crossover and mutation operations of the genetic algorithm according to the set evaluation criteria, and iterating and repeating until the preset iteration times are reached to obtain the final moving path;
[0023] The specific steps of the improved contour-based slicing algorithm in S203 include:
[0024] S2031: define the slice starting position, read the optimized 3D model data, and determine the position of the first slice plane according to the slice direction and the starting position;
[0025] S2032: traverse each triangular mesh in the three-dimensional model, and use the KD tree to pre-process the model mesh. For each mesh, determine whether the triangular mesh is within the search range of the current slice plane. If not, discard it. If it is within the search range of the current slice plane, check whether it intersects with the current slice plane. If not, discard it. If it intersects, introduce a cross product sign detection strategy to calculate the position of the intersection, and introduce an intersection cache mechanism. If duplicate meshes appear, directly search for data stored in the intersection cache mechanism.
[0026] S2033: connecting all intersection points of the grids intersecting the current slice plane to form a slice contour, and smoothing the slice contour. If there is a contour break problem, the break point position is identified and repaired. If there is an overlap problem, the redundant part is deleted or the overlapping part is merged to obtain a processed 3D model data slice;
[0027] S2034: introducing a slice quality evaluation function, setting a slice contour quality standard, using the slice quality evaluation function to evaluate the processed 3D model data slices, and calculating the slice quality score. If the quality of the current slice does not meet the slice contour quality standard, the position of the slice plane is adjusted and the slice operation is performed again. If the slice contour quality standard is met, the contour data of the current slice plane is stored.
[0028] S2035: Introduce an adaptive slicing strategy, update the position of the slicing plane according to the slicing direction and the slicing thickness, and dynamically adjust the slicing thickness according to the slicing quality evaluation result through the adaptive slicing strategy until all slicing processes are completed, and obtain n dynamically adjusted 3D model thin layers.
[0029] Specifically, the performance target and constraint conditions in S202 are respectively expressed as:
[0030] ,
[0031] Where F represents the actual stress of the three-dimensional model, represents the maximum stress borne by the three-dimensional model, E represents the elastic modulus of the three-dimensional model when subjected to external force, It represents the minimum elastic modulus required by the three-dimensional model when subjected to external force, m represents the mass of the three-dimensional model, represents the target mass of the three-dimensional model when loaded, r represents the thermal performance of the three-dimensional model, represents the thermal expansion coefficient of the three-dimensional model, L represents the size of the three-dimensional model, , They represent the minimum and maximum values of the 3D model size, respectively, and w represents the manufacturing cost of the 3D model. Represents the cost budget of the 3D model, represents the angle between any two line segments in a three-dimensional model. Represents the allowable angle error between any two line segments in a 3D model.
[0032] Specifically, the heat conduction equation in S206 is:
[0033]
[0034] in, represents the node position in the unit, , , Indicates the node location The anisotropic thermal conductivity of , T represents the temperature, q represents the heat source density, represents the density of metal gradient functional material, c represents the specific heat capacity of metal gradient functional material, t represents the current time, Represents the effect of external field on thermal conduction of metal gradient functional materials.
[0035] Specifically, the specific content of the cross-product sign detection strategy in S2032 includes:
[0036] Set Slice Plane ,in is the normal vector of the plane, Represents the position coordinates of any point on the slice plane, H is a constant term; for each vertex of the triangle mesh, the vertex-to-plane distance formula is used to obtain the distance from the vertex to the slice plane Distance , i represents the number of triangle mesh vertices;
[0037] like , it means that the triangle mesh does not intersect the slice plane;
[0038] like , it means that the triangle mesh intersects with the slice plane;
[0039] Select two endpoints of an edge of a triangle mesh and ,like , it means that the two endpoints are on both sides of the slice plane, and the intersection of the edge and the slice plane is calculated , the formula is:
[0040]
[0041] Among them, u represents the relative position of any point on the edge of the triangle mesh and the edge endpoint;
[0042] For each triangle that intersects the slicing plane, the intersection point is stored in a caching mechanism.
[0043] The path planning system based on gradient material 3D printing intelligent slicing includes: material analysis module, intelligent slicing module, path planning module, virtual simulation module, printing control module, and post-processing module;
[0044] The material analysis module is used to collect 3D model data, analyze the distribution and properties of metal gradient functional materials, and adaptively adjust slicing parameters, printing paths and printing parameters according to real-time data sets during the printing process;
[0045] The intelligent slicing module is used to slice the 3D model according to the printing requirements and the characteristics of the metal gradient functional material to generate slicing data for printing;
[0046] The path planning module is used to perform finite element analysis on the 3D model thin layer, generate a moving path for printing the 3D model thin layer, and iteratively optimize the moving path according to a genetic algorithm to obtain a final moving path;
[0047] The virtual simulation module is used to simulate the entire printing process through virtual simulation technology before actual printing, predict problems that may occur, and take emergency measures;
[0048] The printing control module is used to convert the generated final moving path data into control instructions executable by the printer, and control the printer to complete the printing task;
[0049] The post-processing module is used to post-process the printed metal gradient functional material, remotely monitor the printing process, evaluate the impact of the printing process on the environment, the sustainability and recyclability of the material, and collect feedback data for system optimization.
[0050] Specifically, the material analysis module includes: a material database unit, a characteristic analysis unit, a data acquisition unit, a failure mode analysis unit, and a multi-objective optimization unit;
[0051] The material database unit is used to store data and performance parameters of metal gradient functional materials;
[0052] The characteristic analysis unit is used to simulate and analyze the characteristics of the metal gradient functional material through a material property prediction model according to the data in the database;
[0053] The data acquisition unit is used to monitor the performance change data and material data of the metal gradient functional material in the printing process in real time;
[0054] The failure mode analysis unit is used to analyze whether the triangular mesh of the three-dimensional model intersects with the slice plane through the KD tree and the search strategy, and to determine whether the slice of the three-dimensional model data meets the slice contour quality standard through the slice quality evaluation function;
[0055] The multi-objective optimization unit is used to automatically adjust and optimize printing parameters through a deep learning algorithm based on the collected data.
[0056] Specifically, the intelligent slicing module includes: a slicing strategy unit, a slicing quality assessment unit, and a slicing efficiency optimization unit;
[0057] The slicing strategy unit is used to update the position of the slicing plane according to the slicing direction and the slicing thickness, and dynamically adjust the slicing thickness through an adaptive slicing strategy according to the slicing quality evaluation result;
[0058] The slicing quality evaluation unit is used to evaluate the processed 3D model data slices using a slicing quality evaluation function, and to evaluate the impact of different slicing strategies on the printing quality;
[0059] The slicing efficiency optimization unit is used to optimize and verify the parameters of slicing and path planning according to the 3D printing simulation results using an artificial intelligence algorithm.
[0060] Specifically, the path planning module includes: a path generation unit, a path adjustment unit, and a smoothing processing unit;
[0061] The path generation unit is used to generate a printing movement path according to the slice data and the metal gradient functional material through deep learning combined with finite element analysis and genetic algorithm;
[0062] The path adjustment unit is used to dynamically adjust the path planning parameters according to the real-time data monitored during the printing process;
[0063] The smoothing processing unit is used to smooth the slice contour by using a normal vector smoothing algorithm.
[0064] Compared with the prior art, the present invention has the following beneficial effects:
[0065] 1. The present invention proposes a path planning system based on gradient material 3D printing intelligent slicing, and optimizes and improves the architecture, operation steps and processes. The system has the advantages of simple process, low investment and operation costs, and low production work cost.
[0066] 2. The present invention proposes a path planning method based on intelligent slicing of gradient material 3D printing, introduces a material performance prediction model, and can predict the physical and chemical properties of metal gradient functional materials based on the input information, so that the printing process can be optimized based on the actual performance of the material, thereby improving the accuracy and reliability of printing; it adopts an intelligent slicing strategy and finite element analysis to intelligently adjust the slice thickness and sequence in each thin layer of the 3D model, ensuring the accuracy and efficiency of the slicing process; it uses a genetic algorithm to plan the movement path of the print head, which can find the optimal printing path and reduce printing time and material waste.
[0067] 3. The present invention proposes a path planning method based on intelligent slicing of gradient material 3D printing, uses 3D printing simulation software to verify slicing and path planning, can simulate problems that may occur in the printing process, and based on the problems existing in the simulation results, uses artificial intelligence algorithms to automatically optimize slicing and path planning parameters according to the simulation results, thereby reducing the need for manual intervention and improving efficiency; introduces a real-time monitoring system to monitor the entire printing process to ensure the stability and reliability of the printing process; performs heat treatment and surface treatment on the printed metal gradient functional material to further improve the quality and performance of the product. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 It is a schematic diagram of a path planning method for 3D printing intelligent slicing based on gradient materials of the present invention;
[0069] Figure 2 This is a workflow diagram of a path planning method for 3D printing intelligent slicing based on gradient materials of the present invention;
[0070] Figure 3 This is a mobile path planning flow chart of the path planning method for 3D printing intelligent slicing based on gradient materials of the present invention;
[0071] Figure 4 This is a flow chart of the contour slicing algorithm of the path planning method of the present invention based on the gradient material 3D printing intelligent slicing;
[0072] Figure 5 This is an architecture diagram of the path planning system for 3D printing intelligent slicing based on gradient materials in the present invention. DETAILED DESCRIPTION
[0073] Example 1
[0074] See also Figure 1-Figure 4 , an embodiment provided by the present invention: a path planning method based on gradient material 3D printing intelligent slicing, comprising the following steps:
[0075] Step S1: preparing printing equipment and metal gradient functional materials, and performing inspection and pretreatment, introducing a material performance prediction model, and predicting the physical and chemical properties of the metal gradient functional materials by inputting the metal gradient functional material information;
[0076] The inspection includes: checking the integrity, motion accuracy, and temperature control system of each component of the equipment; checking whether the quantity, quality, batch information, and shelf life of the metal gradient functional materials meet the use requirements, and whether the materials have impurities, contamination, or damage; checking whether the ventilation system, fire protection facilities, and emergency shutdown devices are operating normally.
[0077] Pretreatment includes: 1) material pretreatment, drying, degreasing and removing impurities from metal gradient functional materials; 2) equipment preheating or calibration; 3) environmental control, adjusting the temperature, humidity and cleanliness of the working environment to conditions suitable for printing; 4) software settings, setting printing parameters, slicing parameters and support structures according to printing requirements.
[0078] The information of metal gradient functional materials includes: the composition, macro / micro structure, manufacturing process and usage environment of metal gradient functional materials.
[0079] The physical properties of metal gradient functional materials include: density, hardness, elastic modulus, thermal expansion coefficient, thermal conductivity, electrical conductivity, and magnetic permeability; the chemical properties include: chemical composition, corrosion resistance, chemical reactivity, thermal stability, and oxidizability / reducibility.
[0080] Step S2: according to the material property prediction results, a three-dimensional model of the metal gradient functional material is established, a deep learning algorithm is used to automatically optimize the three-dimensional model, and an intelligent slicing strategy is used to slice the three-dimensional model to obtain a 3D model thin layer, a finite element analysis is performed on the 3D model thin layer, and an adaptive slicing strategy is introduced to adjust the slice thickness and sequence, and a genetic algorithm is used to plan the movement path of the print head;
[0081] Common 3D modeling tools include: AutoCAD, SolidWorks, Maya, 3ds Max, Blender, and ZBrush. The present invention uses the AutoCAD 3D modeling tool to modify the model by adjusting parameter values, thereby ensuring the correctness of the design in various situations and reducing human errors.
[0082] Step S3: Adopting an adaptive path planning method, combining material properties, adjusting printing parameters and printing paths, using 3D printing simulation software to verify slicing and path planning, simulating the printing process, and optimizing slicing and path planning parameters according to simulation results if there are warping and collapse problems;
[0083] Printing parameters include: 3D model thin layer height, printing speed, printing temperature, 3D model thin layer interlayer bonding strength, 3D model thin layer interlayer cooling degree, and printing direction.
[0084] The specific steps of the adaptive path planning method include:
[0085] (1) Establish a model of the 3D printing environment, including the shape, size, boundary conditions of the printing platform, and the performance parameters of the materials;
[0086] (2) According to the environmental model and material properties, the initial printing parameters and path planning parameters are set, where the path planning parameters include: the starting point, the end point, and the path type of the printing path;
[0087] (3) During the printing process, real-time monitoring and analysis are performed, and printing parameters and path planning parameters are automatically adjusted according to the real-time printing situation and changes in material properties;
[0088] (4) Use 3D printing simulation software to verify slicing and path planning and simulate the printing process.
[0089] Step S4: import the optimized slice and path planning data into the 3D printing device, control the device to print according to the predetermined parameters and path, introduce a real-time monitoring system to monitor the entire printing process, and if a fault occurs during the printing process, the monitoring system will automatically initiate emergency measures and notify the operator to handle it in a timely manner;
[0090] Among them, the fault problems include: print head blockage, material supply interruption problems; emergency measures include: printing suspension, alarm notification, fault diagnosis, automatic parameter adjustment, emergency shutdown, activation of emergency plan, data backup, and switching to backup equipment.
[0091] The specific steps to import data into the 3D printing device include:
[0092] (1) Ensure that the optimized slicing and path planning data have been saved in a G-code file format that can be recognized by the device;
[0093] (2) Use a USB cable or Wi-Fi to connect the 3D printing device to the computer;
[0094] (3) Open the slicing software compatible with the 3D printing device on the computer and make sure the device is properly connected and recognized by the software;
[0095] (4) Select the "Import" option in the slicing software, find and select the file that contains the optimized slicing and path planning data, and then click "Open" or "Import";
[0096] (5) Check whether the imported data is correct in the slicing software, including the number of slice layers and path planning, and set the printing parameters according to the equipment requirements and material properties;
[0097] (6) Click the “Start Printing” option to send the optimized slicing and path planning data to the 3D printing device and start the printing process.
[0098] Step S5: Post-process the printed metal gradient functional material, use performance testing methods to evaluate the performance indicators of the printer, and collect user feedback on the printer performance indicators. Adjust and optimize the printing method and parameters based on the feedback. At the same time, establish a digital archive system to record the design, printing and processing data of each step.
[0099] Post-processing includes: heat treatment, surface treatment; performance indicators include: printer strength, corrosion resistance, wear resistance. Among them, the steps of heat treatment include: cleaning and preparation - determining heat treatment parameters - heating - heat preservation - cooling, and the steps of surface treatment include: cleaning and degreasing - roughening treatment - coating treatment - curing treatment - inspection and testing.
[0100] The specific steps of the performance test method to evaluate the printer performance indicators include:
[0101] (1) Clearly define the printer performance indicators to be evaluated, and select the test method and tools based on the test objectives. The test method should be a 3D printed test model, and the test tool should be a tensile testing machine;
[0102] (2) Develop a test plan, including test steps, test conditions, and test data records, and perform tests according to the test plan and record test data;
[0103] (3) Perform statistical analysis on the test data and compile the test results and analysis into a test report.
[0104] The specific steps of step S2 include:
[0105] S201: Collect the performance prediction results of the metal gradient functional material, determine the performance goals and constraints that the three-dimensional model needs to achieve, use the three-dimensional modeling tool, perform conceptual design based on the material performance prediction results and performance goals, obtain the shape, size and characteristics of the three-dimensional model, and add detailed data of the three-dimensional model on the basis of the conceptual design, consider the performance characteristic parameters of the three-dimensional model, so as to obtain a preliminary three-dimensional model;
[0106] Among them, the detail data includes: the surface texture and details of the 3D model, the assembly and connection of the 3D model; the performance characteristic parameters include: the weight, strength, performance and life of the 3D model.
[0107] In the present invention, the design direction is clarified through conceptual design, which not only focuses on the appearance and shape of the metal gradient functional material, but also considers the performance characteristic parameters of the product, thereby improving the design efficiency. At the same time, through the preliminary evaluation and analysis in the conceptual design stage, potential problems and risks can be discovered and solved in a timely manner.
[0108] S202: using the simulation function in the 3D modeling tool to simulate and verify the preliminary 3D model, and checking whether the preliminary 3D model meets the performance requirements and constraints. If not, a deep learning model is trained using a recurrent neural network algorithm, and the simulation results of the preliminary 3D model are input into the trained deep learning model, and the optimized 3D model parameters are output, and the optimized 3D model is saved;
[0109] Furthermore, the specific steps of using the deep learning model to optimize the parameters of the 3D model include:
[0110] (1) Collect historical 3D model data, including shape, size, features, and corresponding performance simulation results, and perform preprocessing;
[0111] (2) For the feature sequence of the three-dimensional model, use the LSTM model to determine the number of hidden layers, the number of neurons, and the activation function, wherein the LSTM model is the prior art content in this field and is not an inventive solution of the present application, and is not described in detail here;
[0112] (3) Dividing the preprocessed three-dimensional model data into a training set, a validation set, and a test set, using the training set data to train the LSTM model, updating the model parameters through the back propagation algorithm and the gradient descent optimizer, and after each training cycle, using the validation set to evaluate the performance of the model and save the model weights with the best performance, wherein the back propagation algorithm is a prior art content in the art and is not an inventive solution of the present application, and is not described in detail here;
[0113] (4) Use the test set to evaluate the performance of the trained LSTM model and tune the LSTM model based on the evaluation results, including adjusting the network structure and changing hyperparameters;
[0114] (5) Deploy the trained LSTM model to the 3D modeling tool. When the simulation results of the preliminary 3D model are input, the LSTM model will output the optimized 3D model parameters, as follows:
[0115]
[0116] in, Represents the output 3D model parameters, represents the activation function, represents the weight matrix, represents the bias term, Represents the hidden layer state of the LSTM model at the current moment, Represents the LSTM model The hidden layer state at time t, Represents the data input to the LSTM model at the current moment, represents the hyperbolic tangent function, Indicates the cell state at the current moment;
[0117] (6) Apply the optimization parameters output by the LSTM model to the preliminary three-dimensional model to obtain the optimized three-dimensional model, and save the optimized three-dimensional model.
[0118] S203: Set the slice thickness to h, the slice direction to horizontal, and the minimum and maximum spacing between slice planes to and , load the optimized three-dimensional model, use the improved contour-based slicing algorithm to slice the optimized three-dimensional model along the set slicing direction and slicing thickness to obtain n 3D model thin layers;
[0119] S204: Perform finite element division on each thin layer of the 3D model to obtain k units, divide each unit into m nodes, and define physical quantities on each node. At the same time, assign material properties to each unit, apply boundary conditions and loads, and establish a unit stiffness matrix based on unit type, material properties, and boundary conditions. , the stiffness matrix of k units Integrate into the overall stiffness matrix according to the node number in the unit , and integrate the loads on k units into the overall load vector ;
[0120] Among them, physical quantities include: displacement, stress, and temperature at the current node; common material properties include: elastic modulus, Poisson's ratio, shear modulus, density, yield strength, ultimate strength, and fracture toughness.
[0121] The process of assigning material properties to each unit includes: 1) determining the material type; 2) selecting material properties; 3) assigning material properties, and the assignment methods include: ① direct assignment: directly selecting the unit and assigning material properties to it; ② using material areas: defining material areas in the model and assigning units to material areas; ③ using material mapping: if the model is imported from a CAD system and the material properties have been defined in the CAD system, use the material mapping function to map these properties to the units in the finite element model; 4) verification and verification.
[0122] Common boundary conditions include: displacement, velocity, acceleration, temperature and heat flux, symmetric and antisymmetric boundary conditions; load is the external action applied to the model. In the present invention, the force, pressure and temperature gradient of the metal gradient functional material in the system are simulated. Common loads include: concentrated force, distributed force, surface pressure, volume force and temperature load.
[0123] The specific steps to establish the element stiffness matrix include:
[0124] (1) Determine the unit type and unit parameters used, and establish a local coordinate system for each unit;
[0125] (2) Select the interpolation function as the configuration function, and calculate the strain distribution inside the unit according to the displacement and configuration function of the unit node to form the strain matrix , the formula is:
[0126]
[0127] in, and represents the displacement of the nodes at both ends of the element, Represents the strain of metal functionally gradient materials;
[0128] (3) Calculate the material matrix based on the physical properties of the material and Hooke's law , the formula is:
[0129]
[0130] in, Represents the stress of metal functionally gradient materials;
[0131] (4) According to the strain matrix and material matrix, the unit stiffness matrix is obtained: , the formula is:
[0132]
[0133] in, express The conjugate transpose of ;
[0134] (5) Introduce constraints and obtain the final unit stiffness matrix.
[0135] S205: According to and Setting up the finite element equations , and merge the coefficients and constant terms of the finite element equations into one matrix to obtain the augmented matrix , through the row transformation Perform the upper triangular matrix-unit upper triangular matrix transformation to obtain , from the unit upper triangular matrix Starting from the last line, back-substitution is performed step by step to solve the node displacement vector ;
[0136] S206: Solve the results based on the finite element equation , extract the maximum stress, average stress, and temperature distribution performance parameters on the corresponding nodes, and use the performance parameters to evaluate the thermal conductivity performance of the 3D model. According to the performance analysis results, intelligently adjust the slice thickness of each 3D model thin layer, optimize the slicing order, iteratively optimize S205-S206, and obtain n 3D model thin layers after the optimized order;
[0137] S207: Setting evaluation criteria and number of iterations, generating a print head moving path according to the 3D model thin layer after the optimization order, and using the generated moving path data as the initial population, generating a new print head moving path according to the set evaluation criteria through the selection, crossover and mutation operations of the genetic algorithm, and iterating and repeating until the preset number of iterations is reached to obtain the final moving path, wherein the selection, crossover and mutation operations of the genetic algorithm are the prior art content in this field, are not the inventive solution of the present application, and are not elaborated here.
[0138] The performance objectives and constraints in S202 are expressed as follows:
[0139] ,
[0140] Where F represents the actual stress of the three-dimensional model, represents the maximum stress borne by the three-dimensional model, E represents the elastic modulus of the three-dimensional model when subjected to external force, It represents the minimum elastic modulus required by the three-dimensional model when subjected to external force, m represents the mass of the three-dimensional model, represents the target mass of the three-dimensional model when loaded, r represents the thermal performance of the three-dimensional model, represents the thermal expansion coefficient of the three-dimensional model, L represents the size of the three-dimensional model, , They represent the minimum and maximum values of the 3D model size, respectively, and w represents the manufacturing cost of the 3D model. Represents the cost budget of the 3D model, represents the angle between any two line segments in a three-dimensional model. Represents the allowable angle error between any two line segments in a 3D model.
[0141] Specifically, the heat conduction equation in S206 is:
[0142]
[0143] in, represents the node position in the unit, , , Indicates the node location The anisotropic thermal conductivity of , T represents the temperature, q represents the heat source density, represents the density of metal gradient functional material, c represents the specific heat capacity of metal gradient functional material, t represents the current time, Represents the effect of external field on thermal conduction of metal gradient functional materials.
[0144] The specific steps of the improved contour-based slicing algorithm in S203 include:
[0145] S2031: define the slice starting position, read the optimized 3D model data, and determine the position of the first slice plane according to the slice direction and the starting position;
[0146] S2032: traverse each triangular mesh in the three-dimensional model, and use the KD tree to pre-process the model mesh. For each mesh, determine whether the triangular mesh is within the search range of the current slice plane. If not, discard it. If it is within the search range of the current slice plane, check whether it intersects with the current slice plane. If not, discard it. If it intersects, introduce a cross product sign detection strategy to calculate the position of the intersection, and introduce an intersection cache mechanism. If repeated meshes appear, directly search for data stored in the intersection cache mechanism. The KD tree method is a prior art in this field, not an inventive solution of the present application, and will not be described in detail here.
[0147] S2033: connecting all intersection points of the grids intersecting the current slice plane to form a slice contour, and smoothing the slice contour. If there is a contour break problem, the break point position is identified and repaired. If there is an overlap problem, the redundant part is deleted or the overlapping part is merged to obtain a processed 3D model data slice;
[0148] S2034: introducing a slice quality evaluation function, setting a slice contour quality standard, using the slice quality evaluation function to evaluate the processed 3D model data slices, and calculating the slice quality score. If the quality of the current slice does not meet the slice contour quality standard, the position of the slice plane is adjusted and the slice operation is performed again. If the slice contour quality standard is met, the contour data of the current slice plane is stored.
[0149] S2035: Introduce an adaptive slicing strategy, update the position of the slicing plane according to the slicing direction and the slicing thickness, and dynamically adjust the slicing thickness according to the slicing quality evaluation result through the adaptive slicing strategy until all slicing processes are completed, and obtain n dynamically adjusted 3D model thin layers.
[0150] The specific contents of the cross-product sign detection strategy in S2032 include:
[0151] Set Slice Plane ,in is the normal vector of the plane, Represents the position coordinates of any point on the slice plane, H is a constant term; for each vertex of the triangle mesh, the vertex-to-plane distance formula is used to obtain the distance from the vertex to the slice plane Distance , i represents the number of triangle mesh vertices;
[0152] like , it means that the triangle mesh does not intersect the slice plane;
[0153] like , it means that the triangle mesh intersects with the slice plane;
[0154] Select two endpoints of an edge of a triangle mesh and ,like , it means that the two endpoints are on both sides of the slice plane, and the intersection of the edge and the slice plane is calculated , the formula is:
[0155]
[0156] Among them, u represents the relative position of any point on the edge of the triangle mesh and the edge endpoint, and , Respectively represent the two endpoints on the edge of the triangular mesh;
[0157] For each triangle that intersects the slicing plane, the intersection point is stored in a caching mechanism.
[0158] Example 2
[0159] See also Figure 5 Another embodiment provided by the present invention is a path planning system based on gradient material 3D printing intelligent slicing, comprising:
[0160] Material analysis module, intelligent slicing module, path planning module, virtual simulation module, printing control module, post-processing module;
[0161] The material analysis module is used to collect 3D model data, analyze the distribution and properties of metal gradient functional materials, and adaptively adjust the slicing parameters, printing path and printing parameters according to the real-time data set during the printing process;
[0162] Intelligent slicing module, used to slice the 3D model according to printing requirements and metal gradient functional material characteristics, and generate slicing data for printing;
[0163] The path planning module is used to perform finite element analysis on the thin layer of the 3D model, generate the moving path for printing the thin layer of the 3D model, and iteratively optimize the moving path according to the genetic algorithm to obtain the final moving path;
[0164] Virtual simulation module, used to simulate the entire printing process through virtual simulation technology before actual printing, predict problems that may occur, and take emergency measures;
[0165] A printing control module, used to convert the generated final moving path data into control instructions executable by the printer, and control the printer to complete the printing task;
[0166] The post-processing module is used to post-process the printed metal gradient functional materials, remotely monitor the printing process, evaluate the impact of the printing process on the environment, the sustainability and recyclability of the materials, and collect feedback data for system optimization.
[0167] The material analysis module includes: material database unit, characteristic analysis unit, data acquisition unit, failure mode analysis unit, and multi-objective optimization unit;
[0168] A material database unit, used to store data and performance parameters of metal gradient functional materials;
[0169] A characteristic analysis unit, used for simulating and analyzing the characteristics of the metal gradient functional material through a material performance prediction model according to the data in the database;
[0170] A data acquisition unit, used to monitor the performance change data and material data of the metal gradient functional material in the printing process in real time;
[0171] A failure mode analysis unit is used to analyze whether the triangular mesh of the three-dimensional model intersects with the slice plane through a KD tree and a search strategy, and to determine whether the slice of the three-dimensional model data meets the slice contour quality standard through a slice quality evaluation function;
[0172] Multi-objective optimization unit, used to automatically adjust and optimize printing parameters through deep learning algorithms based on the collected data.
[0173] The intelligent slicing module includes: slicing strategy unit, slicing quality assessment unit, and slicing efficiency optimization unit;
[0174] A slicing strategy unit, used to update the position of the slicing plane according to the slicing direction and the slicing thickness, and dynamically adjust the slicing thickness through an adaptive slicing strategy according to the slicing quality evaluation result;
[0175] A slice quality evaluation unit, used to evaluate the processed three-dimensional model data slices using a slice quality evaluation function, and to evaluate the effects of different slice strategies on the printing quality;
[0176] The slicing efficiency optimization unit is used to optimize and verify the parameters of slicing and path planning based on the 3D printing simulation results using artificial intelligence algorithms.
[0177] The path planning module includes: a path generation unit, a path adjustment unit, and a smoothing processing unit;
[0178] A path generation unit is used to generate a printing movement path based on slice data and metal gradient functional materials through deep learning combined with finite element analysis and genetic algorithm;
[0179] A path adjustment unit, used to dynamically adjust path planning parameters according to real-time data monitored during the printing process;
[0180] The smoothing processing unit is used for smoothing the slice contour by using a normal vector smoothing algorithm.
[0181] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in the field may also change, modify, replace and modify the above-mentioned embodiments without departing from the scope of protection of the purpose of the present invention and the claims, and all of these are within the protection of the present invention.
Claims
1. A path planning method for intelligent slicing of 3D printing based on gradient materials, characterized in that: include: Step S1: preparing printing equipment and metal gradient functional materials, and performing inspection and pretreatment, introducing a material performance prediction model, and predicting the physical and chemical properties of the metal gradient functional materials by inputting the metal gradient functional material information; Step S2: according to the material property prediction results, a three-dimensional model of the metal gradient functional material is established, a deep learning algorithm is used to automatically optimize the three-dimensional model, and an intelligent slicing strategy is used to slice the three-dimensional model to obtain a 3D model thin layer, a finite element analysis is performed on the 3D model thin layer, and an adaptive slicing strategy is introduced to adjust the slice thickness and sequence, and a genetic algorithm is used to plan the movement path of the print head; Step S3: Adopting an adaptive path planning method, combining material properties, adjusting printing parameters and printing paths, using 3D printing simulation software to verify slicing and path planning, simulating the printing process, and optimizing slicing and path planning parameters according to simulation results if there are warping and collapse problems; Step S4: import the optimized slice and path planning data into the 3D printing device, control the device to print according to the predetermined parameters and path, introduce a real-time monitoring system to monitor the entire printing process, and if a fault occurs during the printing process, the monitoring system will automatically initiate emergency measures and notify the operator to handle it in a timely manner; The specific steps of step S2 include: S201: Collect the performance prediction results of the metal gradient functional material, determine the performance goals and constraints that the three-dimensional model needs to achieve, use the three-dimensional modeling tool, perform conceptual design based on the material performance prediction results and performance goals, obtain the shape, size and characteristics of the three-dimensional model, and add detailed data of the three-dimensional model on the basis of the conceptual design, consider the performance characteristic parameters of the three-dimensional model, so as to obtain a preliminary three-dimensional model; S202: using the simulation function in the 3D modeling tool to simulate and verify the preliminary 3D model, and checking whether the preliminary 3D model meets the performance requirements and constraints. If not, a deep learning model is trained using a recurrent neural network algorithm, and the simulation results of the preliminary 3D model are input into the trained deep learning model, and the optimized 3D model parameters are output, and the optimized 3D model is saved; The specific steps of step S2 also include: S203: Set the slice thickness to h , the slice direction is horizontal, the minimum and maximum spacing between slice planes is and , load the optimized 3D model, use the improved contour-based slicing algorithm to slice the optimized 3D model along the set slicing direction and slicing thickness, and obtain n A thin layer of 3D model; S204: Perform finite element division on each thin layer of the 3D model to obtain k units, and in each unit, m nodes, and define physical quantities at each node. At the same time, assign material properties to each unit, apply boundary conditions and loads, and establish the unit stiffness matrix based on unit type, material properties, and boundary conditions. ,Will k The stiffness matrix of the element Integrate into the overall stiffness matrix according to the node number in the unit , and k The loads on the elements are combined into an overall load vector ; S205: According to and Setting up the finite element equations , and merge the coefficients and constant terms of the finite element equations into one matrix to obtain the augmented matrix , through the row transformation Perform the upper triangular matrix-unit upper triangular matrix transformation to obtain , from the unit upper triangular matrix Starting from the last line, back-substitution is performed step by step to solve the node displacement vector ; S206: Solve the results based on the finite element equation , extract the maximum stress, average stress, and temperature distribution performance parameters on the corresponding nodes, and use the performance parameters to evaluate the thermal conductivity performance of the 3D model. According to the performance analysis results, intelligently adjust the slice thickness of each 3D model thin layer, optimize the slicing order, iteratively optimize S205-S206, and obtain n 3D model thin layers after the optimized order; S207: setting evaluation criteria and iteration times, generating a print head moving path according to the 3D model thin layer after the optimization order, and using the generated moving path data as the initial population, generating a new print head moving path through selection, crossover and mutation operations of the genetic algorithm according to the set evaluation criteria, and iterating and repeating until the preset iteration times are reached to obtain the final moving path; The specific steps of the improved contour-based slicing algorithm in S203 include: S2031: define the slice starting position, read the optimized 3D model data, and determine the position of the first slice plane according to the slice direction and the starting position; S2032: traverse each triangular mesh in the three-dimensional model, and use the KD tree to pre-process the model mesh. For each mesh, determine whether the triangular mesh is within the search range of the current slice plane. If not, discard it. If it is within the search range of the current slice plane, check whether it intersects with the current slice plane. If not, discard it. If it intersects, introduce a cross product sign detection strategy to calculate the position of the intersection, and introduce an intersection cache mechanism. If duplicate meshes appear, directly search for data stored in the intersection cache mechanism. S2033: connecting all intersection points of the grids intersecting the current slice plane to form a slice contour, and smoothing the slice contour. If there is a contour break problem, the break point position is identified and repaired. If there is an overlap problem, the redundant part is deleted or the overlapping part is merged to obtain a processed 3D model data slice; S2034: introducing a slice quality evaluation function, setting a slice contour quality standard, using the slice quality evaluation function to evaluate the processed 3D model data slices, and calculating the slice quality score. If the quality of the current slice does not meet the slice contour quality standard, the position of the slice plane is adjusted and the slice operation is performed again. If the slice contour quality standard is met, the contour data of the current slice plane is stored. S2035: Introduce an adaptive slicing strategy, update the position of the slicing plane according to the slicing direction and slicing thickness, and dynamically adjust the slicing thickness according to the slicing quality evaluation results through the adaptive slicing strategy until all slicing processes are completed to obtain the dynamically adjusted slicing thickness. n A thin layer of 3D model.
2. The path planning method based on gradient material 3D printing intelligent slicing as claimed in claim 1, characterized in that: The performance objectives and constraints in S202 are respectively expressed as: , ; in, F represents the actual stress of the three-dimensional model, represents the maximum stress borne by the three-dimensional model, E It represents the elastic modulus of the three-dimensional model when subjected to external force. It represents the minimum elastic modulus required for a three-dimensional model to be subjected to external forces. m Indicates the quality of the 3D model, Indicates the target mass of the 3D model when loaded. r Represents the thermal performance of the 3D model, represents the thermal expansion coefficient of the three-dimensional model, L Indicates the size of the 3D model. , Respectively represent the minimum and maximum values of the 3D model size, w represents the manufacturing cost of the 3D model, Represents the cost budget of the 3D model, represents the angle between any two line segments in a three-dimensional model. Represents the allowable angle error between any two line segments in a 3D model.
3. The path planning method based on gradient material 3D printing intelligent slicing as claimed in claim 2, characterized in that: The heat conduction equation in S206 is: ; in, represents the node position in the unit, , , Indicates the node location Anisotropic thermal conductivity, T represents temperature, q represents the heat source density, represents the density of metal gradient functional materials, c represents the specific heat capacity of metal gradient functional materials, t Indicates the current time. Represents the effect of external field on thermal conduction of metal gradient functional materials.
4. The path planning method based on gradient material 3D printing intelligent slicing as claimed in claim 3, characterized in that: The specific contents of the cross-product sign detection strategy in S2032 include: Set Slice Plane ,in is the normal vector of the plane, Represents the position coordinates of any point on the slice plane, H is a constant term; for each vertex of the triangle mesh, the vertex-to-plane distance formula is used to obtain the distance from the vertex to the slice plane Distance , i Indicates the number of triangle mesh vertices; like , it means that the triangle mesh does not intersect the slice plane; like , it means that the triangle mesh intersects with the slice plane; Select two endpoints of an edge of a triangle mesh and ,like , it means that the two endpoints are on both sides of the slice plane, and the intersection of the edge and the slice plane is calculated , the formula is: ; in, u Indicates the relative position of any point on the edge of the triangle mesh and the edge endpoint; For each triangle that intersects the slicing plane, the intersection point is stored in a caching mechanism.
5. A path planning system based on gradient material 3D printing intelligent slicing, which is implemented based on the path planning method based on gradient material 3D printing intelligent slicing as described in any one of claims 1 to 4, characterized in that: The system includes: a material analysis module, an intelligent slicing module, a path planning module, a virtual simulation module, a printing control module, and a post-processing module; The material analysis module is used to collect 3D model data, analyze the distribution and properties of metal gradient functional materials, and adaptively adjust slicing parameters, printing paths and printing parameters according to real-time data sets during the printing process; The intelligent slicing module is used to slice the 3D model according to the printing requirements and the characteristics of the metal gradient functional material to generate slicing data for printing; The path planning module is used to perform finite element analysis on the 3D model thin layer, generate a moving path for printing the 3D model thin layer, and iteratively optimize the moving path according to a genetic algorithm to obtain a final moving path; The virtual simulation module is used to simulate the entire printing process through virtual simulation technology before actual printing, predict problems that may occur, and take emergency measures; The printing control module is used to convert the generated final moving path data into control instructions executable by the printer, and control the printer to complete the printing task; The post-processing module is used to post-process the printed metal gradient functional material, remotely monitor the printing process, evaluate the impact of the printing process on the environment, the sustainability and recyclability of the material, and collect feedback data for system optimization.
6. The path planning system based on gradient material 3D printing intelligent slicing as claimed in claim 5, characterized in that: The material analysis module includes: a material database unit, a characteristic analysis unit, a data acquisition unit, a failure mode analysis unit, and a multi-objective optimization unit; The material database unit is used to store data and performance parameters of metal gradient functional materials; The characteristic analysis unit is used to simulate and analyze the characteristics of the metal gradient functional material through a material property prediction model according to the data in the database; The data acquisition unit is used to monitor the performance change data and material data of the metal gradient functional material in the printing process in real time; The failure mode analysis unit is used to analyze whether the triangular mesh of the three-dimensional model intersects with the slice plane through the KD tree and the search strategy, and to determine whether the slice of the three-dimensional model data meets the slice contour quality standard through the slice quality evaluation function; The multi-objective optimization unit is used to automatically adjust and optimize printing parameters through a deep learning algorithm based on the collected data.
7. The path planning system based on gradient material 3D printing intelligent slicing as claimed in claim 6, characterized in that: The intelligent slicing module includes: a slicing strategy unit, a slicing quality assessment unit, and a slicing efficiency optimization unit; The slicing strategy unit is used to update the position of the slicing plane according to the slicing direction and the slicing thickness, and dynamically adjust the slicing thickness through an adaptive slicing strategy according to the slicing quality evaluation result; The slicing quality evaluation unit is used to evaluate the processed 3D model data slices using a slicing quality evaluation function, and to evaluate the impact of different slicing strategies on the printing quality; The slicing efficiency optimization unit is used to optimize and verify the parameters of slicing and path planning according to the 3D printing simulation results using an artificial intelligence algorithm.
8. The path planning system based on gradient material 3D printing intelligent slicing as claimed in claim 7, characterized in that: The path planning module includes: a path generation unit, a path adjustment unit, and a smoothing processing unit; The path generation unit is used to generate a printing movement path according to the slice data and the metal gradient functional material through deep learning combined with finite element analysis and genetic algorithm; The path adjustment unit is used to dynamically adjust the path planning parameters according to the real-time data monitored during the printing process; The smoothing processing unit is used to smooth the slice contour by using a normal vector smoothing algorithm.
