FE-Space with curl and div

Hi!
I want to try out a formulation that has a curl and a div in the bilinear form.
Is there any way to create a vector finite element space with both operators?
Best
Nils

Hello NilsHM,

the VectorH1 space supports the div and grad operator directly.
You can build the curl operator by using the components of the gradient, see attached file
https://ngsolve.org/media/kunena/attachments/889/curl_div.py.

Best,
Michael

Attachment: curl_div.py