How to store diferential operator in a Function object

You can project the differential operator into a suitable function space if you use dolfin.

If you want to use interpolation for such an operation, consider DOLFINx, and the example from:

It has also been explained for the curl operator in:
https://jorgensd.github.io/dolfinx-tutorial/chapter3/em.html

1 Like