Demos
Jupyter notebook examples in the demos/ directory:
Poisson Equation
Stationary Poisson equation on a unit square. Computes gradients of a tracking-type objective w.r.t. the source term f, the diffusion coefficient \(\nu\), and the Dirichlet boundary values.
Heat Equation
Time-dependent heat equation solved with backward Euler. Demonstrates adjoint backpropagation through multiple time steps to compute sensitivities w.r.t. the initial condition.
Linear Elasticity
3D cantilever beam under gravity. Computes gradients of the deformation energy w.r.t. the Lame parameters \(\lambda\) and \(\mu\).
Stokes Flow
Stokes flow around a cylindrical obstacle using P2-P1 Taylor-Hood elements. Computes gradients of viscous dissipation w.r.t. the viscosity and the obstacle boundary condition.