Volume 23, Issue 4 e202300265
RESEARCH ARTICLE
Open Access

Modeling of additive manufacturing processes with time-dependent material properties using physics-informed neural networks

Virama Ekanayaka

Corresponding Author

Virama Ekanayaka

Technische UniversitÄt Braunschweig, Institute of Machine Tools and Production Technology, Braunschweig, Germany

Correspondence

Virama Ekanayaka, Technische Universität Braunschweig, Institute of Machine Tools and Production Technology, Langer Kamp 19b, 38106, Braunschweig, Germany.

Email: [email protected]

Search for more papers by this author
André Hürkamp

André Hürkamp

Technische UniversitÄt Braunschweig, Institute of Machine Tools and Production Technology, Braunschweig, Germany

Search for more papers by this author
First published: 09 October 2023

Abstract

Recently, physics-informed neural networks (PINNs) have been effectively utilized in a wide range of problems within the domains of applied mathematics and engineering. In PINNs, the governing physical equations are directly incorporated into the loss function of the network and a conventional labeled dataset is not required for its training. In order to successfully simulate the additive manufacturing processes with concrete, a novel process-based FE-simulation has been developed where the Drucker–Prager plasticity model is used as the material model. In this work, we will examine the deployment of a PINN to substitute the Newton–Raphson iterations that occur in the return-mapping algorithm of the Drucker–Prager plasticity model.

1 INTRODUCTION

The feasibility of additive manufacturing, also known as 3D printing, has been successfully showcased in the construction industry, owing to its ability to eliminate the need for large formworks typically used in traditional casting processes [1, 2]. With 3D printing, components can be directly constructed layer by layer, eliminating the need for preexisting molds or subsequent subtraction or forming processes. However, the time-dependent material properties of concrete pose limitations that must be addressed to fully leverage the potential of 3D printing in construction. Concrete exhibits a significantly longer curing time compared to plastics, and although curing accelerators can shorten this time, the material's rheology remains measurable for several minutes [3]. Consequently, the buildability of components is constrained, as elastic and plastic deformation can lead to structural collapse when printed layers are unable to support their own weight and the weight of subsequent layers [4].

To systematically examine the deformations occurring during the printing process, a novel path and process-based finite element simulation has been developed [5]. This simulation incorporates time stamps assigned to the mesh elements, allowing for the numerical implementation of the time-dependent material behavior [6, 7]. Physics-informed neural networks (PINNs) have emerged as a powerful tool in applied mathematics and engineering [8, 9], finding successful applications across a diverse range of problems in recent years [10]. In this contribution, we will examine the utility of PINNs to speed up the finite element simulation. Numerical iterations, which slow down the FE-simulation, occur at two different stages. The equilibrium equation
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0001(1)
is iteratively solved using the Newton–Raphson method, and subsequently, during the material model stage of the simulation, the plastic multiplier is also calculated iteratively using the same method. To determine the plastic multiplier in the strain-softening Drucker–Prager plasticity model, the nonlinear consistency equation
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0002(2)
must be solved. It would be advantageous to replace the numerical iteration process with an approach that produces the output directly, and this is where neural networks can be used. In this study, the focus will be on substituting the solving of the nonlinear consistency equation by a PINN. This allows the elimination of multiple iterations when determining the plastic multiplier and a further advantage of PINN's is the omission of the conventional training dataset required by standard neural networks. In Section 2, the process-based finite element simulation and the Drucker–Prager plasticity model, which is used as the material model for fresh concrete will be introduced. In Section 3, the conventional method of iteratively solving the material model equations using the return mapping algorithm will be described. In the next section, an introduction to the methodology of PINN's and its implementation as a substitute for the return-mapping algorithm will be provided (Table 1).
TABLE 1. Material properties of concrete [4].
Density ρ [kg/mm3] urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0003
Young's modulus urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0004 [MPa], t [min] urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0005
Cohesion urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0006 [MPa], t [min] urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0007
Poisson's ratio v urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0008
Friction angle φ urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0009
Dilatancy angle ψ urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0010

2 PROCESS-BASED FINITE ELEMENT SIMULATION

In order to examine how the process parameters affect the geometry of the printed component, a finite element simulation based on the printing process was developed [5]. This simulation allowed for the direct construction of the printed geometry by utilizing the printing trajectory and process parameters. The cross-sectional shape of each printed layer can be approximated as a rectangle, with its width and height dependent on both the nozzle velocity and the distance to the printing surface, as illustrated in Figure 1.

Details are in the caption following the image
Mesh construction from printing path and process parameters. (A) 2D Mesh @Photo credits: match, Leibniz Universität Hannover. (B) 3D Mesh construction. (C) Printing trajectory and generated 3D mesh.

The description of the printed component's geometry is represented by its mesh. To convert the quasi 2D nodes of each cross section from the local coordinate system (depicted in green), a coordinate transformation is required. This transformation is performed by a rotational matrix Q and determines the mapping of the nodes into the global coordinate system (shown in black).

The global 3D connectivity matrix is formed by combining two successive quasi 2D meshes, resulting in eight nodes per 3D element. To determine the time stamp of each element, a sequential loop is employed. The time stamp of the next element urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0011 is computed by considering the previous timestamp urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0012, and the speed of the nozzle urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0013. To conveniently incorporate additional layers, the z-coordinate of all nodes from the preceding layer can be adjusted by the designated layer height urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0014. The complete geometry construction and implementation of this process-based FE-simulation has been provided in previous work [5].

The second aspect of the finite element simulation involves the utilization of the Drucker–Prager plasticity model to depict the material behavior of fresh concrete. This material model is employed to determine whether plastic deformation has occurred for a given stress state. The finite element analysis is conducted in discrete time increments, employing an implicit analysis methodology within a Newton–Raphson iteration loop. At each time step, the simulation focuses on the active elements within the mesh, which correspond to the portion of the mesh that has been printed up to that specific time step. The external forces acting on the structure (e.g., weight force due to gravity) denoted as urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0015, as well as the internal forces urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0016 arising from pre-existing internal stresses, are computed for each time step. Then the standard system of equations (equilibrium equation) is solved,
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0017(3)
where K is the global stiffness matrix and urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0018 is the displacement increment. Once the actual displacements have been computed, the return-mapping algorithm is employed to ascertain the resulting stresses. In the first step of this algorithm, the computed displacement increment urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0019 is utilized to determine the corresponding incremental total strain urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0020. Initially, the assumption is made that this strain is purely elastic, and the corresponding stress prediction can be calculated using the elastic law,
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0021(4)
where urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0022 is the elasticity matrix , urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0023 and urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0024 refer the elastic and plastic strain, respectively. When the predicted stress falls within the cone (Figure 2B), the true stress corresponds to the predicted stress, and the state variables can be updated accordingly. However, if the predicted stress lies outside the surface of the cone, plastic yielding has taken place, and the predicted stress needs to be mapped onto the yield surface. In the case of the associative Drucker–Prager model, the yield flow, indicating the direction of plastic strain, is perpendicular to the yield surface. However, in the nonassociative case, the direction of yield flow is not strictly perpendicular to the yield surface.
Details are in the caption following the image
FE-simulation and yield surface of material model. (A) Simulation of a curved wall section. (B) Drucker–Prager yield surface.

3 RETURN MAPPING ALGORITHM

The Drucker–Prager yield surface shown in Figure 2 is defined by the yield function
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0025(5)
where urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0026 is the hydrostatic pressure and c is the cohesion. The selection of the constants ξ and η is determined based on the desired approximation (outer-edges, inner-edges, associative, nonassociative). The cohesion value urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0027 depends on the accumulated plastic strain urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0028 due to strain-softening and on the elapsed time t due to the time-hardening nature of fresh concrete. For perfectly plastic materials, c is independent of the accumulated plastic strain urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0029 and, for linear hardening models, the hardening function reads urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0030, where H denotes the hardening modulus. In such cases, the return mapping equations shown in the algorithm [11] will be linear and urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0031 can be directly computed in closed form. In the current study, a nonlinear strain softening model with exponential strain decay will be investigated, where the cohesion
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0032(6)
has a time-dependent term c0 as well an exponential decaying term depending on the accumulated plastic strain urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0033. The coefficient urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0034 and the following experimentally determined material properties were used in the study (Algorithm 1).

Algorithm 1. Return mapping algorithm.

Set initial guess for urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0035 and calculate yield function value urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0036
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0037, urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0038
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0039
while urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0040 do
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0041 (Hardening slope)
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0042 (Residual derivative)
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0043 (New guess for urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0044 )
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0045
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0046
end while
Update variables
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0047
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0048

For nonlinear strain softening models, urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0049 cannot be directly computed and must be calculated iteratively using the Newton–Raphson method. An initial guess for the plastic multiplier urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0050 is made and the accumulated plastic strain in the current step is assumed to equal the accumulated plastic strain from the previous step urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0051. The accumulated plastic strain urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0052 and elapsed time t is used to calculated the current value of cohesion urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0053, which will subsequently determine the yield function value urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0054. If the value urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0055 exceeds a specified tolerance urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0056, the predicted stress state lies ouside the Drucker–Prager cone and return mapping needs to be performed. This is done iteratively using the following steps, where, first, the hardening slope
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0057(7)
is computed for the given value of accumulated plastic strain urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0058. Next, the residual derivative is computed and used to update the guess value for urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0059. To calculate the residual derivative, the shear modulus G and bulk modulus K are required, which are values derived from the material properties. Finally, the urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0060 is recalculated to determine the new yield function value urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0061 and the procedure is repeated till the value of urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0062 is less than the specified tolerance urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0063.

4 IMPLEMENTATION OF THE PHYSICS INFORMED NEURAL NETWORK PINN

A PINN will be implemented in order to eliminate the iterative process and instead directly determine the plastic multiplier urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0064.

Figure 3A illustrates the working principle of a single neuron and is a graphical representation of a simple mathematical operation. Here, the three inputs to the neuron urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0065 are multiplied, respectively, by weights urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0066 and a so called bias b is added to the summation. The output of the summation is passed as input into a nonlinear activation function (tanh  function), and the resulting value is the output urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0067 of that specific neuron.

Details are in the caption following the image
Network architecture of PINN. (A) Single neuron. (B) Feed foward neural network.

A feed forward neural network is composed of many such neurons and has the capability to approximate any given function, given that an adequate number of layers and neurons are employed as proved by the universal approximation theorem [12]. In order to accurately approximate the function, the weights and biases of the network must be adjusted during the training process. The key distinction between a standard neural network and a PINN resides in the training procedure and the training dataset. In the supervised training process of a standard neural network, labels are required, which are then compared to the predicted output. The mean square error (MSE) between the two is calculated, and the neural network parameters θ (weights and biases) are adjusted during training to minimize this error. In contrast to the training of standard neural networks, PINNs do not require labels. Instead, the PINN is trained utilizing the underlying physical equation at the collation points. These collation points represent the points where the input dataset for the neural network is generated. Figure 4 illustrates the operational concept of the implemented PINN.

Details are in the caption following the image
Training process of the physics informed neural network.

Initially, an input dataset needs to be generated. To achieve this, a simulation of a curved wall section was performed (Figure 2A) using the implemented finite element simulation. During this simulation, values for urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0068 generated by the material model were recorded and saved. In the next step, the minimum and maximum values (recorded range) for each of the four parameters were identified. Using the Latin hypercube method, 100 000 combinations of these four parameters were generated within the recorded range. These combinations of parameters are referred to as the collocation points and the PINN will be trained at these points. It should be noted that a single simulation was sufficient to provide all the required data needed to train the PINN, which is a significant advantage over traditional neural networks.

After initialization of the network parameters using the HE initialzer [13], the output urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0069 of the network is predicted for a given input combination. This value of urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0070 is used to calculate the corresponding plastic strain increment urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0071 and value of cohesion c. These values, together with the input combination urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0072 and predicted plastic multiplier urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0073, are plugged into the consistency equation
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0074(8)
to obtain the output f. If the network parameters were accurate, the output f would be zero, however this is not the case for an untrained network. Therefore, the MSE between the output f value and zero is calculated and the network parameters θ are trained to minimize this error. The implementation was performed in Matlab with a network architecture of three hidden layers and five neurons per layer. The tanhyperbolic activation function was used and the network was trained for 1000 epochs using the adaptive moment estimation (Adam) algorithm.

5 PERFORMANCE OF THE PHYSICS INFORMED NEURAL NETWORK PINN

In Figure 5A, it can be observed that the loss function of the neural network quickly converges. After training of the PINN, the combinations of urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0075 saved during the simulation were tested on the PINN and the predicted value of the plastic multiplier urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0076 (shown in red) was compared with the iteratively calculated values (shown in blue).

Details are in the caption following the image
Convergence and performance of PINN. (A) Loss function convergence. (B) Comparison of urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0077 values obtained iteratively versus with PINN.
The data points contain the combinations of the four parameters and were arranged in the ascending order of the resulting value of the plastic multiplier urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0078. The results show an excellent match between the two approaches (numerical urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0079 vs. PINN urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0080) and has an average percentage difference urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0081 of 5.63%
urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0082(9)
where i iterates through all the data points from 1 to n. This sufficiently demonstrates the effectiveness of the implemented PINN as a substitute for the iterative process. The determination of whether it is computationally advantageous to utilize a PINN instead of the iterative process, depends on the actual material model (power law decay, exponential decay, etc.) being analyzed and the number of iterations it takes for the value of the plastic multiplier urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0083 to converge. Then the cost for the numerical iterations can be compared with the cost of the neural network, to determine which material models are suited to be replaced with PINNs.

6 CONCLUSION AND OUTLOOK

In this work, the Drucker–Prager plasticity model with exponential srain-softening was used as a material model for fresh concrete in AM build-up simulations. In addition to the strain softening caused by the accumulated plastic strain urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0084, the material values were time-dependant. In FE-simulations, the governing equations of such material models are iteratively solved using the Newton–Raphson method within the return-mapping algorithm. In this work, it was successfully demonstrated that a PINN could be used to substitute the numerical iterations that take place, thereby directly determining the plastic multiplier (urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0085). The average percentage difference between the numerically determined value and through the PINN determined value was 5.13%. In future work, this method can be extended to include the apex-treatment of the return mapping algorithm, where a further iteration process takes place. Additionally, hyperbolic urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0086 and power law urn:x-wiley:16177061:media:pamm202300265:pamm202300265-math-0087 strain-softening models can be analyzed and solved with PINNs. The choice of the optimal material model depends on the particular concrete type and admixture being used, and it can be determined by fitting the model parameters to experimental data.

ACKNOWLEDGMENTS

The authors gratefully acknowledge the funding by the Deutsche Forschungsgemeinschaft (DFG—German Research Foundation)—Project no. 414265976. The authors would like to thank the DFG for the support within the SFB/Transregio 277—Additive manufacturing in construction (Subproject B04).

Open access funding enabled and organized by Projekt DEAL.

      The full text of this article hosted at iucr.org is unavailable due to technical difficulties.