Preprint
Article

This version is not peer-reviewed.

Enhanced Multiphysics Simulation via a Tailored PINN Architecture for Piezoelectric Cantilever Beam Energy Harvesters

Submitted:

04 June 2026

Posted:

05 June 2026

You are already at the latest version

Abstract
In design applications, simulations enable rapid iterations and adjustments to device architecture, minimizing costs compared to physical prototyping. The simulation of piezoelectric effects for piezoelectric devices has traditionally relied on the Finite Element Method (FEM), known for its accuracy and reliability. As Machine Learning (ML) technologies advance, Physics-Informed Neural Networks (PINNs) emerge as alternatives to accelerate these multiphysics simulations, rendering them more flexible and compensating for data scarcity by leveraging physical principles. This study aims to develop a robust PINN architecture for simulation of cantilever beam Energy Harvesting (EH) devices, which in practice may make use of either the indirect or direct piezoelectric effect. The methodology involves designing a tailored PINN architecture integrating piezoelectric governing Partial Differential Equations (PDEs) as loss functions. The model was trained and validated against FEM results. Using PINNs presents several challenges, including modeling coupled physical domains and managing optimization instabilities arising from automatic differentiation of the physics-informed loss function, which makes training more sensitive than in standard supervised learning. Nevertheless, our model successfully simulated the indirect piezoelectric effect, approximating mechanical deflections (in two dimensions) and electric potential to high accuracy (relative L² errors of 1.9596 × 10-1, 1.9291 × 10-1 and 1.0272 × 10-3, respectively). In addition, although FEM data was not available for validation, simulation of the direct piezoelectric effect demonstrated physically consistent results and aligned with expected behavior. The model's performance and accuracy in capturing piezoelectric effects, as well as reliability in simulating complex phenomena, showcases the power of PINNs for industrial applications. PINNs are proven to be a powerful tool for optimizing the design and efficiency of EH systems.
Keywords: 
;  ;  ;  

1. Introduction

The Finite Element Method (FEM) has long been the standard approach for modeling and simulating complex physical systems [1]. FEM is known for its accuracy and reliability, making it indispensable for engineering and applied physics, among other application fields [2]. However, it is computationally expensive, and as computational methods continue to evolve, researchers have begun exploring alternative approaches that can address emerging challenges in scientific applications and new problem domains, driving new scientific discoveries and engineering innovations [3,4].
In recent years, the accessibility and advancement of Machine Learning (ML) technologies have opened new doors for simulation methodologies [5]. Among them, Physics-Informed Neural Networks (PINNs) have been developed as a promising alternative [6]. Unlike traditional Artificial Neural Networks (ANN), PINNs do not require any measurement data for training [7]. Instead, they leverage the governing physical equations and the universal approximation theorem to simulate the behavior of specific domains or systems [8]. PINNs can approximate general solutions to the governing equations of physical systems, making them suited for nonlinearities and complex dynamic simulations [9].
The current state of research in ML-based simulations has seen significant advances, with key studies demonstrating the potential of PINNs in various applications, from fluid dynamics to structural analysis [10,11]. However, the complexities and nonlinearities of piezoelectric multiphysics simulations, particularly those involving the direct piezoelectric effect, present significant challenges [12].
PINNs have been applied to various problems involving the piezoelectric effect modeling semiconductor nanowires [13] and piezoelectric Energy Harvesters (EH) [14]. Such studies demonstrate that PINNs can accurately simulate physical fields and successfully estimate key material and system parameters related to the device. Their validity as a tool opens the door to their use in solving practical problems efficiently – e.g. by combining PINNs with experimental voltage measurements for efficient inverse modeling [14]. Elsewhere, PINNs have been successfully applied to: estimate piezoelectric EH in cantilevered metamaterial concrete structures subjected to wind excitation, incorporating complex interactions such as gravity, foundation effects, and aerodynamic forces [15]; thin-walled structural problems involving piezoelectric thin films, overcoming traditional meshing limitations and achieving accurate results even for extremely small thickness-to-length ratios [16]; and the accurate solution of multiphysics piezoelectric 2D problems via a modification of the PINN framework called the Deep Energy Method (DEM) [17].
Instead of simulating the more general piezoelectric governing equations, many of the aforementioned methods rely on Partial Differential Equation (PDE) formulations unique to specific piezoelectric devices, such as beams or thin films [14,15,16]. Moreover, the approach that addressed the fully general coupled PDE system employs DEM [17]. This paper specifically addresses the problem of effectively modeling the fully coupled piezoelectric PDE system within a PINN framework. The model is based on general coupled piezoelectric PDEs rather than beam-specific simplifications, even though the physical device under study is a 2D bimorph piezoelectric cantilever beam.

2. Materials and Methods

This section presents the main baseline used to develop the proposed Physics-Informed Neural Network (PINN) model. It begins with a brief description of the piezoelectric constitutive equations, which enable modeling a piezoelectric device. The characteristics of the simulated system are detailed, specifically, a 2D piezoelectric bimorph polyvinylidene fluoride (PVDF) beam. The proposed PINN model architecture is then presented, including the formulation of the neural network’s loss function, the training strategy employed, and the error metrics used to validate the model’s performance against a Finite Element Method (FEM) simulation. Finally, the implementation details and computational setup are presented to allow reproducibility of the results.

2.1. Piezoelectric Problem Statement

The piezoelectric effect refers to the coupling between mechanical and electrical behavior of certain crystalline materials. This phenomenon manifests in two effects [18]. First, the direct piezoelectric effect is the generation of an electrical displacement or voltage when mechanical stress is applied to the crystal. Second, the indirect piezoelectric effect describes the opposite behavior, which is a physical deformation of the crystal when an external electric field is applied.
Some crystals have a specific physical structure which causes the piezoelectric effect [19]. When they are under no mechanical strain, their internal electrical charges are balanced, which means that they do not produce any electric field. However, since these crystals belong to a non-centrosymmetric space group (i.e. their crystal unit structure lacks a center of symmetry), a reorganization of the electrical charge distribution occurs when a mechanical force is applied to the crystal, resulting in the generation of an electric field. Similarly, when an external electric field is applied, the same asymmetry causes rearrangements in the physical structure of the material, generating a mechanical deformation.

2.1.1. Piezoelectricity Constitutive Equations and Material Properties

The piezoelectric effect is described by a system of coupled constitutive equations which capture the relation between the electric and mechanical behavior [20]. These equations, expressed in their linear form, are as follows:
σ = c E S e T E ,
D = e S + ϵ S E .
where Equation (1) describes the indirect piezoelectric effect, in which an applied electric field produces mechanical stress in the piezoelectric material. The mechanical stress σ depends on a combination of the interaction between the material stiffness, represented by the tensor c E , and the mechanical strain S ; and the interaction of the piezoelectric properties of the material, represented by the tensor e T ,   and the electric field E . Both tensors e T and c E contain constants that express the specific electromechanical properties of the crystal.
Equation (2) describes the direct piezoelectric effect, in which a dielectric displacement D results from mechanical deformation. The dielectric displacement D depends on the mechanical strain of the material S caused by the applied forces, mediated by the piezoelectric tensor e and the interaction between the dielectric permittivity tensor ϵ S and the electric field E .
In order to model piezoelectric devices, the constitutive equations are coupled with the governing equations of mechanical and electrostatic equilibrium in their time-independent form since, for EH applications, we are only interested in the steady-state solution. The resulting set of Partial Differential Equations (PDEs) is as follows [21]:
σ + f = 0 ,
D = 0 .
Equation (3) is the mechanical equilibrium equation, in the static case. Here σ represents the stress tensor and f is the vector of applied body forces for the direct piezoelectric effect. In the case of the indirect effect, no forces are applied, therefore the values of the vector are zero. Equation (4) corresponds to Gauss’ law for the electric displacement D , with zero free charge density due to the insulation nature of piezoelectric materials.
Depending on the characteristics of each material, the coupled piezoelectric constitutive equations for the 2D case can be written in matrix form [22]. The material selected for this study is PVDF, a piezoelectric semi-crystalline polymer, used for several applications [23,24,25]. The electromechanical relations for this material in matrix form are as follows [26]:
( σ 11 σ 22 σ 12 D 1 D 2 ) = ( c 11 c 12 0 e 11 e 31 c 12 c 22 0 e 13 e 33 0 0 c 33 e 14 e 34 e 11 e 13 e 14 ϵ 1 0 e 31 e 33 e 34 0 ϵ 2 ) ( S 1 S 2 S 3 E 1 E 2 ) .
To complement and simplify the system of equations, kinematic relations linking strain to mechanical displacement and electric field to electric potential are required. The strain S can be expressed in terms of the derivatives of the Cartesian mechanical displacement d , with components u and v . The electric field can be expressed in terms of the derivatives of the electric potential φ , as shown in Equations (6) and (7). These kinematic relations can be substituted into Equation (5), yielding a system of PDEs in terms of only the mechanical displacements and the electric potential:
( S 1 S 2 S 3 ) = ( u x v y 1 2 ( u y + v x ) ) ,
( E 1 E 2 ) = ( φ x φ y ) .

2.1.2. Modeled Piezoelectric Device

The device to be modeled in the present study is a parallel piezoelectric bimorph cantilever beam in 2D. Figure 1 presents the characteristics and the general configuration for the simulations. The length of the beam is 0.1 meters, and its height is 0.001 meters. The lower end of the beam is connected to a grounded electrode while the upper layer is connected to a voltage electrode used to measure or induce electrical potential. For the direct piezoelectric effect simulation, an upward force of 1 N is applied at the free end of the beam.
In addition to the physical characteristics of the beam, specific boundary conditions need to be specified for a unique solution to exist. To complement the previously presented PDEs and to model the piezoelectric beam, the following set of boundary conditions [27] is applied:
d ( x ) = d ¯   ,     x Ω u ,
φ ( x ) = φ ¯ ,     x Ω φ ,
σ ( x ) n = 0 ,     x Ω t ,
D ( x ) n = 0 ,     x Ω p .
Equation (8) describes a Dirichlet boundary condition where the mechanical displacement u of the modeled device in segment Ω u has a prescribed value u ¯ . Similarly, Equation (9) describes a Dirichlet boundary condition that prescribes a specific value of the electric potential φ along the segment Ω φ . Equation (10) represents a Neumann boundary condition that enforces zero traction (zero applied stress) along segment Ω t . Equation (11) is also a Neumann boundary condition that enforces zero normal dielectric displacement on boundary segment Ω p .
The specific segments where the boundary conditions are applied and the prescribed values of the mechanical displacements and electric potential for the indirect and direct piezoelectric effect simulations are illustrated in Figure 2. For the simulation of both piezoelectric effects, the beam is clamped at its left end and is free at its right end. Additionally, both right and left ends are under traction-free conditions. The right end maintains zero normal dielectric displacement.
Figure 2a shows the configuration of the beam when modelling the indirect piezoelectric effect. The prescribed voltage of the upper edge of the beam is 100 V and of the lower edge is 0 V. Figure 2b illustrates the direct piezoelectric effect, where only the lower edge is grounded, while the voltage of the upper edge is measured, as shown in Figure 1.
Finally, in order to give a complete description of the piezoelectric beam, the values of the elastic, piezoelectric, and dielectric permittivity coefficients, appearing in Equations (5) and (6), are required. The values of the coefficients common to both layers can be found in Table 1. Table 2 lists the specific layer values of certain piezoelectric coefficients that differ because of the polarization orientations of the layers [17].

2.2. Physics-Informed Neural Networks

Physics-Informed Neural Networks (PINNs) provide a framework for solving PDEs by embedding physical laws into the loss function of a feed-forward Deep Neural Network (DNN) [6]. To this end, we consider the general form of a time-independent PDE and its boundary conditions:
N [ u ( x ) ] = 0 ,   x   Ω ,
B [ u ( x ) ] = 0 , x Ω .
where u ( x ) is the solution to the PDE, N is a differential operator corresponding to the governing equations of the problem, Ω is the domain of interest of the problem, B represents the boundary condition operator, Ω is the boundary where boundary conditions are enforced, and x denotes the spatial coordinates.
The solution of the PDE u ( x ) is approximated by a DNN u θ ( x ) , where θ denotes the set of trainable weights and biases of the DNN. To train the DNN in the PINN framework, a four-step procedure is followed [28]:
  • Sampling of collocation points and boundary condition points
A training dataset is constructed by sampling N collocation points { x i } i = 1 N from the interior domain Ω and M boundary points { x j ,   y j } j = 1 M from Ω . The boundary condition points include target values y j representing the prescribed boundary values for the Dirichlet or Neumann boundary conditions.
2.
Residual computation
The core of the learning process of a PINN is the minimization of the norm of the PDE residual r ( x ; θ ) . The residual is defined as the output of the differential operator N to the neural network approximation u θ ( x ) :
r ( x ; θ ) : = N [ u θ ( x ) ] .
The residual represents the extent to which the neural network fails to satisfy the governing PDEs. If [ u θ ( x ) ] were the exact solution, the residual would be zero throughout Ω . To compute the residual, the neural network is evaluated at the collocation points and its partial derivatives with respect to the independent variables x are calculated using automatic differentiation. These derivatives are then substituted into the differential operator N . To ensure that u θ ( x ) approximates the solution of the PDE, the Mean Squared Error (MSE) of the residual evaluated at the collocation points is minimized:
L P D E ( θ ) = 1 N i = 1 N r ( x i ; θ ) 2 .
3.
Boundary conditions enforcement
To obtain a unique solution, the boundary condition operator B from Equation (13) must be satisfied. To this end, a collective boundary loss term L B C ( θ ) that penalizes deviations from Dirichlet and/or Neumann conditions prescribed values is defined:
L B C ( θ ) = 1 M j = 1 M B [ u θ ( x j ) ] 2 .
4.
Total loss minimization
Finally, the total loss function combines the error components in the form:
L ( θ ) =   L P D E ( θ )   +   L B C ( θ ) .
The total loss in Equation (17) is minimized and the network parameters θ are optimized using gradient-based methods.

2.3. PINN Architecture

In our case, the input layer of the neural network consists of two neurons, one for each of the spatial 2D coordinates of the points of the beam domain. The neural network uses two hidden layers with 100 and 250 nodes respectively. Both hidden layers use hyperbolic tangent (tanh) as an activation function. Finally, the output layer consists of eight nodes which represent the physical variables relevant to the piezoelectric problem modeled: mechanical displacements, electric potential, stress, and dielectric displacements. Table 3 presents a summary of the architecture of the proposed PINN in terms of its layers.
To better illustrate the important design features and decisions of the proposed architecture, Figure 3 shows a more detailed diagram of the PINN. Unlike traditional PINN architectures, which typically use a uniform number of nodes per layer [29,30], our model uses a non-uniform number of neurons per layer. Additionally, we use two hidden layers. These design choices were inspired by previous studies suggesting that PINNs with different numbers of neurons per hidden layer could be more effective, and that deeper neural networks do not necessarily lead to improved accuracy [31,32].
Another crucial feature is the use of not only mechanical displacements and electric potential as outputs of the neural network, but also the stress tensor and the dielectric displacements, an approach inspired by a previous application of PINNs to elastodynamic problems [33]. From Equations (5)–(7), it follows that the latter can be expressed in terms of the derivatives of the mechanical displacements and electric potential. If only the mechanical displacements and electric potential had been modeled as the neural network outputs, enforcing the PDEs in Equations (3) and (4) would have required computing second-order derivatives. This would have significantly increased the computational cost of the training [34]. However, by modeling stress and dielectric displacement explicitly, this computational burden is avoided. In this case, only the first derivatives of the stress and dielectric displacement are needed to satisfy Equations (3) and (4). Similarly, only the first derivatives of the mechanical displacement and electric potential are needed to satisfy the constitutive relations in Equations (1) and (2). This design choice simplified the enforcement of the governing equations and contributed to the capacity of the PINN to accurately model the coupled multiphysics problem.

2.4. Loss Formulation Based on Governing Equations and Boundary Conditions

The first contribution to the PDE loss L P D E is based on Equations (1), (2), and (5), and the design of the PINN, presented in Section 2.3. First, stress and dielectric displacement are expressed in terms of the derivatives of mechanical displacements and the electric potential, modeled by the PINN following Equation (5). Then, these values are compared with the explicit outputs of the stress and dielectric displacement of the neural network. This imposes a constraint which ensures the PINN models the constitutive piezoelectric equations. This is done by the following set of equations, where the mechanical displacements, electric potential, stress and dielectric displacements correspond to the outputs of the neural network, and the x and y independent variables correspond to the inputs of the network:
r σ 11 = σ 11 , θ ( c 11 u θ x + c 12 v θ y + e 11 ϕ θ x + e 31 ϕ θ y ) ,
r σ 22 = σ 22 , θ ( c 12 u θ x + c 22 v θ y + e 13 ϕ θ x + e 33 ϕ θ y ) ,
r σ 12 = σ 12 , θ ( c 33 1 2 ( u θ y + v θ x ) + e 14 ϕ θ x + e 34 ϕ θ y ) ,
r D x = D x , θ ( e 11 u θ x + e 13 v θ y + e 14 ( u θ y + v θ x ) ϵ 1 ϕ θ x ) ,
r D y = D y , θ ( e 31 u θ x + e 33 v θ y + e 34 ( u θ y + v θ x ) ϵ 2 ϕ θ y ) .
The second contribution to L P D E ensures that the PINN complies with Equations (3) and (4), by computing the divergence of the stress and dielectric displacement outputs of the neural network. Depending on the modelling scenario, the exact equation used will vary. For the indirect piezoelectric effect, both force components are zero. For the direct piezoelectric effect, the force component in x , F X remains zero while the component in y , F y is 1   N , corresponding to an upward applied force at the tip of the beam:
r σ , 1 = σ 11 , θ x + σ 12 , θ y +   F x ,
r σ , 2 = σ 12 , θ x + σ 22 , θ y + F y ,
r D = D x , θ x + D y , θ y .
The complete PDE loss of the PINN combines these terms, computing an error function by applying the Mean Squared Error (MSE) to each term, using N r collocation points:
L c ( θ ) = 1 N r i = 1 N r r σ 11 ( x i , y i )   + r σ 22 ( x i , y i )   +   r σ 12 ( x i , y i )   +   r D x ( x i , y i )   +   r D y ( x i , y i )   2 ,
L d ( θ ) = 1 N r i = 1 N r r σ , 1 ( x i , y i ) + r σ , 2 ( x i , y i ) + r D ( x i , y i )   2 ,
L P D E ( θ ) = L c ( θ ) + L d ( θ ) .
Additionally, to comply with the boundary conditions of Equations (10) and (11), as mentioned in the procedure of Section 2.2, a set of boundary conditions points specific to the boundary subdomains presented in Figure 2 is evaluated in the neural network. The output is used to enforce the traction-free and zero dielectric displacement conditions as follows:
L T ( θ ) =   1 N T i = 1 N T   σ 11 , θ ( x i , y i ) +   σ 12 , θ ( x i , y i ) 2   ,
L D r i g h t ( θ ) = 1 N r i g h t i = 1 N r i g h t D x , θ ( x i , y i )   2 ,
L D l e f t ( θ ) = 1 N l e f t i = 1 N l e f t D x , θ ( x i , y i )   2 ,
L B C ( θ ) = L T ( θ ) + L D r i g h t ( θ ) + L D l e f t ( θ ) ,
where N r i g h t is the number of boundary condition points at the right end of the beam and N l e f t is the number of boundary condition points at the left end of the beam.
The combination of the PDE loss and the boundary conditions loss results in the total loss:
L ( θ )   =   L P D E ( θ )   +   L B C ( θ ) .
Finally, boundary conditions given by Equations (8) and (9) are directly enforced in the neural network outputs as hard constraints in order to automatically satisfy them [35], as follows:
u m o d i f i e d   = x · u ,
v m o d i f i e d = x · v ,
φ m o d i f i e d = y   · ( y 1 ) ·   φ + ( y h e i g h t   · v o l t a g e ) .
φ m o d i f i e d = y   ·   φ .
In these equations, x and y represent the spatial coordinates where the neural network is evaluated. Equations (34) and (35) guarantee zero mechanical displacements at the left end of the beam, representing clamped boundary conditions. Equation (36) is used to satisfy the electric potential constraint for the indirect piezoelectric effect, where 0 V are applied at the bottom of the beam, and 100 volts are applied at the top. Equation (37) is used for the direct piezoelectric effect, where the bottom of the beam is grounded (0 V).

2.5. PINN Training

This section describes the training procedure employed for the proposed PINN, including the generation of collocation and boundary condition points, the evaluation strategy, and the optimization process used to solve the piezoelectric problem.

2.5.1. Training and evaluation: Data Generation

Data sampling and generation were performed using Latin Hypercube Sampling (LHS), for both boundary conditions and collocation points. Figure 4 illustrates the points generated to enforce the traction-free and zero dielectric displacements conditions at the right and left ends of the beam. 150 points were sampled for each of the right and left ends, generating 300 boundary points in total.
Figure 5 shows the collocation points used to train the PINN on the domain of the beam. 22,500 points were sampled in order to evaluate the PDE residuals according to the loss functions previously defined. The high density of the points helped to represent accurately the piezoelectric equations.
In order to visually analyze the predictions of the PINN, 4000 testing points were generated, depicted in Figure 6. This amount and distribution of points enabled a complete evaluation of the predictions generated by the PINN for the entire beam domain.
In order to perform quantitative testing against an “exact” solution obtained via the classical FEM technique, we used the testing points shown in Figure 7, at each of which we calculated a comparison value using FEM to compare against values generated using the trained neural network. The distribution of the points was selected based on the FEM tool employed, described later.

2.5.2. Training Procedure and Optimizer Configuration

The training of the neural network was done using a two-phase strategy to minimize the loss function Equation (30) [28]. In the first phase, we employed the ADAM optimizer with a learning rate of 0.001 for 1,000 epochs. During each epoch, the full set of collocation and boundary points was passed through the network as a single batch. The second phase of the training employed the L-BFGS optimizer, with a learning rate of 0.01, iterating over 200 epochs.

2.6. Validation of PINN Results

The indirect piezoelectric predictions of the PINN were validated against data generated using a Finite Element Method (FEM) solution. The FEM solution used a triangular 2-D mesh with approximately 3605 nodes [26]. The spatial coordinates generated to compare both methods are shown in Figure 7. These points were fed into the PINN and the predictions for mechanical displacements and electric potential were compared with the FEM results. Let Ψ ( x ) denote the ground truth values (e.g. the FEM solution) and Ψ θ ( x ) the approximation generated by the neural network. First, the comparison between PINN and FEM results was done, by computing and plotting the pointwise relative error, computed as:
P o i n t w i s e   R e l a t i v e   E r r o r = | Ψ θ ( x )   Ψ ( x ) | | Ψ ( x ) + 10 25 | ,
where a small constant term 10 25 was added to the denominator to avoid numerical instability and division by zero in boundary regions where Ψ ( x ) approaches zero.
Second, to obtain a global comparison, the relative L 2 error metric was computed over the full set of points compared as:
R e l a t i v e   L 2 e r r o r = Ψ θ ( x )   Ψ ( x ) 2 Ψ ( x ) 2 .

2.7. Implementation Details and Reproducibility

The simulations and training were performed using Python. PyTorch (v2.6.0+cu124) was the main library employed for automatic differentiation, neural network training, and numerical computations. The experiments were carried out on the Google Colab platform. An Nvidia Tesla T4 GPU with 15 GB of RAM was used, along with a CPU featuring 51 GB of system memory. The environment was configured with CUDA 12.4 and cuDNN version 90100.

3. Results

This section presents the results obtained with the proposed Physics-Informed Neural Network (PINN) model for predicting piezoelectric behaviour in a bimorph cantilever beam. A brief description of the model’s performance when modeling the indirect effect, as well as qualitative and quantitative comparisons between the PINN predictions and Finite Element Method (FEM) simulations, are presented. This includes visualizations of the predicted fields and the relative L 2 error. For the direct effect, the evaluation focuses on the predicted distributions of displacement and electric potential.

3.1. Results: Indirect Piezoelectric Effect

This subsection presents the results obtained with the PINN when modeling the indirect piezoelectric effect. A visual comparison, supported by a relative error computation, is provided between the predicted horizontal and vertical displacements, as well as the electric potential, and the corresponding FEM results. Finally, the relative L 2 error norms are reported to assess the accuracy of the model.

3.1.1. Comparison Between PINN and FEM

Figure 8 illustrates the bimorph piezoelectric cantilever beam vertical cross-section with the results obtained for the deflection in x under the indirect effect. Panel (a) shows the prediction obtained by the proposed PINN, where the red color represents a positive deflection in x, and the blue color a negative deflection in x. PINN predicted positive deflection in x in the upper layer and negative deflection in x in the lower layer. As indicated by the PINN prediction, the displacement is on the order of 10 7 m. Panel (b) presents the expected deflection in x computed via FEM, which shows similar qualitative behavior to the PINN prediction: positive deflection in x in the upper layer and negative deflection in x in the lower layer. Furthermore, the deflection in x given by the FEM simulation is also on the order of 10 7 m. Panel (c) displays the pointwise relative error between both methods. The main disparity occurs at the left end of the beam, where a boundary condition with value 0 is enforced, and at certain regions of the midline. The greatest relative error reaches a value close to 2.4.
Figure 9 presents the deflection in y of the beam. Panel (a) depicts the predictions of the PINN, while panel (b) shows the expected behavior of the deflection in y. For both results, the left part of the beam has almost no deflection in y, indicated by the red color, as expected by the clamped left end of the beam. Towards the right end, the deflection in y gradually increases negatively, with the maximum negative deflection in y occurring at the left tip of the beam. Panel (c) shows the pointwise relative error between the PINN and FEM results. The relative error on the left side of the beam is low. However, the error increases progressively towards the right side of the beam. The largest difference can be found at the left end of the beam, where a Dirichlet boundary condition of value 0 is enforced. It can be observed that the relative error decreases as the deflection in y increases negatively. The highest relative error reaches a value close to 1.0.
Figure 10 shows the electric potential ϕ distribution applied in the piezoelectric beam under the indirect effect. Panel (a) presents the prediction obtained with the proposed PINN, while panel (b) displays the FEM reference solution. In both results, the electric potential increases along the vertical direction, with the minimum value at the bottom surface and the maximum at the top, with a value of approximately 100 V. Both results show smooth gradients across the height of the beam. Panel (c) displays the pointwise relative error between the two fields. The main source of discrepancy is visible at the bottom of the beam, where a boundary condition with value 0 is enforced. It can be observed that the relative error in the rest of the domain is 0. The maximum value of error is 1.0.

3.1.2. Relative L 2

Error Evaluation
Table 5 lists the relative L 2 error measures for the PINN model evaluated, concerning the FEM reference solutions. The errors for the horizontal and vertical displacements are on the order of 10 1 , and the error for the electric potential is in the order of   10 3 .

3.2. PINN Results for the Direct Piezoelectric Effect

In this subsection, the results obtained for modeling the direct piezoelectric effect, using the proposed PINN, are presented. No comparison is made with FEM results due to the absence of available experimental or FEM reference data.
PINN Predictions of the Direct Piezoelectric Effect
Figure 11 presents the predictions from the PINN model for the behavior of the beam under the direct piezoelectric effect. Panel (a) depicts the deflection in x of the beam. The negative values of the deflection in x of the upper layer, which are associated with the blue region, indicate the compression of the beam in the upper layer. The positive values of the lower layer, represented by the red region, indicate the beam under tension.
Panel (b) shows the deflection in y of the beam. Due to the clamped boundary condition on the left end, the deflection in y is zero in that region. Moving towards the right, the deflection increases gradually, with the right tip of the beam experiencing the greatest deflection in y This deflection in y is positive, indicating that the beam bends upward.
Panel (c) displays the electric potential, which is the primary quantity of interest when considering the direct piezoelectric effect. The electric potential is zero at the lower surface of the beam, as imposed by the boundary condition. The PINN predicts a clear voltage gradient between the lower and upper surfaces, with the potential decreasing from bottom to top. At the top the electric potential is on the order of   10 3 V .
Finally, in Figure 12, the beam deformation is illustrated. The original undeformed beam is shown in blue, while the deformed shape is shown in orange. The deformation is scaled by a factor of 50 for visualization purposes. As observed, the beam is bent upwards.

4. Discussion

The obtained results demonstrate that the proposed Physics-Informed Neural Network (PINN) design, explicitly including stress and dielectric displacement as outputs, is able to model the behavior of both the indirect and direct piezoelectric effect on a polyvinylidene fluoride (PVDF) bimorph cantilever beam. For the indirect effect, the model generates accurate predictions when compared with FEM reference solutions in both visual analysis and low metric errors. For the direct piezoelectric effect, the model predictions exhibit physically consistent behavior, even without FEM validation data.
For the indirect piezoelectric effect, the pointwise comparison of the PINN predictions for mechanical displacements with the reference FEM results (Figure 9c and Figure 10c) shows good correspondence between both methods. This indicates that the PINN was able to accurately model both variables. This is quantitatively supported by the L 2 errors of Table 5 which are low. However, the figures also evidence that the PINN accuracy decreases in the regions where a Dirichlet boundary condition with value 0 is enforced, in contrast with regions with larger displacement values. This behavior is expected, as the relative error becomes more sensitive in areas where the reference solution approaches zero, amplifying discrepancies.
Regarding the direct piezoelectric effect, even if there was no FEM data available for comparison, the predictions of the PINN show physically consistent behavior. The beam bends upward under the applied 1 N force in the positive y-direction, as expected. Additionally, the electric potential shows a smooth gradient from 0 V at the lower end of the beam to approximately −0.001 V at the upper end. This indicates a difference in electric potential generated by the applied load, as typical for the direct piezoelectric effect. The consistent behavior of the predictions for the direct effect suggests that the proposed PINN design can generalize to different configurations of the piezoelectric problem.
The analysis of the results evidenced that the proposed PINN model was able to accurately model the behavior of the bimorph cantilever beam under the indirect piezoelectric effect. The PINN also showed physically consistent behavior for the direct piezoelectric effect. Additionally, the decision to include stress and dielectric displacement explicitly in the neural network outputs proved key to the efficiency of the approach and the modeling of the PDEs.

5. Conclusions

This study proposes a Physics Informed Neural Network (PINN) model to simulate both the indirect and direct piezoelectric effects in a 2D polyvinylidene fluoride (PVDF) bimorph cantilever beam under static conditions. A key contribution to the approach is the inclusion of stress and dielectric displacement as explicit outputs of the Neural Network (NN), in addition to the mechanical displacements and electric potential. This proposal avoids the need for second-order derivatives and simplifies the formulation of the Partial Differential Equations (PDEs) involved in the NN loss function. The results show that PINNs accurately modeled the indirect piezoelectric effect, by achieving low pointwise absolute and L 2 errors. Furthermore, the model generated physically consistent predictions for the direct effect, even in the absence of Finite Element Method (FEM) validation data. This work demonstrates the potential of PINNs as an alternative to traditional FEM approaches for multiphysics piezoelectric simulations.

6. Future Work

First, experimental data should be obtained to validate the reliability of the PINN predictions for the direct piezoelectric effect. Second, the proposed architecture could be tested on more complex piezoelectric configurations and devices. In addition, emerging neural network architectures such as Physics-Informed Kolmogorov-Arnold Networks (PIKANs) could be explored to potentially improve convergence, interpretability, and approximation capabilities. Finally, the approach could be extended to time-dependent and frequency-domain formulations of the piezoelectric equations, enabling applications in different domains such as MEMS devices and energy harvesting systems.

Author Contributions

Conceptualization, G.B.; architecture and methodology D.G.; formal analysis, D.G., A.H., L.S., and G.B.; investigation, D.G. and A.H.; writing—original draft preparation, D.G. and A.H.; writing—review and editing, L.S. and G.B.; supervision, G.B.; All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

All code, input files, and training datasets used to produce the results reported in this article are publicly accessible at https://github.com/Daniel14gonc/PINNs_piezoelectricity. This repository includes the PINN implementation, material property tables, and scripts for reproducing the simulat.ions

Acknowledgments

The authors want to thank the institutional support of Centro de Estudios en Informática Aplicada (CEIA). During the preparation of this manuscript, the authors used BoodleBox for structuring the document. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ADAM Adaptive Moment Estimation
DEM Deep Energy Method
EH Energy Harvesting
FEM Finite Element Method
L-BFGS Limited-memory Broyden-Fletcher-Goldfarb-Shanno
ML Machine Learning
PDE Partial Differential Equation
PINN Physics-Informed Neural Networks
PVDF Polyvinylidene fluoride

References

  1. Erhunmwun, D.; Ikponmwosa, U. B. Review on finite element method. J. Appl. Sci. Environ. Manag. 2017, vol. 21(no. 5), 999. [Google Scholar] [CrossRef]
  2. Liu, W. K.; Li, S.; Park, H. S. Eighty Years of the Finite Element Method: Birth, Evolution, and Future. Arch. Comput. Methods Eng. 2022, vol. 29(no. 6), 4431–4453. [Google Scholar] [CrossRef]
  3. Hua, C.; Cao, X.; Liao, B.; Li, S. Advances on intelligent algorithms for scientific computing: an overview. Front. Neurorobotics 2023, vol. 17. [Google Scholar] [CrossRef] [PubMed]
  4. Karniadakis, G. E.; Kevrekidis, I. G.; Lu, L.; Perdikaris, P.; Wang, S.; Yang, L. Physics-informed machine learning. Nat. Rev. Phys. 2021, vol. 3(no. 6), 422–440. [Google Scholar] [CrossRef]
  5. F. Dietrich and Wil Schilders, Scientific machine learning. In Mathematische Semesterberichte; Sep 2025. [CrossRef]
  6. Raissi, M.; Perdikaris, P.; Karniadakis, G. E. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 2019, vol. 378(no. 378), 686–707. [Google Scholar] [CrossRef]
  7. Farea, Amer; Yli-Harja, Olli; Emmert-Streib, F. Understanding Physics-Informed Neural Networks: Techniques, Applications, Trends, and Challenges. AI 2024, vol. 5(no. 3), 1534–1557. [Google Scholar] [CrossRef]
  8. Farea, Amer; Yli-Harja, Olli; Emmert-Streib, F. Understanding Physics-Informed Neural Networks: Techniques, Applications, Trends, and Challenges. AI 2024, vol. 5(no. 3), 1534–1557. [Google Scholar] [CrossRef]
  9. Lu, L.; Meng, X.; Mao, Z.; Karniadakis, G. E. DeepXDE: A Deep Learning Library for Solving Differential Equations. SIAM Rev. 2021, vol. 63(no. 1), 208–228. [Google Scholar] [CrossRef]
  10. Brumand-Poor, Faras; Barlog, F.; Plückhahn, Nils; Thebelt, Matteo; Bauer, N.; Schmitz, K. Physics-Informed Neural Networks for the Reynolds Equation with Transient Cavitation Modeling. Lubricants 2024, vol. 12(no. 11), 365–365. [Google Scholar] [CrossRef]
  11. Martinez, Y.; Rojas, L.; Peña, A.; Valenzuela, M.; Garcia, J. Physics-Informed Neural Networks for the Structural Analysis and Monitoring of Railway Bridges: A Systematic Review. Mathematics 2025, vol. 13(no. 10), 1571–1571. [Google Scholar] [CrossRef]
  12. Wu, C.; Xiao, Z.; Guo, Y.; Zhang, C. Analysis of nonlinear multi-field coupling responses of piezoelectric semiconductor rods via machine learning. Int. J. Smart Nano Mater. 2023, vol. 15(no. 1), 62–74. [Google Scholar] [CrossRef]
  13. Wang, B.; Meng, D.; Lu, C.; Zhang, Q.; Zhao, M.; Zhang, J. Physics-informed neural networks for analyzing size effect and identifying parameters in piezoelectric semiconductor nanowires. J. Appl. Phys. 2025, vol. 137(no. 2). [Google Scholar] [CrossRef]
  14. Bai, C.-Y.; Yeh, F.-Y.; Shu, Y.-C. Physics-informed neural network for parameter identification in a piezoelectric harvester; May 2024; pp. 39–39. [Google Scholar] [CrossRef]
  15. Fan, G.; Guo, N.; Ahmed, M.; Ghazouani, Nejib. Physics-informed neural network-enhanced simulation to estimate piezoelectric energy harvesting in cantilevered metamaterial concrete systems under wind excitation. In Mechanics of Advanced Materials and Structures; Mar 2025; pp. 1–17. [Google Scholar] [CrossRef]
  16. Gu, Y.; Zhang, C.; Golub, M. V. Physics-informed neural networks for analysis of 2D thin-walled structures. Eng. Anal. With Bound. Elem. 2022, vol. 145, 161–172. [Google Scholar] [CrossRef]
  17. Lin, K.-C.; Hu, C.-H.; Wang, K.-C. Innovative deep energy method for piezoelectricity problems. Appl. Math. Model. 2024, vol. 126, 405–419. [Google Scholar] [CrossRef]
  18. Behera, A. Piezoelectric Materials. Adv. Mater. 2021, 43–76. [Google Scholar] [CrossRef]
  19. Li, J. Lead-Free Piezoelectric Materials; 2021. [Google Scholar] [CrossRef]
  20. Pierfort, V. Finite Element Modelling of Piezoelectric Active Structures. PDF. 2001. Available online: https://dipot.ulb.ac.be/dspace/bitstream/2013/211645/1/e6a51429-1dca-4b35-8817-cffa5aa8729b.txt.
  21. Lahmer, T. Forward and Inverse Problems in Piezoelectricity. 2008. Available online: https://d-nb.info/989762831/34.
  22. Nye, J. F. Physical properties of crystals their representation by tensors and matrices; Oxford Clarendon Press, 2012. [Google Scholar]
  23. Parlato, S.; Centracchio, J.; Cinotti, E.; Gargiulo, G. D.; Esposito, D.; Bifulco, P.; Andreozzi, E. A Flexible PVDF Sensor for Forcecardiography. Sensors 2025, 25(5), 1608. [Google Scholar] [CrossRef] [PubMed]
  24. Fotouhi, S.; Akrami, R.; Ferreira-Green, K.; Naser, G. A. M.; Fotouhi, M.; Fragassa, C. Piezoelectric PVDF sensor as a reliable device for strain/load monitoring of engineering structures. IOP Conf. Ser. Mater. Sci. Eng. 2019, 659, 012085. [Google Scholar] [CrossRef]
  25. Pérez, R.; Král, M.; Bleuler, H. Study of polyvinylidene fluoride (PVDF) based bimorph actuators for laser scanning actuation at kHz frequency range. Sens. Actuators A Phys. 2012, 183, 84–94. [Google Scholar] [CrossRef]
  26. Khan, M. U.; Butt, Z.; Elahi, H.; Asghar, W.; Abbas, Z.; Shoaib, M.; Bashir, M. A. Deflection of coupled elasticity–electrostatic bimorph PVDF material: theoretical, FEM and experimental verification. Microsyst. Technol. 2018, 25(8), 3235–3242. [Google Scholar] [CrossRef]
  27. Evans, L. C.; Evans. Partial differential equations; American Mathematical Society: Providence, 1998. [Google Scholar]
  28. Wang, S.; Sankaran, S.; Wang, H.; Perdikaris, P. An Expert’s Guide to Training Physics-informed Neural Networks. arXiv.org. 16 Aug 2023. Available online: https://arxiv.org/abs/2308.08468.
  29. Cai, S.; Mao, Z.; Wang, Z.; Yin, M.; Karniadakis, G. E. Physics-informed neural networks (PINNs) for fluid mechanics: A review. In Arxiv.org; 2021. [Google Scholar] [CrossRef]
  30. Cuomo, S.; Schiano, V.; Giampaolo, F.; Rozza, Gianluigi; Raissi, Maziar; Piccialli, F. Scientific Machine Learning through Physics-Informed Neural Networks: Where we are and What’s next. In ArXiv (Cornell University); 2022. [Google Scholar] [CrossRef]
  31. Wang, Y.; Zhong, L. NAS-PINN: Neural architecture search-guided physics-informed neural network for solving PDEs. In ArXiv; Cornell University, 2023. [Google Scholar] [CrossRef]
  32. Wang, Y.; Han, X.; Chang, C.-Y.; Zha, D.; Braga-Neto, U.; Hu, X. Auto-PINN: Understanding and Optimizing Physics-Informed Neural Architecture. In ArXiv; Cornell University), 2022. [Google Scholar] [CrossRef]
  33. Rao, C.; Sun, H.; Liu, Y. Physics informed deep learning for computational elastodynamics without labeled data. In arXiv (Cornell University); Jan 2020. [Google Scholar] [CrossRef]
  34. Sharma, R.; Shankar, V. Accelerated Training of Physics-Informed Neural Networks (PINNs) using Meshless Discretizations. In arXiv; Cornell University), Jan 2022. [Google Scholar] [CrossRef]
  35. Chen, L.; Li, B.; Luo, C.; et al. WaveNets: physics-informed neural networks for full-field recovery of rotational flow beneath large-amplitude periodic water waves. Eng. With Comput. 2024, 40, 2819–2839. [Google Scholar] [CrossRef]
Figure 1. Piezoelectric modeled device: bimorph beam.
Figure 1. Piezoelectric modeled device: bimorph beam.
Preprints 217070 g001
Figure 2. Boundary conditions for the modeled piezoelectric device: (a) indirect piezoelectric effect; (b) direct piezoelectric effect.
Figure 2. Boundary conditions for the modeled piezoelectric device: (a) indirect piezoelectric effect; (b) direct piezoelectric effect.
Preprints 217070 g002
Figure 3. Schematic representation of the proposed PINN model.
Figure 3. Schematic representation of the proposed PINN model.
Preprints 217070 g003
Figure 4. Boundary condition points used for traction free and zero dielectric displacement.
Figure 4. Boundary condition points used for traction free and zero dielectric displacement.
Preprints 217070 g004
Figure 5. Collocation points sampled from the beam domain employed to train the PINN.
Figure 5. Collocation points sampled from the beam domain employed to train the PINN.
Preprints 217070 g005
Figure 6. Beam domain testing points used to visually analyze the predictions of the PINN for the piezoelectric configurations.
Figure 6. Beam domain testing points used to visually analyze the predictions of the PINN for the piezoelectric configurations.
Preprints 217070 g006
Figure 7. Testing points sampled from the beam domain, used to evaluate the PINN predictions and compare with the FEM results.
Figure 7. Testing points sampled from the beam domain, used to evaluate the PINN predictions and compare with the FEM results.
Preprints 217070 g007
Figure 8. Deflection of the bimorph piezoelectric cantilever beam on the x-axis under indirect piezoelectric effect: (a) PINN prediction; (b) FEM results; (c) relative error between PINN and FEM results.
Figure 8. Deflection of the bimorph piezoelectric cantilever beam on the x-axis under indirect piezoelectric effect: (a) PINN prediction; (b) FEM results; (c) relative error between PINN and FEM results.
Preprints 217070 g008
Figure 9. Deflection of the beam under indirect piezoelectric effect on the y-axis for the: (a) PINN prediction; (b) FEM results; (c) relative error between PINN and FEM results.
Figure 9. Deflection of the beam under indirect piezoelectric effect on the y-axis for the: (a) PINN prediction; (b) FEM results; (c) relative error between PINN and FEM results.
Preprints 217070 g009
Figure 10. Electric potential of the beam under indirect piezoelectric effect: (a) PINN prediction; (b) FEM results; (c) relative error between PINN and FEM results.
Figure 10. Electric potential of the beam under indirect piezoelectric effect: (a) PINN prediction; (b) FEM results; (c) relative error between PINN and FEM results.
Preprints 217070 g010
Figure 11. Predictions of the proposed PINN for the behavior of the bimorph cantilever beam under the direct piezoelectric effect: (a) deflection in x; (b) deflection in y; (c) electric potential.
Figure 11. Predictions of the proposed PINN for the behavior of the bimorph cantilever beam under the direct piezoelectric effect: (a) deflection in x; (b) deflection in y; (c) electric potential.
Preprints 217070 g011
Figure 12. Visualization of the deformation of the bimorph cantilever beam under the direct piezoelectric effect.
Figure 12. Visualization of the deformation of the bimorph cantilever beam under the direct piezoelectric effect.
Preprints 217070 g012
Table 1. PVDF piezoelectric, elastic, and dielectric permittivity coefficients common to both layers of the modelled parallel bimorph beam.
Table 1. PVDF piezoelectric, elastic, and dielectric permittivity coefficients common to both layers of the modelled parallel bimorph beam.
Material Property Value
c 11 2.1836 × 10 9 N / m 2
c 12 0.6332 × 10 9 N / m 2
c 22 2.1836 × 10 9 N / m 2
c 33 0.775 × 10 9 N / m 2
e 11 0 C / m 2
e 13 0 C / m 2
e 14 0 C / m 2
e 34 0   C / m 2
ϵ 1 1.062 × 10 10   F / m
ϵ 2 1.041 × 10 10   F / m
Table 2. Polarization-dependent PVDF piezoelectric coefficients for upper and lower beam layers.
Table 2. Polarization-dependent PVDF piezoelectric coefficients for upper and lower beam layers.
Material Property Value
e 31 upper layer 2.904 × 10 2 C / m 2
e 33 upper layer 5.157 × 10 2 C / m 2
e 31 lower layer 2.904 × 10 2 C / m 2
e 33 lower layer 5.157 × 10 2 C / m 2
Table 3. Summary of the proposed PINN architecture, including the number of neurons per layer and activation function.
Table 3. Summary of the proposed PINN architecture, including the number of neurons per layer and activation function.
Layer number Layer name Layer input size (neurons)
1 Input 2
2 Dense layer 1 (tanh) 100
3 Dense layer 2 (tanh) 250
9 Output layer 8
Table 5. Relative L 2 errors for mechanical displacements and electric potential for the PINN predictions.
Table 5. Relative L 2 errors for mechanical displacements and electric potential for the PINN predictions.
Deflection in x   L 2 error Deflection in y   L 2 error Electric potential   L 2 error
1.9596 × 10 1 1.9291 × 10 1 1.0272 × 10 3
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated