Professional Documents
Culture Documents
s00366 023 01799 7
s00366 023 01799 7
https://doi.org/10.1007/s00366-023-01799-7
ORIGINAL ARTICLE
Abstract
This study investigates the application of physics-informed neural networks (PINN) for bending and free vibration analysis of
three-dimensional functionally graded (TDFG) porous beams. The beam material properties are assumed to vary continuously
in three dimensions according to an arbitrary function. The governing equations of motion are obtained using Hamilton's
principle and solved by a PINN computational approach. The beam deflection is approximated with a deep feedforward
neural network which its input is the spatial coordinate. The network parameters are trained by minimizing a loss function
comprised of the governing differential equation and the boundary conditions. The beam natural frequency is considered as
an unknown parameter in the governing equation; thus, it has to be obtained by solving an inverse problem. This procedure
makes it possible to find higher modes’ natural frequencies, which is impossible according to the previous PINN methods.
A systematic procedure for tuning the network's hyperparameters is done based on the Taguchi design of the experiment
and the grey relational analysis. The PINN results are validated with analytical and numerical reference solutions. Effects
of material distribution, elastic foundation and porosity factor, and porosity distribution type on the bending behavior and
natural frequencies of TDFG beams are investigated.
Keywords Physics-informed neural network · Free vibration analysis · Three-dimensional functionally graded material ·
Porous beam
13
Vol.:(0123456789)
Engineering with Computers
Recently, mechanical behavior of FG beams with material are called Physics-Informed Neural Networks (PINN) [30,
properties varying in three dimensions, i.e., TDFG beams, 31]. In PINN, solution of governing equation which is either
has received the researcher's attention. For example, Hadi ordinary differential equation (ODE) or partial differential
et al. [12] studied free vibration analysis of TDFG nano- equation (PDE), is approximated by a neural network. The
beams. They extracted the governing equation based on network parameters are obtained by minimizing a loss
the Euler–Bernoulli, and nonlocal-strain gradient theories. function that includes the governing equation and the cor-
They used the generalized differential quadrature method responding boundary and initial conditions. Until now, the
(GDQM) to solve the governing equations. Tang et al. [13] PINN has been successfully employed for the solution of
studied the large amplitude free vibration and buckling of different well-known PDEs and ODEs such as Burger's equa-
TDFG beams. They have combined the GDQM with an tion, Korteweg–de Vries equation, Navier–Stokes equation
iterative method to solve the governing equations. [30], Cahn–Hilliard and Allen–Cahn equation [32], and dif-
Moreover, porosity is an unavoidable factor that appears fusion equation [29]. Successful implementation of PINN in
during the manufacturing process and remarkably affects the fields like fluid dynamics and mass and heat transfer has
the mechanical properties of FG structures. Hence, the attracted researchers from other engineering fields such as
importance of porosity on the behavior of FG beams has solid and structural mechanics. For instance, Haghighat et al.
taken researchers' attention; for instance, Zghal et al. [14] [33] employed PINN to solve two-dimensional linear elastic-
presented the effect of even and uneven porosity on bending ity problems. Their results show a good agreement with the
static analysis of FG porous beams. They concluded that finite element solutions. Wu et al. [34] employed PINN to
the porosity parameter is a decisive factor that must be con- solve the elastoplasticity problem in a heterogeneous media
sidered when producing a new structure. Additionally, they subjected to random cyclic and non-proportional loading
mentioned that the volume fraction of porosity is another paths. Nguyen-Thanh et al. [35] employed PINN for large
effective parameter on the behavior and proficiency of FG deformation analysis of hyperelastic materials. Samaniego
porous beams. Some studies in the literature considered the et al. [36] combined the PINN and energy approach for solv-
effect of porosity on the mechanical behavior of one-dimen- ing governing PDEs in solid mechanics. Zhuang et al. [37]
sional or two-dimensional FG beams, for instance [15, 16]. also employed the energy-based PINN method for bending,
However, with the authors' best knowledge, there is no study vibration, and buckling analysis of Kirchhoff plates. Li et al.
in the literature about the mechanical behavior of TDFG [38] employed PINN for bending and buckling analysis of
beams considering the porosity effects. Kirchhoff plates. They compared the PDE-based and energy-
It is worth mentioning that it is not easy, if not impossi- based loss functions. Their result showed that PINN is appli-
ble, to find a closed-form solution for the governing equation cable for the solution of higher order ODEs and PDEs that
of motion of TDFG porous beam because they are differen- governs structural elements like beams and plates and the
tial equation with variable coefficients. Thus, the application PINN predictions were in good agreement with FE results.
of different numerical techniques such as GDQM [17], finite They also concluded that the energy-based loss function has
difference method [18], and finite element method [19] is advantage in terms of the simplicity of hyperparameter tun-
mandatory for the solution of TDFG governing equations. ing and computational efficiency. However, the approaches
On the other hand, in recent years, neural networks proposed by Zhuang et al. [37] and Li et. al. [38] can only
and especially deep learning have played an essential role predict the fundamental natural frequency and first critical
in numerous applications, such as image processing [20], buckling load and it is not possible to find the higher modes
agriculture [21], drug discovery [22], civil engineering frequencies and buckling loads using these methods. This is
[23], natural language processing [24]. In recent years, neu- a critical disadvantage for these methods which decreases
ral networks have been used in different fields of engineer- their applicability for free vibration and buckling analysis.
ing such as material science [25], fluid mechanics [26], and Besides that, the differential equation solved in these studies
fault detection and condition monitoring [27, 28]. In the was linear ODEs/PDEs with constant variable.
mentioned studies, a data-driven approach is used, which In this study, the bending and free vibration analysis of the
means that the model parameters are trained by minimiz- TDFG porous beams resting on a Winkler-Pasternak founda-
ing the norm of deviation of the network prediction from tion is performed using the physics-informed neural network.
the available true data (training data) [29, 30]. Although The governing equation, which is a variable coefficient ODE
the data-driven approach showed an outstanding perfor- and the corresponding boundary conditions are obtained using
mance in the different problems in the field of engineering, Hamilton's principle. Then, the beam deflection is approxi-
it does not consider the underlying physics of the problem, mated with a deep feedforward neural network. The network
and it needs a large enough database as training data. Most parameters are trained by minimizing a loss function com-
recently, a class of neural networks that can consider the prised of the governing ODE and the boundary conditions. For
underlying physics of the problem was introduced which the first time in this study, a systematic procedure for tuning
13
Engineering with Computers
[ ) n2 ]
the network hyperparameter is presented. To do that, Taguchi's (
2z + h
)n2 (
2z + h
design of the experiment method is combined with the GRA 𝛾P (z) = PC + PM 1− , (4)
2h 2h
to find the optimum hyperparameter of neural network. The
PINN predictions are compared and validated with available where 𝛽 , n1 and n2 denotes the FG index in the axial and
analytical or numerical solutions. To this end, convergence transverse directions, respectively. PM and PC stands for
and accuracy of PINN prediction for deflection and natural material properties of metal and ceramic phases, respec-
frequencies of TDFG porous beam with different boundary tively, and 𝜃 is also a model constant [12]. In order to
conditions are investigated. In the presented approach, the consider the porosity effects on the FG beam material prop-
beam's natural frequency is considered an unknown variable erties, the Eq. (4) needs be modified as [39]:
to be determined by solving an inverse problem. Results show ( ) [ ( ) ]
present PINN approach can predict both fundamental and 2z + h n2 2z + h n2
𝛾P (z) = PC + PM 1 − − Ppor (z),
higher natural frequencies and vibration mode shapes which 2h 2h
is not possible using the methods proposed in previous studies. (5)
Then, the effects of material distribution, porosity level, and where Ppor (z) is function that describe how the porosity is
distribution on the TDFG porous beam deflection and natural distributed in the TDFG beam. There are some possible dis-
frequencies are presented. tribution patterns for the porosity inside the beam as [39,
40]:
2 Governing equations 𝛼( )
Uniformdistribution ∶ Ppor (z) =
2
Pm + Pc , (6.1)
Consider a straight TDFG porous beam with rectangular cross-
section defined in Cartesian coordinate with length in L in x 𝛼( )( z )
direction, width b in y direction, and thickness h in z direction X − shapeddistribution ∶ Ppor (z) =
2
Pm + Pc 2 ,
h
resting on a Winkler–Pasternak foundation as shown in Fig. 1. (6.2)
The material properties of the TDFG beam, i.e., Young's ( )
𝛼( ) |z|
modulus E(x, y, z) and density 𝜌(x, y, z) vary in three dimen- O − shapeddistribution ∶ Ppor (z) = P + Pc 1 − 2 ,
2 m h
sions, i.e., in x, y and z directions according to any arbitrary
(6.3)
function as:
𝛼(
(
) 1 z)
V − shapeddistribution ∶ Ppor (z) = Pm + Pc + ,
P(x, y, z) = 𝜇(x)𝜂(y)𝛾P (z), (1) 2 2 h
(6.4)
where P is the desired material properties and 𝜇(x), 𝜂(y) and
𝛼( ) ( 𝜋 ( z 1 ))
𝛾P (z) are arbitrary functions which are considered to be as u − shapeddistribution ∶ Ppor (z) = Pm + Pc cos − ,
2 2 h 2
[12]: (6.5)
𝛼( ) ( 𝜋 ( z 1 ))
𝜇(x) = e𝛽x , (2) n − shapeddistribution ∶ Ppor (z) = Pm + Pc cos + ,
2 2 h 2
[ (6.6)
(y ) n1 (y )n1 ]
1 1 where 𝛼 is the porosity factor. The governing equation of
𝜂(y) = + +𝜃 1− + , (3)
b 2 b 2 TDFG porous beam resting on an elastic foundation is
obtained as:
( )( )
𝜕2w d𝜇 𝜕 3 w 𝜕4 w 𝜕2w B211 d2 𝜇 𝜕 2 w d𝜇 𝜕 3 w 𝜕4w
I0 𝜇(x) 2 − I2 − I 2 𝜇(x) + Kw w + Kg − − D11 + 2 + 𝜇(x) = q, (7)
𝜕t dx 𝜕t2 𝜕x 𝜕t2 𝜕x2 𝜕x2 A11 dx2 𝜕x2 dx 𝜕x3 𝜕x4
where w and q are the beam deflection and the applied exter-
nal load, respectively. Moreover, A11 , B11 , D11 are the stiff-
ness coefficients and I0 , I2 are the inertia coefficients. All the
parameters definition and the governing equation derivation
process are explained in details in supplementary material. It
is worth mentioning that Eq. (7) is a linear differential equa-
tion with variable coefficients. There is no general closed-
form solution for this type of differential equation; thus, the
Fig. 1 The geometry of the beam on a Winkler–Pasternak foundation
13
Engineering with Computers
application of numerical techniques for the solution of this 3 Basic theory of physics‑informed neural
equation is mandatory. Moreover, Eq. (7) is obtained without network (PINN)
any assumption for 𝜇(x), 𝜂(y) and 𝛾P (z), thus it is valid for
any arbitrary function considered for material distribution In this section, the general procedure of PINN for the solu-
of the FG beam. However, in the continuation of the study, tion of differential equations will be explained. A general
the material properties are assumed to vary according to form of the time-independent differential equation on the
the Eqs. (2), (3) and (4), thus the governing equation can domain Ω ∈ Rd which governs a wide range of problems
be rewritten as: in mathematics and engineering, can be considered as:
( ) 3 ( ) [( )2 ( ) 3 ]
𝜕2 w 𝛽 𝜕 w 𝜕 4
w 𝜕 2
w B211 𝛽 𝜕2 w 𝛽 𝜕 w 𝜕4 w
(8)
𝛽 𝛽 𝛽 𝛽
x x x x
I0 e L − I2 e L − I2 e L + Kw w + K g 2 − − D11 e L +2 + 4 = q.
𝜕t2 L 𝜕x𝜕t2 𝜕x2 𝜕t2 𝜕x A11 L 𝜕x2 L 𝜕x3 𝜕x
( )
Substituting these nondimensionalized parameters in 𝜕u 𝜕u 𝜕 2 u 𝜕2 u
Eq. (8) leads to the dimensionless form of governing equa- f x;u, ,…, ; ,…, ; … ;𝜆 = 0, x ∈ Ω.
𝜕x1 𝜕xd 𝜕x1 𝜕x1 𝜕x1 𝜕xd
tion and boundary conditions as: (14)
( ) [( )2 2 ( ) 3 ]
𝜕2 w 𝜕3 w 𝜕4 w 𝜕2 w 2 b1 𝛽 𝜕 w 𝛽 𝜕 w 𝜕4 w
𝜆0 e 𝛽𝜁 2 𝛽𝜁
− 𝜆2 𝜂 𝛽e − 𝜆2 𝜂 e 2 𝛽𝜁
+ kg 2 − 𝜂 − d1 e𝛽𝜁
+2 + 4 + Kw w = q, (10)
𝜕t
2
𝜕𝜁𝜕t
2
𝜕𝜁 2 𝜕t
2 𝜕𝜁 a1 L 𝜕𝜁 2 L 𝜕𝜁 3 𝜕𝜁
for Clamped (C) end: in which u(x1 , x2 , … , xd ) and xi are the solution function and
( ) general spatial coordinates, respectively. Moreover, 𝜆 is an
( ) 𝜕w 𝜁b , t unknown parameter that can be calculated by solution of an
w 𝜁b , t = = 0;𝜁b = 0, 1, (11)
𝜕𝜁 inverse problem. The operator f is a general operator which
can be linear or nonlinear, and there is no restriction on the
for simply supported (S) end:
type of operator f . The boundary condition of the problem
( ) can be considered in general form as:
( ) 𝜕 2 w 𝜁b , t
w 𝜁b , t = = 0;𝜁b = 0, 1, (12) ( )
𝜕𝜁 2 𝜕u 𝜕u 𝜕 2 u 𝜕2 u
B x;u, ,…, ; ,…, ; … ;𝜆 = 0on𝜕Ω,
𝜕x1 𝜕xd 𝜕x1 𝜕x1 𝜕x1 𝜕xd
for free (F) end:
(15)
( ) ( )
𝜕 2 w 𝜁b , t 𝜕 3 w 𝜁b , t where B is a general operator and 𝜕Ω is the domain's
= = 0;𝜁b = 0, 1. (13)
𝜕𝜁 2 𝜕𝜁 3 boundary.
Based on the universal approximation theorem, a feedfor-
The TDFG beam boundary conditions are specified by ward neural network with one single hidden layer is enough
letter symbols, for example, CC means a beam clamped to approximate any continuous function [41]. For complex
(C) at 𝜁 = 0 and 𝜁 = 1 and CF means a beam with clamped and nonlinear functions, the number of neurons of that hid-
support at 𝜁 = 0 and free at 𝜁 = 1. den layer should be increased to capture the whole feature
13
Engineering with Computers
2
( ) 1 ∑ | ( 𝜕̂u )|
Lf xd ;W, b, 𝜆 = |f x ; , … , 𝜕̂u ; 𝜕2̂u , … , 𝜕2̂u ; … , 𝜆 | ,
|x | | |
| d | x∈xd |
d 𝜕x
1 𝜕xd 𝜕x1 𝜕x1 𝜕x1 𝜕xd
|
13
Engineering with Computers
13
Engineering with Computers
solution of differential equation in complex domain [53]. It should be mentioned that the analytical expressions for
More details about the DeepXDE package and how to imple- the shape modes of isotropic structures like beams, plates, and
ment the method can be found in [43]. shells with different boundary conditions can be found easily
For the bending analysis of TDFG beams, the inertial in the continuous vibration textbooks, for instance [54]. Thus,
terms in Eq. (10) should be neglected; thus, the governing it is possible to implement the proposed method for vibration
equation becomes as: analysis of different structures. Moreover, as it can be seen
( ) [( )2 2 ( ) 3 ]
b1 𝛽 𝜕 w 𝛽 𝜕 w 𝜕 4w 𝜕2 w −
−𝜂 2 − d1 e𝛽𝜁 + 2 + + Kw w + kg =q. (23)
a1 L 𝜕𝜁 2 L 𝜕𝜁 3 𝜕𝜁 4 𝜕𝜁 2
Solution of Eq. (23) using PINN will lead to the TDFG form Eq. (27), it is possible to find the desired natural fre-
beam deflection under the applied external load. quency without any limitation, despite the previous researches
In the case of free vibration analysis, the external load is in the literature about application of PINN for vibration analy-
zero; thus, the governing equation will be as: sis that only can compute the first natural frequency.
( ) [( )2 2 ( ) 3 ]
𝜕2 w 𝜕3 w 𝜕4 w 𝜕2 w 2 b1 𝛽 𝜕 w 𝛽 𝜕 w 𝜕4 w
𝛽𝜁
𝜆0 e − 𝜆2 𝜂 𝛽e2 𝛽𝜁
− 𝜆2 𝜂 e2 𝛽𝜁
+ kg 2 − 𝜂 − d1 e𝛽𝜁
+2 + 4 + Kw w = 0. (24)
𝜕t
2
𝜕𝜁𝜕t
2
𝜕𝜁 2 𝜕t
2 𝜕𝜁 a1 L 𝜕𝜁 2 L 𝜕𝜁 3 𝜕𝜁
Due to the harmonic nature of the free vibration, the beam 3.3 PINN hyperparameters tuning procedure
deflection is assumed to be as:
( ) The model's hyperparameters should be tuned to have accu-
w 𝜁, t = w ̂ (𝜁)ei𝜔t , (25) rate and stable results. Generally, increasing the number of
hidden layers, the number of training points, and also the
in which 𝜔 and i are the √beam's natural frequency and training iterations will lead to an increase in the accuracy
the imaginary unit ( i = −1 ), respectively, and w
̂ (𝜁) is
of the results. However, it will increase the required com-
free vibration mode shape of the TDFG beam which is an
putational efforts and simulation time. Therefore, a trade-
unknown function of 𝜁 to be determined. Substitution of
off between accuracy and the computational cost should
Eq. (25) into Eq. (24) leads to:
( ) ( ) [( )2 2 ( ) 3 ]
𝜕̂
w 𝜕2w
̂ 𝜕2w
̂ 2 b1 𝛽 𝜕 ŵ 𝛽 𝜕 ŵ 𝜕4ŵ
−𝜔 e 2 𝛽𝜁
𝜆0 w
̂ − 𝜆2 𝜂 𝛽 2
− 𝜆2 𝜂 2 2 + kg 2 − 𝜂 − d1 e𝛽𝜁
+2 ̂ = 0. (26)
+ 4 + Kw w
𝜕𝜁 𝜕𝜁 𝜕𝜁 a1 L 𝜕𝜁 2 L 𝜕𝜁 3 𝜕𝜁
It should be noted that in this case, there are two be done, which is generally a multi-objective optimization
unknowns in the governing equation, i.e., w ̂ (𝜁) and 𝜔 , thus problem. In the previous studies, the model's hyperparam-
the problem is converted to an inverse problem and con- eters were arbitrarily chosen and determined through a trial-
sequently a set of extra information is needed based on and-error procedure or a pruning technique [37, 55, 56].
what explained in Sect. 3.1 and Eqs. (20–22). The isotropic In this study, the model's hyperparameters are selected for
beam's free vibration mode shapes can be employed to gen- the first time by a systematic multi-objective optimization
erate the required extra information needed for solution of
the inverse problem using PINN. To this end, a new set of
points ( xi ) in the domain is selected and the corresponding Table 1 Input parameters and their levels
( )
loss function i.e. Li xi ;W, b, 𝜆 is defined as mean squared Input parameters Symbol Level 1 Level 2 Level 3 Level 4
error of the difference between the network prediction and
Number of training ND 10 40 70 100
the mode shape’s values at xi . For instance, for isotropic SS
points inside the
beam the nth mode shape’s function is wn (𝜁) = sin(n𝜋𝜁 ). domain
To find the nth natural frequency ( of TDFG ) beam with SS Number of hidden NH 1 2 3 4
boundary condition the loss Li xi ;W, b, 𝜆 is defined as: layers
Learning rate LR 0.1 0.01 0.001 0.0001
( ) 1 ∑ | 2
Li xi ;W, b, 𝜆 = ŵ (x;W, b, 𝜆) − wn (x)|| . (27) Number of iteration NI 10,000 40,000 70,000 100,000
|x | x∈xi |
| i| Activation function AFunc tanh Sigmoid – –
13
Engineering with Computers
Table 2 L16 (44 23) Taguchi orthogonal experimental design that minimize all the output parameters, which is generally
Trial no ND NH LR NI AFunc
a multi-objective optimization process.
The Grey relational analysis is generally used to combine
1 10 1 0.1 10,000 tanh all the considered outputs into a single value that can be
2 10 2 0.01 40,000 tanh used as the single characteristic in optimization problems.
3 10 3 0.001 70,000 SIGMOID In order to use grey relational analysis, the data should be
4 10 4 0.0001 100,000 SIGMOID normalized in the range from 0 to 1 based on the optimiza-
5 40 1 0.01 70,000 SIGMOID tion goal. If the target value of the original sequence has the
6 40 2 0.1 100,000 SIGMOID characteristic of "the lower, the better", the normalization
7 40 3 0.0001 10,000 tanh should be as[57]:
8 40 4 0.001 40,000 tanh ( )
9 70 1 0.001 100,000 tanh max xi (k) − xi (k)
(28)
∗
xi (k) = ( ) ( ),
10 70 2 0.0001 70,000 tanh max xi (k) − min xi (k)
11 70 3 0.1 40,000 sigmoid
12 70 4 0.01 10,000 sigmoid where xi∗ (k) and xi (k) are the ith normalized and original out-
13 100 1 0.0001 40,000 sigmoid put, respectively. Here, there are three outputs and for each
14 100 2 0.001 10,000 sigmoid output there are 16 trials, thus i = 1, 2, 3 and k = 1, … 16. A
15 100 3 0.01 100,000 tanh grey relational coefficient (GRC) can be calculated as:
16 100 4 0.1 70,000 tanh
( ) Δ + 𝜖Δmax
GRC xi∗ (k), xr∗ (k) = min , (29)
Δri (k) + 𝜖Δmax
using Taguchi design of experiments together with grey rela- where xr∗ (k) is reference sequence, and Δri (k) represent the
tional analysis. The model hyperparameters are the number deviation sequence of xr∗ (k) and xi∗ (k), 𝜖 = 0.5 is distinguish-
of hidden layers (NH), learning rate (LR) used in optimiza- ing coefficient, and the other parameters are defined as[57]:
tion algorithm, number of training iterations (NI), number
of training points inside the domain (ND), and the network Δri (k) = ||xi∗ (k) − xr∗ (k)||,
activation function (AFunc). In this study, for NH, LR, NI
and ND four levels and for AFunc two levels are considered ( ( ))
Δmin = min min Δri (k) ,
as shown in Table 1. In order to cover all the combinations
of the design parameters, a total 512 = 4 × 4 × 4 × 4 × 2 runs ( ( ))
would be expected, which is a time-consuming process, and Δmax = max max Δri (k) . (30)
it needs a huge computational effort. Thus, Taguchi orthogo-
nal design is employed to design of experiment in a way that The reference sequence is considered to be the sequence
the influence of each parameter and the optimal combina- with maximum normalized value i.e. xr∗ (k) = 1. Then, the
tion can be investigated with fewer trials. Here, a L16 ( 44 average grey relational grade (GRG) can be obtained as:
23) Taguchi array is employed with 16 trials, as shown in ( ) 1∑ m
( )
Table 2. GRG xi∗ (k), xr∗ (k) = GRC xi∗ (k), xr∗ (k) , (31)
m i=1
Then, the PINN results for the considered trials will be
calculated and compared with a reference solution. Since the Where m is the number of outputs i.e. three. Then, the con-
governing equation is a differential equation with variable sidered trials are ranked based on their GRG values, and the
coefficients, it is not possible to find an analytical solution optimum parameters are considered to correspond to the trial
for it in the general form. However, for some special cases with the maximum GRG value.
such as isotropic beams, the governing differential equations
are linear ODEs which is possible to find an exact analytical
solution. Here the parameters of the model will be tuned
based on the bending of a ceramic (n1 = n2 = 𝛽 = 0, 𝜃 = 1) 4 Results and discussion
SS beam under uniform distributed load ( q = 0.1). In this
case, the results of the PINN are compared by the exact In this section, the linear bending and free vibrations behav-
solution. The output parameters are considered as the differ- ior of a TDFG porous beam resting on a Winkler–Pasternak
ence between the PINN prediction and the exact solution at foundation with different boundary conditions and porosity
the center of beam, loss function value, and the simulation distribution patterns is investigated using PINNs. Material
time. The optimization goal is to find the hyperparameters properties of the metal and ceramic phases of the TDFG
13
Engineering with Computers
Table 3 PINN simulation Trial no Maximum displacement Loss function value Time (s)
results for SS isotropic beam
PINN Exact Diff (%) Loss Log (loss)
13
Engineering with Computers
The bolded row is correspond to the trial with the highest GRG and the optimum hyperparameters for the
training network
(a) (b)
Fig. 3 a Deflection of isotropic beam with SS and CC boundary condition under uniform distributed load, b loss function value
( Kw = 0.1;Kg = 0.02;q = 0.1;𝛼 = 0.1)
Based on the GRG value, the third trial has the highest GRG Moreover, the loss function value in both cases rapidly
value; thus, the optimum hyperparameter of the neural net- decreases to less than 10–4 after 20,000 iterations, which
work model are obtained as ND = 10, NH = 3, LR = 0.001, means that the network converges to the final solution with
NI = 70,000 and AFunc = sigmoid. Now the PINN predic- enough accuracy.
tions for bending and free vibration of beams against the Figure 4 shows the deflection of CF beam under both
exact or numerical solution will be compared to check the uniform load and endpoint load. Here, both boundary condi-
model's accuracy. tions and the loading are more complex than in the previous
Figure 3 shows the isotropic beam deflection with both example. Again, an excellent agreement between the PINN
SS and CC boundary conditions and the corresponding loss and the exact solution can be seen.
function value. The PINN predictions for both boundary To check the PINN performance for the free vibra-
conditions are in good agreement with the exact solution. tion analysis of beams, the first three natural frequencies
13
Engineering with Computers
(a) (b)
q = 10), b loss
Fig. 4 a Deflection of isotropic beam with CF boundary condition under uniform distributed load ( q = 0.1) and end point load ( ̂
function value ( Kw = 0.05;Kg = 0.0;;𝛼 = 0.1)
Table 6 First and second natural frequency of isotropic beam with different boundary conditions ( Kg = 0.0;𝛼 = 0.1)
Boundary Kw 1st mode 2nd mode 3rd mode
condition
PINN Exact[54] Diff (%) PINN Exact[54] Diff (%) PINN Exact[54] Diff (%)
SS 0.0 0.357199 0.357756 0.16 1.426125 1.426640 0.04 3.228657 3.243186 0.45
0.1 0.754214 0.754796 0.08 1.573750 1.572999 0.05 3.268791 3.280232 0.35
CC 0.0 0.814490 0.813591 0.11 2.227825 2.227169 0.03 4.296866 4.317921 0.49
0.1 1.051538 1.050459 0.10 2.323883 2.323513 0.02 4.515905 4.555645 0.88
CF 0.0 0.126992 0.127591 0.47 0.792991 0.797511 0.57 2.058813 2.078372 0.95
0.1 0.676181 0.677491 0.19 1.035083 1.037996 0.28 2.357422 2.382175 1.05
(a) (b)
Fig. 5 a Convergence of first natural frequency, b convergence of second natural frequency of the isotropic beam with different boundary condi-
tions ( Kg = 0.0;𝛼 = 0.1)
13
Engineering with Computers
(a) (b)
Fig. 6 Free vibration mode shapes of isotropic beam, a first mode, b second mode, and c third mode ( Kg = 0.0;𝛼 = 0.1)
(a) (b)
Fig. 8 a Convergence of isotropic SS beam natural frequency for different function employed to create required extra information, b Vibration
shape modes of isotropic SS beam for different functions employed to create required extra information ( Kw = 0.0;Kg = 0.0;𝛼 = 0.1)
13
Engineering with Computers
frequency is set to two, and results show that the initial value For the free vibration analysis using PINN, a set of extra
of the unknown parameters does not affect the final value of information inside the domain is required. It has been stated
the parameter. before that the shape modes of isotropic beam (without
Figure 6 shows the isotropic beam's the first three mode foundation) are used to create that extra information. The
shapes with different boundary conditions. Again, the pre- exact shape modes of isotropic beams with different bound-
dicted mode shapes agree with the exact shape modes. ary conditions are obtained from [54]. In order to check the
Finally, Fig. 7 shows the loss function value for the free sensitivity of the PINN results with respect to the employed
vibration analysis of isotropic beams with different bound- extra information, the convergence of the isotropic beam
ary conditions. As it can be seen, the loss function value is natural frequency with the use of five different functions to
small enough for all the considered boundary conditions, create extra information is investigated, and the results are
which shows the presented PINN approach's capability for presented in Fig. 8. Results show that the PINN converges to
the free vibration analysis. the desired frequency and shape mode when the employed
function satisfies only the natural boundary conditions (for
SS and CC beam: w(0) = w(1) = 0). It means that the PINN
prediction is not sensitive to the used extra information for
the free vibration analysis. This is a great advantage for the
presented PINN approaches for the solution of free vibra-
tion problems in comparison to the previous studies in the
literature that can predict only the fundamental frequency.
Generally, analytical expressions for the shape modes of iso-
tropic structures like beams, plates, and shells with different
boundary conditions can be found easily in the continuous
vibration textbooks, for instance [54]. Then, these analytical
expressions can be used to produce the needed extra infor-
mation for the desired problem with more complex material
and geometrical properties.
The optimum hyperparameters are obtained based on the
SS beam bending analysis using grey relational analysis.
Then, the model's accuracy with those parameters for bend-
ing and free vibration of SS, CC and CF isotropic beams is
proved. Results show that the PINN can predict the deflec-
Fig. 9 Deflection of SS TDFG beam under uniform distributed load- tion, natural frequencies, and mode shapes of isotropic
ing ( Kw = 0.1;Kg = 0.02;n1 = n2 = 2;𝜃 = 0.5;𝛼 = 0.1;q = 0.1)
(a) (b)
Fig. 10 a) Effects of the material index in y-direction on the b) Effects of material index in z direction on the deflec-
deflection of CC TDFG beam under uniform distributed load tion of CC TDFG beam under uniform distributed load
( Kw = 0.0;Kg = 0.0;n1 = 2;𝜃 = 0.5;𝛽 = 1;𝛼 = 0.1;q = 0.1 ) , ( Kw = 0.0;Kg = 0.0;n2 = 2;𝜃 = 0.5;𝛽 = 1;𝛼 = 0.1;q = 0.1)
13
Engineering with Computers
(a) (b)
Fig. 12 Effects of foundation properties on the deflection of CC TDFG beam under uniform distributed loads, a elastic stiffness of foundation, b
shear stiffness of foundation (n1 = n2 = 2;𝜃 = 0.5;𝛽 = 1;𝛼 = 0.1;q = 0.1)
13
Engineering with Computers
3.1935
3.7936
2.7989
2.2936
1.6676
2.3691
mum deflection increases. Figure 11 shows that increasing
0.2
the material index in the axial direction will increase the
beam stiffness and decrease deflection. Moreover, as the 𝛽
increases, the beam deflection tends to be unsymmetrical
2.9953
3.4736
2.7431
2.1850
1.6277
2.2991
and the maximum of deflection shifts to the left side of the
0.1
2.8768
3.2102
2.7037
2.1221
1.5770
2.2201
1.6309
1.9541
1.6644
1.2097
0.8604
1.3216
0
0
5 Conclusion
13
Engineering with Computers
(a) (b)
Fig. 13 a Effects of porosity factor on the deflection of CC TDFG beam (n1 = n2 = 2;𝜃 = 0.5;𝛽 = 1;𝛼 = 0.1;Kw = 0.1;Kg = 0.02;q = 0.1), b
Effects of porosity distribution pattern on the deflection of CC TDFG beam (n1 = n2 = 2;𝜃 = 0.5;𝛽 = 1;𝛼 = 0.1;Kw = 0.1;Kg = 0.02;q = 0.1)
Table 9 The natural Boundary Porosity distribution 1st mode 2nd mode
frequency of TDFG beam condition
with different porosity factors 𝛼 𝛼
and distribution patterns
(n1 = n2 = 2;𝜃 = 0.5;𝛽 = 1; 0 0.1 0.2 0.4 0 0.1 0.2 0.4
𝛼 = 0.1;Kw = 0.1;Kg = 0.02)
SS Uniform 0.6123 0.6367 0.6647 0.7366 1.2399 1.2689 1.3075 1.39891
x-Shaped 0.6124 0.6127 0.6129 0.6125 1.2400 1.2430 1.2439 1.242174
o-Shaped 0.6124 0.6249 0.6383 0.6681 1.2399 1.2618 1.2832 1.332793
v-Shaped 0.6124 0.6244 0.6371 0.6654 1.2401 1.2575 1.2746 1.313024
n-Shaped 0.6124 0.6273 0.6435 0.6803 1.2399 1.2582 1.2770 1.3184
u-shaped 0.6123 0.6279 0.6448 0.6836 1.2405 1.2642 1.2868 1.3423
CC Uniform 0.7567 0.7776 0.8015 0.8626 1.5644 1.5883 1.6160 1.6868
x-Shaped 0.7568 0.7583 0.7590 0.7574 1.5642 1.5691 1.5714 1.5665
o-Shaped 0.7568 0.7700 0.7841 0.8155 1.5643 1.5868 1.6108 1.6648
v-Shaped 0.7568 0.7677 0.7792 0.8045 1.5644 1.5785 1.5943 1.6268
n-Shaped 0.7568 0.7691 0.7821 0.8094 1.5651 1.5772 1.5893 1.6090
u-shaped 0.7568 0.7713 0.7872 0.8231 1.5645 1.5854 1.6501 1.7088
The beam material properties vary in three dimensions con- equation to train the neural network. In other words, despite
tinuously according to an arbitrary function. The governing conventional neural networks that need a big set of data for
equations of motion are obtained using Hamilton's principle. training, in the presented PINN, only a small set of points
In the PINN method, an approximate solution of the dif- which are simply the input spatial coordinates, are needed.
ferential governing equation is obtained by constructing a Despite previous studies which used trial-and-error to find
neural network. The network's input is the spatial coordinate, optimum hyperparameters, in this study, the network hyper-
and output is the beam's displacement field. The network's parameters are tuned by a systematic optimization procedure
parameters are trained by minimizing a loss function that by using Taguchi design of experiments combined with grey
includes the physical information about the problem, i.e., relational analysis. Then, the performance and accuracy of
governing equation and boundary conditions. the employed PINN is carefully examined using bending,
A set of points inside the domain and on the bounda- and free vibration analysis of TDFG beams with different
ries are sampled without knowing the solution of governing boundary conditions and loading cases.
13
Engineering with Computers
Results show that the PINN can characterize the bending 8. Behzad M, Meghdari A, Ebrahimi A (2008) A linear theory for
and free vibration TDFG porous beams resting on an elastic bending stress–strain analysis of a beam with an edge crack. Eng
Fract Mech 75:4695–4705
foundation with a satisfactory accuracy using the obtained 9. Benedetti A, Tralli A (1989) A new hybrid FE model for arbitrar-
optimum hyperparameters. In the presented approach, the ily curved beam—I. Linear analysis. Comput Struct 33:1437–1449
beam's natural frequency is considered an unknown variable 10. Agarwal S, Chakraborty A, Gopalakrishnan S (2006) Large defor-
to be determined by solving an inverse problem. To this end, mation analysis for anisotropic and inhomogeneous beams using
exact linear static solutions. Compos Struct 72:91–104
a set of extra information at some point inside the domain is 11. Fallah A, Aghdam MM (2011) Nonlinear free vibration and post-
required. It is shown that any function that satisfies the natu- buckling analysis of functionally graded beams on nonlinear elas-
ral boundary conditions can generate the extra information, tic foundation. Eur J Mech A/Solids 30:571–583. https://doi.org/
and the PINN will converge to desired frequency irrespec- 10.1016/j.euromechsol.2011.01.005
12. Hadi A, Nejad MZ, Hosseini M (2018) Vibrations of three-dimen-
tive of the employed function, which proves the applicability sionally graded nanobeams. Int J Eng Sci 128:12–23
of the presented PINN method for free vibration analysis. 13. Tang Y, Wang G, Ren T, Ding Q, Yang T (2021) Nonlinear
Moreover, results show present PINN approach can predict mechanics of a slender beam composited by three-directional
both fundamental and higher natural frequencies and vibra- functionally graded materials. Compos Struct 270:114088. https://
doi.org/10.1016/j.compstruct.2021.114088
tion mode shapes which is not possible using the methods 14. Zghal S, Ataoui D, Dammak F (2020) Static bending analysis of
proposed in previous studies. beams made of functionally graded porous materials. Mech Based
Finally, the effects of material distribution, porosity Des Struct Mach:1–18
factor, and foundation on the bending and free vibration 15. Ramteke PM, Panda SK, Patel B (2022) Nonlinear eigenfrequency
characteristics of multi-directional functionally graded porous
behavior of TDFG beams are investigated. Results show panels. Compos Struct 279:114707. https://doi.org/10.1016/j.
that it is possible to tune the material index in different compstruct.2021.114707
directions to achieve the desired behavior. Moreover, the 16. Foroutan K, Carrera E, Pagani A, Ahmadi H (2021) Post-buck-
existence of porosity affects the beam bending and vibra- ling and large-deflection analysis of a sandwich FG plate with FG
porous core using Carrera’s Unified Formulation. Compos Struct
tion behavior, and it should be considered in the design of 272:114189
the TDFG beams. 17. Li X, Li L, Hu Y, Ding Z, Deng W (2017) Bending, buckling and
vibration of axially functionally graded beams based on nonlocal
Supplementary Information The online version contains supplemen- strain gradient theory. Compos Struct 165:250–265. https://d oi.
tary material available at https://d oi.o rg/1 0.1 007/s 00366-0 23-0 1799-7. org/10.1016/j.compstruct.2017.01.032
18. Şimşek M, Kocatürk T, Akbaş Ş (2012) Dynamic behavior of
Declarations an axially functionally graded beam under action of a moving
harmonic load. Compos Struct 94:2358–2364
Conflict of interest The authors declare that they have no known com- 19. Shahba A, Attarnejad R, Hajilar S (2013) A mechanical-based
peting financial interests or personal relationships that could have ap- solution for axially functionally graded tapered euler-bernoulli
peared to influence the work reported in this paper. beams. Mech Adv Mater Struct 20:696–707. https://doi.org/10.
1080/15376494.2011.640971
20. Abbaspour-Gilandeh Y, Molaee A, Sabzi S, Nabipur N, Sham-
shirband S, Mosavi A (2020) A combined method of image
References processing and artificial neural network for the identification
of 13 Iranian rice cultivars. Agronomy 10:117
1. Niknam H, Fallah A, Aghdam M (2014) Nonlinear bending of 21. Azarmdel H, Jahanbakhshi A, Mohtasebi SS, Muñoz AR (2020)
functionally graded tapered beams subjected to thermal and Evaluation of image processing technique as an expert system
mechanical loading. Int J Non-Linear Mech 65:141–147 in mulberry fruit grading based on ripeness level using artificial
2. Saeedifar M, Zarouchas D (2020) Damage characterization of neural networks (ANNs) and support vector machine (SVM).
laminated composites using acoustic emission: a review. Compos Postharvest Biol Technol 166:111201
B Eng 195:108039 22. Brown BP, Mendenhall J, Geanes AR, Meiler J (2021) General
3. Dikici B, Tuntas R (2021) An artificial neural network (ANN) Purpose Structure-Based drug discovery neural network score
solution to the prediction of age-hardening and corrosion behavior functions with human-interpretable pharmacophore maps. J
of an Al/TiC functional gradient material (FGM). J Compos Mater Chem Inf Model 61:603–620
55:303–317 23. Mignan A, Broccardo M (2020) Neural network applications in
4. Yu X, Zhang T, Li Y (2020) 3D printing and bioprinting nerve earthquake prediction (1994–2019): meta-analytic and statisti-
conduits for neural tissue engineering. Polymers 12:1637 cal insights on their limitations. Seismol Res Lett 91:2330–2342
5. Mueller E, Drašar Č, Schilz J, Kaysser W (2003) Functionally 24. Le Glaz A, Haralambous Y, Kim-Dufor D-H, Lenca P, Billot R,
graded materials for sensor and energy applications. Mater Sci Ryan TC, Marsh J, Devylder J, Walter M, Berrouiguet S (2021)
Eng A 362:17–39 Machine learning and natural language processing in mental
6. Jahromi H, Aghdam M, Fallah A (2013) Free vibration analysis health: systematic review. J Med Internet Res 23:e15708
of Mindlin plates partially resting on Pasternak foundation. Int J 25. Brunton SL, Kutz JN (2019) Methods for data-driven multiscale
Mech Sci 75:1–7 model discovery for materials. J Phys Mater 2:044002
7. Gatheeshgar P, Poologanathan K, Gunalan S, Tsavdaridis KD, 26. Brunton SL, Noack BR, Koumoutsakos P (2020) Machine learn-
Nagaratnam B, Iacovidou E (2020) Optimised cold-formed steel ing for fluid mechanics. Annu Rev Fluid Mech 52:477–508
beams in modular building applications. J Build Eng 32:101607 27. Yaghoubi V, Cheng L, Van Paepegem W, Kersemans M (2022)
CNN-DST: ensemble deep learning based on Dempster-Shafer
13
Engineering with Computers
theory for vibration-based fault recognition. Struct. Health 44. Abadi M, Barham P, Chen J, Chen Z, Davis A, Dean J, Devin M,
Monit 21:2063–2082. https://d oi.o rg/1 0.1 177/1 47592 1721 Ghemawat S, Irving G, Isard M (2016) Tensorflow: a system for
1050012 large-scale machine learning. In: 12th {USENIX} symposium on
28. Yaghoubi V, Cheng L, Van Paepegem W, Kersemans M (2022) operating systems design and implementation ({OSDI} 16)
An ensemble classifier for vibration-based quality monitor- 45. Paszke A, Gross S, Chintala S, Chanan G, Yang E, DeVito Z, Lin
ing. Mech Syst Signal Process 165:108341. https://doi.org/10. Z, Desmaison A, Antiga L, Lerer A (2017) Automatic differentia-
1016/j.ymssp.2021.108341 tion in pytorch
29. Lu L, Meng X, Mao Z, Karniadakis GE (1907) DeepXDE: a 46. Bergstra J, Breuleux O, Bastien F, Lamblin P, Pascanu R, Desjar-
deep learning library for solving differential equations (2019). dins G, Turian J, Warde-Farley D, Bengio Y (2010) Theano: a
arXiv:1907.04502 CPU and GPU math expression compiler. In: Proceedings of the
30. Raissi M, Perdikaris P, Karniadakis GE (2019) Physics- Python for scientific computing conference (SciPy). Austin, TX
informed neural networks: a deep learning framework for solv- 47. Chen T, Li M, Li Y, Lin M, Wang N, Wang M, Xiao T, Xu B,
ing forward and inverse problems involving nonlinear partial Zhang C, Zhang Z (2015) Mxnet: a flexible and efficient machine
differential equations. J Comput Phys 378:686–707 learning library for heterogeneous distributed systems. arXiv pre-
31. Zhu Y, Zabaras N, Koutsourelakis P-S, Perdikaris P (2019) print arXiv:1512.01274
Physics-constrained deep learning for high-dimensional sur- 48. Kingma DP, Ba J (2014) Adam: a method for stochastic optimiza-
rogate modeling and uncertainty quantification without labeled tion. arXiv preprint arXiv:1412.6980
data. J Comput Phys 394:56–81 49. Hennigh O, Narasimhan S, Nabian MA, Subramaniam A, Tangsali
32. Zhao H, Storey BD, Braatz RD, Bazant MZ (2020) Learning K, Fang Z, Rietmann M, Byeon W, Choudhry S (2021) NVIDIA
the physics of pattern formation from images. Phys Rev Lett SimNet™: an AI-accelerated multi-physics simulation framework.
124:060201 In: International conference on computational science. Springer
33. Haghighat E, Raissi M, Moure A, Gomez H, Juanes R (2021) 50. Koryagin A, Khudorozkov R, Tsimfer S (2019) PyDEns: a python
A physics-informed deep learning framework for inversion and framework for solving differential equations with neural networks.
surrogate modeling in solid mechanics. Comput Methods Appl arXiv preprint arXiv:1909.11544
Mech Eng 379:113741. https://d oi.o rg/1 0.1 016/j.c ma.2 021. 51. Chen J, Huang D, Wang L, Hou J, Zhang H, Li Y, Zhong S, Wang
113741 Y, Wu Y, Huang W (2020) 3D bioprinted multiscale composite
34. Wu L, Kilingar NG, Noels L (2020) A recurrent neural network- scaffolds based on gelatin methacryloyl (GelMA)/chitosan micro-
accelerated multi-scale model for elasto-plastic heterogeneous spheres as a modular bioink for enhancing 3D neurite outgrowth
materials subjected to random cyclic and non-proportional load- and elongation. J Colloid Interface Sci 574:162–173
ing paths. Comput Methods Appl Mech Eng 369:113234 52. Haghighat E, Juanes R (2021) Sciann: a keras/tensorflow wrapper
35. Nguyen-Thanh VM, Zhuang X, Rabczuk T (2020) A deep for scientific computations and physics-informed deep learning
energy method for finite deformation hyperelasticity. Eur J using artificial neural networks. Comput Methods Appl Mech Eng
Mech A/Solids 80:103874. https://d oi.o rg/1 0.1 016/j.e urom 373:113552
echsol.2019.103874 53. Karniadakis GE, Kevrekidis IG, Lu L, Perdikaris P, Wang S,
36. Samaniego E, Anitescu C, Goswami S, Nguyen-Thanh VM, Guo Yang L (2021) Physics-informed machine learning. Nat Rev Phys
H, Hamdia K, Zhuang X, Rabczuk T (2020) An energy approach 3:422–440
to the solution of partial differential equations in computational 54. Rao SS (2019) Vibration of continuous systems. Wiley, Oxford
mechanics via machine learning: concepts, implementation and 55. Anwar S, Hwang K, Sung W (2017) Structured pruning of deep
applications. Comput Methods Appl Mech Eng 362:112790. convolutional neural networks. ACM J Emerg Technol Comput
https://doi.org/10.1016/j.cma.2019.112790 Syst (JETC) 13:1–18
37. Zhuang X, Guo H, Alajlan N, Zhu H, Rabczuk T (2021) Deep 56. Pang G, Lu L, Karniadakis GE (2019) fPINNs: Fractional physics-
autoencoder based energy method for the bending, vibration, and informed neural networks. SIAM J Sci Comput 41:A2603–A2626
buckling analysis of Kirchhoff plates with transfer learning. Eur J 57. Zeng G, Jiang R, Huang G, Xu M, Li J (2007) Optimization of
Mech A/Solids 87:104225. https://d oi.o rg/1 0.1 016/j.e urome chsol. wastewater treatment alternative selection by hierarchy grey rela-
2021.104225 tional analysis. J Environ Manag 82:250–259. https://doi.org/10.
38. Li W, Bazant MZ, Zhu J (2021) A physics-guided neural network 1016/j.jenvman.2005.12.024
framework for elastic plates: comparison of governing equations- 58. Kierzenka J, Shampine LF (2001) A BVP solver based on residual
based and energy-based approaches. Comput Methods Appl Mech control and the Maltab PSE. ACM Trans Math Softw (TOMS)
Eng 383:113933. https://doi.org/10.1016/j.cma.2021.113933 27:299–316
39. Hadji L, Zouatnia N, Bernard F (2019) An analytical solution for
bending and free vibration responses of functionally graded beams Publisher's Note Springer Nature remains neutral with regard to
with porosities: effect of the micromechanical models. Struct Eng jurisdictional claims in published maps and institutional affiliations.
Mech 69:231–241
40. Jankowski P, Żur KK, Kim J, Reddy JN (2020) On the bifurca- Springer Nature or its licensor (e.g. a society or other partner) holds
tion buckling and vibration of porous nanobeams. Compos Struct exclusive rights to this article under a publishing agreement with the
250:112632. https://doi.org/10.1016/j.compstruct.2020.112632 author(s) or other rightsholder(s); author self-archiving of the accepted
41. Funahashi K-I (1989) On the approximate realization of continu- manuscript version of this article is solely governed by the terms of
ous mappings by neural networks. Neural Netw 2:183–192 such publishing agreement and applicable law.
42. Mhaskar HN, Poggio T (2016) Deep vs. shallow networks: an
approximation theory perspective. Anal Appl 14:829–848
43. Lu L, Meng X, Mao Z, Karniadakis GE (2021) DeepXDE: a deep
learning library for solving differential equations. SIAM Rev
63:208–228. https://doi.org/10.1137/19M1274067
13