within Fenics it was possible to define Lagrangian function spaces restricted onto the facets of elements. I had in mind, that this is also possible in FenicsX but the code below gives the following error:
‘Unknown element family: HDiv Trace with cell type triangle’
Did the naming convention of these kind of elements changed or are they not supported within FenicsX? If the second is the case, is there a possible workaround to mimic these elements?
As Nate mentioned, these elements are not currently supported in FEniCSx, but we are working on it. Keep an eye on Sub-mesh support · GitHub. The idea is to support the creation of function spaces on a subset of mesh entities (i.e. the facets of the mesh, in your case). It’s hard to judge how long the implementation will take, but hopefully it will be working in a couple of months or so.
In multiphenicsx (see https://multiphenics.github.io/, disclaimer: I am the author of that) we are able to restrict unknowns to facets for certain spaces (but not the Hdiv-trace elements in this topic). Otherwise, keep in touch with @jpdean for updates on his work!