Next Article in Journal
Effect of Parameters on Vapor Generation in Ship-to-Ship Liquefied Natural Gas Bunkering
Previous Article in Journal
Moodle LMS Integration with Amazon Alexa: A Practical Experience
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Thermal Deformation Defect Prediction for Layered Printing Using Convolutional Generative Adversarial Network

1
State Key Laboratory of Fluid Power and Mechatronic Systems, Zhejiang University, Hangzhou 310027, China
2
Key Lab of Advanced Manufacturing Technology of Zhejiang Province, Zhejiang University, Hangzhou 310027, China
3
School of Mechanical Engineering, Zhejiang University, Hangzhou 310027, China
4
School of Mechanical and Electrical Engineering, Wenzhou University, Wenzhou 325000, China
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2020, 10(19), 6860; https://doi.org/10.3390/app10196860
Submission received: 4 December 2019 / Revised: 1 September 2020 / Accepted: 1 September 2020 / Published: 29 September 2020
(This article belongs to the Section Mechanical Engineering)

Abstract

:
This paper presents a Thermal Deformation defect prediction method for layered printing using Convolutional Generative Adversarial Network (CGAN). Firstly, the original manifold mesh is converted into layered image in Printing Coordinate System (PCS). The trajectory inside layered image with various infill patterns are generated for making comparisons. Inspired by monocular vision and even binocular vision, the mathematical model of thermal defect prediction via infrared thermogram is built via virtual printing of Digital Twins to preset the initial parameters of Artificial Neural Network (ANN). Particularly, the depth convolution is used to extract multi-scale features of layered image. By using transfer learning techniques to identify small sample data, the CGAN is employed to build the nonlinear implicit relations between thermal deformation and multi-scale features. The binocular stereo vision laser scanner is used to determine the actual thermal deformation of the target printed objects. The shape deformation dissimilarity can be succinctly calculated by evaluating the surface profile error via mesh registration between the original source and target mesh model. The proposed method is verified by physical experiments. The experiment proved that the proposed method can deal with the thermal deformation with more optimal parameters, which contributes to performance forward design of irregular complex parts regarding diversified customized requirements.

1. Introduction

Additive manufacturing (AM), a representative of superfield manufacturing, enables quick freeform fabrication of complex-geometry components directly from the 3D models [1]. Due to its layer-by-layer additive process, which is the common feature of AM, it can be simpler and quicker to produce complex-geometry components at one time compared with conventional manufacturing process. Most frontier research integrate virtual reality, digital twin, transfer learning, cloud computing, and Internet of Things (Iot) with AM. What is known to us all is that there are many factors which have remarkable effects on quality and efficiency, such as geometry measurement, thermal characteristics, and thermoforming.
The earlier publications studied geometry measurement and trajectory planning. Zhang et al. [2] presented a method to find printing directions that avoid placing supports in perceptually significant regions to prevent the visual impact of artifacts. Mao et al. [3] introduced a method to efficiently generate slicing plans by a new metric profile that can characterize the distribution of deviation errors along the building direction. Shen et al. [4] proposed a toolpath interpolation method for 5-degree-of-freedom (5-DoF) parallel kinematic machines which can realize the smoothness of acceleration in all toolpath components, decrease the shock to the system, and reduce the surface error after cutting. Wang et al. [5] proposed a novel 5-axis dynamic slicing algorithm to achieve non-supporting material printing.
Most research has focused on thermal engineering and thermoforming. Bugeda et al. [6] developed a finite element model for the 3D simulation of the sintering of a single track during a Selective Laser Sintering (SLS) process which takes into account both the thermal and the sintering phenomena involved in the process. Based on a series of single tracks, Song et al. [7] firstly proposed the processing windows corresponding to different melting mechanisms in terms of microstructure, roughness, densification and microhardness. In order to study these dynamic interactions, such as heat conduction, convection, radiation, melting and solidification, dynamic phase changes, and evaporation, a finite element model has been developed which uses a dynamic mesh with spatial non-linear thermal properties to track the point of laser exposure on the powder bed to study thermal evolution during Selective Laser Melting (SLM) by Zeng et al. [8]. Li et al. [9] studied the phase evolution of laser Additive Manufacture (LAM) in producing Al-5Si-1Cu-Mg alloy in detail by characterization along the deposition direction.
In the research of optimal trajectory, Yang et al. [10] proposed a fractal scanning path which is a space-filling, self-avoiding, simple, and self-similar curve for selective laser sintering (SLS). Selvakumar et al. [11] proposed an extension of a specialized solution approach, which transforms the pursuit-evasion game (in which terminal time is free) via a special state transformation into a family of games with fixed terminal time. Liu et al. [12] presented how to apply second-order cone programming, a subclass of convex optimization, to rapidly solve a highly nonlinear optimal control problem arisen from smooth entry trajectory planning with high lift/drag ratios. Bonami et al. [13] have solved the mixed-integer nonlinear programming problem using a nonlinear programming-based branch-and-bound algorithm specifically tailored to the problem.
Some researchers studied AM technology using some novel methods. Jin et al. [14] studied autonomous in-situ correction of fused deposition modeling printers using computer vision and deep learning. He et al. [15] studied machine learning for continuous liquid interface production. Liu et al. [16] studied warpage deformation mechanism and control method of fused deposition parts. Xiong et al. [17] studied online measurement of bead geometry in gas metal arc welding based AM using passive vision. Teng et al. [18] studied the effects of material property assumptions on predicted meltpool shape for laser powder bed fusion based additive manufacturing. Paul et al. developed a three-dimensional thermomechanical finite element (FE) model to [19] calculate the thermal deformation in AM parts based on slice thickness, part orientation, scanning speed, and material properties.
There has been related research in 4D printing (4DP) concerning shape deformation. Rastogi et al. [20] proposed the complexity and inflexible design that had barricaded their dimension were vanquished by 4D printing with its dynamic structures. Wang et al. [21] proposed that deformation of arbitrary deployable surface can be realized by designing the fiber trajectories. Abuzaid et al. [22] was dedicated to study the stability and shape recovery properties of 4D printed honeycomb structures using thermoplastic Shape Memory Polymer (SMP). Bodaghi et al. [23] proposed that a Finite Element (FE) formulation based on the non-linear Green-Lagrange kinematic relations coupled with a robust SMP constitutive model established to describe material tailoring in 4D printing. Sossou et al. [24] proposed a modeling framework for simulating smart materials (SMs) and conventional materials behaviors on a voxel basis for 4D printing. Ding et al. [25] designed and demonstrated several 4D rod structures with the use of a nonlinear thermomechanical computational model using 4D printing.
Aiming at improving geometric precision for 3D printing (3DP) and even 4DP, based on the previous representative work [26,27,28,29], the antecedent research background is deepened and continued, the upshot is that this paper proposed a method of deformation-induced defect prediction for layered printing using Convolutional Generative Adversarial Network (CGAN).

2. Convert Manifold Mesh into Layered Image in Printing Coordinate System (PCS)

2.1. Printing Coordinate System (PCS)

For a polyhedron manifold model M to be printed in Euclidean space R 3 , let A i , i = 0 , , N 1 be the N triangular faces, with vertices ( a i , b i , c i ), which are assumed to be ordered counter clockwise (CCW) on A i . The Axis-aligned Bounding Boxes (AABB) of M is calculated to define the scale of M . Meanwhile, the stroke length x b , y b , z b of the AABB along x , y , z direction can be reckoned. The maximum print space of a printer along x , y , z direction are, respectively, x p , y p , z p .
For any 3D component to be fabricated, the object is sliced into a number of 2D layers of defined layer thickness. In a printing coordinate system (PCS), the layer height sequence Z about n layers can be expressed as
Z = { z 1 , z 2 , z i , , z n }   Z i R   &   i [ 1 , n ] ,
where z i < z j , for   i < j .
The layer thickness sequence d can be obtained:
d = d i f f ( Z ) = { d 1 , d 2 , d i , , d n 1 }   d i R   &   i [ 1 , n 1 ] ,
where d i f f means 1st order forward difference,   d i = z i + 1 z i , i [ 1 , n 1 ] .
For uniform slicing, layer thickness is equal to each other,   d i f f ( d )   = 0 . For adaptive slicing, layer thickness varies,   d i f f ( d ) 0 .
In PCS, the normalized height h n of i-th layer can be calculated hereby to represent relative height of the slicing plane:
h n = z i z b   h n ( 0 , 1 ] .
There exists the inherent staircase effect (SE) in 3DP. The SE can be manifested by various geometric parameters, for instance, cusp height δ and volume error V e . The cusp height is defined as
δ = d × | c o s α | ,
α = c o s 1 n z × n f n z · n f   α [ 0 , π ] ,
where d is layer thickness, and α is the included angle between the z normal vector n Z and facet normal vector n f .
Adaptive slicing is generally realized via variable thickness using iteration. Therefore, the calculation process of layer thicknesses can be expressed in the following mathematical model.
{ f i n d   d m i n   c a r d ( d ) S u b j e c t   t o :   f ( d ) δ m a x d [ d m i n   , d m a x ] ,
where c a r d ( d ) is the cardinality of the d ,   d [ d m i n   , d m a x ] . f ( d ) is the constraint function which presents the accuracy requirement, and δ m a x can be the maximum cusp height of each layer.
The Printing Coordinate System (PCS) of 3D reconstructed manifold model (right human knee distal femur) is shown in Figure 1.

2.2. Trajectory Inside Layered Image with Various Infill Patterns

In order to prepare the 3D printing experiment and simulate the manufacturing process, the femur model is sliced in different layers with special infill patterns shown in Figure 2. Let L be total length of open-loop trajectory, and n p o i n t be amount of turning points among all points P .
L = i = 1 n p o i n t 1 P ( i + 1 ) ( x , y , z ) P ( i ) ( x , y , z ) .

3. Thermal Effects Prediction on Shape Deformation via Infrared Thermogram

3.1. Infrared Camera and Digital Camera

The 3D printing is realized by stacking between the multilayers with various and uneven temperatures along the trajectory. Discriminating visibility is the key technology to realize virtual printing. The visible primitives including points and facets are obtained based on convex hull principles. For the mathematical description of the three-dimensional heat conduction problem, it is necessary to combine the Fourier law and the principle of conservation of energy in order to analyze the multilayer thermodynamic equilibriums state. Inspired by monocular vision and even binocular vision, Figure 3 shows the schematic binocular stereo vision measurement of layered printing.
The melting energy consumption as follows:
E t h e r m a l = c m ( T m T a ) + m X = ρ V [ c ( T m T a ) + X ] ,
where E t h e r m a l is the melting energy consumption (kJ); c is the material specific heat capacity ( J · kg 1 · K 1 );   m is the weight of the filament ( kg );   T m is the material melting point ( K ); T a is the environment temperature ( K ); X is the latent heat ( kJ · kg ).
The thermodynamic equilibriums equation for multilayer satisfies the following classical 3D heat conduction equation.
ρ c T t = x ( k x T x ) + y ( k y T y ) + z ( k z T z ) + q ˙ ,
where ρ is the material density ( kg · m 3 ); c is the material specific heat capacity ( J · kg 1 · K 1 ); T is the temperature ( K ); t is the interaction time ( s ); k x , k y , k z are thermal conductivities ( W · m 1 · K 1 ) ) along the directions of x, y, z axes; and q ˙ is the internal heat density ( W · m 3 ).
When k x , k y , k z are the same value as a constant, the thermodynamic equilibriums equation for multilayer can be obtained from the basic principles of heat transfer and the first law of thermodynamics, as follows:
T t = α ( 2 T x 2 + 2 T y 2 + 2 T z 2 ) + q ˙ ρ c ,
α = k / ( ρ c )
where α is the thermal diffusivity ( m 2 · s 1 ) , k is the thermal conductivity ( W · m 1 · K 1 ) ; c is the material specific heat capacity ( J · kg 1 · K 1 ) as a constant.
The heat conduction equation is a partial differential equation of first order for time. But it is a partial differential equation of second order for space. Thus, solving the equation requires a time condition for temperature and two spatial conditions. These conditions are given as the initial conditions at t = 0 and the boundary conditions of the space.
The first type of boundary condition for the temperature is defined as follows:
T x = 0 = T s ( t ) .
When the temperature T s on the boundary surface is independent of time as a constant, it is called constant wall temperature condition.
For the case where the heat flux on the boundary is specified, it can be expressed by
k ( T x ) x = 0 = q ( t ) .
When the heat flux density on the boundary is independent of time as a constant, it is called constant heat flux condition. In the case of q = 0 , which is the adiabatic condition, can be expressed as follows:
( T x ) x = 0 = 0 .
When the convection heat transfer coefficient h is given on the boundary surface, which means the heat transfer between the object and the surrounding fluid, the surface heat transfer coefficient is used according to the Newton cooling formula. The boundary condition is expressed as follows:
k ( T x ) x = 0 = h [ T s ( t ) T ] ,
where h is the thermal convection coefficient ( W · m 2 · K 1 ) ; T is the final temperature when time tends to infinity, which means T is the temperature of ambient environment T a .
Interface continuous conditions refer to two objects in full contact. The two objects of the contact surface and the temperature and heat flux values were equal. Therefore, the boundary condition is expressed as follows:
( T 1 ) x = 0 = ( T 2 ) x = 0 ,
k 1 ( T 1 x ) x = 0 = k 2 ( T 2 x ) x = 0 ,
where T 1 and T 2 are the temperatures of two contacted objects, and k 1 and k 2 are the thermal conductivities of two contacted objects.
The end-effector moves at a constant speed of V F in the region when extruding which leads to regional sensitivity. In fact, the highest temperature in each layer is always below the end-effector. Considering only heat conduction and convection, the multilayer thermodynamic equilibriums equation can be expressed as
q f = q f + d f + q A + q S + Δ q ,
where q f is the input heat of extruded filament (kJ); q f + d f is the conduction heat from extruded filament to interactive element ( kJ ) ;   q A is the convection heat to ambient air ( kJ ) ; q S is the convection heat to substrate ( kJ ) ; Δ q is internal energy change of filament microelement ( kJ ) .
For most of 3D trajectory in the process of 3D printing, it can be simplified to one-dimensional problem due to the end-effector which usually moves in one direction. According to previous boundary conditions, it can be converted to the partial differential equation (PDE).
ρ c S A T x = S A x ( k T x ) h P ( T T a ) ,
where S A is cross-sectional area of filament ( mm 2 ); P is cross-sectional perimeter of filament ( mm ). T x equals to the temperature gradient T .
As long as the initial temperature of filament T 0 when x = 0 is obtained:
T = T x = f ( T 0 T a ) e f x ,
f = 1 + 4 α β 1 2 α ,   α = k ρ c V F ,   β = h P ρ c S A V F .
As long as the temperature gradient T is obtained, the analysis of the process parameters is supposed to be considered in manufacturing process.

3.2. Infrared Temperature Measurement

In the actual radiation model, in addition to the energy radiated by the object itself, it can also reflect and transmit the environment radiation, so the energy reaching the infrared optical system mainly consists of three parts.
E = E 1 + E 2 + E 3 ,
where E is radiant energy reaching the infrared optical system (kJ), E 1 is energy radiated by the object itself (kJ), E 2 is environmental radiation energy reflected by the target surface (kJ), E 3 is environmental radiation energy transmitted by target surface (kJ).
Assuming that the target emissivity is ε and the reflectivity is ρ r , the transmissivity is τ , and the total environmental radiation energy is E a (kJ), and the radiation energy of blackbody at the same temperature with the target surface is E b (kJ), E is determined as follows.
E = ε E b + ρ r E a + τ E a ,
where ε + ρ r + τ = 1 .
According to Stefan-Boltzmann law, E can be obtained as follows.
σ s T r 4 = ε σ s T b 4 + ( 1 ε ) σ s T a 4 ,
where σ s = 5.67 × 10 8 ( W · m 2 · K 4 ) is Stefan constant, T r is radiation temperature of target surface ( K ) , T a is ambient temperature ( K ) , and T b is actual temperature of target surface ( K ) .
Then, actual temperature T b of target surface can be obtained as follows.
T b = T r 4 ( 1 ε ) T a 4 ε 4 .
The thermographs using thermal field measurement is shown in Figure 4. The noise equivalent temperature difference (NEDT) of used FLUKE® thermography is NEDT (30 °C) ≤ 0.09 °C. The instantaneous field of view (IFOV) of thermal infrared imager instrument is IFOV < 1.25 mRad. The detector resolution of the thermal infrared imager is more than 320 × 240 (76,800 pixels). The measurable temperature range is [−20 °C, 1200 °C]. The ε = 0.95 and τ = 100% for measured target.

3.3. Layered Deformation of the Printed Objects

The thermal effect plays an important role in thermoplastic forming. Apparently, thermal deformation is the main part of printing deformation.
The initialization probability P i n i t ( P i n i t [ 0 , 1 ] ) of customized layer before defect prediction using convolutional generative adversarial network is shown in Figure 5. Specifically, in Figure 5a, the maximum probability max ( P i n i t ) = 0.400 at (145.393, 136.766) point; the minimum probability min ( P i n i t ) = 0.118 at (144.852, 123.850) point; standard deviation std ( P i n i t ) = 0.063. In Figure 5b, max ( P i n i t ) = 0.399 at (166.943, 93.617) point; the minimum probability min ( P i n i t ) = 0.055, at (168.326, 94.555) point; standard deviation std ( P i n i t ) = 0.099. In Figure 5c, max ( P i n i t ) = 0.523 at (184.364,104.073) point; the minimum probability min ( P i n i t ) = 0.070, at (193.758,119.930) point; standard deviation std ( P i n i t ) = 0.083. In Figure 5d, max ( P i n i t ) = 0.460 at (190.176,111.479) point; the minimum probability min ( P i n i t ) = 0.059 at (192.780,104.766) point; standard deviation std ( P i n i t ) = 0.085. In Figure 5e, max ( P i n i t ) = 0.396 at (186.280,95.857) point; the minimum probability min ( P i n i t ) = 0.098 at (172.151,120.081) point; standard deviation std ( P i n i t ) = 0.081. In Figure 5f, max ( P i n i t ) = 0.442 at (158.341,113.351) point; the minimum probability min ( P i n i t ) = 0.101 at (158.125,98.107) point; standard deviation std ( P i n i t ) = 0.077.

4. Surface Profile Error to Evaluate Deformation

The profile of the curve is expressed not by mathematical equation but by discrete points, which makes it difficult to evaluate the profile error. Therefore, the profile error of surface mesh can be measured by calculating the dissimilarity deviation between the source surface and the target surface based on the Surface Subdivision Method. According to the definition of the profile tolerance in International Organization for Standardization (ISO) 1101 [30], the surface profile error can be defined by the minimum diameter covering all measured points of the cluster spheres in which centers lie on the source model.
Let M s o u r c e be source model and M t a r g e t be target model. The key points can be selected from the measured model M t a r g e t by using many methods, such as K-nearest neighbors (KNN) search, Least Squares (LS), etc. The deviation between the source surface S and the i-th key point P i k e y is defined by the minimum Euclidean distance from P i k e y to the closest point S ( u i , v i ) on the model surface S.
P i k e y = [ x i k e y , y i k e y , z i k e y ] T ,       i [ 1 , n ]
S ( u i , v i ) = [ x ( u i , v i ) , y ( u i , v i ) , z ( u i , v i ) ] T ,   u [ 0 , 1 ] , v [ 0 , 1 ] .
The closest point S ( u i , v i ) can be searched by solving the minimum distances.
Arg   min ( u i , v i ) ( ( x i k e y x ( u i , v i ) ) 2 + ( y i k e y y ( u i , v i ) ) 2 + ( z i k e y z ( u i , v i ) ) 2 ) .
Assuming that the i-th measured point is expressed as P i = [ x i , y i , z i ] T , and P i = [ x i , y i , z i ] T is the point on the source surface S which is closest to the i-th localized measured point P i * = [ x i * , y i * , z i * ] T , the mathematical model of the surface profile error s e r r o r can be described as follows:
d i = P i * P i 2 ,
s e r r o r = m a x { 2 | d i | } = m a x { 2 P i * P i 2 } ,
where d i is the deviation between the i-th localized measured point and the source surface S, P ˜ i * is the homogeneous coordinate of P i * , and   P ˜ i is the homogeneous coordinate of the measured point P i .
The surface profile error can be evaluated by iteratively aligning and non-rigidly deforming a measured mesh to an original source mesh. The final transformation matrix T rotates and translates the measuring coordinate system using six parameters α, β, γ, Δx, Δy, Δz. Hence, T can be expressed as follows:
P ˜ i * = T · P ˜ i ,   i = 1 , 2 , , n ,
T = [ cos   β   cos   γ sin   α   sin   β   cos   γ     cos   α   sin   γ cos   α   sin   β   cos   γ   +   sin   α   sin   γ Δ x cos   β   sin   γ sin   α   sin   β   sin   γ   +   cos   α   cos   γ cos   α   sin   β   sin   γ     sin   α   cos   γ Δ y sin   β sin   α   cos   β cos   α   cos   β Δ z 0 0 0 1 ] ,
where α, β, γ are the angles rotating the measuring coordinate system around the X, Y, and Z axis, respectively, and Δx, Δy, Δz are translations along the X, Y, and Z axes, respectively.
The thermal deformation comparison before and after improvement is shown in Figure 6.

5. Convolutional Generative Neural Network (CGAN) of Layer Customized Map (LCM)

The feature map H i of the i -th layer is determined according to the following equation:
H i = f ( W i H i 1 + b i ) i [ 2 , c a r d ( d ) ] ,
H 1 = I 1 ,
where W i is the convolution kernel of the i -th layer, namely weight assigned, b i is the bias, H i 1 is the feature map of the i -th layer, and f is activation function. is the convolutional operator.
In convolutional neural network, the definition of receptive field is the size of the region mapped by the pixels on the feature map output from each layer of the convolutional neural network on the input image. It represents the size of the perception range of neurons in different positions in the network to the original image as follows.
R i = R i 1 + ( ( k i 1 ) l = 1 i 1 s l ) ,
where R i is receptive field of the i -th layer, R i 1 is receptive field of the ( i 1 ) -th layer, k i is convolution kernel size of the i -th layer, and s l is convolution kernel stride of l -th layer.
When the training data is sufficient, the neural network based on deep learning is introduced. The value for the j -th neuron of the k-th layer ( x j k ) is determined according to the following equation:
x j k = σ ( i = 1 n w j i k · x i k 1 + b j k ) ,
where w j i k is the weight assigned in the j -th neuron of the k -th layer to the input from i -th neuron of the previous layer, and b j k is the bias, and n is the number of neurons in ( k 1 ) -th layer. The bias b j k acts as an independent polynomial term, and its value is adjusted in a similar manner to that of the weights w j i k . σ is hyperbolic tangent Tanh activation function expressed by
σ ( x ) = 1 e 2 x 1 + e 2 x .
The training procedure is similar to a two-player min-max game with the following loss function.
min G max D V ( D , G ) = E x ~ p d a t a ( x ) [ log D ( x ) ] + E z ~ p z ( z ) [ log ( 1 D ( G ( z ) ) ) ] ,
where z is a noise vector sampled from distribution p z (e.g., uniform or Gaussian distribution), and x is a real data from the distribution p d a t a .
The stochastic gradient of discriminator D is updated by ascending in
θ d 1 m i = 1 m [ log D ( x ( i ) ) + log ( 1 D ( G ( z ( i ) ) ) ) ] ,
where θ d is gradient solving operator of discriminator D , m is the amount of data in a single minibatch, and i is the data index.
Meanwhile, the stochastic gradient of generator G is updated by descending in
θ g 1 m i = 1 m [ log ( 1 D ( G ( z ( i ) ) ) ) ] ,
where θ g is gradient solving operator of generator G , m is the amount of data in a single minibatch, and i is the data index.
For output layer L r , the error evaluation function C L r   of generator G is defined as
C L r = 1 2 m x y ( x ) a L r ( x ) 2 ,
where y ( x ) is expected output in output layer L r , and a L r ( x ) is predicted output by the activation function σ .
The depth convolution with minimum residual is used to extract features of each layer shown in Figure 7.

6. Multi Objective Optimization (MOO) to Reduce Deformation

6.1. Mathematical Model of MOO

Heat on the multilayer of the structure gradually decreases due to thermal convection and external radiation, and the temperature gradually decreases. The CGAN model takes each layer end-effector temperature, temperature gradient, printing velocity as the optimization parameters and solved MOO using Non-dominated Sorting Genetic Algorithm-II to calculate thermal deformation using minimum residual depth convolution.
Find :   x = [ T n , T , V p , d ] Minimize :   f ( x ) = { s e r r o r , t p } Subject   to : { min ( d ) d max ( d ) min ( V p ) V F min ( V p ) min ( T n ) T n max ( T n ) ,
where x —parameters of printing process; d —layer thickness (mm); V p —printing velocity ( mm · s 1 ); T n —end-effector temperature (K); T —temperature gradient ( K · mm 1 ); t T —total print time (s); f ( x ) —objective function of printing process.
The total print time can also be estimated as follows:
t p = L V p = r i n f i l l V o b j e c t S A V p ,
where t p is the total print time ( s ) ;   L is the length of trajectory ( m m ) ;   V p is the printing velocity ( mm · s 1 ) ; r i n f i l l is infill rate; V o b j e c t is volume of object to be printed; S A is cross area of filament.

6.2. MOO Results

The proposed method has been implemented using open source C++, OpenGL and Open Cave. The proposed method was tested in a 64-bit Windows 10 system PC environment with Intel(R) Core(TM) i5-2400 [email protected] and 32G RAM.
The Pareto Optimal Solutions (POS) using convolutional Generative Adversarial Network is shown in Figure 8 where Figure 8a shows an initial set of POS and Figure 8b shows a further optimized set of POS. By using the CGAN method, the 10 POS with best Y are, respectively, (−3.0621,25956.0000,31603.4968), (−3.0621,25956.0000,31689.7022), (−3.0621,25956.0000,31774.8731), (−3.0621,25956.0000,31857.9875), (−3.0621,25956.0000,31939.6714), (−3.0621,25956.0000,32020.4324), (−3.0621,25956.0000,32100.6860), (−3.0621,25956.0000,32180.7755), (−3.0621,25956.0000,32260.9862), (−3.0621,25956.0000,32341.5575).
The average thermal energy consumption (from Equation (22)) is decreased from 8.1582e + 04 J to 7.5606e + 04 J with ratio of 7.32% using the proposed method.

7. Physical Experiments and Results comparison

The specimens considered in the present work were fabricated on a 3DP 3D printer by using the commercial Polylactic Acid (PLA) as the fabrication material and the support material. As shown in Figure 9, the laser reconstruction equipment includes trilinear coordinates measuring instrument and binocular stereo vision laser scanner. The scanning mode has turntable scanning and fixed scanning. The scanning precision is less than 0.05 mm. The scan size can vary from 30 mm × 30 mm × 30 mm to 1200 mm × 1200 mm × 1200 mm.
The Figure 10 shows the virtual printing via digital twins considering manufacturing error. The amount of layer is thereafter same (herein 52) to enhance comparability. The lateral surface area indicates more evenly distribution after adaptive optimization.
The Figure 11 shows the comparison before and after optimization. Hereby, the maximum is marked with magenta ▲, and the minimum is marked with green ▇ (similarly hereinafter). Before optimization, max ( δ ) = 2.075594e-02 at h n = 1.9608%, min ( δ ) = 4.795815e-03 at h n = 90.1961%, mean ( δ ) = 0.0155, std ( δ ) = 0.0044, var ( δ ) = 0.0000. After optimization, max ( δ ) = 2.695928e-02 at h n = 1.9231%, min ( δ ) = 0 at h n = 100.0000%%, mean ( δ ) = 0.0143, std ( δ ) = 0.0050, var ( δ ) = 0.0000.
The results comparison for various layer amounts are listed in Table 1.

8. Conclusions

(1) A method of thermal Deformation defect deformation prediction for 3DP using Convolutional Generative Adversarial Network (CGAN) is put forward.
The multiscale Convolutional Generative Adversarial Network (CGAN) is employed to build the nonlinear implicit relations between thermal deformation and multi-scale features. The thermal deformation of each layer can be predicted with high precision for various shapes. The CGAN method is especially suitable for complex structures with diversified region-based requirements.
(2) The depth convolution is used to extract multi-scale features of LCM in each layer.
The CGAN model takes each layer end-effector temperature, temperature gradient, printing velocity as the optimization parameters and solved MOO using Non-dominated Sorting Genetic Algorithm-II to calculate thermal deformation using minimum residual depth convolution. The average thermal deformation can be decreased via CGAN. The visible primitives including points and facets are obtained based on convex hull principles, which paves the way for virtual printing via Digital Twins technology.
(3) The proposed CGAN method is verified by physical experiment.
The proposed method is verified by serialized physical experiments. The thermographs are firstly obtained using thermal field measurement to determine the temperature and temperature difference. The trilinear coordinates measuring instrument and binocular stereo vision laser scanner are then used to determine the actual thermal deformation of the printed objects. Compared with traditional methods, the CGAN method can deal with the thermal deformation with more optimal parameters which contributes to forward design of irregular complex parts.
In future, encouraged by the artificial intelligence technology, the proposed method will be planned to be more suitable for AM of more complex part structures, such as mechanical grooves, convex shoulders, matching holes, and inner cavity microfluidic channels, supported by knowledgebase big data.

Author Contributions

Software, K.W.; validation, G.Y.; resources, J.P.; visualization, S.L.; supervision, S.Z.; funding acquisition, J.X. and J.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Natural Science Foundation of China (No. 51935009; 51775494; 51821093), Zhejiang key research and development project (No. 2019C01141; LGG18E050007; LGG20E050006), National key research and development project of China (No. 2018YFB1700701)

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

a L r ( x ) predicted output
b i bias of feature map
b j k bias
c material specific heat capacity (kJ·kg−1·K−1)
C L r error evaluation function
d layer thickness (mm)
D discriminator
e natural base
E radiant energy reaching the infrared optical system (kJ)
E 1 energy radiated by the object itself (kJ)
E 2 radiant energy of the environment reflected by the target surface (kJ)
E 3 environmental radiation energy transmitted by target surface (kJ)
E a environmental radiation energy (kJ)
E b radiation energy of blackbody at the same temperature with the target surface (kJ)
E m e l t i n g thermal energy consumption (kJ)
G generator
h n normalized printing height ratio of the i-th slicing plane
H i feature map of the i -th layer
L length of trajectory ( m m )
P j multi-polygons
s i g n signum function
S s e c t i o n signed area of the 2D cross-section
S P i signed area of i-th polygons P i
t T total print time (s)
T a environment temperature ( K )
T b actual temperature of target surface ( K )
T m material melting point ( K )
T n temperature of the end-effector (K)
T r radiation temperature of target surface ( K )
Vtotal volume of object to be printed
V p printing velocity (mm·s−1)
x parameters of printing process
x j k the j -th neuron of the k-th layer
X latent heat ( kJ · kg 1 )
y ( x ) expected output in output layer L r
z a noise vector from the distribution p z
z i layer height (mm)
z b total height (mm)
ε A i , x geometric error of i -th facet A i in x direction
ε A i , y geometric error of i -th facet A i in y direction
w i , j weight of the vertex
w j i k weight assigned in the j -th neuron of the k -th layer to the input from i -th neuron of the previous layer
W i convolution kernel of the i -th layer namely assigned weight
T temperature gradient ( K · m m 1 )
σ hyperbolic tangent Tanh activation function
σ s Stefan constant ( W · m 2 · K 4 )
ρ material density ( kg · m 3 )
ε target emissivity
ρ r reflectivity
τ transmissivity
  L i total servo trajectory
θ d gradient solving operator of discriminator D
θ g gradient solving operator of generator G
h thermal convection coefficient ( W · m 2 · K 1 )
k thermal conductivity ( W · m 1 · K 1 )
k 1 ,   k 2 thermal conductivities of two contacted objects ( W · m 1 · K 1 )
k x , k y , k z thermal conductivities along the directions of x, y, z axes ( W · m 1 · K 1 )
P cross-sectional perimeter of filament (mm)
q ˙ heat density inside the object ( W · m 3 )
q f input heat of extruded filament (kJ)
q f + d f conduction heat from extruded filament to interactive element (kJ)
q A convection heat to ambient air (kJ)
q S convection heat to substrate (kJ)
t interaction time (s)
T temperature ( K )
T 1 , T 2 temperatures of two contacted objects ( K )
T s boundary surface temperature (K)
T final temperature when time tends to infinity (K)
Δ q internal energy change of filament microelement (kJ)
T n temperature difference (K)
α thermal diffusivity ( m 2 · s 1 )
R i receptive field of the i -th layer
R i 1 receptive field of the ( i 1 ) -th layer
k i convolution kernel size of the i -th layer
s l convolution kernel stride of l -th layer
d i deviation between the i-th localized measured point and the design surface S
P ˜ i * homogeneous coordinate of P i *
P ˜ i homogeneous coordinate of the measured point P i
Ttransformation matrix;
α, β, γangles rotating the measuring coordinate system around the X, Y, and Z axis, respectively
Δx, Δy, Δztranslations along the X, Y and Z axes, respectively

References

  1. Matsumoto, M.; Shiomi, M.; Osakada, K.; Abe, F. Finite element analysis of single layer forming on metallic powder bed in rapid prototyping by selective laser processing. Int. J. Mach. Tools Manuf. 2002, 42, 61–67. [Google Scholar] [CrossRef]
  2. Zhang, X.; Le, X.; Panotopoulou, A.; Whiting, E.; Wang, C.C.L. Perceptual models of preference in 3D printing direction. ACM Trans. Graph. 2015, 34, 1–12. [Google Scholar] [CrossRef]
  3. Mao, H.; Kwok, T.-H.; Chen, Y.; Wang, C.C.L. Adaptive slicing based on efficient profile analysis. Comput. Des. 2019, 107, 89–101. [Google Scholar] [CrossRef]
  4. Shen, X.; Xie, F.; Liu, X.J.; Xie, Z. A smooth and undistorted toolpath interpolation method for 5-DoF parallel kinematic machines. Robot. Comput. Integr. Manuf. 2019, 57, 347–356. [Google Scholar] [CrossRef]
  5. Wang, M.; Zhang, H.; Hu, Q.; Liu, D.; Lammer, H. Research and implementation of a non-supporting 3D printing method based on 5-axis dynamic slice algorithm. Robot. Comput. Integr. Manuf. 2019, 57, 496–505. [Google Scholar] [CrossRef]
  6. Bugeda, G.; Cervera, M.; Lombera, G. Numerical prediction of temperature and density distributions in selective laser sintering processes. Rapid Prototyp. J. 1999, 5, 21–26. [Google Scholar] [CrossRef]
  7. Song, B.; Dong, S.; Zhang, B.; Liao, H.; Coddet, C. Effects of processing parameters on microstructure and mechanical property of selective laser melted Ti6Al4V. Mater. Des. 2012, 35, 120–125. [Google Scholar] [CrossRef]
  8. Zeng, K.; Pal, D.; Gong, H.J.; Patil, N.; Stucker, B. Comparison of 3DSIM thermal modelling of selective laser melting using new dynamic meshing method to ANSYS. Mater. Sci. Technol. 2015, 31, 945–956. [Google Scholar] [CrossRef]
  9. Li, J.; Cheng, X.; Liu, D.; Zhang, S.Q.; Li, Z.; He, B.; Wang, H.M. Phase evolution of a heat-treatable aluminum alloy during laser additive manufacturing. Mater. Lett. 2018, 214, 56–59. [Google Scholar] [CrossRef]
  10. Yang, J.; Bin, H.; Zhang, X.; Liu, Z. Fractal scanning path generation and control system for selective laser sintering (SLS). Int. J. Mach. Tools Manuf. 2003, 43, 293–300. [Google Scholar] [CrossRef]
  11. Selvakumar, J.; Bakolas, E. Robust time-optimal guidance in a partially uncertain time-varying flow-field. J. Optim. Theory Appl. 2018, 179, 240–264. [Google Scholar] [CrossRef]
  12. Liu, X.; Shen, Z. Rapid smooth entry trajectory planning for high lift/drag hypersonic glide vehicles. J. Optim. Theory Appl. 2016, 168, 917–943. [Google Scholar] [CrossRef]
  13. Bonami, P.; Olivares, A.; Staffetti, E. Energy-optimal multi-goal motion planning for planar robot manipulators. J. Optim. Theory Appl. 2014, 163, 80–104. [Google Scholar] [CrossRef]
  14. Jin, Z.; Zhang, Z.; Gu, G.X. Autonomous in-situ correction of fused deposition modeling printers using computer vision and deep learning. Manuf. Lett. 2019, 22, 11–15. [Google Scholar] [CrossRef]
  15. He, H.; Yang, Y.; Pan, Y. Machine learning for continuous liquid interface production: Printing speed modelling. J. Manuf. Syst. 2019, 50, 236–246. [Google Scholar] [CrossRef]
  16. Liu, L.; Wan, C.; Li, K.; Wu, J. Research on Warpage Deformation Mechanism & Control Method of Fused Deposition Parts. In Advanced Graphic Communications and Media Technologies; Lecture Notes in Electrical Engineering Book Series; Springer: Singapore, 2017; pp. 729–737. [Google Scholar] [CrossRef]
  17. Xiong, J.; Zhang, G. Online measurement of bead geometry in GMAW-based additive manufacturing using passive vision. Meas. Sci. Technol. 2013, 24, 115103. [Google Scholar] [CrossRef]
  18. Teng, C.; Ashby, K.; Phan, N.; Pal, D.; Stucker, B. The effects of material property assumptions on predicted meltpool shape for laser powder bed fusion based additive manufacturing. Meas. Sci. Technol. 2016, 27, 085602. [Google Scholar] [CrossRef]
  19. Paul, R.; Anand, S.; Gerner, F. Effect of thermal deformation on part errors in metal powder based additive manufacturing processes. J. Manuf. Sci. Eng. 2014, 136, 031009. [Google Scholar] [CrossRef]
  20. Rastogi, P.; Kandasubramanian, B. Breakthrough in the printing tactics for stimuli-responsive materials: 4D printing. Chem. Eng. J. 2019, 366, 264–304. [Google Scholar] [CrossRef]
  21. Wang, Q.; Tian, X.; Huang, L.; Li, D.; Malakhov, A.V.; Polilov, A.N. Programmable morphing composites with embedded continuous fibers by 4D printing. Mater. Des. 2018, 155, 404–413. [Google Scholar] [CrossRef]
  22. Abuzaid, W.; Alkhader, M.; Omari, M. Experimental analysis of heterogeneous shape recovery in 4d printed honeycomb structures. Polym. Test. 2018, 68, 100–109. [Google Scholar] [CrossRef]
  23. Bodaghi, M.; Damanpack, A.R.; Liao, W.H. Adaptive metamaterials by functionally graded 4D printing. Mater. Des. 2017, 135, 26–36. [Google Scholar] [CrossRef]
  24. Sossou, G.; Demoly, F.; Belkebir, H.; Qi, H.J.; Gomes, S.; Montavon, G. Design for 4D printing: A voxel-based modeling and simulation of smart materials. Mater. Des. 2019, 175, 107798. [Google Scholar] [CrossRef]
  25. Ding, Z.; Weeger, O.; Qi, H.J.; Dunn, M.L. 4D rods: 3D structures via programmable 1D composite rods. Mater. Des. 2018, 137, 256–265. [Google Scholar] [CrossRef]
  26. Xu, J.; Chen, X.; Zhang, S.; Chen, Q.; Gou, H.; Tan, J. Thermal design of large plate-fin heat exchanger for cryogenic air separation unit based on multiple dynamic equilibriums. Appl. Therm. Eng. 2017, 113, 774–790. [Google Scholar] [CrossRef] [Green Version]
  27. Xu, J.; Wang, K.; Sheng, H.; Gao, M.; Zhang, S.; Tan, J. Energy efficiency optimization for ecological 3D printing based on adaptive multi-layer customization. J. Clean. Prod. 2020, 245, 118826. [Google Scholar] [CrossRef]
  28. Xu, J.; Wang, K.; Gao, M.; Tu, Z.; Zhang, S.; Tan, J. Biomechanical performance design of joint prosthesis for medical rehabilitation via generative structure optimization. Comput. Methods Biomech. Biomed. Eng. 2020. [Google Scholar] [CrossRef]
  29. Xu, J.; Feng, X.; Cen, J.; Zhang, S. Precision forward design for 3D printing using kinematic sensitivity via Jacobian matrix considering uncertainty. Int. J. Adv. Manuf. Technol. 2020. [Google Scholar] [CrossRef]
  30. ISO 1101, Geometrical Product Specifications–Geometrical Tolerancing–Tolerances of Form, Orientation, Location and Run-Out; ISO: London, UK, 2012.
Figure 1. Printing Coordinate System (PCS) of 3D reconstructed human knee distal femur where (a) is volume-rendered human knee joint (posterior view) from CT and (b) is distal femur manifold model.
Figure 1. Printing Coordinate System (PCS) of 3D reconstructed human knee distal femur where (a) is volume-rendered human knee joint (posterior view) from CT and (b) is distal femur manifold model.
Applsci 10 06860 g001
Figure 2. Six kinds of infilling patterns of femur (previously shown in Figure 1) at three layers with incremental h n , where (a) is concentric with h n = 0.23 , L = 2162.929 and n p o i n t = 46 ; (b) is cross with h n = 0.23 , L = 2215.543 and n p o i n t = 310 ; (c) is triangle with h n = 0.42 , L = 1437.539 and n p o i n t = 61 ; (d) is tri-hexagon with h n = 0.42 , L = 1413.658 and n p o i n t = 62 ; (e) is line with h n = 0.73 , L = 822.416 and n p o i n t = 42 ; (f) is grid with h n = 0.73 , L = 830.254 and n p o i n t = 29 .
Figure 2. Six kinds of infilling patterns of femur (previously shown in Figure 1) at three layers with incremental h n , where (a) is concentric with h n = 0.23 , L = 2162.929 and n p o i n t = 46 ; (b) is cross with h n = 0.23 , L = 2215.543 and n p o i n t = 310 ; (c) is triangle with h n = 0.42 , L = 1437.539 and n p o i n t = 61 ; (d) is tri-hexagon with h n = 0.42 , L = 1413.658 and n p o i n t = 62 ; (e) is line with h n = 0.73 , L = 822.416 and n p o i n t = 42 ; (f) is grid with h n = 0.73 , L = 830.254 and n p o i n t = 29 .
Applsci 10 06860 g002
Figure 3. Schematic binocular stereo vision measurement of layered printing.
Figure 3. Schematic binocular stereo vision measurement of layered printing.
Applsci 10 06860 g003
Figure 4. Thermographs during temperature rise process. The incremental temperature T b of (af) are, respectively, 77.6 °C, 77.7 °C, 78.0 °C, 82.6 °C, 95.7 °C, 104.6 °C.
Figure 4. Thermographs during temperature rise process. The incremental temperature T b of (af) are, respectively, 77.6 °C, 77.7 °C, 78.0 °C, 82.6 °C, 95.7 °C, 104.6 °C.
Applsci 10 06860 g004
Figure 5. Initialization probability P i n i t of customized layer before defect prediction using convolutional generative adversarial network with incremental h n , where (a) is concentric with h n = 0.23 ; (b) is cross with h n = 0.23 ; (c) is triangle with h n = 0.42 ; (d) is tri-hexagon with h n = 0.42 ; (e) is line with h n = 0.73 ; (f) is grid with h n = 0.73 .
Figure 5. Initialization probability P i n i t of customized layer before defect prediction using convolutional generative adversarial network with incremental h n , where (a) is concentric with h n = 0.23 ; (b) is cross with h n = 0.23 ; (c) is triangle with h n = 0.42 ; (d) is tri-hexagon with h n = 0.42 ; (e) is line with h n = 0.73 ; (f) is grid with h n = 0.73 .
Applsci 10 06860 g005
Figure 6. Thermal deformation comparison before and after improvement where (a) is regarding i-th step iteration and (b) is regarding (i+1)-th step iteration.
Figure 6. Thermal deformation comparison before and after improvement where (a) is regarding i-th step iteration and (b) is regarding (i+1)-th step iteration.
Applsci 10 06860 g006
Figure 7. Depth convolution is used to extract multi-scale features of each layer with incremental h n 0.23, 0.42, and 0.73, where (a,d,g) are original LCM with 32 × 32 resolution ratio; (b,e,h) are, respectively, LCMs with 32 × 32 resolution ratio; (c,f,i) are multi-scale convolution feature with dimension of 5 × 5 convolution kernel W .
Figure 7. Depth convolution is used to extract multi-scale features of each layer with incremental h n 0.23, 0.42, and 0.73, where (a,d,g) are original LCM with 32 × 32 resolution ratio; (b,e,h) are, respectively, LCMs with 32 × 32 resolution ratio; (c,f,i) are multi-scale convolution feature with dimension of 5 × 5 convolution kernel W .
Applsci 10 06860 g007
Figure 8. Pareto Optimal Solutions (POS) using Convolutional Generative Adversarial Network (CGAN). (a) is before optimization and (b) is after optimization.
Figure 8. Pareto Optimal Solutions (POS) using Convolutional Generative Adversarial Network (CGAN). (a) is before optimization and (b) is after optimization.
Applsci 10 06860 g008
Figure 9. Binocular stereo vision laser scanner for 3D reconstruction of printed objects.
Figure 9. Binocular stereo vision laser scanner for 3D reconstruction of printed objects.
Applsci 10 06860 g009
Figure 10. Virtual printing using Digital Twins considering manufacturing error where (a) is regarding uniform slicing; (b) is regarding adaptive slicing.
Figure 10. Virtual printing using Digital Twins considering manufacturing error where (a) is regarding uniform slicing; (b) is regarding adaptive slicing.
Applsci 10 06860 g010
Figure 11. Comparison before and after optimization of human knee femur where (a) is regarding cusp height and (b) is the surface profile error regarding number of training iterations of CGAN.
Figure 11. Comparison before and after optimization of human knee femur where (a) is regarding cusp height and (b) is the surface profile error regarding number of training iterations of CGAN.
Applsci 10 06860 g011
Table 1. Results comparison for various layer amounts.
Table 1. Results comparison for various layer amounts.
Performance ParametersBefore OptimizationAfter OptimizationRatio
Max   ( δ ) 2.075594e-022.695928e-0229.89%
Min ( δ )4.795815e-030−100.00%
Max   ( s e r r o r ) 2.605556e-062.020809e-06−22.44%
Min ( s e r r o r )2.390000e-061.670376e-06−30.11%

Share and Cite

MDPI and ACS Style

Xu, J.; Wang, K.; Zhang, S.; Yi, G.; Tan, J.; Luo, S.; Pang, J. Thermal Deformation Defect Prediction for Layered Printing Using Convolutional Generative Adversarial Network. Appl. Sci. 2020, 10, 6860. https://doi.org/10.3390/app10196860

AMA Style

Xu J, Wang K, Zhang S, Yi G, Tan J, Luo S, Pang J. Thermal Deformation Defect Prediction for Layered Printing Using Convolutional Generative Adversarial Network. Applied Sciences. 2020; 10(19):6860. https://doi.org/10.3390/app10196860

Chicago/Turabian Style

Xu, Jinghua, Kang Wang, Shuyou Zhang, Guodong Yi, Jianrong Tan, Sheng Luo, and Jihong Pang. 2020. "Thermal Deformation Defect Prediction for Layered Printing Using Convolutional Generative Adversarial Network" Applied Sciences 10, no. 19: 6860. https://doi.org/10.3390/app10196860

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop