Skip to content

Laplace 2D – disk

Example
Source DeepXDE example
Problem Forward
Dimension 2D (x, y)
Regime Steady
Geometry Rectangle in (r, θ)
Outputs u
Settings Default (no separate Tuned preset)

Governing equations

Mathematical form (from the benchmark records):

\[r\frac{\partial u}{\partial r} + r^2\frac{\partial^2 u}{\partial r^2} + \frac{\partial^2 u}{\partial \theta^2} = 0, \qquad r \in [0, 1],\ \theta \in [0, 2\pi]\]

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

x*du_x + x**2*du_xx + du_yy

Domain

  • Rectangle in polar coordinates (x is r, y is θ): \(x \in [0, 1]\), \(y \in [0, 6.28319]\)

Boundary conditions

Type Where Output Value Details
Dirichlet BC right u cos(y) —

Settings

Settings: Default — DeepXDE's own settings

  • Network: FNN, hidden layers 3 × 20, inputs (x, y), 1 output; activation tanh, initializer Glorot normal
  • Points: 2,540 domain, 80 boundary, 1,000 test
  • Loss weights: 1,1 (equations, then boundary-condition rows)
  • Methods: input features x*sin(y); x*cos(y) (reference)
Phase Optimizer Iterations Learning rate Decay
1 Adam 15,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 1.1 × 10⁻³
Forward result: PINN, reference and error
Forward, Default settings: PINN, reference and error.

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, Laplace 2D – disk › 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*cos(y)

Notes

  • Solved in polar coordinates as DeepXDE does: x is the radius r in [0, 1] and y the angle theta in [0, 2 pi], so plots show the (r, theta) rectangle.

Definition and records

How the benchmark values were measured and checked: Reproducibility.

← Back to the example gallery