Physics Examples#
22 worked examples across 8 physics domains. Each example folder is self-contained:
one script + one YAML config living side by side. Run directly
(python examples/burgers/burgers.py) or via the Command-Line Interface — both save predictions,
plots, and a params.msgpack checkpoint automatically.
Core PINN examples#
Problem |
PDE |
Network |
Key Features |
Config |
|---|---|---|---|---|
Exponential Decay |
|
MLP |
|
|
Harmonic Oscillator |
|
MLP |
|
|
FBPINN ODE |
|
FBPINN — 15 subnets |
Overlapping subdomains, partition-of-unity windows, hard IC constraint |
|
1-D Burgers |
|
MLP |
FBPINN, RBA, cosine LR |
|
1-D Heat — Forward |
|
MLP |
|
|
1-D Heat — Inverse |
|
MLP |
Recover |
|
1-D Wave |
|
FourierMLP |
Dual IC ( |
|
2-D Helmholtz |
|
FourierMLP |
|
|
2-D Diffusion Inverse |
|
MLP |
Log-param joint optimisation |
|
Fluid dynamics#
Problem |
PDE |
Network |
Key Features |
Config |
|---|---|---|---|---|
2-D Lid-Driven Cavity |
Steady N-S, Re=100 |
FBPINN + SimpleGate |
|
|
2-D RANS k-ε |
Turbulent channel, Re=10 000 |
FBPINN |
|
|
NACA Airfoil |
Steady N-S, Re=100 |
MLP / GatedMLP |
Cambered profiles, AoA via rotation, surface |
|
Cylinder Cross-flow |
Steady N-S, Re=40 |
MLP |
Pure-PINN recipe, |
|
3-D Pipe Flow |
Steady 3-D N-S |
MLP / GatedMLP |
Double- |
|
3-D AAA Bulge |
Steady 3-D N-S |
GatedMLP |
Cosine² bulge |
|
Carreau Pipe (blood) |
Steady Carreau N-S |
GatedMLP |
Shear-thinning |
|
Carreau AAA (blood) |
Steady Carreau N-S |
GatedMLP |
Blood rheology in the bulge, apparent-viscosity maps |
|
3-D Pulsatile Pipe |
Unsteady 3-D N-S |
GatedMLP |
Time-marching transfer, per-window ckpts, window restart |
|
3-D Unsteady Pipe — Transfer |
|
MLP |
Bessel exact, Re & temporal transfer |
|
Compressible flow (shock capturing)#
Problem |
PDE |
Network |
Key Features |
Config |
|---|---|---|---|---|
2-D Compressible Ramp |
Steady Euler (conservative), M=3 |
MLP |
Oblique shock θ=10°, artificial viscosity (fixed/learnable), RAR |
|
2-D Compressible NS Ramp (SBLI) |
Steady N-S (conservative), M=3 |
MLP |
Viscous shock–boundary-layer interaction, no-slip + isothermal walls, Re=10⁴, Pr=0.72 |
|
1-D Sod Shock Tube |
Unsteady Euler (conservative) |
MLP |
Learnable |
|
1-D Toro Test 3 (blast wave) |
Unsteady Euler (conservative) |
MLP |
exp/log positivity, non-dimensionalisation, learnable |
|
Transfer-learning examples#
Example |
Network |
Key Features |
Config |
|---|---|---|---|
Burgers Transfer |
MLP |
Parameter transfer ( |
|
Heat 2-D Transfer |
MLP |
Cross-diffusivity transfer + temporal |
|
Neural operator examples#
Example |
Architecture |
Highlights |
Config |
|---|---|---|---|
FNO1D Periodic Burgers |
FNO1D |
Generalizes across ν, |
|
FNO1D Dirichlet Burgers |
FNO1D |
Zero-wall BCs, FNO domain-padding trick |
|
FNO2D Burgers |
FNO2D |
Central/upwind stencil selectable |
|
DeepONet Burgers |
DeepONet1D |
IC/BC + residual only, no full-field data |
|
CViT Burgers |
CViT |
Scaled-increment prediction, matched-upwind residual |
|
FNO2D Cylinder Flow |
FNO2D |
Chorin-projection reference data, obstacle mask |
|
See also
PDE Library Reference for the underlying residual classes and Geometry Reference for the domain samplers used across these examples.