Neural Operators (PINO / DeepONet / CViT)#
Unlike the point networks used elsewhere in underPINN (one collocation point in, one value out), neural operators map an entire function — sampled on a grid or at sensors — to another function. A single trained model generalizes across a distribution of initial conditions or PDE parameters, instead of re-solving from scratch for every new case.
Architectures#
Architecture |
Description |
|---|---|
FNO1D / FNO2D |
Fourier Neural Operator (Li et al., 2020): truncated-spectrum convolution
( |
DeepONet1D |
Branch/trunk operator (Lu et al., 2021): |
CViT |
Continuous Vision Transformer for Operator Learning (Wang et al., ICLR 2025):
patch embed → learned sin/cos positions → latent time-aggregation →
self-attention encoder → cross-attention decoder that queries continuous
coordinates. |
Select an operator architecture the same way as any other network — via YAML:
network:
type: fno1d # fno1d | fno2d | deeponet | cvit
All four are registered once in underPINN/nn/factory.py.
Training loops#
Solver |
Loss |
Used for |
|---|---|---|
|
|
FNO1D, FNO2D, CViT |
|
|
DeepONet1D |
OperatorSolver shares the same n_scan_steps GPU acceleration as FBPINNSolver
(see Training System), plus a PDE-weight warmup ramp.
Operator-specific PDE residuals#
Residual class |
Equation |
Discretisation |
|---|---|---|
|
|
Finite-difference, periodic or Dirichlet |
|
|
Finite-difference, central or upwind stencil (selectable) |
|
|
Autodiff (no grid required) |
|
|
Finite-difference, with an obstacle mask |
Worked 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 |
|
Tip
The FNO2D cylinder-flow example ships its own datagen.py, which generates
Chorin-projection reference solutions used as supervised targets for the operator’s
data-fit loss term.
See also
PDE Library Reference for the full residual-class table and Physics Examples for the complete catalogue of 22 worked physics examples.