1. Introduction
Solid mechanics can be described as a field within applied mechanics concerned with analyzing how solid objects respond to different types of forces. It explores how materials behave under various loading conditions, offering insights into their structural integrity and performance [
1]. Mechanical problems are represented using a variety of differential equations, which take different forms depending on the nature of the problem.
In recent years, computational solid mechanics has emerged as a discipline that uses numerical techniques to solve complex differential equations [
2]. Solving these problems analytically is challenging and time-consuming because of the intricate equations and irregular problem domains. Over the years, various numerical techniques have been developed, such as the finite element method (FEM) [
3], finite difference method (FDM) [
4], element-free Galerkin method [
5], and mesh-free methods [
6]. Among these methods, FEM is the most widely used numerical method to solve problems in the area of solid mechanics. In numerous cases, the problem to be solved is extensive, resulting in simulation time ranging from hours to days or even weeks. This incurs a high computational cost. If there is a requirement to change the parameter, the complete analysis must be done again from scratch, which is quite time-consuming [
7,
8].
Over the past few years, Artificial neural networks (ANNs) have demonstrated remarkable performance in various fields such as image classification [
9], time series forecasting [
10], predictive analytics [
11], genomics [
12] and natural language processing [
13], owing to their capacity to grasp intricate patterns and relationships from data. Artificial neural networks (ANNs) can incorporate multiple hidden layers containing neurons, granting them robust learning capabilities. This feature enables ANNs to offer an alternative method for addressing mechanics problems, diverging from conventional numerical solvers. Artificial neural networks (ANNs) have proven effective in addressing a range of challenges in fluid mechanics [
14,
15], fracture mechanics [
16], and solid mechanics [
17]. Nonetheless, their performance tends to be strongest when abundant data is available. In mechanics problems, data can be scarce, and ANNs do not incorporate the underlying physical laws of the engineering problem, resulting in reduced prediction accuracy [
8,
18]. So, the challenges associated with artificial neural networks (ANNs) motivate us to explore new ideas and methods.
One such approach widely accepted in the scientific community is a deep learning-based method known as Physics-Informed Neural Networks (PINNs) introduced by Raissi et al. [
19]. PINNs represent a highly effective method for addressing problems governed by partial differential equations (PDEs). These networks are designed to directly integrate physical laws or constraints into their structure, enabling them to simulate and accurately model complex systems. The foundational component of the Physics-Informed Neural Network (PINN) framework is a Multi-Layer Artificial Neural Network that is enhanced with a physics-informed loss function. This innovative loss function integrates governing differential equations, boundary conditions, initial conditions, and any available data to determine the total loss accurately. The sole distinction between an Artificial Neural Network (ANN) and a Physics-Informed Neural Network (PINN) lies in how the loss function is implemented and calculated [
20]. Artificial neural networks (ANNs) rely solely on data for learning, whereas Physics-Informed Neural Networks (PINNs) incorporate the governing equations as pre-existing knowledge [
21]. PINNs can be effective in scenarios where labeled data is sparse because they utilize both the existing data as well as the inherent physical principles described in equations. Compared to ANNs, PINNs require less data. PINNs differ from traditional numerical methods like the Finite Difference method and finite element because they are not mesh-based. Instead, they are a mesh-free method, which allows them to handle irregular and complex geometries [
19,
22].
In their seminal work, Raissi et al. [
19] tackled two distinct problem sets: data-driven solution and data-driven discovery within the realm of partial differential equations. Under the data-driven solution framework, they addressed the Schrodinger Equation and the Allen-Cahn equation. Meanwhile, within the data-driven discovery approach, they delved into the Navier-Stokes Equation and the Korteweg–de Vries equation. After their introduction, PINNs are used in solving various other PDEs [
23,
24,
25]. PINNs can be used for solving supervised learning problems [
26] as well as unsupervised learning tasks [
27]. They can also be employed for both forward and inverse problems [
28]. Due to their ability to incorporate the governing equations of the problems, PINNs are used in various fields such as fluid mechanics [
29], heat transfer [
30], healthcare [
31], finance [
32] and solid mechanics [
33]. Several research studies have been carried out on implementing PINNs so far. In one of the studies, Haghighat et al.(2021) [
33] created a PINN structure to anticipate the field variables (such as displacement and stress) associated with linear elastic and non-linear problems. In their study, Rao et al.(2021) [
34] applied enforced initial and boundary conditions to simulate static and dynamic problems using a PINN model, which gives mixed-variable output. One of the works done by J.Bai et al.(2022) [
35] proposed the LSWR loss function for PINNs, which uses the Least Squares Weighted Residual (LSWR) method, solved 2D and 3D solid mechanics problem and showed that the performance of PINN based on LSWR loss function is much effective and accurate compared to PINNs utilizing either Collocation or energy-based loss functions. In the study by J.bai et al.(2023), [
36], the focus was on programming methods in executing governing equations. They solved the 1, 2, and 3 dimensions problems by employing collocation-based and energy-based loss functions, demonstrating the effectiveness of PINN-based Computational Solid Mechanics. Abueidda et al.(2022) [
37] applied PINNs to solve 3-dimensional Hyperelastic problems. The work by Kapoor et al.(2023) [
38] used PINNs to simulate complex beam systems, solving both forward and inverse problems. Also, Verma et al. (2024) [
39] use PINNs to simulate the behavior of a cantilever beam subjected to a uniform loading. There is a resonable amount of work that shows PINNs are effective in solving PDEs.
In our study, we analyze the mechanical characteristics(such as deflection, etc.) of a helicopter blade treated as a prismatic(constant
) cantilever beam subjected to triangular loading. When a lateral force is applied over a beam, the beam’s longitudinal axis undergoes deformation, resulting in a curvature known as the deflection curve [
1]. Understanding these mechanical behaviors is essential in designing helicopter blades, ensuring optimal flight performance and safety. This research is dedicated to investigating the capabilities of Physics-Informed Neural Networks (PINNs) within beam mechanics, emphasizing their applicability and significance in aerospace design and analysis.
The paper is organized as follows: Section 2 thoroughly explains the theory and architecture of ANNs and PINNs. Section 3 gives a brief overview of the problem to be solved and defines the governing equation, boundary conditions, and the formulation of the loss function for PINN. Section 4 presents a detailed exploration of the training process and a brief overview of the results obtained. Ultimately, the study is concluded in Section 5.
4. Results and Discussion
We considered a 1D cantilever beam of length,
L=1m, subjected to a maximum load at point A,
N as shown in
Figure 3. For the simplification of the problem, we assume the value of Young’s modulus,
, and Moment of Inertia,
.
In this study, we analyzed 51 collocation points spaced at intervals of 0.02 meters along the length of the beam as shown in
Figure 4. At the boundary points, we selected two positions: one at the fixed end (
) and another at the free end (
) as shown in
Figure 4. Thus, we have
and
, with collocation points
ranging from 0 to 1 with increments of 0.02 and the boundary points
.
We trained the PINN model for 300 epochs at a learning rate of
, employing ADAM [
46] as the optimizer. The model consists of an architecture with 1 input layer, 5 hidden layers, and 1 output layer, each hidden layer containing 50 neurons. For the activation function, we implemented the tanh function [
47] as shown in Equation (42).
We also trained an Artificial Neural Network (ANN) with an identical network architecture for comparison purposes. This includes the same number of epochs, learning rate, optimizer and the tanh activation function, allowing for a direct comparison between the PINN model and the ANN. Both the models were developed from scratch using PyTorch [
48] version 2.2.1. We have summarized all the details of our models in
Table 1.
The ANN model underwent training using the configuration outlined in Table 1. Upon completion of 300 epochs of training, a loss curve for the model was generated, visually represented in
Figure 1. This curve serves as a valuable tool for assessing the model’s convergence and performance throughout the training process.
Also, after training the PINN model for 300 epochs, we acquired the loss curve, depicted in
Figure 5. This graph illustrates the convergence of various components, including PDE loss, Boundary loss, data loss, and the overall Total Loss.
Upon completing its training, the PINN model can accurately predict/approximate the deflection, slope, bending moment, and shear force along the length of a beam as shown in
Figure 6 and
Figure 7. This detailed analysis enables a precise evaluation of the beam’s mechanical response.
Also, we have calculated the Mean Squared Error (MSE) values between the predicted and the exact solution for both the models as shown in the
Table 2. It is calculated as the average of the squared as errors as shown in equation Equation (43). It serves as a metric to evaluate the precision of a predictive model.
where
n is the number of data points,
is the predicted value and
is the actual/exact solution. A lower MSE value signifies enhanced performance, denoting that the predictions generated by the model are in closer approximation to the exact values.
As observed from
Table 2, it is evident that the PINN model exhibits superior performance in approximating the solution of the differential equation when compared to the ANN model. Now, we delve into the outcomes achieved, presenting a comparative analysis of the results derived from PINN and ANN. This comparison is visually represented in
Figure 6 and
Figure 7.
As illustrated in
Figure 6, the deflection curve predicted by the PINN overlaps with the exact deflection curve(obtained from the exact deflection equation, Equation (27)), demonstrating a high degree of accuracy. Conversely, the deflection curve derived from the ANN exhibits a noticeable deviation from the exact solution. In our method, we are giving the data points (i.e., collocation points generated along the length of the beam) as input to the neural network in both models, which tries to map a function between the data points and the deflection over the beam, but the difference arises in the implementation of the loss function. In PINNs, we include scientific or physical principles with the fitting of available data within the loss function framework, thereby ensuring a more holistic model. Conversely, in ANN, the loss function’s formulation is exclusively based on empirical data without integrating physical laws or constraints. The differential equation for deflection(Equation (14)) of the cantilever beam is of the fourth order, which we are approximating through PINNs and ANN. Additionally, the loss curve for both models, as depicted in
Figure 5 and
Figure 8, demonstrates good convergence. However, the complex nature of the governing equation, with its high order and non-linearity, poses challenges for the ANN model in accurately approximating the solution. As a result, the model exhibits a deviation from the exact deflection curve.
Additionally, we have also predicted the slope, bending moment, and shear force experienced by the beam along its length under triangular loading. The comparative analysis among the curves representing the exact solution, PINN solution, and the solution obtained through ANN is illustrated in
Figure 7. As observed in
Figure 7, the solution derived from the PINN perfectly matches the exact solution. Conversely, the solution obtained through ANN exhibits significant deviations. The calculation of slope, bending moment, and shear force is achieved through the differentiation of the output provided by the neural network in both models.
The slope is calculated as the first derivative of the deflection equation (Equation (27)). In
Figure 7a, the PINN solution aligns with the exact solution, while the ANN solution does not achieve this level of accuracy. We aim to establish a function that maps the data points to the deflection of the curve using both PINN and ANN models. The output from the neural networks of both models is differentiated for the first time to determine the slope of the cantilever beam. But the result from the PINN model is significantly better than the ANN models.
The bending moment of the cantilever beam is determined by taking the second derivative of the deflection equation (Equation (27)). The comparison in
Figure 7b shows that the PINN solution closely aligns with the exact solution, while the ANN solution does not. Here, the output from the neural network of both models is differentiated two times to get the bending moment of the cantilever beam under triangular loading. But, the PINN solution demonstrates superior performance compared to the ANN solution.
By taking the third derivative of the bending equation (Equation (27)), we can determine the shear force in the cantilever beam under triangular loading. As shown in
Figure 7c, the PINN solution closely matches the exact solution, while the predicted solution by the ANN does not. Here also, the output from the neural network of both models is differentiated three times, which gives us the shear force. Once again, the predicted solution from the PINN model outperforms the ANN solution.
From the above results in predicting deflection, slope, bending moment and shear force it is clear that the PINN apporoch performs much better as compared to the ANNs because PINNs incorporate physical constraints into their loss function, giving them an advantage over conventional ANNs. Unlike PINNs, ANNs depend exclusively on the dataset provided and thus encounter challenges in accurately predicting the solution.
The predicted solution given by the ANN model, in comparison to the deflection curve(
Figure 6), deviated less as compared to the slope curve, bending moment curve, and shear force curve(
Figure 7). The deviation in the deflection curve is less because we are directly mapping a function between the data points(as input) and deflection(i.e., exact solution) over the length of the beam(as output) in ANN. However, there are still errors in predicting the deflection curve, and the ANN model fails to accurately predict the deflection due to the complex and non-linear nature of the equation. When differentiating the ANN’s output(i.e., predicted deflection) to calculate the slope, bending moment, and shear force, any initial errors in the predicted deflection are amplified. This amplification occurs because differentiation inherently magnifies errors with increasing order of derivative. This means that as the order of the derivative increases, the error also increases, posing a challenge for accurate prediction of slope(first order), bending moment(second order), and shear force(third order), as illustrated in
Table 2. Moreover, the lack of physical information(such as boundary condition and differential equation) in the ANN’s loss function adds to the compounded inaccuracies in these derived quantities. However, with PINN, such issues do not occur. The PINN model accurately predicts deflection, slope, bending moment, and shear force. Thus, PINNs provide a solid and effective framework for solving computational mechanics problems governed by differential equations.
5. Conclusions
In this study, we have demonstrated the application of Physics-informed neural networks (PINNs) to computational mechanics problem, particularly with application in aerospace sector. We considered the helicopter blade as a cantilever beam subjected to triangular loading. We employ PINN to approximate or predict the deflection of the cantilever beam. Additionally, we leverage PINNs to estimate the corresponding slope, bending moment, and shear force, providing a comprehensive analysis of the beam’s mechanical behavior. We have successfully trained a PINN model and, for comparison, have also trained an ANN model using identical parameters.The outcomes derived from the PINN model demonstrate a high degree of accuracy, as the predicted solution aligns precisely with the exact or analytical solution. Conversely, the solution predicted by the ANN model exhibits a noticeable deviation from the exact solution. The results obtained from PINNs achieved very low MSE values as compared to the ANN results. This comparative analysis highlights the improved effectiveness of the PINN framework in capturing the fundamental physical principles that govern the differential equation, resulting in more precise and dependable approximations.
It can be concluded that Physics-Informed Neural Networks (PINNs) offer an efficient and precise approach for solving computational mechanics challenges, with significant applications in the aerospace sector. In the field of aerospace engineering, the simulation of systems operating under complex conditions through conventional solvers incurs significant computational expenses. As an alternative, Physics-Informed Neural Networks (PINNs) offer solutions that are not only more accurate but also markedly more efficient and robust.
For future work, we plan to extend the application of PINNs to solve a broader range of computational mechanics problems within the aerospace sector. This will include tackling more complex geometries, and incorporating dynamic loading conditions. Overall, our findings underscore the transformative potential of PINNs in aerospace applications, paving the way for more efficient and accurate simulations that can significantly advance the field.