Skip to content

Poisson 3D – sphere

Example
Source PINNStudio template
Problem Forward and Inverse
Dimension 3D (x, y, z)
Regime Steady
Geometry Sphere
Outputs u
Settings Default (no separate Tuned preset)

Governing equations

Mathematical form (from the benchmark records):

\[-\frac{\partial^2 u}{\partial x^2} - \frac{\partial^2 u}{\partial y^2} - \frac{\partial^2 u}{\partial z^2} = 1, \qquad x^2 + y^2 + z^2 \le 1\]

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

-du_xx - du_yy - du_zz - 1

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

-du_xx - du_yy - du_zz - source_term

Domain

  • Sphere: centre (0, 0, 0), radius 1

Boundary conditions

Type Where Output Value Details
Dirichlet BC True (the whole boundary) u 0 —

Unknowns and measured data (Inverse)

Trainable parameter Initial value True value
source_term 0.1 1

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

From the benchmark records: same template, switched to Inverse, recovering the source term (fixed at \(1\) in Forward mode) as an unknown parameter from 300 measured points

Settings

Forward mode

Settings: Default — the template's own settings

  • Network: FNN, hidden layers 4 × 50, inputs (x, y, z), 1 output; activation tanh, initializer Glorot uniform
  • Points: 2,000 domain, 300 boundary, 2,000 test
  • Loss weights: 1.0,1.0 (equations, then boundary-condition rows)
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).

Inverse mode

Settings: Default — the template's own settings

  • Network: FNN, hidden layers 4 × 50, inputs (x, y, z), 1 output; activation tanh, initializer Glorot uniform
  • Points: 2,000 domain, 300 boundary, 2,000 test
  • Loss weights: 1.0,1.0,100.0 (equations, then boundary-condition rows, then measured data)
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: 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₂
solution 1.5 × 10⁻³
Forward result: PINN, reference and error
Forward, Default settings: PINN, reference and error.

Inverse problem

Settings: Default — the example's own settings (no change did better); the example has no separate Tuned preset for this mode. Values: one run, seed 2026.

Parameter True value Recovered Relative error
f 1 1.00005 0.005 %

Worst parameter error: 0.005 %.

Inverse result: PINN, reference and error
Inverse, Default settings: PINN, reference and error.
Inverse result: parameter convergence
Inverse, Default 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 ── 3D ── heading, Poisson 3D – sphere › Default, then Solve.
  • Inverse: toolbar Examples: › Inverse › under the ── 3D ── heading, Poisson 3D – sphere › 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

Definition and records

How the benchmark values were measured and checked: Reproducibility.

← Back to the example gallery