This project demonstrates how PINNs can be used as a mesh-free alternative for solving elasticity problems while preserving physical consistency through the loss formulation.
This project studies the simple bending of a 2D square domain under plane stress conditions. The right edge is fixed, while a prescribed shear traction is applied on the left edge:
The objective is to use a Physics-Informed Neural Network (PINN) to approximate the displacement and stress fields of the domain.
The spatial coordinates
- inside the square domain,
- and along its boundary.
These coordinates are used as the inputs to the neural network.
The network predicts the following output fields:
To enforce the physical behavior of the problem, the model uses:
- equilibrium equations,
- strain-displacement relations,
- and plane stress constitutive equations.
Using the predicted displacement field, the strain components
are computed, and from these, the corresponding stress relations are evaluated.
The PINN is trained by minimizing residuals derived from the governing equations and boundary conditions.
The residuals are obtained by comparing:
- the stress components predicted by the neural network, and
- the stress components computed from the constitutive relations.
Mean Squared Error (MSE) losses are then defined for:
- equilibrium equations,
- displacement constraints,
- additional boundary conditions,
- prescribed boundary conditions.
The total loss is written as:
The following test case is considered:
Case 1:
The weight factors in the individual loss terms are varied, and the resulting model performance is compared. The best configuration is selected based on the lowest absolute and relative errors in the predicted stress components.
The purpose of this project is to investigate how effectively a PINN can solve a 2D elasticity bending problem and how the choice of loss weighting influences the accuracy of the predicted displacement and stress fields.