Burgers 2D – Mathias et al.¶
| Example | |
|---|---|
| Source | PINNStudio template |
| Problem | Forward and Inverse |
| Dimension | 2D (x, y, t) |
| Regime | Time-dependent |
| Geometry | Rectangle |
| Outputs | u, v |
| Settings | Default, Tuned |
Governing equations¶
Mathematical form (from the benchmark records):
As typed in PINNStudio's Equations page (each expression is a residual, set to zero):
du_t + u*du_x + v*du_y - (0.01/pi)*(du_xx + du_yy)
dv_t + u*dv_x + v*dv_y - (0.01/pi)*(dv_xx + dv_yy)
As typed in PINNStudio's Equations page (Inverse mode) (each expression is a residual, set to zero):
Domain¶
- Rectangle: \(x \in [0, 1]\), \(y \in [0, 1]\)
- Time interval: \(t \in [0, 1]\)
Initial conditions¶
| Output | Initial value | How it is imposed (Settings: Default) |
|---|---|---|
u |
sin(2*pi*x)*sin(2*pi*y) |
not used as a loss term |
v |
sin(pi*x)*sin(pi*y) |
not used as a loss term |
Boundary conditions¶
No boundary-condition rows: the boundary values are imposed exactly through the network's output transform (see Methods below), or the problem has no boundary terms.
Unknowns and measured data (Inverse)¶
| Trainable parameter | Initial value | True value |
|---|---|---|
nu |
1 | 0.0031831 |
Measured data (Inverse page, measured-data files):
reference_data/2D/burgers_mathias/t_1.0_u.txt→ outputu, weight 100reference_data/2D/burgers_mathias/t_1.0_v.txt→ outputv, weight 100
From the benchmark records: same template, switched to Inverse, recovering the shared viscosity \(\nu\) (true value \(0.01/\pi \approx 3.18 \times 10^{-3}\), initial guess 1) from \(U\) and \(V\) measured at \(t = 1\), each against its own output. \(\nu\) converges to 3.44 × 10⁻³, and the \(L_2\) error at \(t = 1\) is 3.7 × 10⁻³ for \(U\) and 3.1 × 10⁻³ for \(V\).
Settings¶
Forward mode¶
Settings: Default — the paper's method (Mathias et al. 2022)
- Network: FNN, hidden layers 4 × 20, inputs (x, y, t), 2 outputs; activation tanh, initializer Glorot uniform
- Points: 10,000 domain, 0 boundary, 0 initial, 1,000 test
- Loss weights:
1.0,1.0(equations, then boundary-condition rows, then initial conditions) - Methods: output transform
u*16*x*(1 - x)*y*(1 - y)*tanh(26.4*t) + (1 - 16*x*(1 - x)*y*(1 - y)*tanh(26.4*t))*sin(2*pi*x)*sin(2*pi*y)|v*16*x*(1 - x)*y*(1 - y)*tanh(26.4*t) + (1 - 16*x*(1 - x)*y*(1 - y)*tanh(26.4*t))*sin(pi*x)*sin(pi*y)(reference)
| Phase | Optimizer | Iterations | Learning rate | Decay |
|---|---|---|---|---|
| 1 | Adam | 99,999 | 0.01 | none |
Settings: Tuned
The Training Log reports: Tuned settings: 3× the iterations of every training phase. The change is applied to the template's own settings (not the paper's method that Default loads).
- Network: FNN, hidden layers 4 × 128, inputs (x, y, t), 2 outputs; activation tanh, initializer Glorot uniform
- Points: 8,000 domain, 2,000 boundary, 2,000 initial, 1,000 test
- Loss weights:
1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,100.0,100.0(equations, then boundary-condition rows, then initial conditions) - Methods: time windows (4 windows, transfer learning)
| Phase | Optimizer | Iterations | Learning rate | Decay |
|---|---|---|---|---|
| 1 | Adam | 45,000 | 0.001 | none |
| 2 | L-BFGS | 30,000 | — | none |
Inverse mode¶
Settings: Default — the template's own settings
- Network: FNN, hidden layers 4 × 128, inputs (x, y, t), 2 outputs; activation tanh, initializer Glorot uniform
- Points: 8,000 domain, 2,000 boundary, 2,000 initial, 1,000 test
- Loss weights:
1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,100.0,100.0,100.0,100.0(equations, then boundary-condition rows, then initial conditions, then measured data)
| Phase | Optimizer | Iterations | Learning rate | Decay |
|---|---|---|---|---|
| 1 | Adam | 15,000 | 0.001 | none |
| 2 | L-BFGS | 10,000 | — | none |
Settings: Tuned
The Training Log reports: Tuned settings: measured data at every reference time after t = 0. The change is applied to the example's own settings.
- Network: FNN, hidden layers 4 × 128, inputs (x, y, t), 2 outputs; activation tanh, initializer Glorot uniform
- Points: 8,000 domain, 2,000 boundary, 2,000 initial, 1,000 test
- Loss weights:
1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,100.0,100.0,100.0,100.0(equations, then boundary-condition rows, then initial conditions, then measured data)
| Phase | Optimizer | Iterations | Learning rate | Decay |
|---|---|---|---|---|
| 1 | Adam | 15,000 | 0.001 | none |
| 2 | L-BFGS | 10,000 | — | none |
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: Tuned — 3× iterations. Values: median over seeds 2026, 1, 2.
| Output | Relative L₂ |
|---|---|
| u | 8.3 × 10⁻³ |
| v | 3.9 × 10⁻³ |
Inverse problem¶
Settings: Tuned — Measured data at every reference time. Values: median over seeds 2026, 1, 2.
| Parameter | True value | Recovered | Relative error |
|---|---|---|---|
| ν | 0.0031831 | 0.00318823 | 0.16 % |
Worst parameter error: 0.16 % (the median over the seeds of each seed's largest 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, Burgers 2D – Mathias et al. › Default or Tuned, then Solve.
- Inverse: toolbar Examples: › Inverse › under the ── 2D ── heading, Burgers 2D – Mathias et al. › Default or Tuned, 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/2D/burgers_mathias/
Definition and records¶
- Definition: template "2D Burgers (Mathias)" in
MainWindow._on_template_selected,pinnstudio/ui/main_window.py- Inverse mode:
MainWindow.INVERSE_AUTO_VARS["2D Burgers (Mathias)"](unknowns) andINVERSE_AUTO_OBS["2D Burgers (Mathias)"](measured data), same file - Settings: Default (the paper's method):
_burgers2d_mathiasinpinnstudio/core/paper_settings.py - Settings: Tuned: entry "2D Burgers (Mathias)" in
pinnstudio/resources/tuned_settings.json
- Inverse mode:
- Equations: Governing equations on this page
- Reference data:
reference_data/2D/burgers_mathias/, written bytools/make_burgers2d_reference_data.py - Measured data (Inverse):
reference_data/2D/burgers_mathias/, written bytools/make_burgers2d_reference_data.py - Benchmark records:
benchmarks/problems/burgers-2d-mathias-et-al.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):
Burgers 2D – Mathias et al. (PINNStudio template) (tuned).pinn.json,Burgers 2D – Mathias et al. (PINNStudio template), inverse mode (tuned).pinn.json - Methods (Default and Tuned settings): Time windows and bc-PINN, Networks and Fourier features
- Cite: Mathias et al. 2022
How the benchmark values were measured and checked: Reproducibility.

