Burgers 1D – RAR¶
| Example | |
|---|---|
| Source | DeepXDE example |
| Problem | Forward |
| Dimension | 1D (x, t) |
| Regime | Time-dependent |
| Geometry | Interval |
| 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):
Domain¶
- Interval: \(x \in [-1, 1]\)
- Time interval: \(t \in [0, 1]\)
Initial conditions¶
| Output | Initial value | How it is imposed (Settings: Default) |
|---|---|---|
u |
-sin(pi*x) |
loss term |
Boundary conditions¶
| Type | Where | Output | Value | Details |
|---|---|---|---|---|
| Dirichlet BC | True (the whole boundary) |
u |
0 |
— |
Settings¶
Settings: Default — DeepXDE's own settings
- Network: FNN, hidden layers 3 × 20, inputs (x, t), 1 output; activation tanh, initializer Glorot normal
- Points: 2,500 domain, 100 boundary, 160 initial, 1,000 test
- Loss weights:
1,1,1(equations, then boundary-condition rows, then initial conditions) - Methods: residual-based adaptive refinement (RAR, 3 rounds of 100 points)
| Phase | Optimizer | Iterations | Learning rate | Decay |
|---|---|---|---|---|
| 1 | Adam | 10,000 | 0.001 | none |
| 2 | L-BFGS | 15,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₂ |
|---|---|
| u | 8.4 × 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 ── 1D ── heading, Burgers 1D – RAR › 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/1D/burgers/
Notes¶
- Time runs from 0 to 1 (DeepXDE's script stops at 0.99, where its Burgers.npz data ends); Error Analysis compares with the exact (Cole-Hopf) solution at t = 0, 0.25, 0.5, 0.75 and 1. RAR: 3 rounds, each adding the 100 points with the largest residual (out of 100,000 candidates) and retraining, with no residual tolerance. DeepXDE's script adds 1 point per round until the mean residual is below 0.005, but after the first training the mean residual is already below that (about 3e-3), so its loop would add a single point and stop -- too little to show refinement.
Definition and records¶
- Definition:
EXAMPLESentry "Burgers equation with RAR" inpinnstudio/core/deepxde_examples.py - Equations: Governing equations on this page
- Reference data:
reference_data/1D/burgers/, written bytools/make_exact_reference_data.py - Benchmark records:
benchmarks/problems/burgers-1d-rar.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 1D – RAR (tuned).pinn.json - Methods (Default and Tuned settings): RAR
- DeepXDE example: Burgers_RAR.py (documentation)
- Cite: Lu et al. 2021 (DeepXDE)
How the benchmark values were measured and checked: Reproducibility.