Skip to content

Burgers 1D – Raissi et al.

Example
Source PINNStudio template
Problem Forward and Inverse
Dimension 1D (x, t)
Regime Time-dependent
Geometry Interval
Outputs u
Settings Default, Tuned

Governing equations

Mathematical form (from the benchmark records):

\[\frac{\partial u}{\partial t} + u\frac{\partial u}{\partial x} = \frac{0.01}{\pi}\frac{\partial^2 u}{\partial x^2}, \qquad x \in [-1, 1],\ t \in [0, 1]\]

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

du_t + 1.0*u*du_x - (0.01/pi)*du_xx

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

du_t + lambda_1*u*du_x - (lambda_2/pi)*du_xx

Inverse-mode form (from the benchmark records):

\[\frac{\partial u}{\partial t} + \lambda_1 u\frac{\partial u}{\partial x} - \lambda_2\frac{\partial^2 u}{\partial x^2} = 0\]

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 left u 0.0 —
Dirichlet BC right u 0.0 —

Unknowns and measured data (Inverse)

Trainable parameter Initial value True value
lambda_1 0.1 1
lambda_2 1 0.01

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

From the benchmark records: same template, switched to Inverse, jointly recovering both coefficients of the data-driven-discovery form of this equation in Raissi, Perdikaris & Karniadakis (2019), Appendix B, eq. B.1.

Settings

Forward mode

Settings: Default — the paper's method (Raissi et al. 2019)

  • Network: FNN, hidden layers 8 × 20, inputs (x, t), 1 output; activation tanh, initializer Glorot uniform
  • Points: 10,000 domain, 50 boundary, 50 initial, 1,000 test
  • Loss weights: 1.0,1.0,1.0,1.0 (equations, then boundary-condition rows, then initial conditions)
Phase Optimizer Iterations Learning rate Decay
1 L-BFGS 50,000 — none
Settings: Tuned

The Training Log reports: Tuned settings: Raissi et al.'s settings. The change is applied to the template's own settings (not the paper's method that Default loads).

  • Network: FNN, hidden layers 8 × 20, inputs (x, t), 1 output; activation tanh, initializer Glorot uniform
  • Points: 10,000 domain, 50 boundary, 50 initial, 1,000 test
  • Loss weights: 1.0,1.0,1.0,1.0 (equations, then boundary-condition rows, then initial conditions)
Phase Optimizer Iterations Learning rate Decay
1 L-BFGS 50,000 — none

Inverse mode

Settings: Default — the template's own settings

  • Network: FNN, hidden layers 3 × 20, inputs (x, t), 1 output; activation tanh, initializer Glorot uniform
  • Points: 8,000 domain, 200 boundary, 200 initial, 1,000 test
  • Loss weights: 1.0,1.0,1.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: 10× the data weight, 3× the L-BFGS iterations and a larger network. The change is applied to the example's own settings.

  • Network: FNN, hidden layers 4 × 40, inputs (x, t), 1 output; activation tanh, initializer Glorot uniform
  • Points: 8,000 domain, 200 boundary, 200 initial, 1,000 test
  • Loss weights: 1.0,1.0,1.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 30,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 — Raissi et al.'s settings. Values: median over seeds 2026, 1, 2.

Output Relative L₂
u 5.2 × 10⁻⁴
Forward result: PINN, reference and error
Forward, Tuned settings: PINN, reference and error.

Inverse problem

Settings: Tuned — 10× data weight, 3× L-BFGS and the larger network. Values: median over seeds 2026, 1, 2.

Parameter True value Recovered Relative error
lambda_1 1 0.999888 0.011 %
lambda_2 0.01 0.00999801 0.062 %

Worst parameter error: 0.099 % (the median over the seeds of each seed's largest error).

Inverse result: PINN, reference and error
Inverse, Tuned settings: PINN, reference and error.
Inverse result: parameter convergence
Inverse, Tuned 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 ── 1D ── heading, Burgers 1D – Raissi et al. › Default or Tuned, then Solve.
  • Inverse: toolbar Examples: › Inverse › under the ── 1D ── heading, Burgers 1D – Raissi 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

Definition and records

How the benchmark values were measured and checked: Reproducibility.

← Back to the example gallery