Skip to content

Euler beam 1D

Example
Source DeepXDE example
Problem Forward and Inverse (the Inverse mode is PINNStudio's addition)
Dimension 1D (x)
Regime Steady
Geometry Interval
Outputs u
Settings Default, Tuned

Governing equations

Mathematical form (from the benchmark records):

\[\frac{d^4u}{dx^4} = -1, \qquad x \in [0, 1]\]

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

du_xxxx + 1

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

EI*du_xxxx + 1

Domain

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

Boundary conditions

Type Where Output Value Details
Dirichlet BC left u 0 —
Neumann BC left u 0 —
Operator BC (advanced) right — du_xx —
Operator BC (advanced) right — du_xxx —

Unknowns and measured data (Inverse)

Trainable parameter Initial value True value
EI 2 1

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

Settings

Forward mode

Settings: Default — DeepXDE's own settings

  • Network: FNN, hidden layers 3 × 20, inputs (x), 1 output; activation tanh, initializer Glorot uniform
  • Points: 10 domain, 2 boundary, 100 test
  • Loss weights: 1,1,1,1,1 (equations, then boundary-condition rows)
Phase Optimizer Iterations Learning rate Decay
1 Adam 10,000 0.001 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: FNN, hidden layers 4 × 40, inputs (x), 1 output; activation tanh, initializer Glorot uniform
  • Points: 30 domain, 6 boundary, 100 test
  • Loss weights: 1,1,1,1,1 (equations, then boundary-condition rows)
Phase Optimizer Iterations Learning rate Decay
1 Adam 30,000 0.001 none
2 L-BFGS 15,000 — none

Inverse mode

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

  • Network: FNN, hidden layers 3 × 20, inputs (x), 1 output; activation tanh, initializer Glorot uniform
  • Points: 10 domain, 2 boundary, 100 test
  • Loss weights: 1,1,1,1,1 (equations, then boundary-condition rows)
Phase Optimizer Iterations Learning rate Decay
1 Adam 10,000 0.001 none
2 L-BFGS 15,000 — none
Settings: Tuned

The Training Log reports: Tuned settings: a larger network (hidden layers twice as wide, one more layer). The change is applied to the example's own settings.

  • Network: FNN, hidden layers 4 × 40, inputs (x), 1 output; activation tanh, initializer Glorot uniform
  • Points: 10 domain, 2 boundary, 100 test
  • Loss weights: 1,1,1,1,1 (equations, then boundary-condition rows)
Phase Optimizer Iterations Learning rate Decay
1 Adam 10,000 0.001 none
2 L-BFGS 15,000 — none

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 2.8 × 10⁻⁴
Forward result: PINN and reference along lines
Forward, Tuned settings: PINN and reference along lines.

Inverse problem

Settings: Tuned — Larger network (2× width, one more layer). Values: median over seeds 2026, 1, 2.

Parameter True value Recovered Relative error
EI 1 1.00153 0.15 %

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

Inverse result: PINN and reference along lines
Inverse, Tuned settings: PINN and reference along lines.
Inverse result: parameter convergence
Inverse, Tuned settings: parameter convergence.

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 ── 1D ── heading, Euler beam 1D › Default or Tuned, then Solve.
  • Inverse: toolbar Examples: › Inverse › under the ── 1D ── heading, Euler beam 1D › Default or Tuned, 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

  • Exact solution, Error Analysis › reference from formula: u = -x**4/24 + x**3/6 - x**2/4

Notes

  • Inverse mode (PINNStudio's addition): the bending stiffness EI (1 in the forward equation; initial guess 2) is learned from the deflection measured at 20 points (reference_data/deepxde/euler_beam_inverse). An L-BFGS phase follows Adam.

Definition and records

How the benchmark values were measured and checked: Reproducibility.

← Back to the example gallery