Grid division method, device, computer equipment and storage medium for additive manufacturing
By dividing the three-dimensional model of additive manufacturing into sub-models of straight lines, corners and arc structures for grid division and splicing, the problem of meshing of complex components is solved, the calculation efficiency and accuracy are improved, and finite element analysis is provided More accurate data.
Patent Information
- Application Number
- CN202411189114.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-08-28
AI Technical Summary
In the process of additive manufacturing, it is difficult for the prior art to effectively divide structured meshing of complex components, resulting in low computing efficiency and large errors in simulation results. The irregularity of free mesh in finite element analysis leads to high computing costs and calculation Long time.
By obtaining the three-dimensional model of the target component, multiple melting path models of the same structure are determined based on the melting path thickness, deposition path and melting path width, and divided into sub-models of straight lines, corners and arc structures for grid division. The sedimentation sequence and position information are spliced to generate a whole-domain structure grid.
The difficulty of structured mesh division is simplified, the accuracy of mesh division is improved, and more accurate data on thermodynamic behavior and residual stress and deformation evolution laws are provided for finite element analysis, reducing calculation costs and errors.
Smart Images

Figure CN118709503B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of additive manufacturing, and specifically relates to a grid division method, device, computer equipment and storage medium for additive manufacturing. Background Art
[0002] Finite element analysis is an important means to study the thermodynamic behavior of additive manufacturing and the evolution of residual stress and deformation. It can provide guidance for the study of the influence mechanism of residual stress and deformation and the subsequent stress and deformation regulation.
[0003] When performing finite element numerical simulation on the additive manufacturing process of large and complex components, most existing technologies use free mesh methods to mesh the model. On the one hand, the huge amount of meshes leads to non-convergence of calculations or too long calculation time, resulting in high calculation costs; on the other hand, due to the irregularity and non-uniformity of the size and shape of the free mesh, large errors may occur during the numerical simulation process, and it is difficult to optimize the mesh to control the simulation results.
[0004] Therefore, in order to avoid uncontrollable simulation results, the existing technology also uses structured grids to mesh the target components. Compared with free grids, structured grids have great advantages in computational efficiency and accuracy. However, there is a lack of corresponding theoretical and technical references for structured grid division of complex components. At present, structured grid division is only applicable to components with simple structures. Summary of the invention
[0005] Based on this, it is necessary to provide a grid division method, device, computer equipment and storage medium for additive manufacturing to address the above technical problems.
[0006] In a first aspect, the present application provides a meshing method for additive manufacturing, comprising:
[0007] Obtaining a three-dimensional model of a target component;
[0008] Determining a plurality of melt channel models including the same structure through the three-dimensional model according to the melt channel thickness, the deposition path and the melt channel width;
[0009] Dividing the melt channel model into a plurality of sub-models according to a preset characteristic structure, each of the sub-models being a model including only one preset characteristic structure, wherein the preset characteristic structure includes a straight line structure, a corner structure and an arc structure; meshing each sub-model to obtain a plurality of sub-model meshes;
[0010] According to the deposition order of the melt channel and the position information of each sub-model, the multiple sub-model grids are spliced to generate the global structural grid of the target component.
[0011] Optionally, determining a plurality of melt channel models having the same structure through the three-dimensional model according to the melt channel thickness, the deposition path and the melt channel width comprises:
[0012] According to the melt channel thickness, the three-dimensional model is sliced along the height to generate a slice model; a two-dimensional model is generated according to the slice model, and according to the deposition path and the melt channel width, the two-dimensional model is divided into multiple melt channel models including the same structure.
[0013] Optionally, when the preset characteristic structure is a linear structure, each sub-model is meshed to obtain a plurality of sub-model meshes including:
[0014] Obtaining the coordinates of the starting point and the ending point of the sub-model;
[0015] Between the coordinates of the starting point and the ending point, dividing the melt track model of the straight structure into one or more grids of the same size according to a preset grid width;
[0016] The number of grids is obtained, and the sub-model grid is determined according to the coordinates of the starting point and the ending point and the number of grids.
[0017] Optionally, when the preset characteristic structure is a corner structure, meshing each sub-model to obtain a plurality of sub-model meshes further includes:
[0018] Obtaining the coordinates of the starting point, corner point and end point of the submodel;
[0019] Determining nodes of the sub-model according to the starting point, the corner point, the end point and the width of the melt path;
[0020] Dividing the sub-model into multiple sub-melt track models according to the nodes;
[0021] Determine the number of grids and coordinate information of each sub-melt channel model in the multi-segment sub-melt channel model respectively, and determine the number of grids of the sub-model according to the number of grids and the number of corner points of each sub-melt channel model;
[0022] The sub-model grids are determined according to the number of grids of the sub-model and the coordinate information of each sub-melt track model.
[0023] Optionally, determining the number of meshes of the sub-model according to the number of meshes and the number of corner points of each sub-melt track model comprises:
[0024] The sum of the number of meshes of the plurality of sub-melt channel models and the number of corner points is determined as the number of meshes of the sub-model.
[0025] Optionally, when the preset characteristic structure is an arc structure, meshing each sub-model to obtain a plurality of sub-model meshes further comprises:
[0026] Obtaining the coordinates of the starting point, center point and end point of the submodel;
[0027] Setting a grid expansion direction, dividing the sub-model into a plurality of two-dimensional grids according to the expansion direction and with the center point as the center of the circle according to a preset angle;
[0028] The sub-model grid is determined according to the two-dimensional grid and the coordinates of the starting point, the center point and the end point.
[0029] In a second aspect, the present application provides a grid division device for additive manufacturing, the device comprising:
[0030] An acquisition module, used for acquiring a three-dimensional model of a target component;
[0031] A determination module, configured to determine a plurality of melt channel models having the same structure through the three-dimensional model according to the melt channel thickness, the deposition path and the melt channel width;
[0032] A generation module is used to divide the melt channel model into a plurality of sub-models according to a preset characteristic structure, each of the sub-models is a model including only one preset characteristic structure, and the preset characteristic structure includes a straight line structure, a corner structure and an arc structure; and mesh each sub-model to obtain a plurality of sub-model meshes;
[0033] The splicing module is used to splice the multiple sub-model grids according to the deposition order of the melt channel and the position information of each sub-model to generate the global structural grid of the target component.
[0034] Optionally, the determination module is further used to slice the three-dimensional model along the height according to the melt track thickness to generate a slice model; generate a two-dimensional model according to the slice model, and divide the two-dimensional model into multiple melt track models including the same structure according to the deposition path and melt track width.
[0035] Optionally, when the preset characteristic structure is a straight line structure, the generation module is further used to obtain the coordinates of the starting point and the ending point of the sub-model; between the coordinates of the starting point and the ending point, divide the melt model of the straight line structure into one or more grids of the same size according to a preset grid width; obtain the number of grids, and determine the sub-model grid according to the coordinates of the starting point and the ending point and the number of grids.
[0036] Optionally, when the preset characteristic structure is a corner structure, the generation module is further used to obtain the coordinates of the starting point, corner point and end point of the sub-model; determine the nodes of the sub-model according to the starting point, corner point, end point and the melt track width; divide the sub-model into multiple sub-melt track models according to the nodes; determine the number of grids and coordinate information of each sub-melt track model in the multiple sub-melt track models respectively, and determine the number of grids of the sub-model according to the number of grids and the number of corner points of each sub-melt track model; determine the sub-model grid according to the number of grids of the sub-model and the coordinate information of each sub-melt track model.
[0037] Optionally, the generating module is further used to determine that the sum of the number of meshes of the plurality of sub-melt track models and the number of corner points is the number of meshes of the sub-model.
[0038] Optionally, when the preset characteristic structure is an arc structure, the generation module is further used to obtain the coordinates of the starting point, center point and end point of the sub-model; set the grid expansion direction, and divide the sub-model into multiple two-dimensional grids according to the expansion direction and the center point as the center of the circle according to a preset angle; determine the sub-model grid of the melt channel according to the two-dimensional grid and the coordinates of the starting point, center point and end point.
[0039] In a third aspect, the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned grid division method for additive manufacturing is implemented.
[0040] In a fourth aspect, the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned grid division method for additive manufacturing when executing the program.
[0041] The grid division method for additive manufacturing provided by the present invention has the following beneficial effects:
[0042] By converting the relatively complex three-dimensional model of the target component into a melt path model including a preset characteristic structure, the difficulty of structured mesh division is greatly simplified. The mesh is generated according to the preset mesh extension algorithm and the preset characteristic structure, which is conducive to improving the accuracy of mesh division and providing more accurate data for finite element analysis of the thermodynamic behavior of additive manufacturing and the evolution of residual stress and deformation. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiment of the present invention and its design scheme, the following briefly introduces the drawings required for this embodiment. 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 creative work.
[0044] Figure 1 A flow chart of a grid division method for additive manufacturing provided by the present invention.
[0045] Figure 2 A schematic diagram of a component model provided by the present invention.
[0046] Figure 3 A schematic diagram of another component model provided by the present invention.
[0047] Figure 4 A schematic diagram of another component model provided by the present invention.
[0048] Figure 5 A schematic diagram of another component model provided by the present invention.
[0049] Figure 6 A block diagram of a grid division device for additive manufacturing provided by the present invention.
[0050] Figure 7 A schematic diagram of a computer device for implementing a grid division method for additive manufacturing provided by the present invention. DETAILED DESCRIPTION
[0051] In order to enable those skilled in the art to better understand the technical solution of the present invention and implement it, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the scope of protection of the present invention.
[0052] Additive manufacturing technology originates from the forming idea of "discrete-accumulation". First, two three-dimensional CAD solid models are generated in the computer, and then the models are sliced and layered according to a certain thickness, that is, the three-dimensional structural information is converted into a series of approximate two-dimensional contours, and the obtained two-dimensional contour information of each layer is verified and corrected, and converted into CNC machining information. Then, under the control of the control system, a high-energy beam (laser, electron beam, arc, etc.) melts the raw material on the substrate according to a certain scanning path and fills the given two-dimensional contour to form a cladding layer. This process is repeated continuously and a three-dimensional solid component is formed by layer-by-layer accumulation. Due to the characteristics of mold-free, fast, low-cost, and near-net-shape forming, additive manufacturing technology is widely used in aerospace, medical, automotive, engineering and other fields. However, additive manufacturing still has many defects, among which residual stress and deformation are two major factors that limit the development of metal additive manufacturing technology. Relying on traditional industrial test methods to study residual stress and deformation is not only inefficient and costly, but also has great limitations. Finite element analysis is an effective tool that can be used to predict the thermal stress field of metal additive manufacturing. Therefore, most scholars choose to use finite element analysis to study the residual stress and deformation of metal additive manufacturing components.
[0053] When performing finite element numerical simulation on the additive manufacturing process of large and complex components, most existing technologies use free mesh methods to mesh the model. On the one hand, the huge amount of meshes leads to non-convergence of calculations or too long calculation time, resulting in high calculation costs; on the other hand, due to the irregularity and non-uniformity of the size and shape of the free mesh, large errors may occur during the numerical simulation process, and it is difficult to optimize the mesh to control the simulation results.
[0054] Therefore, in order to avoid uncontrollable simulation results, the existing technology also uses structured grids to mesh the target components. Compared with free grids, structured grids have great advantages in computational efficiency and accuracy. However, there is a lack of corresponding theoretical and technical references for structured grid division of complex components. At present, structured grid division is only applicable to components with simple structures.
[0055] In order to solve the above problems, the present application provides a meshing method, device, computer equipment and storage medium for additive manufacturing, constructing a three-dimensional model of a target component; according to the melt channel thickness, deposition path and melt channel width, multiple melt channel models including the same structure are determined through the three-dimensional model; according to the preset characteristic structure, the melt channel model is divided into multiple sub-models, each of which is a model including only one preset characteristic structure, and the preset characteristic structure includes a straight line structure, a corner structure and an arc structure; each sub-model is meshed to obtain multiple sub-model meshes; according to the deposition order of the melt channel and the position information of each sub-model, the multiple sub-model meshes are spliced to generate the global structural body mesh of the target component. In this way, by converting the relatively complex three-dimensional model of the target component into a melt channel model including a preset characteristic structure, the difficulty of structured meshing is greatly simplified, and the mesh is generated according to the preset mesh expansion algorithm and the preset characteristic structure, which is conducive to improving the accuracy of meshing and providing more accurate data for finite element analysis of the thermodynamic behavior of additive manufacturing and the residual stress and deformation evolution law.
[0056] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0057] Figure 1 A schematic diagram of a meshing method for additive manufacturing provided in this application, such as Figure 1 As shown, the following steps are included:
[0058] S101, obtaining a three-dimensional model of a target component.
[0059] In this step, the target component may be modeled to obtain a three-dimensional model of the target component.
[0060] S102 , determining a plurality of melt channel models including the same structure through the three-dimensional model according to the melt channel thickness, the deposition path and the melt channel width.
[0061] In the additive manufacturing process, a high-energy beam melts the raw material on the substrate according to a certain scanning path and fills a given two-dimensional contour to form a cladding layer, i.e., a melt path. This process is repeated continuously and a three-dimensional solid component is formed by layer-by-layer accumulation.
[0062] In this step, the three-dimensional model can be sliced along the height according to the melt track thickness to generate a slice model; a two-dimensional model is generated according to the slice model, and the two-dimensional model is divided into multiple melt track models including the same preset characteristic structure according to the deposition path and the melt track width.
[0063] Specifically, according to the thickness of the melt path, the three-dimensional model of the target component is sliced along the height to obtain multiple slice models with a height equal to the melt path thickness, and the slice model is projected to obtain a two-dimensional model of the slice model. In actual production, in order to fill a given two-dimensional contour, the deposition path needs to be filled back and forth multiple times. The number of fillings is related to the given two-dimensional contour and the width of the deposition path. Specifically, Figure 2 As shown, a predetermined V-shaped two-dimensional profile can be regarded as a V-shaped two-dimensional model. According to the width of the deposition path, three reciprocating movements are required to fill the two-dimensional model. Therefore, according to the deposition path and the melt channel width, the two-dimensional model can be determined as three melt channel models including the same structure.
[0064] In one embodiment, in order to determine the melt paths including the same structure, the path feature recognition can be performed on the two-dimensional model, the deposition paths including the same path feature can be extracted, and the melt path model corresponding to the deposition paths including the same path feature can be determined as the melt path model including the same structure. The specific path feature recognition method can refer to the prior art and will not be described in detail here.
[0065] S103, dividing the melt channel model into a plurality of sub-models according to a preset characteristic structure, and meshing each sub-model to obtain a plurality of sub-model meshes.
[0066] Each sub-model is a model that includes only one preset characteristic structure, and the preset characteristic structure includes a straight line structure, a corner structure and an arc structure.
[0067] In one embodiment, the preset characteristic structure is a straight line structure.
[0068] For example, the coordinates of the starting point and the ending point of the sub-model are obtained; between the coordinates of the starting point and the ending point, the melt path of the straight structure is divided into one or more grids of the same size according to a preset grid width, the number of grids is obtained, and the sub-model grid is determined according to the coordinates of the starting point and the ending point and the number of grids.
[0069] like Figure 3 As shown, the length of the sub-model is determined to be L according to the coordinates of the starting point and the ending point; between the coordinates of the starting point and the ending point, the straight line segment is divided into n grids of the same size according to the preset grid width w, and the length of a single grid along the path direction is l=L / n. According to the coordinates of the starting point and the ending point and the length of a single grid, the coordinate information of each grid is determined, and then the sub-model grid is determined.
[0070] In another embodiment, the preset characteristic structure is a corner structure.
[0071] For example, the coordinates of the starting point, corner point and end point of the sub-model can be first obtained; the nodes of the sub-model can be determined according to the starting point, corner point, end point and the width of the melt channel; the sub-model can be divided into multiple sub-melt channel models according to the nodes; the number of grids and coordinate information of each sub-melt channel model in the multiple sub-melt channel models can be determined respectively, and the number of grids of the sub-model can be determined according to the number of grids and the number of corner points of each sub-melt channel model; the grid of the sub-model can be determined according to the number of grids of the sub-model and the coordinate information of each sub-melt channel model.
[0072] Among them, the sub-melt track model can be a partial melt track model that only includes straight line structures and a partial melt track model that only includes corners in the melt track of the above-mentioned corner structure. Since the corner structure can be regarded as a structure composed of multiple straight line structures and corners, the sum of the number of grids of multiple sub-melt track models and the number of corner points can be determined as the number of grids of the sub-model.
[0073] For example, Figure 4 As shown, a corner structure melt path including only two straight structures and one corner, import the coordinate data of the starting point, corner point and end point, calculate the direction vectors S1 and S2 of the two straight structures, the direction vector is used to indicate the direction, and combine the user-specified grid lengths L1, L2 and grid width w in the two straight structures to generate nodes A, B, C, and D. Among them, L1 and L2 are two grid lengths that do not affect each other, and the two grid lengths can be the same or different. Then generate the corner nodes E, F nodes and Fa, Fb, F1, and F2 nodes, call the above Figure 3 The example only includes the sub-model expansion grid method of the straight structure, generates grid points on the straight path, calculates the grid numbers m1 and m2 of the first straight structure sub-melt model and the second straight structure sub-melt model respectively, and the total number of grids is m=m1+m2+1, assigns the grid coordinate information of the first straight structure sub-melt model to the 1st to m1th rows of the corner path grid matrix, assigns the coordinate information of the corner grid nodes (E, F, F1, F2) to the m1+1th row of the corner path grid matrix, assigns the grid coordinate information of the second straight structure sub-melt model to the m1+2th to mth rows of the corner path grid matrix, generates a two-dimensional grid for the corner path, and then generates a three-dimensional structure grid according to the melt thickness d.
[0074] In yet another embodiment, the preset characteristic structure is an arc structure.
[0075] Obtain the coordinates of the starting point, center point and end point of the sub-model; set the grid expansion direction, and divide the sub-model into multiple two-dimensional grids according to the expansion direction and the center point as the center of the circle at a preset angle; determine the sub-model grid based on the two-dimensional grid and the coordinates of the starting point, center point and end point.
[0076] Specifically, the key point coordinates, i.e., the starting point, center point, and end point data, can be imported, and the grid expansion direction can be set, which can be clockwise or counterclockwise, and the sub-model of the arc structure is divided into two-dimensional grids according to the preset angle, and then a three-dimensional structure grid is generated according to the melt thickness d.
[0077] In order to further illustrate this application, Figure 5 As shown, the three-dimensional model of the target component is sliced to obtain an N-shaped two-dimensional model, and the path feature recognition is performed on the two-dimensional model. Corresponding to the width w of the melt channel in the actual additive process, the overall area of each layer is divided into an additive deposition path model, and multiple melt channels including the same preset characteristic structure are determined according to the additive deposition path. According to the deposition sequence and the preset characteristic structure, the melt channel is divided into multiple sub-models, and the multiple sub-models include a sub-model of a straight structure and a sub-model of a corner structure, that is, 23 sub-models A1-A23. Grid nodes are generated according to the key points of each characteristic structure, and the grid node coordinate information on all sub-models is spliced to generate a global grid node coordinate matrix of the sequential path.
[0078] S104, according to the deposition order of the melt path and the position information of each sub-model, the multiple sub-model grids are spliced to generate a global structural grid of the target component.
[0079] By adopting the above method, the difficulty of structured meshing is greatly simplified by converting the relatively complex three-dimensional model of the target component into a sub-model that only includes preset characteristic structures. The mesh is generated according to the preset characteristic structure, which is conducive to improving the accuracy of meshing and providing more accurate data for finite element analysis of the thermodynamic behavior of additive manufacturing and the evolution of residual stress and deformation.
[0080] Figure 6 A structural block diagram of a grid division device for additive manufacturing provided in this application, such as Figure 6 As shown, the device comprises:
[0081] The acquisition module 601 is used to acquire the three-dimensional model of the target component.
[0082] The determination module 602 is used to determine a plurality of melt channel models including the same structure through the three-dimensional model according to the melt channel thickness, the deposition path and the melt channel width.
[0083] A generation module 603 is used to divide the melt channel model into a plurality of sub-models according to a preset characteristic structure, each of which is a model including only one preset characteristic structure, and the preset characteristic structure includes a straight line structure, a corner structure and an arc structure; and mesh each sub-model to obtain a plurality of sub-model meshes;
[0084] The splicing module 604 is used to splice the multiple sub-model grids according to the deposition order of the melt channel and the position information of each sub-model to generate the global structural grid of the target component.
[0085] Optionally, the determination module 602 is further configured to slice the three-dimensional model along the height according to the melt path thickness to generate a slice model; generate a two-dimensional model according to the slice model, and divide the two-dimensional model into multiple melt path models having the same structure according to the deposition path and melt path width.
[0086] Optionally, when the preset characteristic structure is a straight line structure, the generation module 603 is further used to obtain the coordinates of the starting point and the ending point of the sub-model; between the coordinates of the starting point and the ending point, divide the melt track model of the straight line structure into one or more grids of the same size according to a preset grid width; obtain the number of grids, and determine the sub-model grid according to the coordinates of the starting point and the ending point and the number of grids.
[0087] Optionally, when the preset characteristic structure is a corner structure, the generation module 603 is further used to obtain the coordinates of the starting point, corner point and end point of the sub-model; determine the nodes of the sub-model according to the starting point, corner point, end point and the width of the melt channel; divide the sub-model into multiple sub-melt channel models according to the nodes; respectively determine the number of grids and coordinate information of each sub-melt channel model in the multiple sub-melt channel models, and determine the number of grids of the sub-model according to the number of grids and the number of corner points of each sub-melt channel model; determine the sub-model grid according to the number of grids of the sub-model and the coordinate information of each sub-melt channel model.
[0088] Optionally, the generating module 603 is further configured to determine that the sum of the number of grids of the plurality of sub-melt channel models and the number of corner points is the number of grids of the melt channel.
[0089] Optionally, when the preset characteristic structure is an arc structure, the generation module 603 is further used to obtain the coordinates of the starting point, center point and end point of the sub-model; set the grid expansion direction, and divide the sub-model into multiple two-dimensional grids according to the expansion direction, with the center point as the center of the circle, and according to a preset angle; determine the sub-model grid of the melt channel according to the two-dimensional grid and the coordinates of the starting point, center point and end point.
[0090] By adopting the above-mentioned device, the difficulty of structured meshing is greatly simplified by converting the relatively complex three-dimensional model of the target component into a melt path model that only includes preset characteristic structures, and generating meshes according to the preset characteristic structures, which is conducive to improving the accuracy of meshing and providing more accurate data for finite element analysis of the thermodynamic behavior of additive manufacturing and the evolution of residual stress and deformation.
[0091] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 A meshing method for additive manufacturing is provided.
[0092] This manual also provides Figure 7 The structural diagram of the computer device shown in FIG. Figure 7 As shown in the figure, at the hardware level, the computer device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 A meshing method for additive manufacturing is provided.
[0093] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0094] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0095] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0096] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0097] It should be noted that the above specific implementation method can enable those skilled in the art to more fully understand the invention, but does not limit the invention in any way. Therefore, although the present specification and embodiments have described the invention in detail, those skilled in the art should understand that the invention can still be modified or replaced by equivalents; and all technical solutions and improvements that do not deviate from the spirit and scope of the invention are included in the protection scope of the patent for the invention. Any figure mark in the claims should not be regarded as limiting the claims involved.
Claims
1. A meshing method for additive manufacturing, characterized in that: The method comprises: Construct a three-dimensional model of the target component; Determining a plurality of melt channel models including the same structure through the three-dimensional model according to the melt channel thickness, the deposition path and the melt channel width; Dividing the melt channel model into a plurality of sub-models according to a preset characteristic structure, each of the sub-models being a model including only one preset characteristic structure, wherein the preset characteristic structure includes a straight line structure, a corner structure and an arc structure; meshing each sub-model to obtain a plurality of sub-model meshes; According to the deposition order of the melt channel and the position information of each sub-model, the plurality of sub-model grids are spliced to generate a global structural grid of the target component; In the case where the preset characteristic structure is a straight line structure, each sub-model is meshed to obtain a plurality of sub-model meshes, including: obtaining the coordinates of the starting point and the ending point of the sub-model; dividing the sub-model of the straight line structure into one or more meshes of the same size according to a preset mesh width between the coordinates of the starting point and the ending point; obtaining the number of meshes, and determining the sub-model meshes according to the coordinates of the starting point and the ending point and the number of meshes; In the case where the preset characteristic structure is a corner structure, meshing each sub-model to obtain a plurality of sub-model meshes further comprises: obtaining the coordinates of the starting point, the corner point and the ending point of the sub-model; determining the nodes of the sub-model according to the starting point, the corner point, the ending point and the width of the melt channel; dividing the sub-model into multiple sub-melt channel models according to the nodes; respectively determining the number of meshes and coordinate information of each sub-melt channel model in the multiple sub-melt channel models, and determining the number of meshes of the sub-model according to the number of meshes and the number of corner points of each sub-melt channel model; determining the sub-model meshes according to the number of meshes of the sub-model and the coordinate information of each sub-melt channel model; The sub-melt channel model is a partial melt channel model including only straight line structures and a partial melt channel model including only corners in the melt channel of the corner structure. Since the corner structure includes multiple straight line structures and corners, the sum of the number of grids of the multiple sub-melt channel models and the number of corner points is determined to be the number of grids of the sub-model. When the preset characteristic structure is an arc structure, each sub-model is meshed to obtain multiple sub-model meshes, which also includes: obtaining the coordinates of the starting point, center point and end point of the sub-model; setting the mesh expansion direction, and dividing the sub-model into multiple two-dimensional grids according to the expansion direction and the center point as the center of the circle according to a preset angle; determining the sub-model mesh according to the two-dimensional grid and the coordinates of the starting point, center point and end point.
2. The method according to claim 1, characterized in that Determining a plurality of melt channel models having the same structure through the three-dimensional model according to the melt channel thickness, the deposition path and the melt channel width comprises: According to the melt channel thickness, the three-dimensional model is sliced along the height to generate a slice model; a two-dimensional model is generated according to the slice model, and according to the deposition path and the melt channel width, the two-dimensional model is divided into multiple melt channel models including the same structure.
3. A meshing device for additive manufacturing, characterized in that: The device comprises: An acquisition module, used for acquiring a three-dimensional model of a target component; A determination module, configured to determine a plurality of melt channel models having the same structure through the three-dimensional model according to the melt channel thickness, the deposition path and the melt channel width; A generation module is used to divide the melt channel model into a plurality of sub-models according to a preset characteristic structure, each of the sub-models is a model including only one preset characteristic structure, and the preset characteristic structure includes a straight line structure, a corner structure and an arc structure; and mesh each sub-model to obtain a plurality of sub-model meshes; A splicing module, used for splicing the plurality of sub-model grids according to the deposition order of the melt channel and the position information of each sub-model, to generate a global structural grid of the target component; In the case where the preset characteristic structure is a straight line structure, the generation module is further used to obtain the coordinates of the starting point and the ending point of the sub-model; between the coordinates of the starting point and the ending point, the melt track model of the straight line structure is divided into one or more grids of the same size according to the preset grid width; the number of grids is obtained, and the sub-model grid is determined according to the coordinates of the starting point and the ending point and the number of grids; In the case where the preset characteristic structure is a corner structure, the generation module is further used to obtain the coordinates of the starting point, the corner point and the end point of the sub-model; determine the nodes of the sub-model according to the starting point, the corner point, the end point and the width of the melt channel; divide the sub-model into multiple sub-melt channel models according to the nodes; respectively determine the number of grids and coordinate information of each sub-melt channel model in the multiple sub-melt channel model, and determine the number of grids of the sub-model according to the number of grids and the number of corner points of each sub-melt channel model; determine the sub-model grid according to the number of grids of the sub-model and the coordinate information of each sub-melt channel model; The sub-melt channel model is a partial melt channel model including only straight line structures and a partial melt channel model including only corners in the melt channel of the corner structure. Since the corner structure includes multiple straight line structures and corners, the sum of the number of grids of the multiple sub-melt channel models and the number of corner points is determined to be the number of grids of the sub-model. When the preset feature structure is an arc structure, the generation module is also used to obtain the coordinates of the starting point, center point and end point of the sub-model; set the grid expansion direction, and divide the sub-model into multiple two-dimensional grids according to the expansion direction, with the center point as the center of the circle, and according to the preset angle; determine the sub-model grid according to the two-dimensional grid and the coordinates of the starting point, center point and end point.
4. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.
5. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in any one of claims 1 to 2 is implemented.