Manufacturing and Materials Processing Journal of Article CAD-Based Automated Design of FEA-Ready Cutting Tools Anastasios Tzotzis 1,* , César García-Hernández 1, José-Luis Huertas-Talón1 and Panagiotis Kyratsis 2,* 1Department of Design and Manufacturing Engineering, University of Zaragoza, 50018 Zaragoza, Spain;
[email protected] (C.G.-H.);
[email protected] (J.-L.H.-T.) 2Department of Product and Systems Design Engineering, University of Western Macedonia, 50100 Kozani, Greece *Correspondence:
[email protected] (A.T.); [email protected] (P.K.) Received: 12 October 2020; Accepted: 30 October 2020; Published: 1 November 2020 Abstract: The resources of modern Finite Element Analysis (FEA) software provide engineers with powerful mechanisms that can be used to investigate numerous machining processes with satisfying results. Nevertheless, the success of a simulation, especially in three dimensions, relies heavily on the accuracy of the cutting tool models that are implemented in the analy ses. W ith this in mind, the present paper presents an application developed via Computer-Aided Design (CAD) programming that enables the automated design of accurate cutting tool models that can be used in 3D turning simulations. The presented application was developed with the aid of the programming resources of a commercially available CAD system. Moreover, the parametric design methodology was employed in order to design the tools according to the appropriate standards. Concluding, a sample tool model was tested by performing a number of machining simulations based on typical cutting parameters. The yielded results were then compared to experimental values of the generated machining force components for validation. The findings of the study prove the functionality of the tool models since a high level of agreement occurred between the acquired numerical results and the experimental ones. Keywords: CAD-based programming; automated design; API; SolidWorks; FEA; cutting tool; turning insert 1. Introduction Nowadays, investigations on machining processes can benefit from the implementation of two dimensional or three dimensional Finite Element (FE) modelling. Especially, 3D FE modelling is considered to be a valuable asset during complicated investigations since it provides accurate results and allows the user to fully represent a problem. However, in order to properly carry out 3D simulations and yield acceptable results, it is imperative to define the problem with as much detail as possible. One of the most important aspects during FE model setup is the representation of the cutting tool in three dimensions, so that the full geometry of the tool can be analyzed. In the case of turning, the tool’s micro-geometry seems to have a great impact on the generated numerical results. With the advent of more advanced Computer-Aided Design (CAD) systems, it is possible to utilize the Application Programming Interface (API) and the parametric modelling to develop macros, applets or even software tools that can support numerous engineering processes such as the design and manufacturing of machine components, the inspection of manufacturing quality, as well as the integration of CAD, Computer-Aided Manufacturing (CAM) and Computer-Aided Engineering (CAE). Wu et al. [ 1 ] presented an integration of CAD and CAE for the generative design of face gears. This method uses a comprehensive algorithm that calculates the points as an even distribution on the J. Manuf. Mater. Process. 2020,4, 104; doi:10.3390/jmmp4040104 www.mdpi.com/journal/jmmp
J. Manuf. Mater. Process. 2020,4, 104 2 of 14 tooth surface of a gear which can facilitate the stress analysis process during Finite Element Analysis (FEA). Wang et al. [ 2 ] studied the prediction of tool deflection of end-mills by integrating CAD, CAE and CAM systems. Using the developed CAD model, authors managed to measure the distributed cutting forces along the tool axis via FE modelling of the cutting process. Bartłomiej [ 3 ] described a tool for analyzing the tooth contact and transmission errors of spiral bevel gear sets with tooth flanks. The tool was developed via a CAD system and is used for the analysis of meshing of spiral bevel gears prior to FEA. A number of studies prove that the APIs can be useful to the manufacturing-related area of research also. Garc í a-Hern á ndez et al. [ 4 ] proposed a method to manufacture elliptical and oval gears using Wire Electro-Discharge Machining (WEDM). Authors presented the mathematical models and simulations based on CAD and CAM systems. Similarly, Tzivelekis et al. [ 5 ] proposed a novel approach for automating both the design and manufacturing processes of impeller-type geometries. For this reason, authors developed an application based on API programming of commercially available CAD/CAM software. Oancea and Haba [ 6 ] presented a new software tool which allows the user to obtain the manufacturing sequences and cutting data of a manufacturing process and in addition can be used for the simulation setup of these processes. Moreover, the tool was developed with Visual Lisp and is particularly helpful for rotational parts. Dimitriou et al. [ 7 ] described an effective simulation of gear hobbing, based on virtual kinematics of CAD mod els. Th e algorithm was developed and embedded in a commercial CAD software by using the modern programming resources available. According to authors, the resulting 3D data allow the prediction of the cutting forces, tool stresses, and wear development that can be used for the optimization of the gear hobbing process. With similar strategies that were implemented with a modern CAD system, Kyratsis et al. [ 8 ] developed DRILL3D application which can estimate the thrust forces that develop on both the main edges and chisel edge of a drill simultaneously. Thus, any equivalent lab work may be skipped. In addition to the automated design, CAD-based automated planning of manufacturing processes is a possibility [ 9 – 13 ], as well as the automation and enhancement of the assembly processes of engineering parts by taking advantage of the programming resources that modern CAD systems have to offer. Typical examples in this area involve the automated assembly process of large mechanical systems based on characteristics and features, as well as the extraction of the assembly sequences via CAD models for assembly planning [14–17]. The benefits and the possibilities that derive from the use of the APIs of modern CAD systems are vast. Engineers can increase their productivity and focus on more critical aspects of a project instead of spending time on repetitive and frustrating tasks. One such task is the design of cutting tools that can be implemented in FEA projects, especially when multiple geometric parameters are involved. Vijayaraghavan and Dornfeld [ 18 ] developed algorithms and a graphical interface that were used to design a complete application based on CAD programming. The aforementioned application deals with the automated drill modelling that can be implemented in commercial FEA software. Similarly, Li et al. [ 19 ] proposed the optimization method of critical parameters of solid end mills, based on 3D FE simulations, providing a design system for end mills. In light of these considerations, the present paper describes a CAD-based application that can be used to generate CAD models of standardized turning inserts. The application was developed with the aid of the SolidWorks ™ API and the Visual Basic for Applications (VBA) programming language. Furthermore, the proposed design methodology complies with the parametric-based structure of the used CAD environment. The tools that are designed by the described application are solid, consistent models including the full geometry and can be easily converted to FE-ready file formats. Finally, a set of 3D simulations was carried out by utilizing the FEA software DEFORM ™ -3D to verify the functionality of the generated models and investigate their performance. 2. Materials and Methods 2.1. Description of Turning Inserts The principal geometric parameters of the modern turning inserts can be found in the product catalogues of most manufacture rs. Furt hermore, ISO 13399 provides a schema for cutting tools
J. Manuf. Mater. Process. 2020,4, 104 3 of 14 description including turning inserts. Despite the fact that modern cutting tools are standardized, some details such as the combinations of chamfer width and chamfer angle that relate to the turning inserts still differ from manufacturer to manufacturer. This means that a great number of possible tool variations is available. Figure 1illustrates three commonly-used turning inserts that are used during machining of industry-standard materials such as hardened steel, cast iron and aluminum alloys: the insert of square shape with designation number SNGA120412S01525 (Figure 1a), the 80 ◦ rhombic CNGA120408T01020 (Figure 1b) and the 55 ◦ rhombic DNGA150404S01020 (Figure 1c), respectively. The symbol IC represents the inscribed diameter, RE is the corner radius, S denotes the thickness, L is the theoretical cutting edge length and finally LE is the cutting edge effective length. J. Manuf. Mater. Process. 2020, 4, x FOR PEER REVIEW 3 of 15 2. Materials and Methods 2.1. Description of Turning Inserts The principal geometric parameters of the modern turning inserts can be found in the product catalogues of most manufacturers. Furthermore, ISO 13399 provides a schema for cutting tools description including turning inserts. Despite the fact that modern cutting tools are standardized, some details such as the combinations of chamfer width and chamfer angle that relate to the turning inserts still differ from manufacturer to manufacturer. This means that a great number of possible tool variations is available. Figure 1 illustrates three commonly-used turning inserts that are used during machining of industry-standard materials such as hardened steel, cast iron and aluminum alloys: the insert of square shape with designation number SNGA120412S01525 (Figure 1a), the 80° rhombic CNGA120408T01020 (Figure 1b) and the 55° rhombic DNGA150404S01020 (Figure 1c), respectively. The symbol IC represents the inscribed diameter, RE is the corner radius, S denotes the thickness, L is the theoretical cutting edge length and finally LE is the cutting edge effective length. Figure 1. Basic geometric parameters of the SNGA120412S01525 (a), the CNGA120408T01020 (b) and the DNGA150404S01020 (c) inserts, along with their common sectioned view (d). Nevertheless, these are not the only parameters that define the full geometry of a turning insert. Figure 2 depicts a standardized 80° rhombic insert with its micro-geometry which comprises the cutting edge type, the chamfer angle and the chamfer width. In addition to the corner radius, the aforementioned parameters are crucial because they greatly affect the cutting forces during machining [20−23]. Moreover, according to Denkena et al. [24] the cutting edge micro-geometry affects the tool life significantly due to changes in the characteristic tool wear behavior. Figure 2. The micro-geometry of a typical 80° diamond-shaped insert. Modern turning inserts are manufactured in such a way that they can withstand extreme forces and temperatures. To meet these criteria, most inserts are coated via Chemical Vapour Deposition Figure 1. Basic geometric parameters of the SNGA120412S01525 ( a ), the CNGA120408T01020 ( b ) and the DNGA150404S01020 (c) inserts, along with their common sectioned view (d). Nevertheless, these are not the only parameters that define the full geometry of a turning insert. Figure 2depicts a standardized 80 ◦ rhombic insert with its micro-geometry which comprises the cutting edge type, the chamfer angle and the chamfer width. In addition to the corner radius, the aforementioned parameters are crucial because they greatly affect the cutting forces during machining [ 20 – 23 ]. Moreover, according to Denkena et al. [ 24 ] the cutting edge micro-geometry affects the tool life significantly due to changes in the characteristic tool wear behavior. J. Manuf. Mater. Process. 2020, 4, x FOR PEER REVIEW 3 of 15 2. Materials and Methods 2.1. Description of Turning Inserts The principal geometric parameters of the modern turning inserts can be found in the product catalogues of most manufacturers. Furthermore, ISO 13399 provides a schema for cutting tools description including turning inserts. Despite the fact that modern cutting tools are standardized, some details such as the combinations of chamfer width and chamfer angle that relate to the turning inserts still differ from manufacturer to manufacturer. This means that a great number of possible tool variations is available. Figure 1 illustrates three commonly-used turning inserts that are used during machining of industry-standard materials such as hardened steel, cast iron and aluminum alloys: the insert of square shape with designation number SNGA120412S01525 (Figure 1a), the 80° rhombic CNGA120408T01020 (Figure 1b) and the 55° rhombic DNGA150404S01020 (Figure 1c), respectively. The symbol IC represents the inscribed diameter, RE is the corner radius, S denotes the thickness, L is the theoretical cutting edge length and finally LE is the cutting edge effective length. Figure 1. Basic geometric parameters of the SNGA120412S01525 (a), the CNGA120408T01020 (b) and the DNGA150404S01020 (c) inserts, along with their common sectioned view (d). Nevertheless, these are not the only parameters that define the full geometry of a turning insert. Figure 2 depicts a standardized 80° rhombic insert with its micro-geometry which comprises the cutting edge type, the chamfer angle and the chamfer width. In addition to the corner radius, the aforementioned parameters are crucial because they greatly affect the cutting forces during machining [20−23]. Moreover, according to Denkena et al. [24] the cutting edge micro-geometry affects the tool life significantly due to changes in the characteristic tool wear behavior. Figure 2. The micro-geometry of a typical 80° diamond-shaped insert. Modern turning inserts are manufactured in such a way that they can withstand extreme forces and temperatures. To meet these criteria, most inserts are coated via Chemical Vapour Deposition Figure 2. The micro-geometry of a typical 80◦diamond-shaped insert. Modern turning inserts are manufactured in such a way that they can withstand extreme forces and temperatures. To meet these criteria, most inserts are coated via Chemical Vapour Deposition (CVD) or Physical Vapour Deposition (PVD). Most common coatings are the Titanium Nitride (TiN), the Titanium Carbide (TiC) and the Aluminium Oxide (Al 2 O 3 ). Moreover, the commonly used material for the manufacturing of inserts is the Cubic Boron Nitride (CBN) which is the hardest material in the world, second to diamond [25].
J. Manuf. Mater. Process. 2020,4, 104 4 of 14 2.2. Design of the User Interface The embedded toolbox of the SolidWorks ™ API was used to design the user interface. The idea was to design a simple interface with easy parameter selection and visually conveyed information about the geometric aspects of the inserts. It is possible to generate a wide variety of tools since the user can change every available design parameter. In order to keep the code simple and to avoid developing multiple large modules, a few insert shapes and some special options were skipped from the present study. In addition, no input was provided for the tolerance class, which refers to the manufacturing tolerance of the tool’s dimensions and does not affect the designed CAD model, since any dimension of the CAD model is represented exactly as it is designed. The third digit in the standardized coding of inserts denotes the tolerance class. For example, in the CNGA120408 tool, the “G” digit corresponds to a tolerance class of ± 0.025 for both the nose height and the inscribed circle, and ± 0.13 for the thickness. Figure 3illustrates the main tab of the application’s user interface along with the code keys that correspond to the standardized design parameters such as shape, length, thickness, nose radius, clearance angle, micro-geometry and clamping system. Nine combo-boxes were used to facilitate the selection procedure. Each combo-box contains a variety of options according to its function. For example, the combo-box entitled “Shape” defines the shape of the insert and contains seven choices as dictated by the detail in Figure 3: five versions of the diamond-shaped with a corner angle of 80 ◦ , 55 ◦ , 75 ◦ , 86 ◦ and 35 ◦ , respectively; a triangular-shaped; and finally a square. This combo-box, along with the combo-box entitled “Length (L)” determine the shape, the corner angle and the size of the insert, which are the most basic geometric aspects. Specifically, the “Length (L)” combo-box contains ten choices that correspond to the inscribed circle diameter in mm. For the selection of the appropriate variables, the user may consult the tabs entitled “Code Key-1”, “Code Key-2” and “Code Key-3” (see Figure 3) correspondingly to acquire the necessary explanations of the input parameters. On top of that, the main tab includes a schematic with the critical dimensions that further visualizes the parameter input process. Finally, a text-box was included so that the user can choose the folder where the generated models can be saved both in native format (SLDPRT) and in STL. With the command button entitled “Design Insert” the design process may begin and the desired model can be generated within seconds. Additionally, a non-editable text-box was included with the title “Insert Code Output”, in order to display the designation number of the generated tool for reference purposes. J. Manuf. Mater. Process. 2020, 4, x FOR PEER REVIEW 5 of 15 Figure 3. The application’s interface and the corresponding code keys. 2.3. Modelling Procedure of Turning Cutting Tools The development of the presented application was performed via the API of SolidWorks™. In addition, the programming language implemented is VBA which derives from Microsoft™ VisualBasic™ 6. Due to the fact that SolidWorks™ uses a feature-based parametric methodology during 3D modelling, the workflow of the application’s code follows similar principals. According to Figure 4, the declaration of the necessary variables is the first step that is performed when the “Design Insert” button is pressed. These variables correspond to each of the geometric aspects that were presented in Figure 3 such as the shape, the inscribed circle, the corner angle and the corner radius. Next, the declared variables are linked to the input and output controls (i.e., combo-boxes) of the interface to secure that the design process can initialize without errors. Additionally, all the input controls are populated with a pre-defined set of choices according to the standardized design framework. Even though it is relatively simple to alter the code in such a way that an option to generate customized inserts can also become available, it is not of great significance. However, the application allows the user to input custom values for the parameters that relate to the cutting edge, since some variations exist between different manufacturers. To do so, three simple text-boxes were included to enable insertion of custom values. Additionally, the text-boxes were locked so that only reasonable values could be inputted to prevent variable-based errors during the design process. For the employment of the shape according to the user selection, the “Select…Case” statement was used. This statement provides a more convenient way of condition checking, compared to the “If-Then-Else” statement, especially when a large number of conditions are available. With the declaration of the variables, a new part document is created and activated so that new sketches can be inserted. The used methods for the aforementioned actions are the “ActiveDoc” and “NewDocument”, respectively. Subsequently, the front plane is selected, and a new sketch is activated. The selection of the sketch plane is always standard, based on the default coordinate system that most FEA software share. Then, the design process of the insert’s contour is carried out according to the selected design scheme. The design process includes the sketch of the inscribed circle (“CreateCircleByRadius” method) and the sketch of the contour lines (“CreateLine” method), and finally the application of both the dimensions (“AddDimension2” method) and the geometric relations (“SketchAddConstraints” method) that fully define the contour. Later, the base solid model is produced according to the selected thickness and the clearance angle. For this action, the “FeatureExtrusion2” method is used. In order to acquire the complete solid model, micro-geometry is applied: the corner radii are created with the “FeatureFillet3” method, and the cutting edge is formed by using both the “InsertFeatureChamfer” and the “FeatureFillet3” methods depending on whether the selected edge type requires honing, Figure 3. The application’s interface and the corresponding code keys.
J. Manuf. Mater. Process. 2020,4, 104 5 of 14 2.3. Modelling Procedure of Turning Cutting Tools The development of the presented application was performed via the API of SolidWorks ™ . In addition, the programming language implemented is VBA which derives from Microsoft ™ Visual-Basic ™ 6. Due to the fact that SolidWorks ™ uses a feature-based parametric methodology during 3D modelling, the workflow of the application’s code follows similar principals. According to Figure 4, the declaration of the necessary variables is the first step that is performed when the “Design Insert” button is pressed. These variables correspond to each of the geometric aspects that were presented in Figure 3such as the shape, the inscribed circle, the corner angle and the corner radius. Next, the declared variables are linked to the input and output controls (i.e., combo-boxes) of the interface to secure that the design process can initialize without errors. Additionally, all the input controls are populated with a pre-defined set of choices according to the standardized design framework. Even though it is relatively simple to alter the code in such a way that an option to generate customized inserts can also become available, it is not of great significance. However, the application allows the user to input custom values for the parameters that relate to the cutting edge, since some variations exist between different manufacturers. To do so, three simple text-boxes were included to enable insertion of custom values. Additionally, the text-boxes were locked so that only reasonable values could be inputted to prevent variable-based errors during the design process. For the employment of the shape according to the user selection, the “Select . . . Case” statement was used. This statement provides a more convenient way of condition checking, compared to the “If-Then-Else” statement, especially when a large number of conditions are available. With the declaration of the variables, a new part document is created and activated so that new sketches can be inserted. The used methods for the aforementioned actions are the “ActiveDoc” and “NewDocument”, respectively. Subsequently, the front plane is selected, and a new sketch is activated. The selection of the sketch plane is always standard, based on the default coordinate system that most FEA software share. Then, the design process of the insert’s contour is carried out according to the selected design scheme. The design process includes the sketch of the inscribed circle (“CreateCircleByRadius” method) and the sketch of the contour lines (“CreateLine” method), and finally the application of both the dimensions (“AddDimension2” method) and the geometric relations (“SketchAddConstraints” method) that fully define the contour. Later, the base solid model is produced according to the selected thickness and the clearance angle. For this action, the “FeatureExtrusion2” method is used. In order to acquire the complete solid model, micro-geometry is applied: the corner radii are created with the “FeatureFillet3” method, and the cutting edge is formed by using both the “InsertFeatureChamfer” and the “FeatureFillet3” methods depending on whether the selected edge type requires honing, chamfering or both. Because these methods require the automatic selection of the corresponding topology (i.e., edge), a “For” loop initiates that is responsible for traversing all available topology objects of the solid model that relate to the fillet and chamfer features. In particular, the code locates and recognizes all faces and edges of the solid model; next, it changes the default ID of each one of the objects to a pre-defined tag that comprises a prefix, such as “Edge” and a numerical suffix. This means that if a model contains fifteen edges they will be renamed “Edge” plus a number from one to fifteen. Lastly, all new IDs are stored to an array so that they can be accessed by the program at any tim e. Th e automated topology selection is an indispensable part of similar applications [ 26 ]. Last but not least, the center hole is created according to the selected clamping system. This feature does not play an important role during the FE analysis, rather it is used for more accurate representation of the cutting tool in a CAD-based layout of the turning process that includes a tool-holder. Upon finalizing the generated CAD model, the last step is the storage of the model to file formats that are used for FE analyses (i.e., “STL”), as well as to “SLDPRT” format that is the SolidWorks™native format for part documents. To ensure that no discrepancies will occur after the data translation, the highest possible level of resolution was set during the model conversion (angle tolerance of 0.5 ◦ and deviation tolerance of 0.0009968 mm), leading to finer tessellation as well as to greater accuracy. Moreover, to keep the file size at a reasonable level (less than 500 kB on average), the Binary model output was chosen.
J. Manuf. Mater. Process. 2020,4, 104 6 of 14 Even though the generated STL models proved to be robust and consistent since they were flawlessly imported to the FEA software, their consistency was verified with a free-to-use mesh processing system, namely MeshLab. The models were checked for gaps, holes, non-manifolds, intersecting geometry and other faults. As expected, the models were found to be error-free. This result is enhanced by the fact that morphologic errors [ 27 ] are caused mainly due to structural heterogeneity [ 28 ], which would probably create errors during the translation of a model from one proprietary format to another, but not in this case. J. Manuf. Mater. Process. 2020, 4, x FOR PEER REVIEW 6 of 15 chamfering or both. Because these methods require the automatic selection of the corresponding topology (i.e., edge), a “For” loop initiates that is responsible for traversing all available topology objects of the solid model that relate to the fillet and chamfer features. In particular, the code locates and recognizes all faces and edges of the solid model; next, it changes the default ID of each one of the objects to a pre-defined tag that comprises a prefix, such as “Edge” and a numerical suffix. This means that if a model contains fifteen edges they will be renamed “Edge” plus a number from one to fifteen. Lastly, all new IDs are stored to an array so that they can be accessed by the program at any time. The automated topology selection is an indispensable part of similar applications [26]. Last but not least, the center hole is created according to the selected clamping system. This feature does not play an important role during the FE analysis, rather it is used for more accurate representation of the cutting tool in a CAD-based layout of the turning process that includes a tool-holder. Upon finalizing the generated CAD model, the last step is the storage of the model to file formats that are used for FE analyses (i.e., “STL”), as well as to “SLDPRT” format that is the SolidWorks™ native format for part documents. To ensure that no discrepancies will occur after the data translation, the highest possible level of resolution was set during the model conversion (angle tolerance of 0.5° and deviation tolerance of 0.0009968 mm), leading to finer tessellation as well as to greater accuracy. Moreover, to keep the file size at a reasonable level (less than 500 kB on average), the Binary model output was chosen. Even though the generated STL models proved to be robust and consistent since they were flawlessly imported to the FEA software, their consistency was verified with a free-to-use mesh processing system, namely MeshLab. The models were checked for gaps, holes, non-manifolds, intersecting geometry and other faults. As expected, the models were found to be error-free. This result is enhanced by the fact that morphologic errors [27] are caused mainly due to structural heterogeneity [28], which would probably create errors during the translation of a model from one proprietary format to another, but not in this case. Figure 4. The application’s workflow. Tables 1 and 2 include the most basic API methods that were implemented during the development of the presented application, along with their functionality and return value. Most of these methods require a number of parameters to be set in order to function properly. The way of implementing each of the API methods can be found in the online help of SolidWorks™ API [29]. Figure 4. The application’s workflow. Tables 1and 2include the most basic API methods that were implemented during the development of the presented application, along with their functionality and return value. Most of these methods require a number of parameters to be set in order to function properly. The way of implementing each of the API methods can be found in the online help of SolidWorks™API [29]. Table 1. API methods used for the contour creation. Method Functionality Return Value ActiveDoc Connects to the currently active document Model document NewDocument Creates a new document using the specified template Newly created document InsertSketch Inserts a new sketch in the current part or assembly document − CreateCircleByRadius2 Creates a circle based on a center point and a specified radius Newly created circle CreateConstructionGeometry Sets selected sketch segments to be construction geometry instead of sketch geometry − AddDimension2 Creates a display dimension at the specified location for selected entities Newly created dimension CreateLine Creates a sketch line in the currently active 2D or 3D sketch Sketch segment for the line SketchAddConstraints Adds the specified constraint to the selected entities − FeatureExtrusion3 Creates an extruded feature IFeature
J. Manuf. Mater. Process. 2020,4, 104 7 of 14 Table 2. API methods used for the topology selection. Method Functionality Return Value GetBodies2 Gets the bodies in the active part Array of bodies GetFaces Gets all the faces on the body Array of faces on the body GetEdges Get the edges bounding the selected face Array of edges SetEntityName Sets the name of the entity True/false GetEntityByName Gets an entity (face, edge, vertex) by name Entity Select4 Selects an entity and marks it True/false FeatureFillet3 Creates a fillet feature for selected edges and control point references IFeature InsertFeatureChamfer Inserts a chamfer Pointer to the IFeature object FeatureCut4 Creates a cut extrude feature Cut extrude feature SaveAs Saves the active document to the specified name in the specified format True/false The following examples describe the implementation of some API methods used in the presented application. The “CreateCircleByRadius” method that is used to design the inscribed circle, is syntaxed as follows: “value =instance.CreateCircleByRadius(XC, YC, ZC, Radius)”. In addition, the appropriate variables are declared, in order for the method to function properly. The variables XC, YC and ZC represent the center of the circle, whereas Radius is the value of the circle’s radius. Furthermore, the variable instance represents the ISketchManager interface that provides access to sketch-creation routines. Lastly, the variable value denotes the sketch segment. Similarly, the “CreateLine” method requires this syntax: “value =instance.CreateLine(X1, Y1, Z1, X2, Y2, Z2)”. The variables are all the same except the X1, Y1, Z1, X2, Y2 and Z2 that represent the coordinates of the line start point and the coordinates of the line end point, respectively. To obtain the bodies of a part, the “GetBodies2” method is used in this manner: “value =instance.GetBodies2(BodyType, BVisibleOnly)”. In this case, the variable instance represents the IPartDoc interface that provides access to functions that perform operations on parts in part documents. The variable BodyType defines the type of body, whereas the BVisibleOnly defines which bodies will be included depending on their visibility. Finally, the variable value is an object. The last example shows the syntax of the “GetEdges” method: “value =instance.GetEdges()”, the variable value is an object and the variable instance denotes the IFace2 interface that allows access to the underlying edge, loop of edges and other data of a body. Even though the modelling procedure of the turning inserts is rather simple compared to the one of drills, it is still critical that a manufacturing-oriented modelling strategy is followed so that the generated models are error-free. First of all, the design sequence applied, so that the model tree remains simple no matter the design parameters, plus, the geometric constraints are always locked. This way, the generated models are free of semantic errors [27]. The simple model tree is achieved by creating a base feature that resembles the contour of the tool and then adding the rest of the design features on top of the base, instead of creating a cubic solid and then trying to remove material. On the other hand, the minimum use of constraints, in addition to the application of the appropriate type of constraint, ensures that the sketch is fully-defined at all times. Hence, the relationship between the designed objects, which derives from the design intent, allows for an automated propagation of any design change to the objects. Figure 5illustrates the aforementioned modelling technique applied to a standardized type of inserts (CNGA). Specifically, Figure 5a depicts the initial step of the design process. At first, the front plane of the part document is selected because it is important to define a coordinate system that will serve through the FE analysis [ 22 ]. Hence, the Z-axis must be parallel to the tangential force vector, the Y-axis must be parallel to the radial force vector and finally, the X-axis must be parallel to the feed force vector. Next, a sketch of a construction circle is inserted with diameter equal to the IC variable value. The IC variable represents the diameter of the inscribed circle of the insert (see Figure 1). This circle is determined by both the type of the insert (shape) and the length of cutting edge. However, not all cutting length values are available for all types of inserts during
J. Manuf. Mater. Process. 2020,4, 104 8 of 14 standardized design process. For example, the cutting length of the diamond-shaped insert (type C) can be designed in six sizes: 6.35, 9.525, 12.7, 15.875, 19.05 and 25.0 mm, respectively. J. Manuf. Mater. Process. 2020, 4, x FOR PEER REVIEW 9 of 15 Figure 5. The design workflow for the CNGA-family inserts: (a) the construction circle, (b) the contour, (c) the extrusion, (d) the corner radius, (e) the micro-geometry and (f) the clamping hole. Just before the initiation of the sketch design process, a simple algorithm (Figure 6) performs a check on the shape so that the angles and geometric relations can be applied accordingly. In the case of a square insert, the algorithm skips the tangential quadrilateral shape and uses a center rectangle instead, whereas in the case of a triangular insert, it uses a polygon sketch with three edges so that the triangle can be formed. For the first case, the diagonal q must be determined, while for the latter just the inradius. Figure 6. The shape selector algorithm flowchart. Figure 5. The design workflow for the CNGA-family inserts: ( a ) the construction circle, ( b ) the contour, (c) the extrusion, (d) the corner radius, (e) the micro-geometry and (f) the clamping hole. Figure 5b depicts the next step during the design process which is the insertion of an appropriate number of line sketches (four for this case) that form the selected shape of the tool. Then, the equivalent number of tangent geometric relations is applied between the sketched lines and the construction circle. Moreover, the corner angle is applied based on the corresponding variable value (80 ◦ for the diamond-shaped inserts). Because of the used design method and due to the fact that the sketched lines form a closed contour, it is ensured that the upcoming solid model will be consistent. In fact, the formed contour is always a tangential quadrilateral, except for the cases of square and triangle, with varying edge length determined by Equation (1). x= 2r sin α(1) where xis the length of the edge, rdenotes the inradius and α is the corner angle. With the closed contour, the solid model is created based on the selected thickness and cutting edge (Figure 5c). In this case, thickness is equal to 4.76 mm and cutting edge equal to zero. Consequently, the corner radius is applied (Figure 5d) to all cutting points of the insert according to the selected value. The full cutting geometry of the insert is completed with the design of the cutting edge (Figure 5e). The cutting edge is formed according to the selected cutting edge type, chamfer width and chamfer edge (see Figure 3). The final step in the design process is the creation of the center hole (Figure 5f) that is used for the clamping of the insert to the tool-holder. This feature, however, does not affect the FE model setup. Just before the initiation of the sketch design process, a simple algorithm (Figure 6) performs a check on the shape so that the angles and geometric relations can be applied accordingly. In the case of a square insert, the algorithm skips the tangential quadrilateral shape and uses a center rectangle instead, whereas in the case of a triangular insert, it uses a polygon sketch with three edges so that the triangle can be formed. For the first case, the diagonal qmust be determined, while for the latter just the inradius.
J. Manuf. Mater. Process. 2020,4, 104 9 of 14 J. Manuf. Mater. Process. 2020, 4, x FOR PEER REVIEW 9 of 15 Figure 5. The design workflow for the CNGA-family inserts: (a) the construction circle, (b) the contour, (c) the extrusion, (d) the corner radius, (e) the micro-geometry and (f) the clamping hole. Just before the initiation of the sketch design process, a simple algorithm (Figure 6) performs a check on the shape so that the angles and geometric relations can be applied accordingly. In the case of a square insert, the algorithm skips the tangential quadrilateral shape and uses a center rectangle instead, whereas in the case of a triangular insert, it uses a polygon sketch with three edges so that the triangle can be formed. For the first case, the diagonal q must be determined, while for the latter just the inradius. Figure 6. The shape selector algorithm flowchart. Figure 6. The shape selector algorithm flowchart. 3. Results and Discussion 3.1. Testing of the Generated Cutting Tool Models In order to validate the functionality of the generated models, an FE model was set and nine 3D turning simulations were carried o ut. Be cause the verification of the generated models is a time-consuming process, the test setup was prepared according to widely-used parameters and settings. The selected cutting tool, material and cutting conditions, have already been successfully studied [ 30 – 32 ] and thus, were chosen for this study. The test framework is shown in Figure 7. A sample generated cutting tool with its full geometry (Figure 7a) was saved in STL file format and then imported to DEFORM ™ -3D ver. 12 for the development of the FE model. It was modelled as rigid and meshed with approximately 50,000 tetrahedral elements. On the other hand, the mesh size of the workpiece varied according to the value of feed. The size of the minimum element was fixed to 25% of the feed for all tests [ 33 ]. Additionally, the selected workpiece material is AISI-4140 steel. During the validation tests, the tool used is the CNGA120408 (corner radius of 0.8 mm) and the cutting conditions applied are the produced combinations of the three levels of cutting speed V c (80, 115 and 150 m/min) and feed f(0.08, 0.11 and 0.14 mm/rev) at depth of cut ap =0.30 mm. Regarding the cutting angles used, the lead angle is 75 ◦ and both the rake and inclination angles are negative with a value of − 6 ◦ . The simulation tests yielded relatively accurate results both for the cutting forces and the chip formation since the level of convergence for all simulation tests was adequate, considering that most of the FE model parameters such as the material properties, the flow stress constants and the friction coefficients were kept to their default values. Figure 7b illustrates three sample force versus time diagrams at the specified conditions (V c =150 m/min, f=0.14 mm/rev) proving that cutting forces reached the steady state as expected. Furthermore, Figure 7c presents the results for the resultant machining force of the aforementioned test compared to the equivalent experimental one demonstrating an increased level of correlation. The simulated results were compared to experimental values for the same cutting conditions, in order to further examine the validity of the generated CAD models.