A physics solver built into a neural network so that gradients can flow through physical laws during training.