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):
As typed in PINNStudio's Equations page (each expression is a residual, set to zero):
As typed in PINNStudio's Equations page (Inverse mode) (each expression is a residual, set to zero):
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):
reference_data/3D/poisson_sphere/u_obs.txt→ outputu, weight 100
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⁻³ |
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 %.
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¶
- Reference data files:
reference_data/3D/poisson_sphere/
Definition and records¶
- Definition: template "3D Poisson (Sphere)" in
MainWindow._on_template_selected,pinnstudio/ui/main_window.py- Inverse mode:
MainWindow.INVERSE_AUTO_VARS["3D Poisson (Sphere)"](unknowns) andINVERSE_AUTO_OBS["3D Poisson (Sphere)"](measured data), same file
- Inverse mode:
- Equations: Governing equations on this page
- Reference data:
reference_data/3D/poisson_sphere/, written bytools/make_poisson_reference_data.py - Measured data (Inverse):
reference_data/3D/poisson_sphere/, written bytools/make_poisson_reference_data.py - Benchmark records:
benchmarks/problems/poisson-3d-sphere.md, its entry in the examples overview, the benchmark collection - Tuning-study configurations (records of the tuning study; open one with Problem › Open Saved Problem...; not presets of the Examples list):
Poisson 3D – sphere (PINNStudio template) (tuned).pinn.json,Poisson 3D – sphere (PINNStudio template), inverse mode (tuned).pinn.json - Cite: PINNStudio's own problem (no source paper)
How the benchmark values were measured and checked: Reproducibility.