Skip to content

Linear elasticity 2D – plate

Example
Source DeepXDE example
Problem Forward and Inverse (the Inverse mode is PINNStudio's addition)
Dimension 2D (x, y)
Regime Steady
Geometry Rectangle
Outputs ux, uy, sxx, syy, sxy
Settings Default, Tuned

Governing equations

Mathematical form (from the benchmark records):

\[\frac{\partial \sigma_{xx}}{\partial x} + \frac{\partial \sigma_{xy}}{\partial y} = f_x, \qquad \frac{\partial \sigma_{xy}}{\partial x} + \frac{\partial \sigma_{yy}}{\partial y} = f_y\]
\[\sigma_{xx} = (\lambda + 2\mu)\varepsilon_{xx} + \lambda\varepsilon_{yy}, \quad \sigma_{yy} = (\lambda + 2\mu)\varepsilon_{yy} + \lambda\varepsilon_{xx}, \quad \sigma_{xy} = 2\mu\varepsilon_{xy}\]

As typed in PINNStudio's Equations page (each expression is a residual, set to zero):

dsxx_x + dsxy_y - (-lmbd*(4*pi**2*cos(2*pi*x)*sin(pi*y) - Q*y**3*pi*cos(pi*x)) - mu*(pi**2*cos(2*pi*x)*sin(pi*y) - Q*y**3*pi*cos(pi*x)) - 8*mu*pi**2*cos(2*pi*x)*sin(pi*y))
dsxy_x + dsyy_y - (lmbd*(3*Q*y**2*sin(pi*x) - 2*pi**2*cos(pi*y)*sin(2*pi*x)) - mu*(2*pi**2*cos(pi*y)*sin(2*pi*x) + Q*y**4*pi**2*sin(pi*x)/4) + 6*Q*mu*y**2*sin(pi*x))
(2*mu + lmbd)*dux_x + lmbd*duy_y - sxx
(2*mu + lmbd)*duy_y + lmbd*dux_x - syy
mu*(dux_y + duy_x) - sxy

Constants: lmbd = 1, mu = 0.5, Q = 4

As typed in PINNStudio's Equations page (Inverse mode) (each expression is a residual, set to zero):

dsxx_x + dsxy_y - (-(1)*(4*pi**2*cos(2*pi*x)*sin(pi*y) - Q*y**3*pi*cos(pi*x)) - (0.5)*(pi**2*cos(2*pi*x)*sin(pi*y) - Q*y**3*pi*cos(pi*x)) - 8*(0.5)*pi**2*cos(2*pi*x)*sin(pi*y))
dsxy_x + dsyy_y - ((1)*(3*Q*y**2*sin(pi*x) - 2*pi**2*cos(pi*y)*sin(2*pi*x)) - (0.5)*(2*pi**2*cos(pi*y)*sin(2*pi*x) + Q*y**4*pi**2*sin(pi*x)/4) + 6*Q*(0.5)*y**2*sin(pi*x))
(2*mu + lmbd)*dux_x + lmbd*duy_y - sxx
(2*mu + lmbd)*duy_y + lmbd*dux_x - syy
mu*(dux_y + duy_x) - sxy

Constants: Q = 4

Domain

  • Rectangle: \(x \in [0, 1]\), \(y \in [0, 1]\)

Boundary conditions

No boundary-condition rows: the boundary values are imposed exactly through the network's output transform (see Methods below), or the problem has no boundary terms.

Unknowns and measured data (Inverse)

Trainable parameter Initial value True value
lmbd 2 1
mu 1 0.5

Measured data (Inverse page, measured-data files):

Settings

Forward mode

Settings: Default — DeepXDE's own settings

  • Network: parallel FNN (PFNN), hidden layers 4 × 40, inputs (x, y), 5 outputs; activation tanh, initializer Glorot uniform
  • Points: 500 domain, 500 boundary, 100 test
  • Loss weights: 1,1,1,1,1 (equations, then boundary-condition rows)
  • Methods: output transform ux*y*(1 - y)|uy*x*(1 - x)*y|sxx*x*(1 - x)|syy*(1 - y) + (lmbd + 2*mu)*Q*sin(pi*x)|sxy (reference)
Phase Optimizer Iterations Learning rate Decay
1 Adam 20,000 0.001 none
2 L-BFGS 20,000 — none
Settings: Tuned

The Training Log reports: Tuned settings: 3× iterations, a larger network, 3× points and an L-BFGS phase together. The change is applied to the example's own settings.

  • Network: parallel FNN (PFNN), hidden layers 5 × 80, inputs (x, y), 5 outputs; activation tanh, initializer Glorot uniform
  • Points: 1,500 domain, 1,500 boundary, 100 test
  • Loss weights: 1,1,1,1,1 (equations, then boundary-condition rows)
  • Methods: output transform ux*y*(1 - y)|uy*x*(1 - x)*y|sxx*x*(1 - x)|syy*(1 - y) + (lmbd + 2*mu)*Q*sin(pi*x)|sxy (reference)
Phase Optimizer Iterations Learning rate Decay
1 Adam 60,000 0.001 none
2 L-BFGS 60,000 — none

Inverse mode

Settings: Default — DeepXDE's settings with PINNStudio's Inverse-mode changes (see Notes)

  • Network: parallel FNN (PFNN), hidden layers 4 × 40, inputs (x, y), 5 outputs; activation tanh, initializer Glorot uniform
  • Points: 500 domain, 500 boundary, 100 test
  • Loss weights: 1,1,1,1,1 (equations, then boundary-condition rows)
  • Methods: output transform ux*y*(1 - y)|uy*x*(1 - x)*y|sxx*x*(1 - x)|syy*(1 - y) + (1 + 2*0.5)*Q*sin(pi*x)|sxy (reference)
Phase Optimizer Iterations Learning rate Decay
1 Adam 20,000 0.001 none
2 L-BFGS 20,000 — none

No separate Tuned preset: the Tuned item is greyed out for this example (its Default settings are PINNStudio's best).

Results

The configuration selected in PINNStudio's benchmark study, run on one RTX 4090. Forward: relative L₂ error of each output at the last reference time. Inverse: each parameter's relative error and, per seed, the largest of them (worst parameter error).

Forward problem

Settings: Tuned — all of the changes together. Values: median over seeds 2026, 1, 2.

Output Relative L₂
uₓ 1.3 × 10⁻⁴
uᵧ 2.7 × 10⁻⁴
σₓₓ 1.7 × 10⁻⁴
σᵧᵧ 3.8 × 10⁻⁴
σₓᵧ 8.4 × 10⁻⁴
Forward result: PINN, reference and error, uₓ
Forward, Tuned settings: PINN, reference and error, uₓ.
Other outputs (4 figures)

Forward result: PINN, reference and error, σₓₓ
Forward, Tuned settings: PINN, reference and error, σₓₓ.

Forward result: PINN, reference and error, σₓᵧ
Forward, Tuned settings: PINN, reference and error, σₓᵧ.

Forward result: PINN, reference and error, σᵧᵧ
Forward, Tuned settings: PINN, reference and error, σᵧᵧ.

Forward result: PINN, reference and error, uᵧ
Forward, Tuned settings: PINN, reference and error, uᵧ.

Inverse problem

Settings: Default — the example's own settings (no change did better); the example has no separate Tuned preset for this mode. Values: median over seeds 2026, 1, 2.

Parameter True value Recovered Relative error
lmbd 1 0.999548 0.045 %
μ 0.5 0.500189 0.038 %

Worst parameter error: 0.045 % (the median over the seeds of each seed's largest error).

Inverse result: PINN, reference and error, σₓₓ
Inverse, Default settings: PINN, reference and error, σₓₓ.
Inverse result: parameter convergence
Inverse, Default settings: parameter convergence.
Other outputs (4 figures)

Inverse result: PINN, reference and error, σₓᵧ
Inverse, Default settings: PINN, reference and error, σₓᵧ.

Inverse result: PINN, reference and error, σᵧᵧ
Inverse, Default settings: PINN, reference and error, σᵧᵧ.

Inverse result: PINN, reference and error, uₓ
Inverse, Default settings: PINN, reference and error, uₓ.

Inverse result: PINN, reference and error, uᵧ
Inverse, Default settings: PINN, reference and error, uᵧ.

Full benchmark record: every setting tried, the per-seed values and all figures are in the benchmark records on GitHub.

Loading it in PINNStudio

  • Forward: toolbar Examples: › Forward › under the ── 2D ── heading, Linear elasticity 2D – plate › Default or Tuned, then Solve.
  • Inverse: toolbar Examples: › Inverse › under the ── 2D ── heading, Linear elasticity 2D – plate › Default, then Solve.

Loading an example fills in every setting; anything you change before Solve is listed in the Training Log. Your save folder, GPU, random-seed and plot-style settings are kept.

Reference solution

  • Forward mode: exact solution, Error Analysis › reference from formula: ux = cos(2*pi*x)*sin(pi*y), uy = sin(pi*x)*Q*y**4/4, sxx = (2*mu + lmbd)*(-2*pi*sin(2*pi*x)*sin(pi*y)) + lmbd*sin(pi*x)*Q*y**3, syy = (2*mu + lmbd)*sin(pi*x)*Q*y**3 + lmbd*(-2*pi*sin(2*pi*x)*sin(pi*y)), sxy = mu*(pi*cos(2*pi*x)*cos(pi*y) + pi*cos(pi*x)*Q*y**4/4)
  • Inverse mode: exact solution, Error Analysis › reference from formula: ux = cos(2*pi*x)*sin(pi*y), uy = sin(pi*x)*Q*y**4/4, sxx = (2*(0.5) + (1))*(-2*pi*sin(2*pi*x)*sin(pi*y)) + (1)*sin(pi*x)*Q*y**3, syy = (2*(0.5) + (1))*sin(pi*x)*Q*y**3 + (1)*(-2*pi*sin(2*pi*x)*sin(pi*y)), sxy = (0.5)*(pi*cos(2*pi*x)*cos(pi*y) + pi*cos(pi*x)*Q*y**4/4)

Notes

  • Boundary conditions are imposed exactly through the output transform (DeepXDE's default 'hard' setting), so the Boundary Conditions panel is empty. Training: 20,000 Adam + 20,000 L-BFGS iterations instead of DeepXDE's 5,000 Adam, which are not enough for this problem (L2 errors of 0.2-1.6).
  • Inverse mode (PINNStudio's addition): the Lamé parameters lmbd (initial guess 2, true 1) and mu (initial guess 1, true 0.5) are learned from the displacements ux and uy measured on a 19 x 19 grid (reference_data/deepxde/elasticity_inverse). The body force keeps the true values (it is the known load), so lmbd and mu are unknown only in the stress-strain law.

Definition and records

How the benchmark values were measured and checked: Reproducibility.

← Back to the example gallery