Helmholtz 2D – sound-hard scattering¶
| Example | |
|---|---|
| Source | DeepXDE example |
| Problem | Forward |
| Dimension | 2D (x, y) |
| Regime | Steady |
| Geometry | Rectangle − Disk |
| Outputs | u_re, u_im |
| 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):
Constants: k0 = 2, R = pi/4
Domain¶
- Custom geometry (Geometry › Custom): Rectangle (x_min = -3.14159, x_max = 3.14159, y_min = -3.14159, y_max = 3.14159), minus Disk (cx = 0, cy = 0, r = 0.785398)
Boundary conditions¶
| Type | Where | Output | Value | Details |
|---|---|---|---|---|
| Neumann BC | np.isclose(x**2 + y**2, R**2) |
u_re |
-k0*x*sin(k0*x)/R |
— |
| Neumann BC | np.isclose(x**2 + y**2, R**2) |
u_im |
k0*x*cos(k0*x)/R |
— |
| Robin BC | left or right or bottom or top |
u_re |
-k0*u_im |
value is the right-hand side of du/dn = f(x, u) |
| Robin BC | left or right or bottom or top |
u_im |
k0*u_re |
value is the right-hand side of du/dn = f(x, u) |
Settings¶
Settings: Default — DeepXDE's own settings
- Network: FNN, hidden layers 3 × 350, inputs (x, y), 2 outputs; activation tanh, initializer Glorot uniform
- Points: 1,600 domain, 320 boundary, 8,000 test
- Loss weights:
1,1,1,1,1,1(equations, then boundary-condition rows)
| Phase | Optimizer | Iterations | Learning rate | Decay |
|---|---|---|---|---|
| 1 | Adam | 10,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 (no change did better); the example has no separate Tuned preset for this mode. Values: median over seeds 2026, 1, 2.
| Output | Relative L₂ |
|---|---|
| u_re | 8.0 × 10⁻² |
| u_im | 6.9 × 10⁻² |
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, Helmholtz 2D – sound-hard scattering › 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/deepxde/helmholtz_sound_hard/
Notes¶
- Scattering of the plane wave exp(i k0 x) by a sound-hard disk: u_re, u_im are the real and imaginary parts of the scattered field. On the disk, du/dn = -d(exp(i k0 x))/dn (Neumann rows); on the outer square, the first-order absorbing condition du/dn = i k0 u (Robin rows, each using the other part). Reference: the Bessel/Hankel series of DeepXDE's script, written by tools/make_deepxde_reference_data.py.
Definition and records¶
- Definition:
EXAMPLESentry "Helmholtz sound-hard scattering (absorbing BC)" inpinnstudio/core/deepxde_examples.py - Equations: Governing equations on this page
- Reference data:
reference_data/deepxde/helmholtz_sound_hard/, written bytools/make_deepxde_reference_data.py - Benchmark records:
benchmarks/problems/helmholtz-2d-sound-hard-scattering.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):
Helmholtz 2D – sound-hard scattering (tuned).pinn.json - DeepXDE example: Helmholtz_Sound_hard_ABC_2d.py
- Cite: Lu et al. 2021 (DeepXDE)
How the benchmark values were measured and checked: Reproducibility.
