<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>An automated procedure for geometry creation and finite element mesh generation: Application to explicit grain structure models and machining distortion</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>01/01/2018</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10057075</idno>
					<idno type="doi">10.1016/j.commatsci.2017.09.048</idno>
					<title level='j'>Computational Materials Science</title>
<idno>0927-0256</idno>
<biblScope unit="volume">141</biblScope>
<biblScope unit="issue">C</biblScope>					

					<author>Timothy J. Barrett</author><author>Daniel J. Savage</author><author>Milan Ardeljan</author><author>Marko Knezevic</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Explicit grain structure models within finite element (FE) computational tools are essential for conducting crystal plasticity simulations to elucidate the three-dimensional (3D) topological effects of microstructural evolution on micromechanical fields during plastic deformation. Such full-field framework can predict not only texture evolution but also the development of intra-and inter-granular misorientation, grain shape, and grain boundary character distribution in polycrystalline metals. This paper develops an automated procedure for the geometry creation and FE mesh generation of explicit grain structures to facilitate full-field crystal plasticity modeling of complex shapes other than cuboids. The procedure consists of: (1) generation of a synthetic voxel-based microstructure of cuboidal shapes using the software called digital representation environment for the analysis of microstructure in 3D (DREAM.3D), ( 2) cutting of the model into a final shape by Boolean operations in Abaqus software, and (3) generation of volume FE mesh for the shaped polycrystalline aggregate using a custom-built toolset involving Patran software. Explicit grain structure FE models for micropillar compression and for microtube forming are created as examples. To further demonstrate the utility and robustness of the automated procedure for making multiple cuts while attaining the state of stress equilibrium after each cut, machining distortion of an Inconel 718 aircraft engine disk is modeled. The starting material for machining had a distribution of bulk residual stresses resulting from prior thermo-mechanical processing. Specifically, turning and broaching operations are carried out using the procedure. During machining, the disk distorts as material is removed, while bulk residual stress fields evolve to reach a new equilibrium. The disk distortion during the material removal is predicted using the developed automated procedure in Abaqus.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Computational mechanics of polycrystalline materials often employs full-field calculations of mechanical fields. The term 'full-field' indicates that constituent grains explicitly interact with each other, while the micromechanical fields, defined in term of stress and strain, are equilibrated under the strain compatibility conditions in a discretized spatio-temporal domain. Since critical aspects of extreme material behavior such as void nucleation are governed primarily by local strain concentrations, knowledge of plasticity processes at grain scale is necessary for understanding and predicting material behavior. Starting from the work reported in <ref type="bibr">[1]</ref>, the finite element (FE) numerical method has been extensively used to solve for such fields, often with a sub-grain FE mesh resolution <ref type="bibr">[2]</ref><ref type="bibr">[3]</ref><ref type="bibr">[4]</ref><ref type="bibr">[5]</ref><ref type="bibr">[6]</ref><ref type="bibr">[7]</ref><ref type="bibr">[8]</ref><ref type="bibr">[9]</ref><ref type="bibr">[10]</ref><ref type="bibr">[11]</ref><ref type="bibr">[12]</ref><ref type="bibr">[13]</ref>. Under uniform macroscopic loading, these models reveal heterogeneous deformation because they account for the spatial distribution of grain size and shape of constituent grains and their inherent anisotropy and inter-granular interactions. A Green function method provides an alternative to FE when solving the field equations over a spatial domain <ref type="bibr">[14]</ref>. The methodology was initially developed to calculate the effective and local mechanical response of composites <ref type="bibr">[15]</ref> and later advanced to calculate the visco-plastic deformation of polycrystalline metals <ref type="bibr">[16]</ref>. It relies on the efficient fast Fourier transform-based algorithms to solve the convolution integral representing stress equilibrium under the strain compatibility over a voxel-based microstructural cell, which is periodic and initially cubic or a rectangular parallelepiped (cuboidal). Such microstructure cells are primarily aimed at understanding behavior of a material. While computationally efficient <ref type="bibr">[17]</ref><ref type="bibr">[18]</ref><ref type="bibr">[19]</ref>, this methodology is at a disadvantage relative to the crystal plasticity FE (CPFE) methods because many applications of polycrystal plasticity are in the form of more complicated shapes, and requiring boundary conditions that are not periodic. Moreover, the grain boundaries are not present as continuous surfaces in these voxel-based microstructural cells. In contrast to fullfield models, mean-field models calculate homogenized material response without accounting for any grain-to-grain interactions <ref type="bibr">[20]</ref><ref type="bibr">[21]</ref><ref type="bibr">[22]</ref><ref type="bibr">[23]</ref><ref type="bibr">[24]</ref><ref type="bibr">[25]</ref><ref type="bibr">[26]</ref><ref type="bibr">[27]</ref><ref type="bibr">[28]</ref><ref type="bibr">[29]</ref><ref type="bibr">[30]</ref><ref type="bibr">[31]</ref><ref type="bibr">[32]</ref>.</p><p>In early works, CPFE studies have ignored the morphology of grains <ref type="bibr">[33]</ref><ref type="bibr">[34]</ref><ref type="bibr">[35]</ref><ref type="bibr">[36]</ref><ref type="bibr">[37]</ref><ref type="bibr">[38]</ref><ref type="bibr">[39]</ref>. In subsequent developments, simple geometries such as cuboids, rhombic dodecahedrons, and truncated octahedrons were used to represent grains in CPFE primarily because these constructs can be readily generated over a spatial domain representing a microstructure <ref type="bibr">[40]</ref><ref type="bibr">[41]</ref><ref type="bibr">[42]</ref>. Because of their uniform and highly simplified grain morphology, compared to a real microstructure, these CPFE models were unable to accurately capture the inter-granular and intra-granular mechanical fields <ref type="bibr">[43]</ref>. These early models were also unable to effectively represent the structure of grain boundaries. More recently, individual grains have been modeled using many finite elements <ref type="bibr">[5,</ref><ref type="bibr">6,</ref><ref type="bibr">[44]</ref><ref type="bibr">[45]</ref><ref type="bibr">[46]</ref><ref type="bibr">[47]</ref>. These studies confirmed that the grain morphology plays a significant role in determining stress-strain heterogeneities.</p><p>Modeling the evolution of grain structure along with grain boundaries with plastic deformation is necessary for a more complete understanding of local and overall material response. To this end, FE models allow for grain boundary representation as discretized surfaces. A widely use methodology for voxel-based explicit grain structure generation is the Voronoi tessellation method along with various extensions <ref type="bibr">[45,</ref><ref type="bibr">46,</ref><ref type="bibr">[48]</ref><ref type="bibr">[49]</ref><ref type="bibr">[50]</ref><ref type="bibr">[51]</ref>. However, polyhedral-shaped non-uniform grain shapes created by the Voronoi tessellation methods are often unrealistic because rules for the organization and geometrical constraints of the grains produced are not unique. In addition, the grain boundaries appear as coarse disordered polygons. To relax these limitations, DREAM.3D (the digital microstructure analysis environment in 3D) software has recently been developed by U.S. Air Force Research Laboratory and Blue Quartz <ref type="bibr">[52,</ref><ref type="bibr">53]</ref>. The software is a result of the work conceived in <ref type="bibr">[54]</ref>. While well suited for generating voxel-based grain structures in cuboidal shapes with surface mesh over grain boundaries, meshing of grain structures in 3D is yet to become a capability of the software. In recent work, we have developed and integrated a set of tools relying on the grain boundary surface mesh from DREAM.3D to create volume mesh of high quality over grains, ensuring the conformal conditions between constituent grains <ref type="bibr">[55,</ref><ref type="bibr">56]</ref>. The conformal conditions between constituent grains means that neighboring grains share triangular elements at grain boundaries.</p><p>Experimental techniques have also been developed to acquire voxel-based grain structure data in 3D, which can be used as a direct input into CPFE simulations. An automated robotic serial sectioning device has been developed to capture 2D images for every slice at a high rate <ref type="bibr">[57,</ref><ref type="bibr">58]</ref>. The 2D images are stacked and postprocessed to form a 3D microstructure. The crystallographic information can be supplied from EBSD, which can be periodically performed by interrupting the automated robotic serial sectioning procedure. Another technique, known as focused ion beam electron backscattered diffraction (FIB-EBSD), uses the FIB to perform the serial sectioning and EBSD to create the crystallographic map for each section <ref type="bibr">[59]</ref><ref type="bibr">[60]</ref><ref type="bibr">[61]</ref><ref type="bibr">[62]</ref><ref type="bibr">[63]</ref><ref type="bibr">[64]</ref>. Finally, the most advanced technique for acquiring such data is in-situ, non-destructive near-field highenergy X-ray diffraction microscopy (nf HEDM) <ref type="bibr">[65]</ref><ref type="bibr">[66]</ref><ref type="bibr">[67]</ref><ref type="bibr">[68]</ref><ref type="bibr">[69]</ref>. Data defining the state of grain structure, crystal lattice orientations, lattice strains and associated residual stresses, various defects such as voids, and even dislocation density acquired using these experiments can be used to initialize and critically verify full-field models.</p><p>Voxel-based microstructural data can also be obtained by numerical models such as phase field models <ref type="bibr">[70]</ref>, Potts (Monte-Carlo) grain growth models <ref type="bibr">[71,</ref><ref type="bibr">72]</ref>, and cellular automata recrystallization models <ref type="bibr">[73,</ref><ref type="bibr">74]</ref>.</p><p>While such measured and simulated voxel-based grain structures can directly represent the finite element mesh (e.g. every voxel is a brick element) utilized in a CPFE simulation <ref type="bibr">[75,</ref><ref type="bibr">76]</ref>, typically the data is further processed by smoothing the voxel description of grain boundaries using various interpolation methods. Such interpolation methods are conveniently available within DREAM.3D, which can produce triangular grain boundary surface mesh of appropriate size. Most importantly, the data is postprocessed to reduce the number of discrete elements to a computationally manageable resolution.</p><p>As mentioned above, the grain size, shape, and crystallographic orientation strongly influence the local mechanical behavior of a material <ref type="bibr">[77]</ref><ref type="bibr">[78]</ref><ref type="bibr">[79]</ref>. To capture heterogeneous deformation behavior of polycrystals, grain structures can be explicitly modeled using CPFE methods. This is particularly true in simulations of microforming processes such as forming of micro-tubes <ref type="bibr">[80,</ref><ref type="bibr">81]</ref> and various micromechanical tests such as micro-pillar compression <ref type="bibr">[49]</ref>. As a result, there is a demand for creating grain structures for various specimen geometries to facilitate accurate simulations.</p><p>This work develops an automated procedure for the geometry creation and subsequent mesh generation of complex shapes in 3D. An explicit grain structure FE model of a micro-pillar for compression and a micro-tube for microforming are created to demonstrate the utility of the procedure for subsequent CPFE modeling. To further demonstrate the robustness and utility of the procedure, machining distortion of an Inconel 718 aircraft engine disk is modeled <ref type="bibr">[82,</ref><ref type="bibr">83]</ref>. Multiple cuts intrinsic to the machining process are performed in an automated manner while attaining the state of stress equilibrium after each cut under a clamped condition and in the unclamped i.e. free state of the disk after machining. Aircraft engine disks are typically forged followed by heat treatment and machining <ref type="bibr">[82,</ref><ref type="bibr">83]</ref>. Thus, the starting material for machining had a distribution of bulk residual stresses resulting from prior thermo-mechanical processing. In general, local residual stresses can be induced during machining, but the bulk residual stresses remain primarily from prior processes <ref type="bibr">[84]</ref><ref type="bibr">[85]</ref><ref type="bibr">[86]</ref><ref type="bibr">[87]</ref>. The extent of cutting induced stresses depends on machining parameters such as feed rate, depth of cut, and cutting speed, which have major influence on the surface integrity of a machined part. The model developed here considers the residual stresses from prior thermomechanical processes, but not the cutting induced stresses. During machining, the workpiece distorts as material is removed, while bulk residual stress fields evolve to reach a new equilibrium. The comparisons between the measured distortion trends and the numerical predictions are presented and discussed. Good predictions demonstrate that the model is well suited for evaluating distortions during and after machining.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Automated procedure</head><p>Predictive capabilities of models such as CPFE are greatly improved by explicitly meshing grain structure and grain boundary surfaces. Creation of realistic grain structure models has been significantly advanced with the introduction of DREAM.3D <ref type="bibr">[53]</ref>. This software, among other features, can generate 3D synthetic voxel-based microstructures and triangular surface mesh representing grain boundaries. The output of DREAM.3D in terms of the grain boundary surface mesh is a starting point for volume mesh generation. In recent work, we have developed an integrated toolset for volume meshing of grain structure models starting from the surface mesh <ref type="bibr">[55]</ref>. However, the 3D grain structure models were always cuboids. Building on these prior efforts, we develop here a novel procedure for subtracting geometry from cuboidal grain structure to enable modeling of more complex shapes. The procedure is described next with specifics pertaining to a single Boolean cut from multiple objects/grains and multiple Boolean cuts from a single object/workpiece. We emphasize that the procedure is sufficiently general to facilitate performing multiple Boolean cuts from multiple objects and can further be extended to other geometric operations such as object merging.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.">Single Boolean cut from multiple objects (grains)</head><p>A synthetic voxel-based 3D microstructure of cubic shape is built using DREAM.3D for a given grain shape and grain size distribution. The output consists of a 3D voxelized model and a triangular surface mesh representing individual grain boundaries. Before obtaining the grain boundaries in the form of triangular surface mesh for each grain, it is convenient to apply a Laplacian based smoothing filter available in DREAM.3D. The filter smooths out and suppresses any jagged boundaries between grains to achieve better grain structure representation. These jagged grain boundaries represent imperfections resulting from the use of voxels. After this step, the 3D FE mesh of the polycrystalline aggregate can be generated using Patran <ref type="bibr">[88]</ref>. A custom written Matlab script prepares the Patran meshing environment and run file, containing commands for individual grain surface mesh import, mesh size, 3D mesh generation, and 3D mesh export <ref type="bibr">[55]</ref>. Linear tetrahedral finite elements (C3D4 -continuum 3D 4 nodes) are typically used for volume meshing from the individual grain surface meshes. Quadratic tetrahedral elements like C3D10 can alternatively be used. After the volume meshing is performed within Patran, the resulting grain mesh is further processed in the Matlab script to combine grains into a single FE model. The script eliminates any duplicate nodes, which are present between two neighboring grains and writes an Abaqus input file <ref type="bibr">[89]</ref>. The file contains the 3D mesh with conformal boundaries between grains and the related element sets needed to identify each grain.</p><p>The procedure described above can create an arbitrary cuboidal shaped explicit grain structure FE model, which can subsequently be cut into the desired geometry. Fig. <ref type="figure">1</ref> shows a flowchart of steps involved in removing a portion of a cuboid to create a FE grain structure model of a prescribed/desired shape. The procedure is automated and executed using the Matlab script outlined above. Notably, the script is extended to interface with Python scripting capabilities in Abaqus, which is used to perform Boolean geometry removal on the initial grain structure model. The Boolean cut operation is a function available in Abaqus facilitating removal of a predefined intersection between a cutting geometry profile and a given geometry that is being cut in 3D space. The geometries must have geometry associated with them i.e. must be defined in a geometry format such as the .SAT format. A geometry representing the cutting profile can be sketched using the drawing tools in the  Abaqus part module or imported from a another software package for geometry creation, which enables the definition of more complicated geometry.</p><p>To begin, grains from DREAM.3D are separated within the Matlab script. Surface mesh of each individual grain is imported into Abaqus as an .STL file, which is subsequently converted into the necessary solid geometry (.SAT) to perform a Boolean cut operation based on a pre-defined cutting profile. The conversion of surface mesh into solid geometry is performed by ''create geometry from mesh" Abaqus plugin, which assigns volume to its interior. At this point a Boolean cut is performed. After the cut is made, part of the geometry for each grain outside the cutting profile is kept and exported in the binary .STL format. It should be noted that not every grain undergoes cutting. Grains belonging with their entire volume to the cutting profile geometry are removed without cutting. In contrast, grains belonging with their entire volume to the final model geometry are included as intact. Surface meshes of all grains that were intersected with the cutting profile are additionally processed one-by-one in the Matlab script relying on Patran for surface meshing. These steps are shown in Fig. <ref type="figure">1a-d</ref> for a randomly selected grain. The intersection contour line between the grain surface mesh and the cut may require additional seeding and/or removal of unnecessary nodes to ensure uniformity of nodal spacing (Fig. <ref type="figure">1c</ref> and<ref type="figure">d</ref>). Subsequently, the interior of the cut surface is meshed in Patran starting from the seed on the intersection contour line. Afterwards, the control is returned to Matlab for assembling the entire surface mesh of all grains and writing an input file for Abaqus containing the entire surface mesh. In Abaqus, an additional cleanup is used to collapse triangular elements with poor aspect ratios. If any, these specific finite elements are always located at surfaces that underwent cutting. Notably, this Abaqus mesh cleanup procedure is done over the surface mesh of the entire model to ensure the overall mesh quality. The Matlab script then continues to prepare Patran meshing environment, to execute the Patran script for 3D volume meshing from individual grain surface meshes for each grain, to combine grains into one model removing duplicate nodes and to write the final Abaqus input file at the end of the procedure.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">Multiple Boolean cuts from a single object (workpiece)</head><p>We now turn our attention to a procedure involving multiple Boolean operations, which is relevant to machining in which a number of cutting operations are usually performed. Although  the procedure is conceived as generic, for cutting a single object or a grain structure consisting of many objects or grains, we focus on machining distortion driven by residual stresses in a single object/workpiece as a case study. Fig. <ref type="figure">2</ref> shows the flow of the procedure. The simulations are performed iteratively for every cut using the Python Abaqus scripting interface. In the absence of a grain structure model, Matlab and Patran are not needed and the entire procedure can be performed in the Abaqus framework.</p><p>During thermo-mechanical processing, a part continuously deforms as temperature and mechanical fields evolve because the stress equilibrium must be satisfied at any instance. The material removal procedure begins from a database (.ODB) containing a thermo-mechanically processed part with a residual stress field. During subsequent machining, Boolean operations are used for material removal in order to produce a machined part of required geometry. The machining distortion due to the redistribution of bulk residual stress is simulated in a fully automated manner as follows.</p><p>A deformed workpiece is imported from an .ODB file as an orphan mesh. The orphan mesh is converted into geometry using the ''create geometry from mesh" plugin as was used for converting .STL files of grains. Subsequently, a cutting profile (volumeto-be-removed) is imported from a .SAT file. A Boolean cut subtracts the volume-to-be-removed from the geometry of the workpiece. Virtual topology tools are then used to remove any small faces, small edges, and skewed features from the cut workpiece, but not changing the actual geometry. Note that virtual topology was not used in cutting the complex granular geometries because a more sophisticated procedure was necessary for handling the cut surfaces and compatibility of grain boundaries, as described earlier. The cut part is seeded locally to the cut and then globally allowing the part to be meshed using a predefined mesh density and element type. The stress and any other necessary state variables are mapped from the old mesh (before material removal) to the new mesh (after material removal) using the Abaqus function MAP SOLUTION. Mapping a solution from one mesh to another is always a step after remeshing, which transfers solution variables from an old mesh to a new mesh that occupies the same space. The MAP SOLUTION flag is placed in the input file and right before running the job, we reference the old job from which the stress is mapped from. To minimize the mapping error, the mesh not effected by the cut is preserved as much as possible. This is achieved serendipitously through topology artifacts generated in the orphan mesh to geometry procedure.</p><p>The Boolean cut is performed under a given boundary condition representing the clamping of the part by various fixtures during machining. The fixtures can be defined as separate objects or using bounding boxes selecting nodes where the part is clamped by applying pressure. In practice, different cutting tools and fixtures may be introduced between operations during the machining of a part. Finally, Abaqus input file is written and the job is run for stress equilibrium. The simulation framework developed here facilitates carrying out multiple passes and operations automatically starting from an initial workpiece with a bulk stress distribution and ending with a final machined geometry. Within one operation (or one set of fixtures), Boolean cut, meshing, interpolation, and stress equilibrium are carried out for each machining pass. Note that multiple machining passes can be simulated within a given operation. After every pass, the stress field in the workpiece reaches equilibrium, leading to a distortion in a clamped state. Additionally, part distortion in free state i.e. after removing the clamping boundary conditions can be simulated. This is when  <ref type="bibr">[90]</ref>, where IN718 was manufactured by direct metal laser sintering. The deposition direction is in the center of the pole figures (Z-axis). The latter texture was created by simple compression of a random initial texture represented using 4096 crystal orientations to a strain of 1.9. The compression axis is in the center of the pole figures (Z-axis). the part is moved from one (e.g. a turning) to another (e.g. a broaching) operation or at the end of machining. Since none of the mapping and remeshing is necessary, the free state equilibrium is run as an additionally step after cutting. This means that the part is never imported from the ODB, there is no new input file written, and the stress is not mapped. The boundary conditions consist of only eliminating three translations and three rotations of the part, which is conveniently accomplished by constraining four nodes. The boundary conditions are automatically prescribed by the script.</p><p>The modeling procedure is applied to modeling of the machining distortion of an engine disk. Results and their validation are presented in the next section.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Results and discussion</head><p>This section presents case studies for generating shaped grain structure FE models and machining distortion.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Explicit grain structure model generation</head><p>A synthetic microstructure in 3D of cubic shape with edges of 1000 &#181;m was built using DREAM.3D for a given average grain size of 135 &#181;m and equiaxed grain shape (Fig. <ref type="figure">3a</ref>). The generated voxelbased model contained an 80 &#194; 80 &#194; 80 voxel grid, where the edge of each 3D voxel was 12.5 lm in length. Length of the voxel edge influences surface mesh element size because the procedure for the conversion from a voxel representation and associated stairstepped grain boundaries to the smooth triangular mesh grain boundaries in DREAM.3D is dependent on the starting voxel edge length. The smaller the starting voxel edge length, the finer the resulting grain boundary surface mesh. The voxel length of 12.5 &#181;m is appropriately selected to obtain surface element size, which would result in a volume mesh of about 1,000,000 finite elements. Fig. <ref type="figure">3b</ref> shows the surface mesh. The final granular microstructure consists of 784 grains. The final polycrystalline aggregate is comprised of element sets representing individual grains (Fig. <ref type="figure">3c</ref> and<ref type="figure">d</ref>). The same initial lattice orientation can be assigned to all finite elements in an element set representing a grain in the user material subroutine.</p><p>Explicit grain structure FE models of a micropillar for compression and a microtube for microforming shown in Fig. <ref type="figure">4</ref> are created from the model in Fig. <ref type="figure">3</ref> using the single cut procedure described in Section 2.1. Inner and outer diameter were 700 lm and 500 lm respectively, while the total length of the models in the Zdirection remained 1000 lm. The cylinder model consists of 435 grains and a total of 428,000 finite elements, while the tube model contains 366 grains and 276,000 finite elements.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Machining distortion</head><p>For demonstration purposes, the automated modeling procedure involving multiple cuts is applied here to modeling of the machining distortion of an engine disk according to the data presented in <ref type="bibr">[83]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.1.">Material</head><p>The disk is made of a Ni-based superalloy Inconel 718 (IN718). The only relevant material property for the distortion simulations is the elastic stiffness tensor. We performed isotropic and anisotropic elasticity simulations. For the latter, we considered f0 0 1g and f0 1 1g fiber textures (Fig. <ref type="figure">5</ref>). The former texture forms during additive manufacturing of IN718 and is experimentally measured <ref type="bibr">[90]</ref><ref type="bibr">[91]</ref><ref type="bibr">[92]</ref> while the latter forms during cylinder upsetting, which is more relevant for the present study since the disk is upset forged. It was synthetically created by simple compression of a random initial texture represented using 4096 crystal orientations to a strain of 1.9. Given a crystal orientation and single crystal elastic constants, the corresponding stiffness components of the local elastic stiffness tensor can be calculated using <ref type="bibr">[93]</ref><ref type="bibr">[94]</ref><ref type="bibr">[95]</ref><ref type="bibr">[96]</ref><ref type="bibr">[97]</ref> C abcd &#240;g&#222; &#188;</p><p>where g an are the components of an orthogonal coordinate transformation matrix relating the crystal reference frame to the sample reference frame, and C </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.2.">Simulation setup</head><p>Simulation of hot upset forging and subsequent cooling created the residual stress distribution in a disk that was mapped onto a 3D mesh, which is used as an initial condition in the machining distortion analysis. The initial geometry and machining setup were Fig. <ref type="figure">7</ref>. Contours showing the displacement field increment from before to after the last turning operation in the free state of the disk for the isotropic simulation case. The disk is in the same frame as in Fig. <ref type="figure">6</ref>.</p><p>presented and described in detail in <ref type="bibr">[83]</ref>. For demonstration of the developed procedure for machining distortion, two machining operations are carried out here to obtain the machined geometry. The first one is broaching of three slots, and the second one is turning. Fig. <ref type="figure">6a</ref> shows the initial mesh of the disk, while Fig. <ref type="figure">6b</ref> shows the geometries of the slots to be removed by broaching and the ring to be removed by turning. To reduce the error introduced during mapping of state variables, a finer mesh was generated near the slots.</p><p>For the first operation, the disk was clamped axially from the top at four locations by the force from chucks, while the locating face was on the opposite side. The nodes belonging to the locating faces were fixed. The setup was presented in <ref type="bibr">[83]</ref>. The three slots were removed in three separate passes. Every cut was followed by remeshing, interpolation, and stress equilibrium. At the end of the first operation, the unclamped stress equilibrium was obtained.</p><p>For the second operation, the disk was clamped radially by three chuck jaws, which were 120&#176;apart. The chuck jaws applied force to the outer diameter surface, while the locating face was on the bottom side of the disk. The setup was presented in <ref type="bibr">[83]</ref>. A Boolean cut was used to remove the ring followed by remeshing, interpolation, and stress equilibrium. Finally, the unclamped stress equilibrium was performed. Fig. <ref type="figure">6c</ref> shows the disk after machining.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.3.">Numerical predictions</head><p>The approach to machining distortion developed in this work assumes that bulk residual stresses drive a part to distort as the material is removed. Fig. <ref type="figure">7</ref> shows the predicted incremental displacement in cylindrical coordinates of the disk caused by the last turning operation at the free state of the disk. To simulate the incremental displacement, the displacement field was initialized to zero before the second operation. While obtaining the cumulative distortion from multiple operations is straightforward, we present the last increment to facilitate the comparison with available experiments <ref type="bibr">[83]</ref>. As the stress reaches equilibrium for the machined configuration, the disk becomes out-of-round in the radial direction, the slots tend to close in the hoop direction causing the disk to distort, and the disk warps in the axial direction. In the radial direction, the disk expands approximately &#177;90&#176;from the slots. In the hoop direction, the disk is in compression, and so the slots tend to close. In the axial direction, the disk distorts downward approximately 90&#176;from the slots but upward at the slots.</p><p>Coordinate measuring machine (CMM) measurements were used to evaluate trends of the FE predictions. The CMM measurement results were presented in <ref type="bibr">[83]</ref> and used here (the measurements after the broaching operation and after the final turning operation). Fig. <ref type="figure">8</ref> shows a comparison between predicted and measured radial distortion (the increment in distortion from before and after the turning operation when the disk is in the unclamped state) for the outer and inner diameters. The plots are made as a function of the angular position. The predictions based on the three elastic stiffness tensors are presented. The incremental radial distortion was measured at 20 clock positions as well as at several locations along the height (i.e. the Z direction). Fig. <ref type="figure">8</ref> shows the comparison for near the top and bottom vertical locations. While the order of magnitude and trends can be regarded as being captured well by the model, the discrepancy in the actual values is evident. Possible sources of the error will be discussed shortly.</p><p>Fig. <ref type="figure">9</ref> shows a comparison between the predicted and measured axial distortion for the top and bottom surface at two radial locations. Axial distortion was measured using CMM at several radial locations and at 20 clock positions. The comparison is made for each of the three elastic stiffness tensors. The location of the distinct sharp kink in the results is the location of the slots, as marked in Fig. <ref type="figure">8</ref>. Again, while the order of magnitude trends can be regarded as being captured well by the model, the discrepancy in the actual values is evident.</p><p>The machining distortion calculations demonstrate the utility of the automated procedure developed in this work for making multiple cuts. As indicated above, the predictions are reasonable. If the objective of the work was to accurately predict the distortion, then the following sources of the error in the initial stress, elastic stiffness tensor, and CMM data would have to be minimized. Part dis-tortion prediction because of material removal processes and concurrent evolution of stress towards equilibrium depends strongly on the state and magnitude of the initial stress. Thus, prior thermo-mechanical process modeling must be accurate. The material properties governing thermal and mechanical response of the material play a major role in determining the initial stress. In contrast, the elastic properties are the main variable in the distortion simulations, but appear to have little impact for the subset of anisotropy for the case explored in this paper. There are challenges in acquiring accurate CMM data. The data is usually a cloud of points that need interpretation for a reference point. Finally, the numerical approach can result in some errors due to boundary conditions, mesh resolution, and interpolation after remeshing, which we can minimize by appropriate mesh size design.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Conclusions</head><p>In this paper, we have developed an automated procedure for the creation of complex geometries by using one or more Boolean cuts and subsequent finite element mesh generation. The procedure relies on the Boolean geometric operation in Abaqus software and scripting in Python, Patran, and Matlab. The single cut procedure was successfully applied for creating explicit grain structure finite element models of a micro-pillar and a micro-tube to facilitate full-field crystal plasticity modeling. Furthermore, the proce- dure was applied to making multiple cuts from a single object while attaining the state of stress equilibrium after each cut. To this end, the distortion due to material removal in the presence of bulk residual stresses was simulated. The starting material for machining had a distribution of bulk residual stresses resulting from prior thermo-mechanical processing. Machining of the disk by broaching and turning operations while predicting the distortion during and after cutting was carried out using the procedure. Automated start-to-finish runs of these simulation cases along with the predicted trends in distortion demonstrate the robustness and utility of the developed procedure.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Appendix A</head><p>This appendix presents values of the elastic stiffness tension components in MPa for IN718 used in the FE simulations of machining distortion. The single crystal elastic constants for IN718 needed for the elastic stiffness tensor calculations of f0 0 1g and f0 1 1g fiber textures were: C 11 &#188; 242; 180MPa, C 12 &#188; 138; 850MPa, and C 44 &#188; 104; 200MPa <ref type="bibr">[98]</ref>, while Young's modulus and Poisson's ratio for the isotropic material were: 200,000 MPa and 0.3, respectively <ref type="bibr">[90,</ref><ref type="bibr">99]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C [MPa]</head><p>Isotropic f0 0 1g fiber texture </p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>T.J. Barrett et al. / Computational Materials Science 141 (2018) 269-281</p></note>
		</body>
		</text>
</TEI>
