Inviscid Burgers
The vanishing-viscosity limit — a genuine shock forms in finite time and the PDE residual becomes ill-defined at the discontinuity:
Without regularization, PINNs are known to converge to spurious weak solutions here: profiles that satisfy the residual almost everywhere but place the shock incorrectly.
Results
Adaptive pseudo-time stepping reaches a relative L2 error of 0.127, versus 0.214 for the baseline and 0.166 for constant pseudo-time weights — consistent with the method's core claim that the damping term steers training away from spurious weak solutions and toward the entropy solution. The remaining error is dominated by the immediate neighborhood of the discontinuity, where any pointwise residual is ill-defined; away from the shock the profile is essentially exact. This is the paper-motivating example for pseudo-time stepping, with the adaptive step size earning its keep over the fixed one.


Run
cd examples/inviscid_burgers
python3 main.py --config=configs/pseudo_time.py| Config | Description |
|---|---|
configs/baseline.py | PirateNet + causal weighting |
configs/pseudo_time.py | Adaptive pseudo-time stepping (showcase) |
configs/fixed_pseudo_time.py | Constant pseudo-time weights |
Notes
- Supports a fixed collocation batch (
--config.training.random_sampling=False) to isolate the effect of the pseudo-time weights from resampling noise.