Skip to content

Poisson 1D – Dirichlet/point-set operator

Example
Source DeepXDE example
Problem Forward
Dimension 1D (x)
Regime Steady
Geometry Interval
Outputs u
Settings Default (no separate Tuned preset)

Governing equations

Mathematical form (from the benchmark records):

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

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

du_xx - 2

Domain

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

Boundary conditions

Type Where Output Value Details
Dirichlet BC left u 0 —
Point Set Operator BC (advanced, from file) — — du_x points: 1; operator du_x equals 4 at the points

Settings

Settings: Default — DeepXDE's own settings

  • Network: FNN, hidden layers 3 × 50, inputs (x), 1 output; activation tanh, initializer Glorot uniform
  • Points: 16 domain, 2 boundary, 100 test
  • Loss weights: 1,1,1 (equations, then boundary-condition rows)
Phase Optimizer Iterations Learning rate Decay
1 Adam 20,000 0.001 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: Default — the example's own settings (not in the tuning sweep); the example has no separate Tuned preset for this mode. Values: one run, seed 2026.

Output Relative L₂
u 2.6 × 10⁻⁵
Forward result: PINN and reference along lines
Forward, Default settings: PINN and reference along lines.

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, Poisson 1D – Dirichlet/point-set operator › 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

  • Exact solution, Error Analysis › reference from formula: u = (x + 1)**2

Notes

  • DeepXDE trains Adam twice for 10,000 iterations (the first run with derivative-logging callbacks); here that is one 20,000-iteration Adam run. The left boundary value (x + 1)^2 in DeepXDE's script is 0 at x = -1, and its point-set operator condition is du/dx = 2(x + 1) = 4 at the one point x = 1 (typed in the row, no file).

Definition and records

How the benchmark values were measured and checked: Reproducibility.

← Back to the example gallery