How it works
A normal network learns only from examples. A PINN is also penalised whenever its output breaks a physical law. Because neural networks can be differentiated automatically, the residual of a differential equation, for example the heat equation, can be computed at any point and added to the training loss.
Neural operators
A related idea learns a whole solution operator instead of one solution: the Fourier neural operator maps a shape and its boundary conditions to the full flow or temperature field. Once trained, it evaluates new cases in milliseconds, which makes large design searches affordable.
Limits
PINNs can be hard to train on problems with sharp gradients, such as shocks, or with very different scales at once. In engineering they are best used together with conventional solvers: trained and checked against them, not instead of them.