Blade model-based film cooling hole numerical control machining code generation method and device
By identifying the diffuser section and straight hole structure of the blade model, and obtaining the machining trajectory points layer by layer to generate CNC code, the problems of high difficulty, high cost and insufficient accuracy in machining film cooling holes are solved, and efficient automated production is achieved.
Patent Information
- Application Number
- CN202311304816.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-10
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-10-10
AI Technical Summary
In existing technologies, the processing of air film cooling holes with diffusion structures is difficult and costly, and the time-consuming process of manually compiling CNC codes results in insufficient processing accuracy and makes it impossible to achieve automated generation.
By identifying the diffuser section structure and straight hole structure on the blade model, machining trajectory points are obtained layer by layer, and CNC machining code is generated. This includes obtaining the coordinates of the discrete points of the reference surface of the diffuser section structure, compensating for the radius of the tool electrode, extracting the depth of the straight hole structure, and generating a scanning machining trajectory.
It improves the production efficiency of air film cooling holes, reduces labor costs, lowers the processing error rate, realizes automated production of air film cooling holes, and ensures processing accuracy.
Smart Images

Figure CN117369366B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of special processing technology, and in particular to a method and apparatus for generating CNC machining codes for air film cooling holes based on a blade model. Background Technology
[0002] Improving the thrust-to-weight ratio of aero-engines requires continuously increasing the turbine inlet temperature. However, the heat resistance of turbine blade materials limits further temperature increases. To ensure the normal operation of turbine blades at extremely high temperatures, effective cooling measures must be taken. Currently, film cooling is often used, introducing cooling jets through film cooling holes to adhere to the blade surface and form a cooler film, isolating the blade surface from the high-temperature exhaust gases.
[0003] Among them, film cooling holes with diffusion structures reduce the exit velocity of the cooling jet due to outlet expansion, preventing the jet from being blown away from the wall and thus improving cooling efficiency. However, machining film cooling holes with diffusion structures is more difficult and more expensive than machining ordinary cylindrical straight holes.
[0004] In related technologies, the processing methods for film cooling holes with diffusion structures mainly include electrical discharge machining (EDM) and electrical discharge scanning milling (EDM). EDM uses a forming electrode to "copy" the diffusion structure onto the blade workpiece, creating a shape consistent with the forming electrode. During processing, wear inevitably occurs at the corners of the forming electrode, reducing its shape accuracy, and the processed diffusion structure gradually deviates from the expected shape. Furthermore, processing the same film cooling hole diffusion structure and cylindrical straight hole structure requires changing the forming electrode and cylindrical electrode, easily leading to secondary clamping errors and making it difficult to guarantee positioning accuracy. EDM, on the other hand, does not require manufacturing complex forming tool electrodes according to the shape of the film cooling hole. It only requires a simple cylindrical electrode, following a specific scanning motion trajectory, similar to milling, to process the desired diffusion structure shape. During processing, the cylindrical tool electrode's end face discharges and erodes the material. By adopting certain electrode end face wear compensation strategies, the scanning processing shape accuracy of the diffusion structure can be guaranteed. Therefore, electrical discharge machining (EDM) can achieve batch processing of diffuser holes and cylindrical holes using the same electrode and in a single clamping, offering greater technological advantages.
[0005] During the machining of film cooling holes with diffusion structures, the number of these holes on a single blade, distributed across the blade base, blade edge, and blade back, can reach dozens to hundreds, with varying shapes and sizes. This necessitates manually creating CNC code for continuous batch machining, obtaining the NC code for the scanning trajectory of each film cooling hole through reverse copying of the forming electrode. However, in the blade design model, the embedding depth and offset angle of the same forming electrode at each machining position on the blade profile differ, resulting in variations in the machining depth and boundaries of each film cooling hole. This leads to a large workload, time-consuming process, and a high risk of errors due to the need for manually adjusting and calculating the reverse copying depth and angle of the forming electrode for each film cooling hole and manually creating and modifying the NC code for each hole. Summary of the Invention
[0006] This application provides a method and apparatus for generating CNC machining codes for film cooling holes based on a blade model. This addresses the problems of varying locations, shapes, and sizes of film cooling holes on a single blade, which necessitate manual CNC code generation when performing batch continuous machining on blades with numerous film cooling holes. The NC codes for each film cooling hole's scanning trajectory are obtained by reverse copying from the forming electrode. However, the embedding depth and offset angle of the same forming electrode at each machining position on the blade profile differ, resulting in varying machining depths and boundaries for each film cooling hole. This leads to a large workload and long processing time for manual code generation, making it difficult to guarantee the accuracy of film cooling hole positioning and machining, hindering the automated generation of NC codes for film cooling hole scanning and machining, and resulting in insufficient reliability.
[0007] The first aspect of this application provides a method for generating CNC machining code for film cooling holes based on a blade model, comprising the following steps: obtaining the diffuser section structure of a target film cooling hole from a blade model, and generating discrete point coordinates for each layer of all reference surfaces in the diffuser section structure based on the diffuser section structure; compensating the radius of a target tool electrode for the discrete point coordinates of each layer to obtain the trajectory point coordinates of each layer of all reference surfaces; obtaining the scanning machining trajectory of the diffuser section structure based on the trajectory point coordinates of each layer; extracting the straight hole structure depth of the target film cooling hole based on the straight hole section of the target film cooling hole; and generating CNC machining code for the target film cooling hole based on the scanning machining trajectory of the diffuser section structure and the straight hole structure depth.
[0008] Optionally, in one embodiment of this application, obtaining the diffuser section structure of the target film cooling hole of the blade model includes: collecting all the intersection lines between the target forming electrode and the blade profile of the blade model; obtaining all the irregular hole surfaces of the target film cooling hole based on all the intersection lines; and confirming the diffuser section structure based on all the irregular hole surfaces.
[0009] Optionally, in one embodiment of this application, generating discrete point coordinates for each layer of all reference surfaces in the diffusion segment structure based on the diffusion segment structure includes: creating all reference surfaces based on the cylindrical surface of the diffusion segment structure and a preset layer spacing, and detecting whether the number of intersection lines between each layer of the reference surfaces and the irregular hole surface is greater than zero; if the number of intersection lines is greater than zero, then outputting the discrete point coordinates of the corresponding layer reference surface based on the preset discrete point spacing; if the number of intersection lines is equal to zero, then determining that the corresponding layer reference surface is the top layer reference surface, and stopping the output of the discrete point coordinates of the top layer reference surface.
[0010] Optionally, in one embodiment of this application, obtaining the scanning processing trajectory of the diffusion segment structure based on the coordinates of the trajectory points of each layer includes: obtaining the endpoints of the corresponding reference surface in the coordinates of the trajectory points of each layer, and determining whether the distance between the endpoints is greater than a preset threshold; if the endpoint distance is greater than the preset threshold, calculating the actual distance between the endpoint and the target termination point, selecting the endpoint with the smallest actual distance as the starting output point, outputting the trajectory point coordinates according to the starting output point, and obtaining the scanning processing trajectory of the corresponding reference surface according to the trajectory point coordinates; if the endpoint distance is less than or equal to the preset threshold, calculating the actual distance between all trajectory points in the corresponding reference surface and the target termination point, selecting the trajectory point with the smallest actual distance as the starting output point, and matching the output direction to output the trajectory point coordinates to obtain the scanning processing trajectory of the corresponding reference surface layer.
[0011] A second aspect of this application provides a CNC machining code generation device for film cooling holes based on a blade model, comprising: an acquisition module for acquiring the diffuser section structure of a target film cooling hole in a blade model, and generating discrete point coordinates for each layer of all reference surfaces in the diffuser section structure based on the diffuser section structure; a compensation module for compensating the radius of a target tool electrode for the discrete point coordinates of each layer to obtain the trajectory point coordinates of each layer of all reference surfaces; and a generation module for obtaining the scanning machining trajectory of the diffuser section structure based on the trajectory point coordinates of each layer, extracting the straight hole structure depth of the target film cooling hole based on the straight hole section of the target film cooling hole, and generating CNC machining code for the target film cooling hole based on the scanning machining trajectory of the diffuser section structure and the straight hole structure depth.
[0012] Optionally, in one embodiment of this application, the acquisition module includes: a collection unit, used to collect all intersection lines between the target forming electrode and the blade profile of the blade model; and a confirmation unit, used to obtain all irregular hole surfaces of the target film cooling hole based on all intersection lines, and to confirm the diffuser section structure based on all irregular hole surfaces.
[0013] Optionally, in one embodiment of this application, the acquisition module includes: a detection unit, configured to create all reference surfaces based on the cylindrical surface of the diffusion segment structure and a preset layer spacing, and detect whether the number of intersection lines between each layer reference surface and the irregular hole surface of all reference surfaces is greater than zero; an output unit, configured to output the discrete point coordinates of the corresponding layer reference surface based on a preset discrete point spacing if the number of intersection lines is greater than zero; and a stop unit, configured to determine that the corresponding layer reference surface is the top layer reference surface and stop outputting the discrete point coordinates of the top layer reference surface if the number of intersection lines is equal to zero.
[0014] Optionally, in one embodiment of this application, the generation module includes: a judgment unit, configured to obtain the endpoints of the corresponding reference surface in the coordinates of each layer of trajectory points, and determine whether the distance between the endpoints is greater than a preset threshold; a first generation unit, configured to calculate the actual distance between the endpoint and the target termination point when the endpoint distance is greater than the preset threshold, select the endpoint with the smallest actual distance as the starting output point, output the trajectory point coordinates according to the starting output point, and obtain the scanning processing trajectory of the corresponding reference surface according to the trajectory point coordinates; and a second generation unit, configured to calculate the actual distance between all trajectory points in the corresponding reference surface and the target termination point when the endpoint distance is less than or equal to the preset threshold, select the trajectory point with the smallest actual distance as the starting output point, and output the trajectory point coordinates according to the corresponding output direction to obtain the scanning processing trajectory of the corresponding reference surface layer.
[0015] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor executes the program to implement the method for generating CNC machining code for air film cooling holes based on a blade model as described in the above embodiments.
[0016] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for generating CNC machining code for air film cooling holes based on a blade model.
[0017] This application embodiment can identify and measure the diffuser section structure and straight hole structure on the blade model, obtain the machining trajectory points layer by layer, and finally obtain the CNC machining code of the film cooling hole based on the blade model. This improves the production efficiency of the film cooling hole of the blade, reduces labor costs, reduces the machining error rate of the film cooling hole of the blade, and makes the automated production of the film cooling hole of the blade more accurate. Thus, it solves the problems that when batching and continuously machining blades with a large number of film cooling holes, the distribution of film cooling holes on a single blade is different, the shape is different, and the size is different. In this case, the CNC code needs to be manually compiled and the NC code of the scanning trajectory of each film cooling hole is copied from the forming electrode. However, the embedding depth and offset angle of the same forming electrode at each machining position on the blade surface are different, resulting in different machining depths and machining boundaries for each film cooling hole. This makes the manual code compilation workload large and time-consuming, makes it difficult to ensure the accuracy of the positioning machining of film cooling holes, and makes it impossible to achieve automated generation of NC code for film cooling hole scanning machining, resulting in insufficient reliability.
[0018] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0019] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0020] Figure 1 This is a flowchart illustrating a method for generating CNC machining code for film cooling holes based on a blade model, according to an embodiment of this application.
[0021] Figure 2 This is a schematic diagram illustrating the principle of obtaining a complete diffusion segment structure according to one embodiment of this application;
[0022] Figure 3 This is a schematic diagram illustrating the process of obtaining a complete diffusion segment structure according to an embodiment of this application;
[0023] Figure 4 This is a geometric schematic diagram illustrating the generation of discrete point coordinates for each layer according to one embodiment of this application;
[0024] Figure 5 This is a schematic diagram illustrating the process of generating the coordinates of discrete points in each layer according to one embodiment of this application;
[0025] Figure 6 This is a schematic diagram illustrating the principle of tool electrode radius compensation according to an embodiment of this application;
[0026] Figure 7 This is a schematic diagram of the tool electrode radius compensation process according to one embodiment of this application;
[0027] Figure 8 This is a schematic diagram of the overall structure of the target film cooling hole according to an embodiment of this application;
[0028] Figure 9 This is a schematic diagram of the process for extracting the depth of the straight section of the target air film cooling hole according to an embodiment of this application;
[0029] Figure 10 This is an example diagram of an open trajectory and a closed trajectory according to an embodiment of this application;
[0030] Figure 11 This is a schematic diagram illustrating the principle of determining the output direction of the scanning processing trajectory according to an embodiment of this application;
[0031] Figure 12 This is a schematic diagram of the CNC machining code generation process for air film cooling holes based on a blade model according to an embodiment of this application;
[0032] Figure 13 This is a schematic diagram of the structure of the CNC machining code generation device for air film cooling holes based on a blade model according to an embodiment of this application;
[0033] Figure 14 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0034] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0035] The following describes, with reference to the accompanying drawings, a method and apparatus for generating CNC machining codes for air film cooling holes based on a blade model, according to embodiments of this application. To address the issues mentioned in the background art, where the distribution, shape, and size of film cooling holes on individual blades vary, batch continuous processing of blades with numerous film cooling holes requires manual creation of CNC codes. The NC codes for the scanning trajectories of each film cooling hole are obtained by reverse copying from the forming electrode. However, the embedding depth and offset angle of the same forming electrode at each processing position on the blade profile differ, resulting in varying processing depths and boundaries for each film cooling hole. This leads to a large workload and long processing time for manual code creation, making it difficult to guarantee the accuracy of film cooling hole positioning and processing, hindering automated generation of NC codes for film cooling hole scanning, and resulting in insufficient reliability. This application provides a method for generating CNC machining codes for film cooling holes based on a blade model. By identifying and measuring the diffuser section structure and straight hole structure on the blade model, processing trajectory points are obtained layer by layer, ultimately yielding CNC machining codes for film cooling holes based on the blade model. This improves the production efficiency of film cooling holes on blades, reduces labor costs, lowers the processing error rate of film cooling holes, and makes the automated production of film cooling holes on blades more accurate. This solves the problems of inconsistent distribution, shape, and size of film cooling holes on individual blades, which necessitate manual coding of NC codes when batch-processing blades with numerous film cooling holes. The NC codes for the scanning trajectories of each film cooling hole are obtained by copying them from the forming electrode. However, the embedding depth and offset angle of the same forming electrode at each processing position on the blade profile are different, resulting in varying processing depths and boundaries for each film cooling hole. This leads to a large workload and long processing time for manual coding, making it difficult to guarantee the accuracy of film cooling hole positioning and processing, and hindering the automated generation of NC codes for film cooling hole scanning and processing, thus resulting in insufficient reliability.
[0036] Specifically, Figure 1 This is a flowchart illustrating a method for generating CNC machining code for air film cooling holes based on a blade model, as provided in an embodiment of this application.
[0037] like Figure 1 As shown, the method for generating CNC machining code for film cooling holes based on a blade model includes the following steps:
[0038] In step S101, the diffuser section structure of the target air film cooling hole of the blade model is obtained, and the discrete point coordinates of each layer of all reference surfaces in the diffuser section structure are generated based on the diffuser section structure.
[0039] It is understood that, in the embodiments of this application, the diffuser section structure of the target film cooling hole of the blade model can be obtained, and the coordinates of discrete points of each layer of all reference surfaces in the diffuser section structure can be generated using the obtained diffuser section structure. The target film cooling hole of the blade model includes a diffuser section structure and a straight hole structure.
[0040] Optionally, in one embodiment of this application, obtaining the diffuser section structure of the target film cooling hole of the blade model includes: collecting all the intersection lines between the target forming electrode and the blade profile of the blade model; obtaining all the irregular hole surfaces of the target film cooling hole based on all the intersection lines; and confirming the diffuser section structure based on all the irregular hole surfaces.
[0041] In actual implementation, the complete diffuser section structure can be obtained based on the intersection line between the forming electrode and the blade profile, such as... Figure 2-3 As shown. Among them, Figure 2 To obtain a schematic diagram of the complete diffuser section structure, in Figure 2 First, on the UI (User Interface) interface, any intersection line segment l1 between the forming electrode and the blade profile S1 can be picked up. On the blade profile S1, all intersection line segments {l1, l2, ..., l...} between the forming electrode and the blade profile S1 are obtained sequentially according to the intersection relationship. n}, and obtain line segments {l1,l2,…,l n} Corresponding to the container {S 11 ,S 12 ,S 21 ,S 22 ,…,S n1 ,S n2}; Delete face Obtain the set of irregularly shaped hole facets {S 12 ,S 22 ,…,S n2}; then concatenate {S} in sequence. 12 ,S 22 ,…,S n2 This yields the complete irregular hole surface S2. The specific process is as follows: Figure 3 As shown:
[0042] Step S301: Pick up any intersection line segment l1 between the forming electrode and the blade profile S1.
[0043] Step S302: On the blade profile S1, based on the intersection relationship, sequentially obtain all intersection lines {l1,l2,…,l} between the forming electrode and the blade profile S1. n}
[0044] Step S303: Obtain line segments {l1,l2,…,l n} Corresponding to the container {S 11 ,S12 ,S 21 ,S 22 ,…,S n1 ,S n2}
[0045] Step S304: Delete the face Obtain the set of irregularly shaped hole facets {S 12 ,S 22 ,…,S n2}
[0046] Step S305: Concatenate {S} sequentially 12 ,S 22 ,…,S n2}, thus obtaining the complete irregular hole surface S2.
[0047] Optionally, in one embodiment of this application, generating discrete point coordinates for each layer of all reference surfaces in the diffusion segment structure based on the diffusion segment structure includes: creating all reference surfaces based on the cylindrical surface of the diffusion segment structure and a preset layer spacing, and detecting whether the number of intersection lines between each layer of reference surfaces and the irregular hole surface is greater than zero; if the number of intersection lines is greater than zero, then outputting the discrete point coordinates of the corresponding layer reference surface based on the preset discrete point spacing; if the number of intersection lines is equal to zero, then determining that the corresponding layer reference surface is the top layer reference surface, and stopping the output of the discrete point coordinates of the top layer reference surface.
[0048] It should be noted that the preset layer spacing and preset discrete point spacing can be set by those skilled in the art according to the actual situation, and no specific limitation is made here.
[0049] In actual execution, starting from the junction of the diffusion section structure and the straight hole surface, i.e. the cylindrical surface of the diffusion section structure, several reference surfaces are created sequentially along the central axis vector of the straight hole surface at preset layer spacings. The intersection line between the reference surface and the diffusion structure is obtained, and the intersection line is discretized into the point coordinates of the tool electrode.
[0050] Specifically, based on such Figure 4 Explanation of the geometric diagram showing the generation of discrete point coordinates for each layer Figure 5 ,in:
[0051] Step S501: Using the central axis vector A of the cylindrical surface as the normal vector, and passing through the endpoint C1(x1,y1,z1) of the intersection line between the irregular hole surface and the cylindrical surface, create a datum plane P. i , i = 0.
[0052] Step S502: Create datum plane P i The line L intersecting the irregular hole surface S2 C .
[0053] Step S503: Determine the intersection line L CDoes it exist?
[0054] Among them, the intersection line L is determined. C If it exists, proceed to step S504; otherwise, proceed to step S507.
[0055] Step S504: Execute i = i + 1.
[0056] Where, if the intersection line L C If it exists, let i = i + 1.
[0057] Step S505: Let the distance between discrete points be N. d In L C {0,N d ,2N d ,3N d Construct point E at length ,...,1} i And output point E in sequence. i coordinate.
[0058] Among them, output point E i The coordinates are the coordinates of discrete points on the reference plane of this layer.
[0059] Step S506: Let the layer spacing be Δl, and the bias vector be α=A / |A|AΔl, then the bias point C i+1 =C1+iα, with A as the normal vector, create a reference plane P. i .
[0060] Among them, the datum plane P is created. i Then, return to step S502 to create the reference plane P. i The line L intersecting the irregular hole surface S2 C This means that the discrete point coordinates of each reference plane are obtained in a loop.
[0061] Step S507: End.
[0062] In step S102, the radius of the target tool electrode is compensated for the discrete point coordinates of each layer to obtain the trajectory point coordinates of each layer of all reference surfaces.
[0063] It is understood that, in the embodiments of this application, the coordinates of each discrete point obtained in the above steps are shifted by a tool electrode radius distance in the direction of the central axis vector as a radius compensation, thereby obtaining the coordinates of each trajectory point of all reference surfaces.
[0064] Specifically, such as Figure 6-7 As shown, where:
[0065] Step S701: Create datum plane P i The intersection point D with the line containing the hole axis vector A i .
[0066] Step S702: Create vector D i -E ij It is perpendicular to the hole axis vector A and points in the radius compensation direction, i.e., discrete point E. ij Direction of movement.
[0067] Step S703: Input tool electrode radius R c Output the discrete point E after the movement ij Coordinates: E ij ' = E ij +(D i -E ij ) / |D i -E ij |·R c .
[0068] In step S103, the scanning machining trajectory of the diffusion section structure is obtained based on the coordinates of the trajectory points of each layer, the straight hole structure depth of the target air film cooling hole is extracted based on the straight hole section of the target air film cooling hole, and the CNC machining code of the target air film cooling hole is generated according to the scanning machining trajectory of the diffusion section structure and the straight hole structure depth.
[0069] It is understood that, in the embodiments of this application, the scanning machining trajectory of the diffusion section structure can be obtained based on the coordinates of the trajectory points of each layer obtained in the above steps. For the straight hole section of the target air film cooling hole, the straight hole structure depth in the straight hole section is extracted, thereby generating the CNC machining code of the target air film cooling hole from the scanning machining trajectory of the diffusion section structure and the straight hole structure depth.
[0070] Specifically, the overall structure of the target air film cooling holes is as follows: Figure 8 As shown, Figure 8 The left side shows a schematic diagram of the target film cooling hole's external structure. The overall structure of the target film cooling hole includes a straight hole structure and a diffuser hole structure, i.e., a diffuser section structure. Figure 8 The right side shows a schematic diagram of the internal structure of the target film cooling vent, connecting the inner and outer surfaces of the blade. (Combined with...) Figure 8 The method for extracting the depth of the straight section of the target air film cooling hole is as follows: Figure 9 As shown, where:
[0071] Step S901: Select the cylindrical surface of the straight hole section of the air film cooling hole to be extracted.
[0072] This refers to the cylindrical surface of the straight hole section of the target air film cooling hole.
[0073] Step S902: Obtain the central axis vector A of the cylindrical surface, and the line segments {E1, E2, ..., E...} belonging to the cylindrical surface. n}
[0074] Step S903: Obtain line segment {E1,E2,…,E} n The endpoint set {E} 1a E 1b E 2a E 2b ,…,E na E nb}
[0075] Step S904: Calculate the vector formed by the endpoint and the fixed reference point O (e.g., OE). na The length L projected onto the central axis vector A na =OE na ·A / |A|.
[0076] Step S905: Use bubble sort to obtain the maximum projected length L max With minimum projection L min .
[0077] Step S906: Length L of the straight hole section s =L max -L min .
[0078] Among them, the length L of the straight hole section s This refers to the depth of the straight hole structure of the target film cooling hole.
[0079] Optionally, in one embodiment of this application, obtaining the scanning processing trajectory of the diffusion segment structure based on the coordinates of trajectory points in each layer includes: obtaining the endpoints of the corresponding reference plane in the coordinates of trajectory points in each layer, and determining whether the distance between the endpoints is greater than a preset threshold; if the endpoint distance is greater than the preset threshold, calculating the actual distance between the endpoint and the target termination point, selecting the endpoint with the smallest actual distance as the starting output point, outputting the trajectory point coordinates according to the starting output point, and obtaining the scanning processing trajectory of the corresponding reference plane according to the trajectory point coordinates; if the endpoint distance is less than or equal to the preset threshold, calculating the actual distance between all trajectory points in the corresponding reference plane and the target termination point, selecting the trajectory point with the smallest actual distance as the starting output point, and matching the output direction to output the trajectory point coordinates to obtain the scanning processing trajectory of the corresponding reference plane layer.
[0080] It should be noted that the preset threshold is set by those skilled in the art based on the actual situation, and no specific limitation is made here.
[0081] In actual implementation, for example Figure 10The diagram shows examples of common and uncommon open and closed trajectories. We can first determine whether the trajectory of the target reference layer (layer n) is open or closed. The criteria for an open trajectory are defined as: the distance between the starting and ending points is greater than a preset threshold; the criteria for a closed trajectory are defined as: the distance between the starting and ending points is less than a preset threshold. If it is open, then select the two endpoints G of the trajectory at that layer. n F n The termination output point G is located at a distance from the next higher level (the (n+1)th level). n+1 (or H) n+1 The nearest point F n As the starting output point, another point G n The coordinates of intermediate points are output sequentially as the termination output point of this layer. If the path is closed, the termination output point G of the trajectory of this layer and the previous layer (the (n+1)th layer) is selected. n+1 (or H) n+1 The nearest point H n This serves as the starting and ending output point of the layer. That is, the starting and ending points are the same point, and other points are output sequentially. The output order is the same as the direction (clockwise / counterclockwise) of the previous layer (the (n+1)th layer), or it is determined that the output direction of this layer is clockwise / counterclockwise.
[0082] The principle for determining the output direction of the scanning machining trajectory is as follows: Figure 11 As shown, first, create vector v1 pointing from one endpoint of the trajectory to the last discrete point of the array, and create vector v2 pointing from the last discrete point of the array to the other endpoint of the trajectory. Perform a cross product v3 = v1 × v2. Determine the direction of v3. If v3 is in the same direction as the central axis vector A, the discrete points are obtained by counterclockwise arraying; if v3 is in the opposite direction to the central axis vector A, the discrete points are obtained by clockwise arraying.
[0083] like Figure 12 As shown below, the working content of the embodiment of this application will be described in detail with a specific example.
[0084] Step S1201: Obtain the complete diffusion structure based on the intersection line of the forming electrode and the blade profile.
[0085] Specifically, the diffusion section structure of the target film cooling hole of the blade model is obtained based on the intersection line between the forming electrode and the blade profile.
[0086] Step S1202: Starting from the junction of the diffusion structure and the straight hole surface, create several reference planes sequentially along the central axis vector of the straight hole surface, obtain the intersection line between the reference plane and the diffusion structure, and discretize the intersection line into point coordinates.
[0087] Starting from the cylindrical surface of the diffusion section structure, several reference surfaces are created sequentially along the central axis vector of the straight hole surface. The intersection lines between each reference surface and the diffusion structure are obtained, and the intersection lines are discretized into point coordinates.
[0088] Step S1203: Move the point coordinates in the direction of the central axis vector by the radius of the tool electrode as compensation.
[0089] Specifically, the radius of the target forming electrode is compensated for by the coordinates of discrete points in each layer, thus obtaining the coordinates of the trajectory points of each layer on all reference surfaces.
[0090] Step S1204: Rearrange the point order in each reference plane according to a specific method to form the optimal scanning machining trajectory.
[0091] In this process, it is determined whether each reference plane is an open or closed trajectory, and the starting and ending output points of that reference plane are obtained to form the optimal scanning and processing trajectory.
[0092] Step S1205: Extract the straight hole depth according to the set algorithm, which will be used as the parameter basis for machining the straight hole after the scanning and processing of the diffusion structure is completed.
[0093] Specifically, the straight hole structure depth of the target air film cooling hole is extracted based on the straight hole section of the target air film cooling hole, and the CNC machining code of the target air film cooling hole is generated according to the scanning machining trajectory of the diffusion section structure and the straight hole structure depth.
[0094] The method for generating CNC machining codes for film cooling holes based on blade models proposed in this application can obtain machining trajectory points layer by layer by identifying and measuring the diffuser section structure and straight hole structure on the blade model, and finally obtain the CNC machining codes for the film cooling holes of the blade model. This improves the production efficiency of film cooling holes, reduces labor costs, lowers the machining error rate of the blade model, and makes the automated production of the blade model more accurate. This solves the problems of manually compiling CNC codes and using the forming electrode to copy the NC codes for scanning trajectories of each film cooling hole when batching and continuously machining blades with many film cooling holes, due to the different distribution positions, shapes, and sizes of the film cooling holes on a single blade. However, the embedding depth and offset angle of the same forming electrode at each machining position on the blade surface are different, resulting in different machining depths and boundaries for each film cooling hole. This makes manual code compilation labor-intensive and time-consuming, makes it difficult to guarantee the accuracy of positioning machining for film cooling holes, and fails to achieve automated generation of NC codes for film cooling hole scanning machining, resulting in insufficient reliability.
[0095] Next, referring to the accompanying drawings, a CNC machining code generation device for air film cooling holes based on a blade model is described according to an embodiment of this application.
[0096] Figure 13 This is a schematic diagram of the structure of the CNC machining code generation device for air film cooling holes based on a blade model according to an embodiment of this application.
[0097] like Figure 13 As shown, the CNC machining code generation device 10 for air film cooling holes based on the blade model includes: an acquisition module 100, a compensation module 200, and a generation module 300.
[0098] The acquisition module 100 is used to acquire the diffusion section structure of the target air film cooling hole of the blade model, and generate the coordinates of each discrete point of all reference surfaces in the diffusion section structure based on the diffusion section structure.
[0099] The compensation module 200 is used to compensate the radius of the target tool electrode for the coordinates of discrete points in each layer, so as to obtain the coordinates of the trajectory points of each layer of all reference surfaces.
[0100] The generation module 300 is used to obtain the scanning machining trajectory of the diffusion section structure based on the coordinates of the trajectory points of each layer, extract the straight hole structure depth of the target air film cooling hole based on the straight hole section of the target air film cooling hole, and generate the CNC machining code of the target air film cooling hole according to the scanning machining trajectory of the diffusion section structure and the straight hole structure depth.
[0101] Optionally, in one embodiment of this application, the acquisition module 100 includes: a collection unit and a confirmation unit.
[0102] The acquisition unit is used to acquire all the intersection lines between the target forming electrode and the blade profile of the blade model.
[0103] The confirmation unit is used to obtain all irregular hole surfaces of the target air film cooling hole based on all intersection segments, and to confirm the structure of the diffuser section based on all irregular hole surfaces.
[0104] Optionally, in one embodiment of this application, the acquisition module 100 includes: a detection unit, an output unit, and a stop unit.
[0105] The detection unit is used to create all reference surfaces based on the cylindrical surface of the diffuser structure and the preset layer spacing, and to detect whether the number of intersection lines between each layer of reference surface and the irregular hole surface is greater than zero.
[0106] The output unit is used to output the coordinates of discrete points on the corresponding layer reference plane based on a preset discrete point spacing if the number of intersecting lines is greater than zero.
[0107] The stop unit is used to determine that the corresponding layer reference plane is the top layer reference plane if the number of surface intersection lines is equal to zero, and to stop outputting the discrete point coordinates of the top layer reference plane.
[0108] Optionally, in one embodiment of this application, the generation module 300 includes: a first generation unit, a judgment unit, and a second generation unit.
[0109] The judgment unit is used to obtain the endpoints of the corresponding reference plane in the coordinates of each layer trajectory point and to determine whether the distance between the endpoints is greater than a preset threshold.
[0110] The first generation unit is used to calculate the actual distance between the endpoint and the target termination point when the endpoint distance is greater than a preset threshold, select the endpoint with the smallest actual distance as the starting output point, output the trajectory point coordinates according to the starting output point, and obtain the scanning processing trajectory of the corresponding layer reference plane according to the trajectory point coordinates.
[0111] The second generation unit is used to calculate the actual distance between all trajectory points in the corresponding reference plane and the target termination point when the endpoint distance is less than or equal to a preset threshold, select the trajectory point with the smallest actual distance as the starting output point, and match the coordinates of the output trajectory point in the corresponding output direction to obtain the scanning processing trajectory of the corresponding reference plane layer.
[0112] It should be noted that the foregoing explanation of the embodiment of the method for generating CNC machining code for air film cooling holes based on blade models also applies to the device for generating CNC machining code for air film cooling holes based on blade models in this embodiment, and will not be repeated here.
[0113] The CNC machining code generation device for film cooling holes based on a blade model proposed in this application can obtain machining trajectory points layer by layer by identifying and measuring the diffuser section structure and straight hole structure on the blade model, and finally obtain the CNC machining code for the film cooling holes based on the blade model. This improves the production efficiency of film cooling holes, reduces labor costs, reduces the machining error rate of film cooling holes, and makes the automated production of film cooling holes more accurate. This solves the problems of manually compiling CNC codes and using the forming electrode to copy the NC code of each film cooling hole scanning trajectory when batching and continuously machining blades with many film cooling holes, due to the different distribution positions, shapes, and sizes of the film cooling holes on a single blade. However, the embedding depth and offset angle of the same forming electrode at each machining position on the blade surface are different, resulting in different machining depths and boundaries for each film cooling hole. This makes manual code compilation labor-intensive and time-consuming, makes it difficult to guarantee the accuracy of the positioning machining of film cooling holes, and fails to achieve automated generation of NC codes for film cooling hole scanning machining, resulting in insufficient reliability.
[0114] Figure 14 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include:
[0115] The memory 1401, the processor 1402, and the computer program stored on the memory 1401 and executable on the processor 1402.
[0116] When the processor 1402 executes the program, it implements the method for generating CNC machining code for air film cooling holes based on the blade model provided in the above embodiments.
[0117] Furthermore, electronic devices also include:
[0118] Communication interface 1403 is used for communication between memory 1401 and processor 1402.
[0119] The memory 1401 is used to store computer programs that can run on the processor 1402.
[0120] The memory 1401 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0121] If the memory 1401, processor 1402, and communication interface 1403 are implemented independently, then the communication interface 1403, memory 1401, and processor 1402 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be divided into address buses, data buses, control buses, etc. For ease of representation, Figure 14 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0122] Optionally, in a specific implementation, if the memory 1401, processor 1402, and communication interface 1403 are integrated on a single chip, then the memory 1401, processor 1402, and communication interface 1403 can communicate with each other through an internal interface.
[0123] The processor 1402 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0124] This embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for generating CNC machining code for air film cooling holes based on a blade model.
[0125] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0126] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0127] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0128] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0129] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0130] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0131] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0132] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A method for generating CNC machining code for film cooling holes based on a blade model, characterized in that, Includes the following steps: Obtain the diffuser section structure of the target film cooling hole of the blade model, and generate the discrete point coordinates of each layer of all reference surfaces in the diffuser section structure based on the diffuser section structure. The radius of the target tool electrode is compensated for by the coordinates of each discrete point in each layer, thus obtaining the coordinates of the trajectory points in each layer of all reference surfaces; Based on the coordinates of the trajectory points of each layer, the scanning machining trajectory of the diffusion section structure is obtained. Based on the straight hole section of the target air film cooling hole, the straight hole structure depth of the target air film cooling hole is extracted. Based on the scanning machining trajectory of the diffusion section structure and the straight hole structure depth, the CNC machining code of the target air film cooling hole is generated. The process of obtaining the scanning and processing trajectory of the diffusion segment structure based on the coordinates of the trajectory points in each layer includes: Obtain the endpoints of the corresponding reference plane in the coordinates of the trajectory points of each layer, and determine whether the distance between the endpoints is greater than a preset threshold. If the endpoint distance is greater than the preset threshold, the actual distance between the endpoint and the target termination point is calculated, and the endpoint with the smallest actual distance is selected as the starting output point. The trajectory point coordinates are output according to the starting output point, and the scanning processing trajectory of the corresponding layer reference plane is obtained according to the trajectory point coordinates. If the endpoint distance is less than or equal to the preset threshold, the actual distance between all trajectory points in the corresponding reference plane and the target termination point is calculated, the trajectory point with the smallest actual distance is selected as the starting output point, and the coordinates of the output trajectory point in the corresponding output direction are matched to obtain the scanning processing trajectory of the corresponding reference plane layer.
2. The method according to claim 1, characterized in that, The diffuser section structure of the target film cooling hole for obtaining the blade model includes: Collect all intersection lines between the target forming electrode and the blade profile of the blade model; Based on all the intersection segments, all the irregular hole surfaces of the target air film cooling hole are obtained, and the structure of the diffusion section is confirmed according to all the irregular hole surfaces.
3. The method according to claim 2, characterized in that, The step of generating discrete point coordinates for each layer of all reference surfaces in the diffusion segment structure based on the diffusion segment structure includes: All reference surfaces are created based on the cylindrical surface of the diffusion section structure and the preset layer spacing, and the number of intersection lines between each layer of the reference surfaces and the irregular hole surface is detected to be greater than zero. If the number of intersection lines is greater than zero, the coordinates of discrete points on the corresponding layer reference plane are output based on the preset discrete point spacing. If the number of intersection lines is zero, then the corresponding layer reference plane is determined to be the top layer reference plane, and the output of the discrete point coordinates of the top layer reference plane is stopped.
4. A CNC machining code generation device for film cooling holes based on a blade model, characterized in that, include: The acquisition module is used to acquire the diffuser section structure of the target film cooling hole of the blade model, and generate the discrete point coordinates of each layer of all reference surfaces in the diffuser section structure based on the diffuser section structure. The compensation module is used to compensate the radius of the target tool electrode for the coordinates of each discrete point in each layer, so as to obtain the coordinates of the trajectory points of each layer of all reference surfaces; The generation module is used to obtain the scanning machining trajectory of the diffusion section structure based on the coordinates of the trajectory points of each layer, extract the straight hole structure depth of the target air film cooling hole based on the straight hole section of the target air film cooling hole, and generate the CNC machining code of the target air film cooling hole according to the scanning machining trajectory of the diffusion section structure and the straight hole structure depth. The generation module includes: The judgment unit is used to obtain the endpoints of the corresponding reference plane in the coordinates of the trajectory points of each layer, and to determine whether the distance between the endpoints is greater than a preset threshold. The first generation unit is used to calculate the actual distance between the endpoint and the target termination point when the endpoint distance is greater than the preset threshold, select the endpoint with the smallest actual distance as the starting output point, output the trajectory point coordinates according to the starting output point, and obtain the scanning processing trajectory of the corresponding layer reference surface according to the trajectory point coordinates. The second generation unit is used to calculate the actual distance between all trajectory points in the corresponding reference plane and the target termination point when the endpoint distance is less than or equal to the preset threshold, select the trajectory point with the smallest actual distance as the starting output point, and match the coordinates of the trajectory point in the corresponding output direction to obtain the scanning processing trajectory of the corresponding reference plane layer.
5. The apparatus according to claim 4, characterized in that, The acquisition module includes: The acquisition unit is used to acquire all the intersection lines between the target forming electrode and the blade profile of the blade model; The confirmation unit is used to obtain all irregular hole surfaces of the target air film cooling hole based on all the intersection segments, and to confirm the structure of the diffusion section based on all the irregular hole surfaces.
6. The apparatus according to claim 5, characterized in that, The acquisition module includes: The detection unit is used to create all reference surfaces based on the cylindrical surface of the diffusion section structure and the preset layer spacing, and to detect whether the number of intersection lines between each layer of the reference surfaces and the irregular hole surface is greater than zero. The output unit is used to output the coordinates of discrete points on the corresponding layer reference plane based on a preset discrete point spacing if the number of intersection lines is greater than zero. The stop unit is used to determine that the corresponding layer reference plane is the top layer reference plane if the number of surface intersection lines is equal to zero, and to stop outputting the discrete point coordinates of the top layer reference plane.
7. An electronic device, characterized in that, include: The memory, the processor, and the computer program stored in the memory and executable on the processor, the processor executing the program to implement the method for generating CNC machining code for air film cooling holes based on a blade model as described in any one of claims 1-3.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the method for generating CNC machining code for air film cooling holes based on a blade model as described in any one of claims 1-3.
Citation Information
Patent Citations
Aviation thin-wall blade compensation processing method
CN105242637A
Blade cooling hole machining method and device, storage medium and electronic equipment
CN116167181A
